strapi-plugin-comments 3.0.0-beta.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -123
- package/dist/_chunks/{index-fAgatqD0.js → index-B-ygLKrb.js} +6080 -5662
- package/dist/_chunks/{index-fSb-gYwg.mjs → index-BgN4aUMA.mjs} +5 -5
- package/dist/_chunks/{index-h-TB6Qu2.mjs → index-Bx2boY6h.mjs} +6072 -5654
- package/dist/_chunks/{index-BQERo8pN.mjs → index-CIqMAf50.mjs} +1261 -1141
- package/dist/_chunks/{index-B6Q4U8YQ.js → index-CWfr5ejx.js} +27 -29
- package/dist/_chunks/{index-CTjupB9v.js → index-D8uskGzQ.js} +5 -5
- package/dist/_chunks/{index-BVj8EXjI.js → index-DFAPx7Bl.js} +1293 -1152
- package/dist/_chunks/{index-Bpbf7RON.mjs → index-Db2zwbpe.mjs} +27 -29
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +33 -52
- package/dist/admin/src/api/schemas.d.ts +454 -764
- package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
- package/dist/admin/src/contexts/UserContext.d.ts +1 -1
- package/dist/admin/src/hooks/useAPI.d.ts +34 -53
- package/dist/admin/src/hooks/useCommentMutations.d.ts +1 -1
- package/dist/admin/src/hooks/useCommentsAll.d.ts +7 -10
- package/dist/admin/src/hooks/useReports.d.ts +6 -10
- package/dist/admin/src/hooks/useUserContext.d.ts +1 -1
- package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +1 -1
- package/dist/server/index.js +9307 -2467
- package/dist/server/index.mjs +9307 -2467
- package/dist/server/src/{@types-v5 → @types}/utils.d.ts +4 -0
- package/dist/server/src/bootstrap.d.ts +1 -1
- package/dist/server/src/config/index.d.ts +52 -0
- package/dist/server/src/content-types/index.d.ts +1 -1
- package/dist/server/src/controllers/admin.controller.d.ts +110 -29
- package/dist/server/src/controllers/client.controller.d.ts +151 -23
- package/dist/server/src/controllers/index.d.ts +504 -197
- package/dist/server/src/controllers/settings.controller.d.ts +58 -2
- package/dist/server/src/controllers/utils/parsers.d.ts +4 -1
- package/dist/server/src/graphql/getResolversConfig.d.ts +21 -0
- package/dist/server/src/graphql/index.d.ts +2 -0
- package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +95 -0
- package/dist/server/src/graphql/mutations/getCreateComment.d.ts +84 -0
- package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +84 -0
- package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +84 -0
- package/dist/server/src/graphql/mutations/index.d.ts +3 -0
- package/dist/server/src/graphql/queries/findAllFlat.d.ts +177 -0
- package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +87 -0
- package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +176 -0
- package/dist/server/src/graphql/queries/index.d.ts +3 -0
- package/dist/server/src/graphql/types/getComment.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentNested.d.ts +2 -0
- package/dist/server/src/graphql/types/getCreateComment.d.ts +2 -0
- package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getCreateReport.d.ts +2 -0
- package/dist/server/src/graphql/types/getId.d.ts +2 -0
- package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getRemoveComment.d.ts +2 -0
- package/dist/server/src/graphql/types/getReport.d.ts +2 -0
- package/dist/server/src/graphql/types/getReportReason.d.ts +3 -0
- package/dist/server/src/graphql/types/getResponseFindAll.d.ts +2 -0
- package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +2 -0
- package/dist/server/src/graphql/types/getResponseMeta.d.ts +2 -0
- package/dist/server/src/graphql/types/getResponsePagination.d.ts +2 -0
- package/dist/server/src/graphql/types/getUpdateComment.d.ts +2 -0
- package/dist/server/src/graphql/types/index.d.ts +3 -0
- package/dist/server/src/index.d.ts +1686 -779
- package/dist/server/src/register/custom-fields/index.d.ts +1 -1
- package/dist/server/src/register/index.d.ts +1 -1
- package/dist/server/src/repositories/comment.repository.d.ts +10 -1
- package/dist/server/src/repositories/index.d.ts +0 -2
- package/dist/server/src/repositories/report.comment.repository.d.ts +38 -1
- package/dist/server/src/repositories/store.repository.d.ts +175 -4
- package/dist/server/src/repositories/utils.d.ts +1 -3
- package/dist/server/src/routes/admin.routes.d.ts +1 -1
- package/dist/server/src/routes/client.routes.d.ts +1 -1
- package/dist/server/src/routes/index.d.ts +2 -2
- package/dist/server/src/services/admin/admin.service.d.ts +399 -188
- package/dist/server/src/services/admin/utils.d.ts +1 -1
- package/dist/server/src/services/client.service.d.ts +343 -177
- package/dist/server/src/services/common.service.d.ts +66 -22
- package/dist/server/src/services/gql.service.d.ts +7 -0
- package/dist/server/src/services/index.d.ts +1131 -552
- package/dist/server/src/services/settings.service.d.ts +44 -2
- package/dist/server/src/services/utils/functions.d.ts +10 -6
- package/dist/server/src/test/utils.d.ts +1 -0
- package/dist/server/src/utils/constants.d.ts +1 -1
- package/dist/server/src/utils/getConfig.d.ts +2 -2
- package/dist/server/src/utils/getPluginService.d.ts +2 -2
- package/dist/server/src/utils/throwError.d.ts +1 -1
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +116 -80
- package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +7 -3
- package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
- package/dist/server/src/validators/repositories/comment.validator.d.ts +400 -72
- package/dist/server/src/validators/repositories/reports.validator.d.ts +60 -18
- package/dist/server/src/validators/utils.d.ts +1 -1
- package/package.json +18 -11
- /package/dist/server/src/{@types-v5 → @types}/controllers.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/index.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/repositories.d.ts +0 -0
- /package/dist/server/src/{@types-v5 → @types}/routes.d.ts +0 -0
|
@@ -1,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[]>;
|
|
@@ -15,21 +15,14 @@ declare const pluginServices: {
|
|
|
15
15
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
16
16
|
};
|
|
17
17
|
isGQLPluginEnabled?: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
approvalFlow?: string[];
|
|
21
|
-
entryLabel?: Record<string, string[]>;
|
|
22
|
-
moderatorRoles?: string[];
|
|
23
|
-
badWords?: boolean;
|
|
24
|
-
blockedAuthorProps?: string[];
|
|
25
|
-
isValidationEnabled?: boolean;
|
|
26
|
-
reportReasons?: {
|
|
27
|
-
BAD_LANGUAGE?: import("../const").REPORT_REASON.BAD_LANGUAGE;
|
|
28
|
-
DISCRIMINATION?: import("../const").REPORT_REASON.DISCRIMINATION;
|
|
29
|
-
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
18
|
+
gql?: {
|
|
19
|
+
auth?: boolean;
|
|
30
20
|
};
|
|
31
|
-
|
|
32
|
-
|
|
21
|
+
client?: {
|
|
22
|
+
url?: string;
|
|
23
|
+
contactEmail?: string;
|
|
24
|
+
};
|
|
25
|
+
}, T>, useLocal?: boolean): Promise<import("../@types").PathValue<{
|
|
33
26
|
enabledCollections?: string[];
|
|
34
27
|
approvalFlow?: string[];
|
|
35
28
|
entryLabel?: Record<string, string[]>;
|
|
@@ -43,10 +36,17 @@ declare const pluginServices: {
|
|
|
43
36
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
44
37
|
};
|
|
45
38
|
isGQLPluginEnabled?: boolean;
|
|
46
|
-
|
|
39
|
+
gql?: {
|
|
40
|
+
auth?: boolean;
|
|
41
|
+
};
|
|
42
|
+
client?: {
|
|
43
|
+
url?: string;
|
|
44
|
+
contactEmail?: string;
|
|
45
|
+
};
|
|
46
|
+
}, T>>;
|
|
47
47
|
parseRelationString(relation: string): {
|
|
48
48
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
49
|
-
relatedId: string
|
|
49
|
+
relatedId: string;
|
|
50
50
|
};
|
|
51
51
|
isValidUserContext<T_1 extends {
|
|
52
52
|
id?: string | number;
|
|
@@ -69,7 +69,10 @@ declare const pluginServices: {
|
|
|
69
69
|
authorName?: string;
|
|
70
70
|
authorEmail?: string;
|
|
71
71
|
authorAvatar?: string;
|
|
72
|
-
authorUser?: string
|
|
72
|
+
authorUser?: string | {
|
|
73
|
+
id?: number;
|
|
74
|
+
email?: string;
|
|
75
|
+
};
|
|
73
76
|
locale?: string;
|
|
74
77
|
gotThread?: boolean;
|
|
75
78
|
threadFirstItemId?: number;
|
|
@@ -103,7 +106,10 @@ declare const pluginServices: {
|
|
|
103
106
|
authorName?: string;
|
|
104
107
|
authorEmail?: string;
|
|
105
108
|
authorAvatar?: string;
|
|
106
|
-
authorUser?: string
|
|
109
|
+
authorUser?: string | {
|
|
110
|
+
id?: number;
|
|
111
|
+
email?: string;
|
|
112
|
+
};
|
|
107
113
|
locale?: string;
|
|
108
114
|
gotThread?: boolean;
|
|
109
115
|
threadFirstItemId?: number;
|
|
@@ -132,6 +138,8 @@ declare const pluginServices: {
|
|
|
132
138
|
approvalStatus?: string;
|
|
133
139
|
related?: {
|
|
134
140
|
id?: number;
|
|
141
|
+
documentId?: string;
|
|
142
|
+
locale?: string;
|
|
135
143
|
uid?: string;
|
|
136
144
|
requireCommentsApproval?: boolean;
|
|
137
145
|
};
|
|
@@ -142,7 +150,10 @@ declare const pluginServices: {
|
|
|
142
150
|
authorName?: string;
|
|
143
151
|
authorEmail?: string;
|
|
144
152
|
authorAvatar?: string;
|
|
145
|
-
authorUser?: string
|
|
153
|
+
authorUser?: string | {
|
|
154
|
+
id?: number;
|
|
155
|
+
email?: string;
|
|
156
|
+
};
|
|
146
157
|
locale?: string;
|
|
147
158
|
gotThread?: boolean;
|
|
148
159
|
threadFirstItemId?: number;
|
|
@@ -176,7 +187,10 @@ declare const pluginServices: {
|
|
|
176
187
|
authorName?: string;
|
|
177
188
|
authorEmail?: string;
|
|
178
189
|
authorAvatar?: string;
|
|
179
|
-
authorUser?: string
|
|
190
|
+
authorUser?: string | {
|
|
191
|
+
id?: number;
|
|
192
|
+
email?: string;
|
|
193
|
+
};
|
|
180
194
|
locale?: string;
|
|
181
195
|
gotThread?: boolean;
|
|
182
196
|
threadFirstItemId?: number;
|
|
@@ -211,7 +225,10 @@ declare const pluginServices: {
|
|
|
211
225
|
authorName?: string;
|
|
212
226
|
authorEmail?: string;
|
|
213
227
|
authorAvatar?: string;
|
|
214
|
-
authorUser?: string
|
|
228
|
+
authorUser?: string | {
|
|
229
|
+
id?: number;
|
|
230
|
+
email?: string;
|
|
231
|
+
};
|
|
215
232
|
locale?: string;
|
|
216
233
|
gotThread?: boolean;
|
|
217
234
|
threadFirstItemId?: number;
|
|
@@ -245,7 +262,10 @@ declare const pluginServices: {
|
|
|
245
262
|
authorName?: string;
|
|
246
263
|
authorEmail?: string;
|
|
247
264
|
authorAvatar?: string;
|
|
248
|
-
authorUser?: string
|
|
265
|
+
authorUser?: string | {
|
|
266
|
+
id?: number;
|
|
267
|
+
email?: string;
|
|
268
|
+
};
|
|
249
269
|
locale?: string;
|
|
250
270
|
gotThread?: boolean;
|
|
251
271
|
threadFirstItemId?: number;
|
|
@@ -263,44 +283,20 @@ declare const pluginServices: {
|
|
|
263
283
|
author?: any;
|
|
264
284
|
};
|
|
265
285
|
};
|
|
266
|
-
findAllFlat({ fields, limit, skip, sort,
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
} | {
|
|
281
|
-
$lt?: string;
|
|
282
|
-
} | {
|
|
283
|
-
$lte?: string;
|
|
284
|
-
} | {
|
|
285
|
-
$startsWith?: string;
|
|
286
|
-
} | {
|
|
287
|
-
$startsWithi?: string;
|
|
288
|
-
} | {
|
|
289
|
-
$endsWith?: string;
|
|
290
|
-
} | {
|
|
291
|
-
$endsWithi?: string;
|
|
292
|
-
} | {
|
|
293
|
-
$contains?: string;
|
|
294
|
-
} | {
|
|
295
|
-
$containsi?: string;
|
|
296
|
-
} | {
|
|
297
|
-
$notContains?: string;
|
|
298
|
-
} | {
|
|
299
|
-
$notContainsi?: string;
|
|
300
|
-
} | {
|
|
301
|
-
$notNull?: boolean;
|
|
302
|
-
}>[];
|
|
303
|
-
$or?: Record<string, string | number | {
|
|
286
|
+
findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
|
|
287
|
+
sort?: string;
|
|
288
|
+
locale?: string;
|
|
289
|
+
pagination?: {
|
|
290
|
+
page?: number;
|
|
291
|
+
pageSize?: number;
|
|
292
|
+
withCount?: boolean;
|
|
293
|
+
};
|
|
294
|
+
relation?: `${string}::${string}.${string}`;
|
|
295
|
+
populate?: Record<string, boolean | {
|
|
296
|
+
populate?: boolean;
|
|
297
|
+
}>;
|
|
298
|
+
filters?: {
|
|
299
|
+
id?: string | number | {
|
|
304
300
|
$eq?: string;
|
|
305
301
|
} | {
|
|
306
302
|
$eqi?: string;
|
|
@@ -334,10 +330,7 @@ declare const pluginServices: {
|
|
|
334
330
|
$notContainsi?: string;
|
|
335
331
|
} | {
|
|
336
332
|
$notNull?: boolean;
|
|
337
|
-
}
|
|
338
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
339
|
-
sort?: string;
|
|
340
|
-
filter?: {
|
|
333
|
+
};
|
|
341
334
|
content?: string | number | {
|
|
342
335
|
$eq?: string;
|
|
343
336
|
} | {
|
|
@@ -479,15 +472,6 @@ declare const pluginServices: {
|
|
|
479
472
|
$notNull?: boolean;
|
|
480
473
|
};
|
|
481
474
|
};
|
|
482
|
-
pagination?: {
|
|
483
|
-
page?: number;
|
|
484
|
-
pageSize?: number;
|
|
485
|
-
withCount?: boolean;
|
|
486
|
-
};
|
|
487
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
488
|
-
populate?: Record<string, boolean | {
|
|
489
|
-
populate?: boolean;
|
|
490
|
-
}>;
|
|
491
475
|
limit?: number;
|
|
492
476
|
fields?: string[];
|
|
493
477
|
omit?: string[];
|
|
@@ -512,7 +496,10 @@ declare const pluginServices: {
|
|
|
512
496
|
authorName?: string;
|
|
513
497
|
authorEmail?: string;
|
|
514
498
|
authorAvatar?: string;
|
|
515
|
-
authorUser?: string
|
|
499
|
+
authorUser?: string | {
|
|
500
|
+
id?: number;
|
|
501
|
+
email?: string;
|
|
502
|
+
};
|
|
516
503
|
locale?: string;
|
|
517
504
|
gotThread?: boolean;
|
|
518
505
|
threadFirstItemId?: number;
|
|
@@ -546,7 +533,10 @@ declare const pluginServices: {
|
|
|
546
533
|
authorName?: string;
|
|
547
534
|
authorEmail?: string;
|
|
548
535
|
authorAvatar?: string;
|
|
549
|
-
authorUser?: string
|
|
536
|
+
authorUser?: string | {
|
|
537
|
+
id?: number;
|
|
538
|
+
email?: string;
|
|
539
|
+
};
|
|
550
540
|
locale?: string;
|
|
551
541
|
gotThread?: boolean;
|
|
552
542
|
threadFirstItemId?: number;
|
|
@@ -575,6 +565,8 @@ declare const pluginServices: {
|
|
|
575
565
|
approvalStatus?: string;
|
|
576
566
|
related?: {
|
|
577
567
|
id?: number;
|
|
568
|
+
documentId?: string;
|
|
569
|
+
locale?: string;
|
|
578
570
|
uid?: string;
|
|
579
571
|
requireCommentsApproval?: boolean;
|
|
580
572
|
};
|
|
@@ -585,7 +577,10 @@ declare const pluginServices: {
|
|
|
585
577
|
authorName?: string;
|
|
586
578
|
authorEmail?: string;
|
|
587
579
|
authorAvatar?: string;
|
|
588
|
-
authorUser?: string
|
|
580
|
+
authorUser?: string | {
|
|
581
|
+
id?: number;
|
|
582
|
+
email?: string;
|
|
583
|
+
};
|
|
589
584
|
locale?: string;
|
|
590
585
|
gotThread?: boolean;
|
|
591
586
|
threadFirstItemId?: number;
|
|
@@ -619,7 +614,10 @@ declare const pluginServices: {
|
|
|
619
614
|
authorName?: string;
|
|
620
615
|
authorEmail?: string;
|
|
621
616
|
authorAvatar?: string;
|
|
622
|
-
authorUser?: string
|
|
617
|
+
authorUser?: string | {
|
|
618
|
+
id?: number;
|
|
619
|
+
email?: string;
|
|
620
|
+
};
|
|
623
621
|
locale?: string;
|
|
624
622
|
gotThread?: boolean;
|
|
625
623
|
threadFirstItemId?: number;
|
|
@@ -644,44 +642,15 @@ declare const pluginServices: {
|
|
|
644
642
|
total?: number;
|
|
645
643
|
};
|
|
646
644
|
}>;
|
|
647
|
-
findAllInHierarchy({
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
$nei?: string;
|
|
657
|
-
} | {
|
|
658
|
-
$gt?: string;
|
|
659
|
-
} | {
|
|
660
|
-
$gte?: string;
|
|
661
|
-
} | {
|
|
662
|
-
$lt?: string;
|
|
663
|
-
} | {
|
|
664
|
-
$lte?: string;
|
|
665
|
-
} | {
|
|
666
|
-
$startsWith?: string;
|
|
667
|
-
} | {
|
|
668
|
-
$startsWithi?: string;
|
|
669
|
-
} | {
|
|
670
|
-
$endsWith?: string;
|
|
671
|
-
} | {
|
|
672
|
-
$endsWithi?: string;
|
|
673
|
-
} | {
|
|
674
|
-
$contains?: string;
|
|
675
|
-
} | {
|
|
676
|
-
$containsi?: string;
|
|
677
|
-
} | {
|
|
678
|
-
$notContains?: string;
|
|
679
|
-
} | {
|
|
680
|
-
$notContainsi?: string;
|
|
681
|
-
} | {
|
|
682
|
-
$notNull?: boolean;
|
|
683
|
-
}>[];
|
|
684
|
-
$or?: Record<string, string | number | {
|
|
645
|
+
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
646
|
+
sort?: string;
|
|
647
|
+
locale?: string;
|
|
648
|
+
relation?: `${string}::${string}.${string}`;
|
|
649
|
+
populate?: Record<string, boolean | {
|
|
650
|
+
populate?: boolean;
|
|
651
|
+
}>;
|
|
652
|
+
filters?: {
|
|
653
|
+
id?: string | number | {
|
|
685
654
|
$eq?: string;
|
|
686
655
|
} | {
|
|
687
656
|
$eqi?: string;
|
|
@@ -715,10 +684,7 @@ declare const pluginServices: {
|
|
|
715
684
|
$notContainsi?: string;
|
|
716
685
|
} | {
|
|
717
686
|
$notNull?: boolean;
|
|
718
|
-
}
|
|
719
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
720
|
-
sort?: string;
|
|
721
|
-
filter?: {
|
|
687
|
+
};
|
|
722
688
|
content?: string | number | {
|
|
723
689
|
$eq?: string;
|
|
724
690
|
} | {
|
|
@@ -860,10 +826,6 @@ declare const pluginServices: {
|
|
|
860
826
|
$notNull?: boolean;
|
|
861
827
|
};
|
|
862
828
|
};
|
|
863
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
864
|
-
populate?: Record<string, boolean | {
|
|
865
|
-
populate?: boolean;
|
|
866
|
-
}>;
|
|
867
829
|
limit?: number;
|
|
868
830
|
fields?: string[];
|
|
869
831
|
omit?: string[];
|
|
@@ -889,7 +851,10 @@ declare const pluginServices: {
|
|
|
889
851
|
authorName?: string;
|
|
890
852
|
authorEmail?: string;
|
|
891
853
|
authorAvatar?: string;
|
|
892
|
-
authorUser?: string
|
|
854
|
+
authorUser?: string | {
|
|
855
|
+
id?: number;
|
|
856
|
+
email?: string;
|
|
857
|
+
};
|
|
893
858
|
locale?: string;
|
|
894
859
|
gotThread?: boolean;
|
|
895
860
|
threadFirstItemId?: number;
|
|
@@ -923,7 +888,10 @@ declare const pluginServices: {
|
|
|
923
888
|
authorName?: string;
|
|
924
889
|
authorEmail?: string;
|
|
925
890
|
authorAvatar?: string;
|
|
926
|
-
authorUser?: string
|
|
891
|
+
authorUser?: string | {
|
|
892
|
+
id?: number;
|
|
893
|
+
email?: string;
|
|
894
|
+
};
|
|
927
895
|
locale?: string;
|
|
928
896
|
gotThread?: boolean;
|
|
929
897
|
threadFirstItemId?: number;
|
|
@@ -959,7 +927,10 @@ declare const pluginServices: {
|
|
|
959
927
|
authorName?: string;
|
|
960
928
|
authorEmail?: string;
|
|
961
929
|
authorAvatar?: string;
|
|
962
|
-
authorUser?: string
|
|
930
|
+
authorUser?: string | {
|
|
931
|
+
id?: number;
|
|
932
|
+
email?: string;
|
|
933
|
+
};
|
|
963
934
|
locale?: string;
|
|
964
935
|
gotThread?: boolean;
|
|
965
936
|
threadFirstItemId?: number;
|
|
@@ -993,7 +964,10 @@ declare const pluginServices: {
|
|
|
993
964
|
authorName?: string;
|
|
994
965
|
authorEmail?: string;
|
|
995
966
|
authorAvatar?: string;
|
|
996
|
-
authorUser?: string
|
|
967
|
+
authorUser?: string | {
|
|
968
|
+
id?: number;
|
|
969
|
+
email?: string;
|
|
970
|
+
};
|
|
997
971
|
locale?: string;
|
|
998
972
|
gotThread?: boolean;
|
|
999
973
|
threadFirstItemId?: number;
|
|
@@ -1029,7 +1003,10 @@ declare const pluginServices: {
|
|
|
1029
1003
|
authorName?: string;
|
|
1030
1004
|
authorEmail?: string;
|
|
1031
1005
|
authorAvatar?: string;
|
|
1032
|
-
authorUser?: string
|
|
1006
|
+
authorUser?: string | {
|
|
1007
|
+
id?: number;
|
|
1008
|
+
email?: string;
|
|
1009
|
+
};
|
|
1033
1010
|
locale?: string;
|
|
1034
1011
|
gotThread?: boolean;
|
|
1035
1012
|
threadFirstItemId?: number;
|
|
@@ -1063,7 +1040,10 @@ declare const pluginServices: {
|
|
|
1063
1040
|
authorName?: string;
|
|
1064
1041
|
authorEmail?: string;
|
|
1065
1042
|
authorAvatar?: string;
|
|
1066
|
-
authorUser?: string
|
|
1043
|
+
authorUser?: string | {
|
|
1044
|
+
id?: number;
|
|
1045
|
+
email?: string;
|
|
1046
|
+
};
|
|
1067
1047
|
locale?: string;
|
|
1068
1048
|
gotThread?: boolean;
|
|
1069
1049
|
threadFirstItemId?: number;
|
|
@@ -1099,7 +1079,10 @@ declare const pluginServices: {
|
|
|
1099
1079
|
authorName?: string;
|
|
1100
1080
|
authorEmail?: string;
|
|
1101
1081
|
authorAvatar?: string;
|
|
1102
|
-
authorUser?: string
|
|
1082
|
+
authorUser?: string | {
|
|
1083
|
+
id?: number;
|
|
1084
|
+
email?: string;
|
|
1085
|
+
};
|
|
1103
1086
|
locale?: string;
|
|
1104
1087
|
gotThread?: boolean;
|
|
1105
1088
|
threadFirstItemId?: number;
|
|
@@ -1133,7 +1116,10 @@ declare const pluginServices: {
|
|
|
1133
1116
|
authorName?: string;
|
|
1134
1117
|
authorEmail?: string;
|
|
1135
1118
|
authorAvatar?: string;
|
|
1136
|
-
authorUser?: string
|
|
1119
|
+
authorUser?: string | {
|
|
1120
|
+
id?: number;
|
|
1121
|
+
email?: string;
|
|
1122
|
+
};
|
|
1137
1123
|
locale?: string;
|
|
1138
1124
|
gotThread?: boolean;
|
|
1139
1125
|
threadFirstItemId?: number;
|
|
@@ -1168,7 +1154,10 @@ declare const pluginServices: {
|
|
|
1168
1154
|
authorName?: string;
|
|
1169
1155
|
authorEmail?: string;
|
|
1170
1156
|
authorAvatar?: string;
|
|
1171
|
-
authorUser?: string
|
|
1157
|
+
authorUser?: string | {
|
|
1158
|
+
id?: number;
|
|
1159
|
+
email?: string;
|
|
1160
|
+
};
|
|
1172
1161
|
locale?: string;
|
|
1173
1162
|
gotThread?: boolean;
|
|
1174
1163
|
threadFirstItemId?: number;
|
|
@@ -1202,7 +1191,10 @@ declare const pluginServices: {
|
|
|
1202
1191
|
authorName?: string;
|
|
1203
1192
|
authorEmail?: string;
|
|
1204
1193
|
authorAvatar?: string;
|
|
1205
|
-
authorUser?: string
|
|
1194
|
+
authorUser?: string | {
|
|
1195
|
+
id?: number;
|
|
1196
|
+
email?: string;
|
|
1197
|
+
};
|
|
1206
1198
|
locale?: string;
|
|
1207
1199
|
gotThread?: boolean;
|
|
1208
1200
|
threadFirstItemId?: number;
|
|
@@ -1220,9 +1212,21 @@ declare const pluginServices: {
|
|
|
1220
1212
|
author?: any;
|
|
1221
1213
|
};
|
|
1222
1214
|
}>;
|
|
1223
|
-
findAllPerAuthor({
|
|
1224
|
-
|
|
1225
|
-
|
|
1215
|
+
findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
|
|
1216
|
+
type?: string;
|
|
1217
|
+
sort?: string;
|
|
1218
|
+
authorId?: string | number;
|
|
1219
|
+
locale?: string;
|
|
1220
|
+
pagination?: {
|
|
1221
|
+
page?: number;
|
|
1222
|
+
pageSize?: number;
|
|
1223
|
+
withCount?: boolean;
|
|
1224
|
+
};
|
|
1225
|
+
populate?: Record<string, boolean | {
|
|
1226
|
+
populate?: boolean;
|
|
1227
|
+
}>;
|
|
1228
|
+
filters?: {
|
|
1229
|
+
id?: string | number | {
|
|
1226
1230
|
$eq?: string;
|
|
1227
1231
|
} | {
|
|
1228
1232
|
$eqi?: string;
|
|
@@ -1256,8 +1260,8 @@ declare const pluginServices: {
|
|
|
1256
1260
|
$notContainsi?: string;
|
|
1257
1261
|
} | {
|
|
1258
1262
|
$notNull?: boolean;
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1263
|
+
};
|
|
1264
|
+
content?: string | number | {
|
|
1261
1265
|
$eq?: string;
|
|
1262
1266
|
} | {
|
|
1263
1267
|
$eqi?: string;
|
|
@@ -1291,19 +1295,113 @@ declare const pluginServices: {
|
|
|
1291
1295
|
$notContainsi?: string;
|
|
1292
1296
|
} | {
|
|
1293
1297
|
$notNull?: boolean;
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1298
|
+
};
|
|
1299
|
+
createdAt?: string | number | {
|
|
1300
|
+
$eq?: string;
|
|
1301
|
+
} | {
|
|
1302
|
+
$eqi?: string;
|
|
1303
|
+
} | {
|
|
1304
|
+
$ne?: string;
|
|
1305
|
+
} | {
|
|
1306
|
+
$nei?: string;
|
|
1307
|
+
} | {
|
|
1308
|
+
$gt?: string;
|
|
1309
|
+
} | {
|
|
1310
|
+
$gte?: string;
|
|
1311
|
+
} | {
|
|
1312
|
+
$lt?: string;
|
|
1313
|
+
} | {
|
|
1314
|
+
$lte?: string;
|
|
1315
|
+
} | {
|
|
1316
|
+
$startsWith?: string;
|
|
1317
|
+
} | {
|
|
1318
|
+
$startsWithi?: string;
|
|
1319
|
+
} | {
|
|
1320
|
+
$endsWith?: string;
|
|
1321
|
+
} | {
|
|
1322
|
+
$endsWithi?: string;
|
|
1323
|
+
} | {
|
|
1324
|
+
$contains?: string;
|
|
1325
|
+
} | {
|
|
1326
|
+
$containsi?: string;
|
|
1327
|
+
} | {
|
|
1328
|
+
$notContains?: string;
|
|
1329
|
+
} | {
|
|
1330
|
+
$notContainsi?: string;
|
|
1331
|
+
} | {
|
|
1332
|
+
$notNull?: boolean;
|
|
1333
|
+
};
|
|
1334
|
+
updatedAt?: string | number | {
|
|
1335
|
+
$eq?: string;
|
|
1336
|
+
} | {
|
|
1337
|
+
$eqi?: string;
|
|
1338
|
+
} | {
|
|
1339
|
+
$ne?: string;
|
|
1340
|
+
} | {
|
|
1341
|
+
$nei?: string;
|
|
1342
|
+
} | {
|
|
1343
|
+
$gt?: string;
|
|
1344
|
+
} | {
|
|
1345
|
+
$gte?: string;
|
|
1346
|
+
} | {
|
|
1347
|
+
$lt?: string;
|
|
1348
|
+
} | {
|
|
1349
|
+
$lte?: string;
|
|
1350
|
+
} | {
|
|
1351
|
+
$startsWith?: string;
|
|
1352
|
+
} | {
|
|
1353
|
+
$startsWithi?: string;
|
|
1354
|
+
} | {
|
|
1355
|
+
$endsWith?: string;
|
|
1356
|
+
} | {
|
|
1357
|
+
$endsWithi?: string;
|
|
1358
|
+
} | {
|
|
1359
|
+
$contains?: string;
|
|
1360
|
+
} | {
|
|
1361
|
+
$containsi?: string;
|
|
1362
|
+
} | {
|
|
1363
|
+
$notContains?: string;
|
|
1364
|
+
} | {
|
|
1365
|
+
$notContainsi?: string;
|
|
1366
|
+
} | {
|
|
1367
|
+
$notNull?: boolean;
|
|
1368
|
+
};
|
|
1369
|
+
authorName?: string | number | {
|
|
1370
|
+
$eq?: string;
|
|
1371
|
+
} | {
|
|
1372
|
+
$eqi?: string;
|
|
1373
|
+
} | {
|
|
1374
|
+
$ne?: string;
|
|
1375
|
+
} | {
|
|
1376
|
+
$nei?: string;
|
|
1377
|
+
} | {
|
|
1378
|
+
$gt?: string;
|
|
1379
|
+
} | {
|
|
1380
|
+
$gte?: string;
|
|
1381
|
+
} | {
|
|
1382
|
+
$lt?: string;
|
|
1383
|
+
} | {
|
|
1384
|
+
$lte?: string;
|
|
1385
|
+
} | {
|
|
1386
|
+
$startsWith?: string;
|
|
1387
|
+
} | {
|
|
1388
|
+
$startsWithi?: string;
|
|
1389
|
+
} | {
|
|
1390
|
+
$endsWith?: string;
|
|
1391
|
+
} | {
|
|
1392
|
+
$endsWithi?: string;
|
|
1393
|
+
} | {
|
|
1394
|
+
$contains?: string;
|
|
1395
|
+
} | {
|
|
1396
|
+
$containsi?: string;
|
|
1397
|
+
} | {
|
|
1398
|
+
$notContains?: string;
|
|
1399
|
+
} | {
|
|
1400
|
+
$notContainsi?: string;
|
|
1401
|
+
} | {
|
|
1402
|
+
$notNull?: boolean;
|
|
1403
|
+
};
|
|
1303
1404
|
};
|
|
1304
|
-
populate?: Record<string, boolean | {
|
|
1305
|
-
populate?: boolean;
|
|
1306
|
-
}>;
|
|
1307
1405
|
limit?: number;
|
|
1308
1406
|
fields?: string[];
|
|
1309
1407
|
omit?: string[];
|
|
@@ -1328,7 +1426,10 @@ declare const pluginServices: {
|
|
|
1328
1426
|
authorName?: string;
|
|
1329
1427
|
authorEmail?: string;
|
|
1330
1428
|
authorAvatar?: string;
|
|
1331
|
-
authorUser?: string
|
|
1429
|
+
authorUser?: string | {
|
|
1430
|
+
id?: number;
|
|
1431
|
+
email?: string;
|
|
1432
|
+
};
|
|
1332
1433
|
locale?: string;
|
|
1333
1434
|
gotThread?: boolean;
|
|
1334
1435
|
threadFirstItemId?: number;
|
|
@@ -1361,7 +1462,10 @@ declare const pluginServices: {
|
|
|
1361
1462
|
authorName?: string;
|
|
1362
1463
|
authorEmail?: string;
|
|
1363
1464
|
authorAvatar?: string;
|
|
1364
|
-
authorUser?: string
|
|
1465
|
+
authorUser?: string | {
|
|
1466
|
+
id?: number;
|
|
1467
|
+
email?: string;
|
|
1468
|
+
};
|
|
1365
1469
|
locale?: string;
|
|
1366
1470
|
gotThread?: boolean;
|
|
1367
1471
|
threadFirstItemId?: number;
|
|
@@ -1390,6 +1494,8 @@ declare const pluginServices: {
|
|
|
1390
1494
|
approvalStatus?: string;
|
|
1391
1495
|
related?: {
|
|
1392
1496
|
id?: number;
|
|
1497
|
+
documentId?: string;
|
|
1498
|
+
locale?: string;
|
|
1393
1499
|
uid?: string;
|
|
1394
1500
|
requireCommentsApproval?: boolean;
|
|
1395
1501
|
};
|
|
@@ -1400,7 +1506,10 @@ declare const pluginServices: {
|
|
|
1400
1506
|
authorName?: string;
|
|
1401
1507
|
authorEmail?: string;
|
|
1402
1508
|
authorAvatar?: string;
|
|
1403
|
-
authorUser?: string
|
|
1509
|
+
authorUser?: string | {
|
|
1510
|
+
id?: number;
|
|
1511
|
+
email?: string;
|
|
1512
|
+
};
|
|
1404
1513
|
locale?: string;
|
|
1405
1514
|
gotThread?: boolean;
|
|
1406
1515
|
threadFirstItemId?: number;
|
|
@@ -1433,7 +1542,10 @@ declare const pluginServices: {
|
|
|
1433
1542
|
authorName?: string;
|
|
1434
1543
|
authorEmail?: string;
|
|
1435
1544
|
authorAvatar?: string;
|
|
1436
|
-
authorUser?: string
|
|
1545
|
+
authorUser?: string | {
|
|
1546
|
+
id?: number;
|
|
1547
|
+
email?: string;
|
|
1548
|
+
};
|
|
1437
1549
|
locale?: string;
|
|
1438
1550
|
gotThread?: boolean;
|
|
1439
1551
|
threadFirstItemId?: number;
|
|
@@ -1476,7 +1588,10 @@ declare const pluginServices: {
|
|
|
1476
1588
|
authorName?: string;
|
|
1477
1589
|
authorEmail?: string;
|
|
1478
1590
|
authorAvatar?: string;
|
|
1479
|
-
authorUser?: string
|
|
1591
|
+
authorUser?: string | {
|
|
1592
|
+
id?: number;
|
|
1593
|
+
email?: string;
|
|
1594
|
+
};
|
|
1480
1595
|
locale?: string;
|
|
1481
1596
|
gotThread?: boolean;
|
|
1482
1597
|
threadFirstItemId?: number;
|
|
@@ -1510,7 +1625,10 @@ declare const pluginServices: {
|
|
|
1510
1625
|
authorName?: string;
|
|
1511
1626
|
authorEmail?: string;
|
|
1512
1627
|
authorAvatar?: string;
|
|
1513
|
-
authorUser?: string
|
|
1628
|
+
authorUser?: string | {
|
|
1629
|
+
id?: number;
|
|
1630
|
+
email?: string;
|
|
1631
|
+
};
|
|
1514
1632
|
locale?: string;
|
|
1515
1633
|
gotThread?: boolean;
|
|
1516
1634
|
threadFirstItemId?: number;
|
|
@@ -1529,6 +1647,8 @@ declare const pluginServices: {
|
|
|
1529
1647
|
};
|
|
1530
1648
|
}[]): Promise<{
|
|
1531
1649
|
id?: number;
|
|
1650
|
+
documentId?: string;
|
|
1651
|
+
locale?: string;
|
|
1532
1652
|
uid?: string;
|
|
1533
1653
|
requireCommentsApproval?: boolean;
|
|
1534
1654
|
}[]>;
|
|
@@ -1550,7 +1670,10 @@ declare const pluginServices: {
|
|
|
1550
1670
|
authorName?: string;
|
|
1551
1671
|
authorEmail?: string;
|
|
1552
1672
|
authorAvatar?: string;
|
|
1553
|
-
authorUser?: string
|
|
1673
|
+
authorUser?: string | {
|
|
1674
|
+
id?: number;
|
|
1675
|
+
email?: string;
|
|
1676
|
+
};
|
|
1554
1677
|
locale?: string;
|
|
1555
1678
|
gotThread?: boolean;
|
|
1556
1679
|
threadFirstItemId?: number;
|
|
@@ -1584,7 +1707,10 @@ declare const pluginServices: {
|
|
|
1584
1707
|
authorName?: string;
|
|
1585
1708
|
authorEmail?: string;
|
|
1586
1709
|
authorAvatar?: string;
|
|
1587
|
-
authorUser?: string
|
|
1710
|
+
authorUser?: string | {
|
|
1711
|
+
id?: number;
|
|
1712
|
+
email?: string;
|
|
1713
|
+
};
|
|
1588
1714
|
locale?: string;
|
|
1589
1715
|
gotThread?: boolean;
|
|
1590
1716
|
threadFirstItemId?: number;
|
|
@@ -1603,6 +1729,8 @@ declare const pluginServices: {
|
|
|
1603
1729
|
};
|
|
1604
1730
|
}, relatedEntities?: {
|
|
1605
1731
|
id?: number;
|
|
1732
|
+
documentId?: string;
|
|
1733
|
+
locale?: string;
|
|
1606
1734
|
uid?: string;
|
|
1607
1735
|
requireCommentsApproval?: boolean;
|
|
1608
1736
|
}[]): {
|
|
@@ -1617,6 +1745,8 @@ declare const pluginServices: {
|
|
|
1617
1745
|
approvalStatus?: string;
|
|
1618
1746
|
related?: {
|
|
1619
1747
|
id?: number;
|
|
1748
|
+
documentId?: string;
|
|
1749
|
+
locale?: string;
|
|
1620
1750
|
uid?: string;
|
|
1621
1751
|
requireCommentsApproval?: boolean;
|
|
1622
1752
|
};
|
|
@@ -1627,7 +1757,10 @@ declare const pluginServices: {
|
|
|
1627
1757
|
authorName?: string;
|
|
1628
1758
|
authorEmail?: string;
|
|
1629
1759
|
authorAvatar?: string;
|
|
1630
|
-
authorUser?: string
|
|
1760
|
+
authorUser?: string | {
|
|
1761
|
+
id?: number;
|
|
1762
|
+
email?: string;
|
|
1763
|
+
};
|
|
1631
1764
|
locale?: string;
|
|
1632
1765
|
gotThread?: boolean;
|
|
1633
1766
|
threadFirstItemId?: number;
|
|
@@ -1661,7 +1794,10 @@ declare const pluginServices: {
|
|
|
1661
1794
|
authorName?: string;
|
|
1662
1795
|
authorEmail?: string;
|
|
1663
1796
|
authorAvatar?: string;
|
|
1664
|
-
authorUser?: string
|
|
1797
|
+
authorUser?: string | {
|
|
1798
|
+
id?: number;
|
|
1799
|
+
email?: string;
|
|
1800
|
+
};
|
|
1665
1801
|
locale?: string;
|
|
1666
1802
|
gotThread?: boolean;
|
|
1667
1803
|
threadFirstItemId?: number;
|
|
@@ -1679,7 +1815,7 @@ declare const pluginServices: {
|
|
|
1679
1815
|
author?: any;
|
|
1680
1816
|
};
|
|
1681
1817
|
};
|
|
1682
|
-
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: {
|
|
1683
1819
|
id?: number;
|
|
1684
1820
|
documentId?: string;
|
|
1685
1821
|
content?: string;
|
|
@@ -1697,7 +1833,10 @@ declare const pluginServices: {
|
|
|
1697
1833
|
authorName?: string;
|
|
1698
1834
|
authorEmail?: string;
|
|
1699
1835
|
authorAvatar?: string;
|
|
1700
|
-
authorUser?: string
|
|
1836
|
+
authorUser?: string | {
|
|
1837
|
+
id?: number;
|
|
1838
|
+
email?: string;
|
|
1839
|
+
};
|
|
1701
1840
|
locale?: string;
|
|
1702
1841
|
gotThread?: boolean;
|
|
1703
1842
|
threadFirstItemId?: number;
|
|
@@ -1731,7 +1870,10 @@ declare const pluginServices: {
|
|
|
1731
1870
|
authorName?: string;
|
|
1732
1871
|
authorEmail?: string;
|
|
1733
1872
|
authorAvatar?: string;
|
|
1734
|
-
authorUser?: string
|
|
1873
|
+
authorUser?: string | {
|
|
1874
|
+
id?: number;
|
|
1875
|
+
email?: string;
|
|
1876
|
+
};
|
|
1735
1877
|
locale?: string;
|
|
1736
1878
|
gotThread?: boolean;
|
|
1737
1879
|
threadFirstItemId?: number;
|
|
@@ -1748,7 +1890,7 @@ declare const pluginServices: {
|
|
|
1748
1890
|
}[];
|
|
1749
1891
|
author?: any;
|
|
1750
1892
|
};
|
|
1751
|
-
}[T_2]): Promise<boolean>;
|
|
1893
|
+
}[T_2], deepLimit?: number): Promise<boolean>;
|
|
1752
1894
|
checkBadWords(content: string): Promise<string>;
|
|
1753
1895
|
registerLifecycleHook(): void;
|
|
1754
1896
|
runLifecycleHook(): Promise<void>;
|
|
@@ -1777,6 +1919,8 @@ declare const pluginServices: {
|
|
|
1777
1919
|
approvalStatus?: string;
|
|
1778
1920
|
related?: {
|
|
1779
1921
|
id?: number;
|
|
1922
|
+
documentId?: string;
|
|
1923
|
+
locale?: string;
|
|
1780
1924
|
uid?: string;
|
|
1781
1925
|
requireCommentsApproval?: boolean;
|
|
1782
1926
|
};
|
|
@@ -1787,7 +1931,10 @@ declare const pluginServices: {
|
|
|
1787
1931
|
authorName?: string;
|
|
1788
1932
|
authorEmail?: string;
|
|
1789
1933
|
authorAvatar?: string;
|
|
1790
|
-
authorUser?: string
|
|
1934
|
+
authorUser?: string | {
|
|
1935
|
+
id?: number;
|
|
1936
|
+
email?: string;
|
|
1937
|
+
};
|
|
1791
1938
|
locale?: string;
|
|
1792
1939
|
gotThread?: boolean;
|
|
1793
1940
|
threadFirstItemId?: number;
|
|
@@ -1821,7 +1968,10 @@ declare const pluginServices: {
|
|
|
1821
1968
|
authorName?: string;
|
|
1822
1969
|
authorEmail?: string;
|
|
1823
1970
|
authorAvatar?: string;
|
|
1824
|
-
authorUser?: string
|
|
1971
|
+
authorUser?: string | {
|
|
1972
|
+
id?: number;
|
|
1973
|
+
email?: string;
|
|
1974
|
+
};
|
|
1825
1975
|
locale?: string;
|
|
1826
1976
|
gotThread?: boolean;
|
|
1827
1977
|
threadFirstItemId?: number;
|
|
@@ -1864,7 +2014,10 @@ declare const pluginServices: {
|
|
|
1864
2014
|
authorName?: string;
|
|
1865
2015
|
authorEmail?: string;
|
|
1866
2016
|
authorAvatar?: string;
|
|
1867
|
-
authorUser?: string
|
|
2017
|
+
authorUser?: string | {
|
|
2018
|
+
id?: number;
|
|
2019
|
+
email?: string;
|
|
2020
|
+
};
|
|
1868
2021
|
locale?: string;
|
|
1869
2022
|
gotThread?: boolean;
|
|
1870
2023
|
threadFirstItemId?: number;
|
|
@@ -1898,7 +2051,10 @@ declare const pluginServices: {
|
|
|
1898
2051
|
authorName?: string;
|
|
1899
2052
|
authorEmail?: string;
|
|
1900
2053
|
authorAvatar?: string;
|
|
1901
|
-
authorUser?: string
|
|
2054
|
+
authorUser?: string | {
|
|
2055
|
+
id?: number;
|
|
2056
|
+
email?: string;
|
|
2057
|
+
};
|
|
1902
2058
|
locale?: string;
|
|
1903
2059
|
gotThread?: boolean;
|
|
1904
2060
|
threadFirstItemId?: number;
|
|
@@ -1929,7 +2085,8 @@ declare const pluginServices: {
|
|
|
1929
2085
|
}): Promise<{
|
|
1930
2086
|
entity: {
|
|
1931
2087
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
1932
|
-
|
|
2088
|
+
documentId: string;
|
|
2089
|
+
id: number;
|
|
1933
2090
|
};
|
|
1934
2091
|
selected: {
|
|
1935
2092
|
id?: number;
|
|
@@ -1949,7 +2106,10 @@ declare const pluginServices: {
|
|
|
1949
2106
|
authorName?: string;
|
|
1950
2107
|
authorEmail?: string;
|
|
1951
2108
|
authorAvatar?: string;
|
|
1952
|
-
authorUser?: string
|
|
2109
|
+
authorUser?: string | {
|
|
2110
|
+
id?: number;
|
|
2111
|
+
email?: string;
|
|
2112
|
+
};
|
|
1953
2113
|
locale?: string;
|
|
1954
2114
|
gotThread?: boolean;
|
|
1955
2115
|
threadFirstItemId?: number;
|
|
@@ -1983,7 +2143,10 @@ declare const pluginServices: {
|
|
|
1983
2143
|
authorName?: string;
|
|
1984
2144
|
authorEmail?: string;
|
|
1985
2145
|
authorAvatar?: string;
|
|
1986
|
-
authorUser?: string
|
|
2146
|
+
authorUser?: string | {
|
|
2147
|
+
id?: number;
|
|
2148
|
+
email?: string;
|
|
2149
|
+
};
|
|
1987
2150
|
locale?: string;
|
|
1988
2151
|
gotThread?: boolean;
|
|
1989
2152
|
threadFirstItemId?: number;
|
|
@@ -2019,7 +2182,10 @@ declare const pluginServices: {
|
|
|
2019
2182
|
authorName?: string;
|
|
2020
2183
|
authorEmail?: string;
|
|
2021
2184
|
authorAvatar?: string;
|
|
2022
|
-
authorUser?: string
|
|
2185
|
+
authorUser?: string | {
|
|
2186
|
+
id?: number;
|
|
2187
|
+
email?: string;
|
|
2188
|
+
};
|
|
2023
2189
|
locale?: string;
|
|
2024
2190
|
gotThread?: boolean;
|
|
2025
2191
|
threadFirstItemId?: number;
|
|
@@ -2053,7 +2219,10 @@ declare const pluginServices: {
|
|
|
2053
2219
|
authorName?: string;
|
|
2054
2220
|
authorEmail?: string;
|
|
2055
2221
|
authorAvatar?: string;
|
|
2056
|
-
authorUser?: string
|
|
2222
|
+
authorUser?: string | {
|
|
2223
|
+
id?: number;
|
|
2224
|
+
email?: string;
|
|
2225
|
+
};
|
|
2057
2226
|
locale?: string;
|
|
2058
2227
|
gotThread?: boolean;
|
|
2059
2228
|
threadFirstItemId?: number;
|
|
@@ -2072,7 +2241,7 @@ declare const pluginServices: {
|
|
|
2072
2241
|
};
|
|
2073
2242
|
}[];
|
|
2074
2243
|
}>;
|
|
2075
|
-
changeBlockedComment(id: import("../@types
|
|
2244
|
+
changeBlockedComment(id: import("../@types").Id, forceStatus?: boolean): Promise<{
|
|
2076
2245
|
id?: number;
|
|
2077
2246
|
documentId?: string;
|
|
2078
2247
|
content?: string;
|
|
@@ -2090,7 +2259,10 @@ declare const pluginServices: {
|
|
|
2090
2259
|
authorName?: string;
|
|
2091
2260
|
authorEmail?: string;
|
|
2092
2261
|
authorAvatar?: string;
|
|
2093
|
-
authorUser?: string
|
|
2262
|
+
authorUser?: string | {
|
|
2263
|
+
id?: number;
|
|
2264
|
+
email?: string;
|
|
2265
|
+
};
|
|
2094
2266
|
locale?: string;
|
|
2095
2267
|
gotThread?: boolean;
|
|
2096
2268
|
threadFirstItemId?: number;
|
|
@@ -2124,7 +2296,10 @@ declare const pluginServices: {
|
|
|
2124
2296
|
authorName?: string;
|
|
2125
2297
|
authorEmail?: string;
|
|
2126
2298
|
authorAvatar?: string;
|
|
2127
|
-
authorUser?: string
|
|
2299
|
+
authorUser?: string | {
|
|
2300
|
+
id?: number;
|
|
2301
|
+
email?: string;
|
|
2302
|
+
};
|
|
2128
2303
|
locale?: string;
|
|
2129
2304
|
gotThread?: boolean;
|
|
2130
2305
|
threadFirstItemId?: number;
|
|
@@ -2142,7 +2317,7 @@ declare const pluginServices: {
|
|
|
2142
2317
|
author?: any;
|
|
2143
2318
|
};
|
|
2144
2319
|
}>;
|
|
2145
|
-
deleteComment(id: import("../@types
|
|
2320
|
+
deleteComment(id: import("../@types").Id): Promise<{
|
|
2146
2321
|
id?: number;
|
|
2147
2322
|
documentId?: string;
|
|
2148
2323
|
content?: string;
|
|
@@ -2160,7 +2335,10 @@ declare const pluginServices: {
|
|
|
2160
2335
|
authorName?: string;
|
|
2161
2336
|
authorEmail?: string;
|
|
2162
2337
|
authorAvatar?: string;
|
|
2163
|
-
authorUser?: string
|
|
2338
|
+
authorUser?: string | {
|
|
2339
|
+
id?: number;
|
|
2340
|
+
email?: string;
|
|
2341
|
+
};
|
|
2164
2342
|
locale?: string;
|
|
2165
2343
|
gotThread?: boolean;
|
|
2166
2344
|
threadFirstItemId?: number;
|
|
@@ -2194,7 +2372,10 @@ declare const pluginServices: {
|
|
|
2194
2372
|
authorName?: string;
|
|
2195
2373
|
authorEmail?: string;
|
|
2196
2374
|
authorAvatar?: string;
|
|
2197
|
-
authorUser?: string
|
|
2375
|
+
authorUser?: string | {
|
|
2376
|
+
id?: number;
|
|
2377
|
+
email?: string;
|
|
2378
|
+
};
|
|
2198
2379
|
locale?: string;
|
|
2199
2380
|
gotThread?: boolean;
|
|
2200
2381
|
threadFirstItemId?: number;
|
|
@@ -2212,7 +2393,7 @@ declare const pluginServices: {
|
|
|
2212
2393
|
author?: any;
|
|
2213
2394
|
};
|
|
2214
2395
|
}>;
|
|
2215
|
-
blockCommentThread(id: import("../@types
|
|
2396
|
+
blockCommentThread(id: import("../@types").Id, forceStatus?: boolean): Promise<{
|
|
2216
2397
|
id?: number;
|
|
2217
2398
|
documentId?: string;
|
|
2218
2399
|
content?: string;
|
|
@@ -2230,7 +2411,10 @@ declare const pluginServices: {
|
|
|
2230
2411
|
authorName?: string;
|
|
2231
2412
|
authorEmail?: string;
|
|
2232
2413
|
authorAvatar?: string;
|
|
2233
|
-
authorUser?: string
|
|
2414
|
+
authorUser?: string | {
|
|
2415
|
+
id?: number;
|
|
2416
|
+
email?: string;
|
|
2417
|
+
};
|
|
2234
2418
|
locale?: string;
|
|
2235
2419
|
gotThread?: boolean;
|
|
2236
2420
|
threadFirstItemId?: number;
|
|
@@ -2264,7 +2448,10 @@ declare const pluginServices: {
|
|
|
2264
2448
|
authorName?: string;
|
|
2265
2449
|
authorEmail?: string;
|
|
2266
2450
|
authorAvatar?: string;
|
|
2267
|
-
authorUser?: string
|
|
2451
|
+
authorUser?: string | {
|
|
2452
|
+
id?: number;
|
|
2453
|
+
email?: string;
|
|
2454
|
+
};
|
|
2268
2455
|
locale?: string;
|
|
2269
2456
|
gotThread?: boolean;
|
|
2270
2457
|
threadFirstItemId?: number;
|
|
@@ -2282,7 +2469,7 @@ declare const pluginServices: {
|
|
|
2282
2469
|
author?: any;
|
|
2283
2470
|
};
|
|
2284
2471
|
}>;
|
|
2285
|
-
approveComment(id: import("../@types
|
|
2472
|
+
approveComment(id: import("../@types").Id): Promise<{
|
|
2286
2473
|
id?: number;
|
|
2287
2474
|
documentId?: string;
|
|
2288
2475
|
content?: string;
|
|
@@ -2300,7 +2487,10 @@ declare const pluginServices: {
|
|
|
2300
2487
|
authorName?: string;
|
|
2301
2488
|
authorEmail?: string;
|
|
2302
2489
|
authorAvatar?: string;
|
|
2303
|
-
authorUser?: string
|
|
2490
|
+
authorUser?: string | {
|
|
2491
|
+
id?: number;
|
|
2492
|
+
email?: string;
|
|
2493
|
+
};
|
|
2304
2494
|
locale?: string;
|
|
2305
2495
|
gotThread?: boolean;
|
|
2306
2496
|
threadFirstItemId?: number;
|
|
@@ -2334,7 +2524,10 @@ declare const pluginServices: {
|
|
|
2334
2524
|
authorName?: string;
|
|
2335
2525
|
authorEmail?: string;
|
|
2336
2526
|
authorAvatar?: string;
|
|
2337
|
-
authorUser?: string
|
|
2527
|
+
authorUser?: string | {
|
|
2528
|
+
id?: number;
|
|
2529
|
+
email?: string;
|
|
2530
|
+
};
|
|
2338
2531
|
locale?: string;
|
|
2339
2532
|
gotThread?: boolean;
|
|
2340
2533
|
threadFirstItemId?: number;
|
|
@@ -2352,7 +2545,7 @@ declare const pluginServices: {
|
|
|
2352
2545
|
author?: any;
|
|
2353
2546
|
};
|
|
2354
2547
|
}>;
|
|
2355
|
-
rejectComment(id: import("../@types
|
|
2548
|
+
rejectComment(id: import("../@types").Id): Promise<{
|
|
2356
2549
|
id?: number;
|
|
2357
2550
|
documentId?: string;
|
|
2358
2551
|
content?: string;
|
|
@@ -2370,7 +2563,10 @@ declare const pluginServices: {
|
|
|
2370
2563
|
authorName?: string;
|
|
2371
2564
|
authorEmail?: string;
|
|
2372
2565
|
authorAvatar?: string;
|
|
2373
|
-
authorUser?: string
|
|
2566
|
+
authorUser?: string | {
|
|
2567
|
+
id?: number;
|
|
2568
|
+
email?: string;
|
|
2569
|
+
};
|
|
2374
2570
|
locale?: string;
|
|
2375
2571
|
gotThread?: boolean;
|
|
2376
2572
|
threadFirstItemId?: number;
|
|
@@ -2404,7 +2600,10 @@ declare const pluginServices: {
|
|
|
2404
2600
|
authorName?: string;
|
|
2405
2601
|
authorEmail?: string;
|
|
2406
2602
|
authorAvatar?: string;
|
|
2407
|
-
authorUser?: string
|
|
2603
|
+
authorUser?: string | {
|
|
2604
|
+
id?: number;
|
|
2605
|
+
email?: string;
|
|
2606
|
+
};
|
|
2408
2607
|
locale?: string;
|
|
2409
2608
|
gotThread?: boolean;
|
|
2410
2609
|
threadFirstItemId?: number;
|
|
@@ -2422,7 +2621,7 @@ declare const pluginServices: {
|
|
|
2422
2621
|
author?: any;
|
|
2423
2622
|
};
|
|
2424
2623
|
}>;
|
|
2425
|
-
blockNestedThreads(id: import("../@types
|
|
2624
|
+
blockNestedThreads(id: import("../@types").Id, status: boolean): Promise<boolean>;
|
|
2426
2625
|
resolveAbuseReport({ id: commentId, reportId, }: {
|
|
2427
2626
|
id?: number;
|
|
2428
2627
|
reportId?: number;
|
|
@@ -2441,7 +2640,7 @@ declare const pluginServices: {
|
|
|
2441
2640
|
id?: number;
|
|
2442
2641
|
reportIds?: number[];
|
|
2443
2642
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
2444
|
-
resolveAllAbuseReportsForComment(id: import("../@types
|
|
2643
|
+
resolveAllAbuseReportsForComment(id: import("../@types").Id): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
2445
2644
|
resolveAllAbuseReportsForThread(commentId: number): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
2446
2645
|
resolveMultipleAbuseReports({ reportIds, }: {
|
|
2447
2646
|
reportIds?: number[];
|
|
@@ -2474,7 +2673,10 @@ declare const pluginServices: {
|
|
|
2474
2673
|
authorName?: string;
|
|
2475
2674
|
authorEmail?: string;
|
|
2476
2675
|
authorAvatar?: string;
|
|
2477
|
-
authorUser?: string
|
|
2676
|
+
authorUser?: string | {
|
|
2677
|
+
id?: number;
|
|
2678
|
+
email?: string;
|
|
2679
|
+
};
|
|
2478
2680
|
locale?: string;
|
|
2479
2681
|
gotThread?: boolean;
|
|
2480
2682
|
threadFirstItemId?: number;
|
|
@@ -2508,7 +2710,10 @@ declare const pluginServices: {
|
|
|
2508
2710
|
authorName?: string;
|
|
2509
2711
|
authorEmail?: string;
|
|
2510
2712
|
authorAvatar?: string;
|
|
2511
|
-
authorUser?: string
|
|
2713
|
+
authorUser?: string | {
|
|
2714
|
+
id?: number;
|
|
2715
|
+
email?: string;
|
|
2716
|
+
};
|
|
2512
2717
|
locale?: string;
|
|
2513
2718
|
gotThread?: boolean;
|
|
2514
2719
|
threadFirstItemId?: number;
|
|
@@ -2547,7 +2752,10 @@ declare const pluginServices: {
|
|
|
2547
2752
|
authorName?: string;
|
|
2548
2753
|
authorEmail?: string;
|
|
2549
2754
|
authorAvatar?: string;
|
|
2550
|
-
authorUser?: string
|
|
2755
|
+
authorUser?: string | {
|
|
2756
|
+
id?: number;
|
|
2757
|
+
email?: string;
|
|
2758
|
+
};
|
|
2551
2759
|
locale?: string;
|
|
2552
2760
|
gotThread?: boolean;
|
|
2553
2761
|
threadFirstItemId?: number;
|
|
@@ -2581,7 +2789,10 @@ declare const pluginServices: {
|
|
|
2581
2789
|
authorName?: string;
|
|
2582
2790
|
authorEmail?: string;
|
|
2583
2791
|
authorAvatar?: string;
|
|
2584
|
-
authorUser?: string
|
|
2792
|
+
authorUser?: string | {
|
|
2793
|
+
id?: number;
|
|
2794
|
+
email?: string;
|
|
2795
|
+
};
|
|
2585
2796
|
locale?: string;
|
|
2586
2797
|
gotThread?: boolean;
|
|
2587
2798
|
threadFirstItemId?: number;
|
|
@@ -2600,9 +2811,9 @@ declare const pluginServices: {
|
|
|
2600
2811
|
};
|
|
2601
2812
|
}>;
|
|
2602
2813
|
};
|
|
2603
|
-
client: ({ strapi }: import("../@types
|
|
2814
|
+
client: ({ strapi }: import("../@types").StrapiContext) => {
|
|
2604
2815
|
getCommonService(): {
|
|
2605
|
-
getConfig<T extends
|
|
2816
|
+
getConfig<T extends string>(prop?: T, defaultValue?: import("../@types").PathValue<{
|
|
2606
2817
|
enabledCollections?: string[];
|
|
2607
2818
|
approvalFlow?: string[];
|
|
2608
2819
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2616,21 +2827,14 @@ declare const pluginServices: {
|
|
|
2616
2827
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2617
2828
|
};
|
|
2618
2829
|
isGQLPluginEnabled?: boolean;
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
approvalFlow?: string[];
|
|
2622
|
-
entryLabel?: Record<string, string[]>;
|
|
2623
|
-
moderatorRoles?: string[];
|
|
2624
|
-
badWords?: boolean;
|
|
2625
|
-
blockedAuthorProps?: string[];
|
|
2626
|
-
isValidationEnabled?: boolean;
|
|
2627
|
-
reportReasons?: {
|
|
2628
|
-
BAD_LANGUAGE?: import("../const").REPORT_REASON.BAD_LANGUAGE;
|
|
2629
|
-
DISCRIMINATION?: import("../const").REPORT_REASON.DISCRIMINATION;
|
|
2630
|
-
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2830
|
+
gql?: {
|
|
2831
|
+
auth?: boolean;
|
|
2631
2832
|
};
|
|
2632
|
-
|
|
2633
|
-
|
|
2833
|
+
client?: {
|
|
2834
|
+
url?: string;
|
|
2835
|
+
contactEmail?: string;
|
|
2836
|
+
};
|
|
2837
|
+
}, T>, useLocal?: boolean): Promise<import("../@types").PathValue<{
|
|
2634
2838
|
enabledCollections?: string[];
|
|
2635
2839
|
approvalFlow?: string[];
|
|
2636
2840
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2644,10 +2848,17 @@ declare const pluginServices: {
|
|
|
2644
2848
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
2645
2849
|
};
|
|
2646
2850
|
isGQLPluginEnabled?: boolean;
|
|
2647
|
-
|
|
2851
|
+
gql?: {
|
|
2852
|
+
auth?: boolean;
|
|
2853
|
+
};
|
|
2854
|
+
client?: {
|
|
2855
|
+
url?: string;
|
|
2856
|
+
contactEmail?: string;
|
|
2857
|
+
};
|
|
2858
|
+
}, T>>;
|
|
2648
2859
|
parseRelationString(relation: string): {
|
|
2649
2860
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
2650
|
-
relatedId: string
|
|
2861
|
+
relatedId: string;
|
|
2651
2862
|
};
|
|
2652
2863
|
isValidUserContext<T_1 extends {
|
|
2653
2864
|
id?: string | number;
|
|
@@ -2670,7 +2881,10 @@ declare const pluginServices: {
|
|
|
2670
2881
|
authorName?: string;
|
|
2671
2882
|
authorEmail?: string;
|
|
2672
2883
|
authorAvatar?: string;
|
|
2673
|
-
authorUser?: string
|
|
2884
|
+
authorUser?: string | {
|
|
2885
|
+
id?: number;
|
|
2886
|
+
email?: string;
|
|
2887
|
+
};
|
|
2674
2888
|
locale?: string;
|
|
2675
2889
|
gotThread?: boolean;
|
|
2676
2890
|
threadFirstItemId?: number;
|
|
@@ -2704,7 +2918,10 @@ declare const pluginServices: {
|
|
|
2704
2918
|
authorName?: string;
|
|
2705
2919
|
authorEmail?: string;
|
|
2706
2920
|
authorAvatar?: string;
|
|
2707
|
-
authorUser?: string
|
|
2921
|
+
authorUser?: string | {
|
|
2922
|
+
id?: number;
|
|
2923
|
+
email?: string;
|
|
2924
|
+
};
|
|
2708
2925
|
locale?: string;
|
|
2709
2926
|
gotThread?: boolean;
|
|
2710
2927
|
threadFirstItemId?: number;
|
|
@@ -2733,6 +2950,8 @@ declare const pluginServices: {
|
|
|
2733
2950
|
approvalStatus?: string;
|
|
2734
2951
|
related?: {
|
|
2735
2952
|
id?: number;
|
|
2953
|
+
documentId?: string;
|
|
2954
|
+
locale?: string;
|
|
2736
2955
|
uid?: string;
|
|
2737
2956
|
requireCommentsApproval?: boolean;
|
|
2738
2957
|
};
|
|
@@ -2743,7 +2962,10 @@ declare const pluginServices: {
|
|
|
2743
2962
|
authorName?: string;
|
|
2744
2963
|
authorEmail?: string;
|
|
2745
2964
|
authorAvatar?: string;
|
|
2746
|
-
authorUser?: string
|
|
2965
|
+
authorUser?: string | {
|
|
2966
|
+
id?: number;
|
|
2967
|
+
email?: string;
|
|
2968
|
+
};
|
|
2747
2969
|
locale?: string;
|
|
2748
2970
|
gotThread?: boolean;
|
|
2749
2971
|
threadFirstItemId?: number;
|
|
@@ -2777,7 +2999,10 @@ declare const pluginServices: {
|
|
|
2777
2999
|
authorName?: string;
|
|
2778
3000
|
authorEmail?: string;
|
|
2779
3001
|
authorAvatar?: string;
|
|
2780
|
-
authorUser?: string
|
|
3002
|
+
authorUser?: string | {
|
|
3003
|
+
id?: number;
|
|
3004
|
+
email?: string;
|
|
3005
|
+
};
|
|
2781
3006
|
locale?: string;
|
|
2782
3007
|
gotThread?: boolean;
|
|
2783
3008
|
threadFirstItemId?: number;
|
|
@@ -2812,7 +3037,10 @@ declare const pluginServices: {
|
|
|
2812
3037
|
authorName?: string;
|
|
2813
3038
|
authorEmail?: string;
|
|
2814
3039
|
authorAvatar?: string;
|
|
2815
|
-
authorUser?: string
|
|
3040
|
+
authorUser?: string | {
|
|
3041
|
+
id?: number;
|
|
3042
|
+
email?: string;
|
|
3043
|
+
};
|
|
2816
3044
|
locale?: string;
|
|
2817
3045
|
gotThread?: boolean;
|
|
2818
3046
|
threadFirstItemId?: number;
|
|
@@ -2846,7 +3074,10 @@ declare const pluginServices: {
|
|
|
2846
3074
|
authorName?: string;
|
|
2847
3075
|
authorEmail?: string;
|
|
2848
3076
|
authorAvatar?: string;
|
|
2849
|
-
authorUser?: string
|
|
3077
|
+
authorUser?: string | {
|
|
3078
|
+
id?: number;
|
|
3079
|
+
email?: string;
|
|
3080
|
+
};
|
|
2850
3081
|
locale?: string;
|
|
2851
3082
|
gotThread?: boolean;
|
|
2852
3083
|
threadFirstItemId?: number;
|
|
@@ -2864,44 +3095,20 @@ declare const pluginServices: {
|
|
|
2864
3095
|
author?: any;
|
|
2865
3096
|
};
|
|
2866
3097
|
};
|
|
2867
|
-
findAllFlat({ fields, limit, skip, sort,
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
} | {
|
|
2882
|
-
$lt?: string;
|
|
2883
|
-
} | {
|
|
2884
|
-
$lte?: string;
|
|
2885
|
-
} | {
|
|
2886
|
-
$startsWith?: string;
|
|
2887
|
-
} | {
|
|
2888
|
-
$startsWithi?: string;
|
|
2889
|
-
} | {
|
|
2890
|
-
$endsWith?: string;
|
|
2891
|
-
} | {
|
|
2892
|
-
$endsWithi?: string;
|
|
2893
|
-
} | {
|
|
2894
|
-
$contains?: string;
|
|
2895
|
-
} | {
|
|
2896
|
-
$containsi?: string;
|
|
2897
|
-
} | {
|
|
2898
|
-
$notContains?: string;
|
|
2899
|
-
} | {
|
|
2900
|
-
$notContainsi?: string;
|
|
2901
|
-
} | {
|
|
2902
|
-
$notNull?: boolean;
|
|
2903
|
-
}>[];
|
|
2904
|
-
$or?: Record<string, string | number | {
|
|
3098
|
+
findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
|
|
3099
|
+
sort?: string;
|
|
3100
|
+
locale?: string;
|
|
3101
|
+
pagination?: {
|
|
3102
|
+
page?: number;
|
|
3103
|
+
pageSize?: number;
|
|
3104
|
+
withCount?: boolean;
|
|
3105
|
+
};
|
|
3106
|
+
relation?: `${string}::${string}.${string}`;
|
|
3107
|
+
populate?: Record<string, boolean | {
|
|
3108
|
+
populate?: boolean;
|
|
3109
|
+
}>;
|
|
3110
|
+
filters?: {
|
|
3111
|
+
id?: string | number | {
|
|
2905
3112
|
$eq?: string;
|
|
2906
3113
|
} | {
|
|
2907
3114
|
$eqi?: string;
|
|
@@ -2935,10 +3142,7 @@ declare const pluginServices: {
|
|
|
2935
3142
|
$notContainsi?: string;
|
|
2936
3143
|
} | {
|
|
2937
3144
|
$notNull?: boolean;
|
|
2938
|
-
}
|
|
2939
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
2940
|
-
sort?: string;
|
|
2941
|
-
filter?: {
|
|
3145
|
+
};
|
|
2942
3146
|
content?: string | number | {
|
|
2943
3147
|
$eq?: string;
|
|
2944
3148
|
} | {
|
|
@@ -3080,15 +3284,6 @@ declare const pluginServices: {
|
|
|
3080
3284
|
$notNull?: boolean;
|
|
3081
3285
|
};
|
|
3082
3286
|
};
|
|
3083
|
-
pagination?: {
|
|
3084
|
-
page?: number;
|
|
3085
|
-
pageSize?: number;
|
|
3086
|
-
withCount?: boolean;
|
|
3087
|
-
};
|
|
3088
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
3089
|
-
populate?: Record<string, boolean | {
|
|
3090
|
-
populate?: boolean;
|
|
3091
|
-
}>;
|
|
3092
3287
|
limit?: number;
|
|
3093
3288
|
fields?: string[];
|
|
3094
3289
|
omit?: string[];
|
|
@@ -3113,7 +3308,10 @@ declare const pluginServices: {
|
|
|
3113
3308
|
authorName?: string;
|
|
3114
3309
|
authorEmail?: string;
|
|
3115
3310
|
authorAvatar?: string;
|
|
3116
|
-
authorUser?: string
|
|
3311
|
+
authorUser?: string | {
|
|
3312
|
+
id?: number;
|
|
3313
|
+
email?: string;
|
|
3314
|
+
};
|
|
3117
3315
|
locale?: string;
|
|
3118
3316
|
gotThread?: boolean;
|
|
3119
3317
|
threadFirstItemId?: number;
|
|
@@ -3147,7 +3345,10 @@ declare const pluginServices: {
|
|
|
3147
3345
|
authorName?: string;
|
|
3148
3346
|
authorEmail?: string;
|
|
3149
3347
|
authorAvatar?: string;
|
|
3150
|
-
authorUser?: string
|
|
3348
|
+
authorUser?: string | {
|
|
3349
|
+
id?: number;
|
|
3350
|
+
email?: string;
|
|
3351
|
+
};
|
|
3151
3352
|
locale?: string;
|
|
3152
3353
|
gotThread?: boolean;
|
|
3153
3354
|
threadFirstItemId?: number;
|
|
@@ -3176,6 +3377,8 @@ declare const pluginServices: {
|
|
|
3176
3377
|
approvalStatus?: string;
|
|
3177
3378
|
related?: {
|
|
3178
3379
|
id?: number;
|
|
3380
|
+
documentId?: string;
|
|
3381
|
+
locale?: string;
|
|
3179
3382
|
uid?: string;
|
|
3180
3383
|
requireCommentsApproval?: boolean;
|
|
3181
3384
|
};
|
|
@@ -3186,7 +3389,10 @@ declare const pluginServices: {
|
|
|
3186
3389
|
authorName?: string;
|
|
3187
3390
|
authorEmail?: string;
|
|
3188
3391
|
authorAvatar?: string;
|
|
3189
|
-
authorUser?: string
|
|
3392
|
+
authorUser?: string | {
|
|
3393
|
+
id?: number;
|
|
3394
|
+
email?: string;
|
|
3395
|
+
};
|
|
3190
3396
|
locale?: string;
|
|
3191
3397
|
gotThread?: boolean;
|
|
3192
3398
|
threadFirstItemId?: number;
|
|
@@ -3220,7 +3426,10 @@ declare const pluginServices: {
|
|
|
3220
3426
|
authorName?: string;
|
|
3221
3427
|
authorEmail?: string;
|
|
3222
3428
|
authorAvatar?: string;
|
|
3223
|
-
authorUser?: string
|
|
3429
|
+
authorUser?: string | {
|
|
3430
|
+
id?: number;
|
|
3431
|
+
email?: string;
|
|
3432
|
+
};
|
|
3224
3433
|
locale?: string;
|
|
3225
3434
|
gotThread?: boolean;
|
|
3226
3435
|
threadFirstItemId?: number;
|
|
@@ -3245,44 +3454,15 @@ declare const pluginServices: {
|
|
|
3245
3454
|
total?: number;
|
|
3246
3455
|
};
|
|
3247
3456
|
}>;
|
|
3248
|
-
findAllInHierarchy({
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
$nei?: string;
|
|
3258
|
-
} | {
|
|
3259
|
-
$gt?: string;
|
|
3260
|
-
} | {
|
|
3261
|
-
$gte?: string;
|
|
3262
|
-
} | {
|
|
3263
|
-
$lt?: string;
|
|
3264
|
-
} | {
|
|
3265
|
-
$lte?: string;
|
|
3266
|
-
} | {
|
|
3267
|
-
$startsWith?: string;
|
|
3268
|
-
} | {
|
|
3269
|
-
$startsWithi?: string;
|
|
3270
|
-
} | {
|
|
3271
|
-
$endsWith?: string;
|
|
3272
|
-
} | {
|
|
3273
|
-
$endsWithi?: string;
|
|
3274
|
-
} | {
|
|
3275
|
-
$contains?: string;
|
|
3276
|
-
} | {
|
|
3277
|
-
$containsi?: string;
|
|
3278
|
-
} | {
|
|
3279
|
-
$notContains?: string;
|
|
3280
|
-
} | {
|
|
3281
|
-
$notContainsi?: string;
|
|
3282
|
-
} | {
|
|
3283
|
-
$notNull?: boolean;
|
|
3284
|
-
}>[];
|
|
3285
|
-
$or?: Record<string, string | number | {
|
|
3457
|
+
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
3458
|
+
sort?: string;
|
|
3459
|
+
locale?: string;
|
|
3460
|
+
relation?: `${string}::${string}.${string}`;
|
|
3461
|
+
populate?: Record<string, boolean | {
|
|
3462
|
+
populate?: boolean;
|
|
3463
|
+
}>;
|
|
3464
|
+
filters?: {
|
|
3465
|
+
id?: string | number | {
|
|
3286
3466
|
$eq?: string;
|
|
3287
3467
|
} | {
|
|
3288
3468
|
$eqi?: string;
|
|
@@ -3316,10 +3496,7 @@ declare const pluginServices: {
|
|
|
3316
3496
|
$notContainsi?: string;
|
|
3317
3497
|
} | {
|
|
3318
3498
|
$notNull?: boolean;
|
|
3319
|
-
}
|
|
3320
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
3321
|
-
sort?: string;
|
|
3322
|
-
filter?: {
|
|
3499
|
+
};
|
|
3323
3500
|
content?: string | number | {
|
|
3324
3501
|
$eq?: string;
|
|
3325
3502
|
} | {
|
|
@@ -3461,10 +3638,6 @@ declare const pluginServices: {
|
|
|
3461
3638
|
$notNull?: boolean;
|
|
3462
3639
|
};
|
|
3463
3640
|
};
|
|
3464
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
3465
|
-
populate?: Record<string, boolean | {
|
|
3466
|
-
populate?: boolean;
|
|
3467
|
-
}>;
|
|
3468
3641
|
limit?: number;
|
|
3469
3642
|
fields?: string[];
|
|
3470
3643
|
omit?: string[];
|
|
@@ -3490,7 +3663,10 @@ declare const pluginServices: {
|
|
|
3490
3663
|
authorName?: string;
|
|
3491
3664
|
authorEmail?: string;
|
|
3492
3665
|
authorAvatar?: string;
|
|
3493
|
-
authorUser?: string
|
|
3666
|
+
authorUser?: string | {
|
|
3667
|
+
id?: number;
|
|
3668
|
+
email?: string;
|
|
3669
|
+
};
|
|
3494
3670
|
locale?: string;
|
|
3495
3671
|
gotThread?: boolean;
|
|
3496
3672
|
threadFirstItemId?: number;
|
|
@@ -3524,7 +3700,10 @@ declare const pluginServices: {
|
|
|
3524
3700
|
authorName?: string;
|
|
3525
3701
|
authorEmail?: string;
|
|
3526
3702
|
authorAvatar?: string;
|
|
3527
|
-
authorUser?: string
|
|
3703
|
+
authorUser?: string | {
|
|
3704
|
+
id?: number;
|
|
3705
|
+
email?: string;
|
|
3706
|
+
};
|
|
3528
3707
|
locale?: string;
|
|
3529
3708
|
gotThread?: boolean;
|
|
3530
3709
|
threadFirstItemId?: number;
|
|
@@ -3560,7 +3739,10 @@ declare const pluginServices: {
|
|
|
3560
3739
|
authorName?: string;
|
|
3561
3740
|
authorEmail?: string;
|
|
3562
3741
|
authorAvatar?: string;
|
|
3563
|
-
authorUser?: string
|
|
3742
|
+
authorUser?: string | {
|
|
3743
|
+
id?: number;
|
|
3744
|
+
email?: string;
|
|
3745
|
+
};
|
|
3564
3746
|
locale?: string;
|
|
3565
3747
|
gotThread?: boolean;
|
|
3566
3748
|
threadFirstItemId?: number;
|
|
@@ -3594,7 +3776,10 @@ declare const pluginServices: {
|
|
|
3594
3776
|
authorName?: string;
|
|
3595
3777
|
authorEmail?: string;
|
|
3596
3778
|
authorAvatar?: string;
|
|
3597
|
-
authorUser?: string
|
|
3779
|
+
authorUser?: string | {
|
|
3780
|
+
id?: number;
|
|
3781
|
+
email?: string;
|
|
3782
|
+
};
|
|
3598
3783
|
locale?: string;
|
|
3599
3784
|
gotThread?: boolean;
|
|
3600
3785
|
threadFirstItemId?: number;
|
|
@@ -3630,7 +3815,10 @@ declare const pluginServices: {
|
|
|
3630
3815
|
authorName?: string;
|
|
3631
3816
|
authorEmail?: string;
|
|
3632
3817
|
authorAvatar?: string;
|
|
3633
|
-
authorUser?: string
|
|
3818
|
+
authorUser?: string | {
|
|
3819
|
+
id?: number;
|
|
3820
|
+
email?: string;
|
|
3821
|
+
};
|
|
3634
3822
|
locale?: string;
|
|
3635
3823
|
gotThread?: boolean;
|
|
3636
3824
|
threadFirstItemId?: number;
|
|
@@ -3664,7 +3852,10 @@ declare const pluginServices: {
|
|
|
3664
3852
|
authorName?: string;
|
|
3665
3853
|
authorEmail?: string;
|
|
3666
3854
|
authorAvatar?: string;
|
|
3667
|
-
authorUser?: string
|
|
3855
|
+
authorUser?: string | {
|
|
3856
|
+
id?: number;
|
|
3857
|
+
email?: string;
|
|
3858
|
+
};
|
|
3668
3859
|
locale?: string;
|
|
3669
3860
|
gotThread?: boolean;
|
|
3670
3861
|
threadFirstItemId?: number;
|
|
@@ -3700,7 +3891,10 @@ declare const pluginServices: {
|
|
|
3700
3891
|
authorName?: string;
|
|
3701
3892
|
authorEmail?: string;
|
|
3702
3893
|
authorAvatar?: string;
|
|
3703
|
-
authorUser?: string
|
|
3894
|
+
authorUser?: string | {
|
|
3895
|
+
id?: number;
|
|
3896
|
+
email?: string;
|
|
3897
|
+
};
|
|
3704
3898
|
locale?: string;
|
|
3705
3899
|
gotThread?: boolean;
|
|
3706
3900
|
threadFirstItemId?: number;
|
|
@@ -3734,7 +3928,10 @@ declare const pluginServices: {
|
|
|
3734
3928
|
authorName?: string;
|
|
3735
3929
|
authorEmail?: string;
|
|
3736
3930
|
authorAvatar?: string;
|
|
3737
|
-
authorUser?: string
|
|
3931
|
+
authorUser?: string | {
|
|
3932
|
+
id?: number;
|
|
3933
|
+
email?: string;
|
|
3934
|
+
};
|
|
3738
3935
|
locale?: string;
|
|
3739
3936
|
gotThread?: boolean;
|
|
3740
3937
|
threadFirstItemId?: number;
|
|
@@ -3769,7 +3966,10 @@ declare const pluginServices: {
|
|
|
3769
3966
|
authorName?: string;
|
|
3770
3967
|
authorEmail?: string;
|
|
3771
3968
|
authorAvatar?: string;
|
|
3772
|
-
authorUser?: string
|
|
3969
|
+
authorUser?: string | {
|
|
3970
|
+
id?: number;
|
|
3971
|
+
email?: string;
|
|
3972
|
+
};
|
|
3773
3973
|
locale?: string;
|
|
3774
3974
|
gotThread?: boolean;
|
|
3775
3975
|
threadFirstItemId?: number;
|
|
@@ -3803,7 +4003,10 @@ declare const pluginServices: {
|
|
|
3803
4003
|
authorName?: string;
|
|
3804
4004
|
authorEmail?: string;
|
|
3805
4005
|
authorAvatar?: string;
|
|
3806
|
-
authorUser?: string
|
|
4006
|
+
authorUser?: string | {
|
|
4007
|
+
id?: number;
|
|
4008
|
+
email?: string;
|
|
4009
|
+
};
|
|
3807
4010
|
locale?: string;
|
|
3808
4011
|
gotThread?: boolean;
|
|
3809
4012
|
threadFirstItemId?: number;
|
|
@@ -3821,9 +4024,56 @@ declare const pluginServices: {
|
|
|
3821
4024
|
author?: any;
|
|
3822
4025
|
};
|
|
3823
4026
|
}>;
|
|
3824
|
-
findAllPerAuthor({
|
|
3825
|
-
|
|
3826
|
-
|
|
4027
|
+
findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
|
|
4028
|
+
type?: string;
|
|
4029
|
+
sort?: string;
|
|
4030
|
+
authorId?: string | number;
|
|
4031
|
+
locale?: string;
|
|
4032
|
+
pagination?: {
|
|
4033
|
+
page?: number;
|
|
4034
|
+
pageSize?: number;
|
|
4035
|
+
withCount?: boolean;
|
|
4036
|
+
};
|
|
4037
|
+
populate?: Record<string, boolean | {
|
|
4038
|
+
populate?: boolean;
|
|
4039
|
+
}>;
|
|
4040
|
+
filters?: {
|
|
4041
|
+
id?: string | number | {
|
|
4042
|
+
$eq?: string;
|
|
4043
|
+
} | {
|
|
4044
|
+
$eqi?: string;
|
|
4045
|
+
} | {
|
|
4046
|
+
$ne?: string;
|
|
4047
|
+
} | {
|
|
4048
|
+
$nei?: string;
|
|
4049
|
+
} | {
|
|
4050
|
+
$gt?: string;
|
|
4051
|
+
} | {
|
|
4052
|
+
$gte?: string;
|
|
4053
|
+
} | {
|
|
4054
|
+
$lt?: string;
|
|
4055
|
+
} | {
|
|
4056
|
+
$lte?: string;
|
|
4057
|
+
} | {
|
|
4058
|
+
$startsWith?: string;
|
|
4059
|
+
} | {
|
|
4060
|
+
$startsWithi?: string;
|
|
4061
|
+
} | {
|
|
4062
|
+
$endsWith?: string;
|
|
4063
|
+
} | {
|
|
4064
|
+
$endsWithi?: string;
|
|
4065
|
+
} | {
|
|
4066
|
+
$contains?: string;
|
|
4067
|
+
} | {
|
|
4068
|
+
$containsi?: string;
|
|
4069
|
+
} | {
|
|
4070
|
+
$notContains?: string;
|
|
4071
|
+
} | {
|
|
4072
|
+
$notContainsi?: string;
|
|
4073
|
+
} | {
|
|
4074
|
+
$notNull?: boolean;
|
|
4075
|
+
};
|
|
4076
|
+
content?: string | number | {
|
|
3827
4077
|
$eq?: string;
|
|
3828
4078
|
} | {
|
|
3829
4079
|
$eqi?: string;
|
|
@@ -3857,8 +4107,8 @@ declare const pluginServices: {
|
|
|
3857
4107
|
$notContainsi?: string;
|
|
3858
4108
|
} | {
|
|
3859
4109
|
$notNull?: boolean;
|
|
3860
|
-
}
|
|
3861
|
-
|
|
4110
|
+
};
|
|
4111
|
+
createdAt?: string | number | {
|
|
3862
4112
|
$eq?: string;
|
|
3863
4113
|
} | {
|
|
3864
4114
|
$eqi?: string;
|
|
@@ -3892,19 +4142,78 @@ declare const pluginServices: {
|
|
|
3892
4142
|
$notContainsi?: string;
|
|
3893
4143
|
} | {
|
|
3894
4144
|
$notNull?: boolean;
|
|
3895
|
-
}
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
4145
|
+
};
|
|
4146
|
+
updatedAt?: string | number | {
|
|
4147
|
+
$eq?: string;
|
|
4148
|
+
} | {
|
|
4149
|
+
$eqi?: string;
|
|
4150
|
+
} | {
|
|
4151
|
+
$ne?: string;
|
|
4152
|
+
} | {
|
|
4153
|
+
$nei?: string;
|
|
4154
|
+
} | {
|
|
4155
|
+
$gt?: string;
|
|
4156
|
+
} | {
|
|
4157
|
+
$gte?: string;
|
|
4158
|
+
} | {
|
|
4159
|
+
$lt?: string;
|
|
4160
|
+
} | {
|
|
4161
|
+
$lte?: string;
|
|
4162
|
+
} | {
|
|
4163
|
+
$startsWith?: string;
|
|
4164
|
+
} | {
|
|
4165
|
+
$startsWithi?: string;
|
|
4166
|
+
} | {
|
|
4167
|
+
$endsWith?: string;
|
|
4168
|
+
} | {
|
|
4169
|
+
$endsWithi?: string;
|
|
4170
|
+
} | {
|
|
4171
|
+
$contains?: string;
|
|
4172
|
+
} | {
|
|
4173
|
+
$containsi?: string;
|
|
4174
|
+
} | {
|
|
4175
|
+
$notContains?: string;
|
|
4176
|
+
} | {
|
|
4177
|
+
$notContainsi?: string;
|
|
4178
|
+
} | {
|
|
4179
|
+
$notNull?: boolean;
|
|
4180
|
+
};
|
|
4181
|
+
authorName?: string | number | {
|
|
4182
|
+
$eq?: string;
|
|
4183
|
+
} | {
|
|
4184
|
+
$eqi?: string;
|
|
4185
|
+
} | {
|
|
4186
|
+
$ne?: string;
|
|
4187
|
+
} | {
|
|
4188
|
+
$nei?: string;
|
|
4189
|
+
} | {
|
|
4190
|
+
$gt?: string;
|
|
4191
|
+
} | {
|
|
4192
|
+
$gte?: string;
|
|
4193
|
+
} | {
|
|
4194
|
+
$lt?: string;
|
|
4195
|
+
} | {
|
|
4196
|
+
$lte?: string;
|
|
4197
|
+
} | {
|
|
4198
|
+
$startsWith?: string;
|
|
4199
|
+
} | {
|
|
4200
|
+
$startsWithi?: string;
|
|
4201
|
+
} | {
|
|
4202
|
+
$endsWith?: string;
|
|
4203
|
+
} | {
|
|
4204
|
+
$endsWithi?: string;
|
|
4205
|
+
} | {
|
|
4206
|
+
$contains?: string;
|
|
4207
|
+
} | {
|
|
4208
|
+
$containsi?: string;
|
|
4209
|
+
} | {
|
|
4210
|
+
$notContains?: string;
|
|
4211
|
+
} | {
|
|
4212
|
+
$notContainsi?: string;
|
|
4213
|
+
} | {
|
|
4214
|
+
$notNull?: boolean;
|
|
4215
|
+
};
|
|
3904
4216
|
};
|
|
3905
|
-
populate?: Record<string, boolean | {
|
|
3906
|
-
populate?: boolean;
|
|
3907
|
-
}>;
|
|
3908
4217
|
limit?: number;
|
|
3909
4218
|
fields?: string[];
|
|
3910
4219
|
omit?: string[];
|
|
@@ -3929,7 +4238,10 @@ declare const pluginServices: {
|
|
|
3929
4238
|
authorName?: string;
|
|
3930
4239
|
authorEmail?: string;
|
|
3931
4240
|
authorAvatar?: string;
|
|
3932
|
-
authorUser?: string
|
|
4241
|
+
authorUser?: string | {
|
|
4242
|
+
id?: number;
|
|
4243
|
+
email?: string;
|
|
4244
|
+
};
|
|
3933
4245
|
locale?: string;
|
|
3934
4246
|
gotThread?: boolean;
|
|
3935
4247
|
threadFirstItemId?: number;
|
|
@@ -3962,7 +4274,10 @@ declare const pluginServices: {
|
|
|
3962
4274
|
authorName?: string;
|
|
3963
4275
|
authorEmail?: string;
|
|
3964
4276
|
authorAvatar?: string;
|
|
3965
|
-
authorUser?: string
|
|
4277
|
+
authorUser?: string | {
|
|
4278
|
+
id?: number;
|
|
4279
|
+
email?: string;
|
|
4280
|
+
};
|
|
3966
4281
|
locale?: string;
|
|
3967
4282
|
gotThread?: boolean;
|
|
3968
4283
|
threadFirstItemId?: number;
|
|
@@ -3991,6 +4306,8 @@ declare const pluginServices: {
|
|
|
3991
4306
|
approvalStatus?: string;
|
|
3992
4307
|
related?: {
|
|
3993
4308
|
id?: number;
|
|
4309
|
+
documentId?: string;
|
|
4310
|
+
locale?: string;
|
|
3994
4311
|
uid?: string;
|
|
3995
4312
|
requireCommentsApproval?: boolean;
|
|
3996
4313
|
};
|
|
@@ -4001,7 +4318,10 @@ declare const pluginServices: {
|
|
|
4001
4318
|
authorName?: string;
|
|
4002
4319
|
authorEmail?: string;
|
|
4003
4320
|
authorAvatar?: string;
|
|
4004
|
-
authorUser?: string
|
|
4321
|
+
authorUser?: string | {
|
|
4322
|
+
id?: number;
|
|
4323
|
+
email?: string;
|
|
4324
|
+
};
|
|
4005
4325
|
locale?: string;
|
|
4006
4326
|
gotThread?: boolean;
|
|
4007
4327
|
threadFirstItemId?: number;
|
|
@@ -4034,7 +4354,10 @@ declare const pluginServices: {
|
|
|
4034
4354
|
authorName?: string;
|
|
4035
4355
|
authorEmail?: string;
|
|
4036
4356
|
authorAvatar?: string;
|
|
4037
|
-
authorUser?: string
|
|
4357
|
+
authorUser?: string | {
|
|
4358
|
+
id?: number;
|
|
4359
|
+
email?: string;
|
|
4360
|
+
};
|
|
4038
4361
|
locale?: string;
|
|
4039
4362
|
gotThread?: boolean;
|
|
4040
4363
|
threadFirstItemId?: number;
|
|
@@ -4077,7 +4400,10 @@ declare const pluginServices: {
|
|
|
4077
4400
|
authorName?: string;
|
|
4078
4401
|
authorEmail?: string;
|
|
4079
4402
|
authorAvatar?: string;
|
|
4080
|
-
authorUser?: string
|
|
4403
|
+
authorUser?: string | {
|
|
4404
|
+
id?: number;
|
|
4405
|
+
email?: string;
|
|
4406
|
+
};
|
|
4081
4407
|
locale?: string;
|
|
4082
4408
|
gotThread?: boolean;
|
|
4083
4409
|
threadFirstItemId?: number;
|
|
@@ -4111,7 +4437,10 @@ declare const pluginServices: {
|
|
|
4111
4437
|
authorName?: string;
|
|
4112
4438
|
authorEmail?: string;
|
|
4113
4439
|
authorAvatar?: string;
|
|
4114
|
-
authorUser?: string
|
|
4440
|
+
authorUser?: string | {
|
|
4441
|
+
id?: number;
|
|
4442
|
+
email?: string;
|
|
4443
|
+
};
|
|
4115
4444
|
locale?: string;
|
|
4116
4445
|
gotThread?: boolean;
|
|
4117
4446
|
threadFirstItemId?: number;
|
|
@@ -4130,6 +4459,8 @@ declare const pluginServices: {
|
|
|
4130
4459
|
};
|
|
4131
4460
|
}[]): Promise<{
|
|
4132
4461
|
id?: number;
|
|
4462
|
+
documentId?: string;
|
|
4463
|
+
locale?: string;
|
|
4133
4464
|
uid?: string;
|
|
4134
4465
|
requireCommentsApproval?: boolean;
|
|
4135
4466
|
}[]>;
|
|
@@ -4151,7 +4482,10 @@ declare const pluginServices: {
|
|
|
4151
4482
|
authorName?: string;
|
|
4152
4483
|
authorEmail?: string;
|
|
4153
4484
|
authorAvatar?: string;
|
|
4154
|
-
authorUser?: string
|
|
4485
|
+
authorUser?: string | {
|
|
4486
|
+
id?: number;
|
|
4487
|
+
email?: string;
|
|
4488
|
+
};
|
|
4155
4489
|
locale?: string;
|
|
4156
4490
|
gotThread?: boolean;
|
|
4157
4491
|
threadFirstItemId?: number;
|
|
@@ -4185,7 +4519,10 @@ declare const pluginServices: {
|
|
|
4185
4519
|
authorName?: string;
|
|
4186
4520
|
authorEmail?: string;
|
|
4187
4521
|
authorAvatar?: string;
|
|
4188
|
-
authorUser?: string
|
|
4522
|
+
authorUser?: string | {
|
|
4523
|
+
id?: number;
|
|
4524
|
+
email?: string;
|
|
4525
|
+
};
|
|
4189
4526
|
locale?: string;
|
|
4190
4527
|
gotThread?: boolean;
|
|
4191
4528
|
threadFirstItemId?: number;
|
|
@@ -4204,6 +4541,8 @@ declare const pluginServices: {
|
|
|
4204
4541
|
};
|
|
4205
4542
|
}, relatedEntities?: {
|
|
4206
4543
|
id?: number;
|
|
4544
|
+
documentId?: string;
|
|
4545
|
+
locale?: string;
|
|
4207
4546
|
uid?: string;
|
|
4208
4547
|
requireCommentsApproval?: boolean;
|
|
4209
4548
|
}[]): {
|
|
@@ -4218,6 +4557,8 @@ declare const pluginServices: {
|
|
|
4218
4557
|
approvalStatus?: string;
|
|
4219
4558
|
related?: {
|
|
4220
4559
|
id?: number;
|
|
4560
|
+
documentId?: string;
|
|
4561
|
+
locale?: string;
|
|
4221
4562
|
uid?: string;
|
|
4222
4563
|
requireCommentsApproval?: boolean;
|
|
4223
4564
|
};
|
|
@@ -4228,7 +4569,10 @@ declare const pluginServices: {
|
|
|
4228
4569
|
authorName?: string;
|
|
4229
4570
|
authorEmail?: string;
|
|
4230
4571
|
authorAvatar?: string;
|
|
4231
|
-
authorUser?: string
|
|
4572
|
+
authorUser?: string | {
|
|
4573
|
+
id?: number;
|
|
4574
|
+
email?: string;
|
|
4575
|
+
};
|
|
4232
4576
|
locale?: string;
|
|
4233
4577
|
gotThread?: boolean;
|
|
4234
4578
|
threadFirstItemId?: number;
|
|
@@ -4262,7 +4606,10 @@ declare const pluginServices: {
|
|
|
4262
4606
|
authorName?: string;
|
|
4263
4607
|
authorEmail?: string;
|
|
4264
4608
|
authorAvatar?: string;
|
|
4265
|
-
authorUser?: string
|
|
4609
|
+
authorUser?: string | {
|
|
4610
|
+
id?: number;
|
|
4611
|
+
email?: string;
|
|
4612
|
+
};
|
|
4266
4613
|
locale?: string;
|
|
4267
4614
|
gotThread?: boolean;
|
|
4268
4615
|
threadFirstItemId?: number;
|
|
@@ -4280,7 +4627,7 @@ declare const pluginServices: {
|
|
|
4280
4627
|
author?: any;
|
|
4281
4628
|
};
|
|
4282
4629
|
};
|
|
4283
|
-
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: {
|
|
4284
4631
|
id?: number;
|
|
4285
4632
|
documentId?: string;
|
|
4286
4633
|
content?: string;
|
|
@@ -4298,7 +4645,10 @@ declare const pluginServices: {
|
|
|
4298
4645
|
authorName?: string;
|
|
4299
4646
|
authorEmail?: string;
|
|
4300
4647
|
authorAvatar?: string;
|
|
4301
|
-
authorUser?: string
|
|
4648
|
+
authorUser?: string | {
|
|
4649
|
+
id?: number;
|
|
4650
|
+
email?: string;
|
|
4651
|
+
};
|
|
4302
4652
|
locale?: string;
|
|
4303
4653
|
gotThread?: boolean;
|
|
4304
4654
|
threadFirstItemId?: number;
|
|
@@ -4332,7 +4682,10 @@ declare const pluginServices: {
|
|
|
4332
4682
|
authorName?: string;
|
|
4333
4683
|
authorEmail?: string;
|
|
4334
4684
|
authorAvatar?: string;
|
|
4335
|
-
authorUser?: string
|
|
4685
|
+
authorUser?: string | {
|
|
4686
|
+
id?: number;
|
|
4687
|
+
email?: string;
|
|
4688
|
+
};
|
|
4336
4689
|
locale?: string;
|
|
4337
4690
|
gotThread?: boolean;
|
|
4338
4691
|
threadFirstItemId?: number;
|
|
@@ -4349,23 +4702,24 @@ declare const pluginServices: {
|
|
|
4349
4702
|
}[];
|
|
4350
4703
|
author?: any;
|
|
4351
4704
|
};
|
|
4352
|
-
}[T_2]): Promise<boolean>;
|
|
4705
|
+
}[T_2], deepLimit?: number): Promise<boolean>;
|
|
4353
4706
|
checkBadWords(content: string): Promise<string>;
|
|
4354
4707
|
registerLifecycleHook(): void;
|
|
4355
4708
|
runLifecycleHook(): Promise<void>;
|
|
4356
4709
|
};
|
|
4357
|
-
create({ relation, content, threadOf, author, approvalStatus }: {
|
|
4710
|
+
create({ relation, content, threadOf, author, approvalStatus, locale }: {
|
|
4358
4711
|
content?: string;
|
|
4359
4712
|
approvalStatus?: import("../const").APPROVAL_STATUS;
|
|
4713
|
+
locale?: string;
|
|
4360
4714
|
author?: {
|
|
4361
4715
|
name?: string;
|
|
4362
4716
|
id?: number;
|
|
4363
4717
|
email?: string;
|
|
4364
4718
|
avatar?: string;
|
|
4365
4719
|
};
|
|
4366
|
-
threadOf?:
|
|
4367
|
-
relation?:
|
|
4368
|
-
}, user?: import("../@types
|
|
4720
|
+
threadOf?: string;
|
|
4721
|
+
relation?: `${string}::${string}.${string}`;
|
|
4722
|
+
}, user?: import("../@types").AdminUser): Promise<{
|
|
4369
4723
|
id?: number;
|
|
4370
4724
|
documentId?: string;
|
|
4371
4725
|
content?: string;
|
|
@@ -4383,7 +4737,10 @@ declare const pluginServices: {
|
|
|
4383
4737
|
authorName?: string;
|
|
4384
4738
|
authorEmail?: string;
|
|
4385
4739
|
authorAvatar?: string;
|
|
4386
|
-
authorUser?: string
|
|
4740
|
+
authorUser?: string | {
|
|
4741
|
+
id?: number;
|
|
4742
|
+
email?: string;
|
|
4743
|
+
};
|
|
4387
4744
|
locale?: string;
|
|
4388
4745
|
gotThread?: boolean;
|
|
4389
4746
|
threadFirstItemId?: number;
|
|
@@ -4417,7 +4774,10 @@ declare const pluginServices: {
|
|
|
4417
4774
|
authorName?: string;
|
|
4418
4775
|
authorEmail?: string;
|
|
4419
4776
|
authorAvatar?: string;
|
|
4420
|
-
authorUser?: string
|
|
4777
|
+
authorUser?: string | {
|
|
4778
|
+
id?: number;
|
|
4779
|
+
email?: string;
|
|
4780
|
+
};
|
|
4421
4781
|
locale?: string;
|
|
4422
4782
|
gotThread?: boolean;
|
|
4423
4783
|
threadFirstItemId?: number;
|
|
@@ -4437,9 +4797,9 @@ declare const pluginServices: {
|
|
|
4437
4797
|
}>;
|
|
4438
4798
|
update({ commentId, content }: {
|
|
4439
4799
|
content?: string;
|
|
4440
|
-
relation?:
|
|
4800
|
+
relation?: `${string}::${string}.${string}`;
|
|
4441
4801
|
commentId?: number;
|
|
4442
|
-
}, user?: import("../@types
|
|
4802
|
+
}, user?: import("../@types").AdminUser): Promise<{
|
|
4443
4803
|
id?: number;
|
|
4444
4804
|
documentId?: string;
|
|
4445
4805
|
content?: string;
|
|
@@ -4457,7 +4817,10 @@ declare const pluginServices: {
|
|
|
4457
4817
|
authorName?: string;
|
|
4458
4818
|
authorEmail?: string;
|
|
4459
4819
|
authorAvatar?: string;
|
|
4460
|
-
authorUser?: string
|
|
4820
|
+
authorUser?: string | {
|
|
4821
|
+
id?: number;
|
|
4822
|
+
email?: string;
|
|
4823
|
+
};
|
|
4461
4824
|
locale?: string;
|
|
4462
4825
|
gotThread?: boolean;
|
|
4463
4826
|
threadFirstItemId?: number;
|
|
@@ -4491,7 +4854,10 @@ declare const pluginServices: {
|
|
|
4491
4854
|
authorName?: string;
|
|
4492
4855
|
authorEmail?: string;
|
|
4493
4856
|
authorAvatar?: string;
|
|
4494
|
-
authorUser?: string
|
|
4857
|
+
authorUser?: string | {
|
|
4858
|
+
id?: number;
|
|
4859
|
+
email?: string;
|
|
4860
|
+
};
|
|
4495
4861
|
locale?: string;
|
|
4496
4862
|
gotThread?: boolean;
|
|
4497
4863
|
threadFirstItemId?: number;
|
|
@@ -4511,10 +4877,10 @@ declare const pluginServices: {
|
|
|
4511
4877
|
}>;
|
|
4512
4878
|
reportAbuse({ commentId, relation, ...payload }: {
|
|
4513
4879
|
content?: string;
|
|
4514
|
-
reason?:
|
|
4515
|
-
relation?:
|
|
4880
|
+
reason?: import("../const").REPORT_REASON;
|
|
4881
|
+
relation?: `${string}::${string}.${string}`;
|
|
4516
4882
|
commentId?: number;
|
|
4517
|
-
}, user?: import("../@types
|
|
4883
|
+
}, user?: import("../@types").AdminUser): Promise<{
|
|
4518
4884
|
related: {
|
|
4519
4885
|
id?: number;
|
|
4520
4886
|
documentId?: string;
|
|
@@ -4533,7 +4899,10 @@ declare const pluginServices: {
|
|
|
4533
4899
|
authorName?: string;
|
|
4534
4900
|
authorEmail?: string;
|
|
4535
4901
|
authorAvatar?: string;
|
|
4536
|
-
authorUser?: string
|
|
4902
|
+
authorUser?: string | {
|
|
4903
|
+
id?: number;
|
|
4904
|
+
email?: string;
|
|
4905
|
+
};
|
|
4537
4906
|
locale?: string;
|
|
4538
4907
|
gotThread?: boolean;
|
|
4539
4908
|
threadFirstItemId?: number;
|
|
@@ -4567,7 +4936,10 @@ declare const pluginServices: {
|
|
|
4567
4936
|
authorName?: string;
|
|
4568
4937
|
authorEmail?: string;
|
|
4569
4938
|
authorAvatar?: string;
|
|
4570
|
-
authorUser?: string
|
|
4939
|
+
authorUser?: string | {
|
|
4940
|
+
id?: number;
|
|
4941
|
+
email?: string;
|
|
4942
|
+
};
|
|
4571
4943
|
locale?: string;
|
|
4572
4944
|
gotThread?: boolean;
|
|
4573
4945
|
threadFirstItemId?: number;
|
|
@@ -4597,9 +4969,9 @@ declare const pluginServices: {
|
|
|
4597
4969
|
}>;
|
|
4598
4970
|
markAsRemoved({ commentId, relation, authorId }: {
|
|
4599
4971
|
authorId?: string | number;
|
|
4600
|
-
relation?:
|
|
4972
|
+
relation?: `${string}::${string}.${string}`;
|
|
4601
4973
|
commentId?: number;
|
|
4602
|
-
}, user: import("../@types
|
|
4974
|
+
}, user: import("../@types").AdminUser): Promise<{
|
|
4603
4975
|
id?: number;
|
|
4604
4976
|
documentId?: string;
|
|
4605
4977
|
content?: string;
|
|
@@ -4617,7 +4989,10 @@ declare const pluginServices: {
|
|
|
4617
4989
|
authorName?: string;
|
|
4618
4990
|
authorEmail?: string;
|
|
4619
4991
|
authorAvatar?: string;
|
|
4620
|
-
authorUser?: string
|
|
4992
|
+
authorUser?: string | {
|
|
4993
|
+
id?: number;
|
|
4994
|
+
email?: string;
|
|
4995
|
+
};
|
|
4621
4996
|
locale?: string;
|
|
4622
4997
|
gotThread?: boolean;
|
|
4623
4998
|
threadFirstItemId?: number;
|
|
@@ -4651,7 +5026,10 @@ declare const pluginServices: {
|
|
|
4651
5026
|
authorName?: string;
|
|
4652
5027
|
authorEmail?: string;
|
|
4653
5028
|
authorAvatar?: string;
|
|
4654
|
-
authorUser?: string
|
|
5029
|
+
authorUser?: string | {
|
|
5030
|
+
id?: number;
|
|
5031
|
+
email?: string;
|
|
5032
|
+
};
|
|
4655
5033
|
locale?: string;
|
|
4656
5034
|
gotThread?: boolean;
|
|
4657
5035
|
threadFirstItemId?: number;
|
|
@@ -4670,8 +5048,8 @@ declare const pluginServices: {
|
|
|
4670
5048
|
};
|
|
4671
5049
|
}>;
|
|
4672
5050
|
sendAbuseReportEmail(reason: string, content: string): Promise<void>;
|
|
4673
|
-
markAsRemovedNested(commentId: string | number, status: boolean): Promise<
|
|
4674
|
-
sendResponseNotification(
|
|
5051
|
+
markAsRemovedNested(commentId: string | number, status: boolean): Promise<boolean>;
|
|
5052
|
+
sendResponseNotification(entity: {
|
|
4675
5053
|
id?: number;
|
|
4676
5054
|
documentId?: string;
|
|
4677
5055
|
content?: string;
|
|
@@ -4689,7 +5067,10 @@ declare const pluginServices: {
|
|
|
4689
5067
|
authorName?: string;
|
|
4690
5068
|
authorEmail?: string;
|
|
4691
5069
|
authorAvatar?: string;
|
|
4692
|
-
authorUser?: string
|
|
5070
|
+
authorUser?: string | {
|
|
5071
|
+
id?: number;
|
|
5072
|
+
email?: string;
|
|
5073
|
+
};
|
|
4693
5074
|
locale?: string;
|
|
4694
5075
|
gotThread?: boolean;
|
|
4695
5076
|
threadFirstItemId?: number;
|
|
@@ -4723,7 +5104,10 @@ declare const pluginServices: {
|
|
|
4723
5104
|
authorName?: string;
|
|
4724
5105
|
authorEmail?: string;
|
|
4725
5106
|
authorAvatar?: string;
|
|
4726
|
-
authorUser?: string
|
|
5107
|
+
authorUser?: string | {
|
|
5108
|
+
id?: number;
|
|
5109
|
+
email?: string;
|
|
5110
|
+
};
|
|
4727
5111
|
locale?: string;
|
|
4728
5112
|
gotThread?: boolean;
|
|
4729
5113
|
threadFirstItemId?: number;
|
|
@@ -4742,8 +5126,8 @@ declare const pluginServices: {
|
|
|
4742
5126
|
};
|
|
4743
5127
|
}): Promise<void>;
|
|
4744
5128
|
};
|
|
4745
|
-
common: ({ strapi }: import("../@types
|
|
4746
|
-
getConfig<T extends
|
|
5129
|
+
common: ({ strapi }: import("../@types").StrapiContext) => {
|
|
5130
|
+
getConfig<T extends string>(prop?: T, defaultValue?: import("../@types").PathValue<{
|
|
4747
5131
|
enabledCollections?: string[];
|
|
4748
5132
|
approvalFlow?: string[];
|
|
4749
5133
|
entryLabel?: Record<string, string[]>;
|
|
@@ -4757,21 +5141,14 @@ declare const pluginServices: {
|
|
|
4757
5141
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
4758
5142
|
};
|
|
4759
5143
|
isGQLPluginEnabled?: boolean;
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
approvalFlow?: string[];
|
|
4763
|
-
entryLabel?: Record<string, string[]>;
|
|
4764
|
-
moderatorRoles?: string[];
|
|
4765
|
-
badWords?: boolean;
|
|
4766
|
-
blockedAuthorProps?: string[];
|
|
4767
|
-
isValidationEnabled?: boolean;
|
|
4768
|
-
reportReasons?: {
|
|
4769
|
-
BAD_LANGUAGE?: import("../const").REPORT_REASON.BAD_LANGUAGE;
|
|
4770
|
-
DISCRIMINATION?: import("../const").REPORT_REASON.DISCRIMINATION;
|
|
4771
|
-
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
5144
|
+
gql?: {
|
|
5145
|
+
auth?: boolean;
|
|
4772
5146
|
};
|
|
4773
|
-
|
|
4774
|
-
|
|
5147
|
+
client?: {
|
|
5148
|
+
url?: string;
|
|
5149
|
+
contactEmail?: string;
|
|
5150
|
+
};
|
|
5151
|
+
}, T>, useLocal?: boolean): Promise<import("../@types").PathValue<{
|
|
4775
5152
|
enabledCollections?: string[];
|
|
4776
5153
|
approvalFlow?: string[];
|
|
4777
5154
|
entryLabel?: Record<string, string[]>;
|
|
@@ -4785,10 +5162,17 @@ declare const pluginServices: {
|
|
|
4785
5162
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
4786
5163
|
};
|
|
4787
5164
|
isGQLPluginEnabled?: boolean;
|
|
4788
|
-
|
|
5165
|
+
gql?: {
|
|
5166
|
+
auth?: boolean;
|
|
5167
|
+
};
|
|
5168
|
+
client?: {
|
|
5169
|
+
url?: string;
|
|
5170
|
+
contactEmail?: string;
|
|
5171
|
+
};
|
|
5172
|
+
}, T>>;
|
|
4789
5173
|
parseRelationString(relation: string): {
|
|
4790
5174
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
4791
|
-
relatedId: string
|
|
5175
|
+
relatedId: string;
|
|
4792
5176
|
};
|
|
4793
5177
|
isValidUserContext<T_1 extends {
|
|
4794
5178
|
id?: string | number;
|
|
@@ -4811,7 +5195,10 @@ declare const pluginServices: {
|
|
|
4811
5195
|
authorName?: string;
|
|
4812
5196
|
authorEmail?: string;
|
|
4813
5197
|
authorAvatar?: string;
|
|
4814
|
-
authorUser?: string
|
|
5198
|
+
authorUser?: string | {
|
|
5199
|
+
id?: number;
|
|
5200
|
+
email?: string;
|
|
5201
|
+
};
|
|
4815
5202
|
locale?: string;
|
|
4816
5203
|
gotThread?: boolean;
|
|
4817
5204
|
threadFirstItemId?: number;
|
|
@@ -4845,7 +5232,10 @@ declare const pluginServices: {
|
|
|
4845
5232
|
authorName?: string;
|
|
4846
5233
|
authorEmail?: string;
|
|
4847
5234
|
authorAvatar?: string;
|
|
4848
|
-
authorUser?: string
|
|
5235
|
+
authorUser?: string | {
|
|
5236
|
+
id?: number;
|
|
5237
|
+
email?: string;
|
|
5238
|
+
};
|
|
4849
5239
|
locale?: string;
|
|
4850
5240
|
gotThread?: boolean;
|
|
4851
5241
|
threadFirstItemId?: number;
|
|
@@ -4874,6 +5264,8 @@ declare const pluginServices: {
|
|
|
4874
5264
|
approvalStatus?: string;
|
|
4875
5265
|
related?: {
|
|
4876
5266
|
id?: number;
|
|
5267
|
+
documentId?: string;
|
|
5268
|
+
locale?: string;
|
|
4877
5269
|
uid?: string;
|
|
4878
5270
|
requireCommentsApproval?: boolean;
|
|
4879
5271
|
};
|
|
@@ -4884,7 +5276,10 @@ declare const pluginServices: {
|
|
|
4884
5276
|
authorName?: string;
|
|
4885
5277
|
authorEmail?: string;
|
|
4886
5278
|
authorAvatar?: string;
|
|
4887
|
-
authorUser?: string
|
|
5279
|
+
authorUser?: string | {
|
|
5280
|
+
id?: number;
|
|
5281
|
+
email?: string;
|
|
5282
|
+
};
|
|
4888
5283
|
locale?: string;
|
|
4889
5284
|
gotThread?: boolean;
|
|
4890
5285
|
threadFirstItemId?: number;
|
|
@@ -4918,7 +5313,10 @@ declare const pluginServices: {
|
|
|
4918
5313
|
authorName?: string;
|
|
4919
5314
|
authorEmail?: string;
|
|
4920
5315
|
authorAvatar?: string;
|
|
4921
|
-
authorUser?: string
|
|
5316
|
+
authorUser?: string | {
|
|
5317
|
+
id?: number;
|
|
5318
|
+
email?: string;
|
|
5319
|
+
};
|
|
4922
5320
|
locale?: string;
|
|
4923
5321
|
gotThread?: boolean;
|
|
4924
5322
|
threadFirstItemId?: number;
|
|
@@ -4953,7 +5351,10 @@ declare const pluginServices: {
|
|
|
4953
5351
|
authorName?: string;
|
|
4954
5352
|
authorEmail?: string;
|
|
4955
5353
|
authorAvatar?: string;
|
|
4956
|
-
authorUser?: string
|
|
5354
|
+
authorUser?: string | {
|
|
5355
|
+
id?: number;
|
|
5356
|
+
email?: string;
|
|
5357
|
+
};
|
|
4957
5358
|
locale?: string;
|
|
4958
5359
|
gotThread?: boolean;
|
|
4959
5360
|
threadFirstItemId?: number;
|
|
@@ -4987,7 +5388,10 @@ declare const pluginServices: {
|
|
|
4987
5388
|
authorName?: string;
|
|
4988
5389
|
authorEmail?: string;
|
|
4989
5390
|
authorAvatar?: string;
|
|
4990
|
-
authorUser?: string
|
|
5391
|
+
authorUser?: string | {
|
|
5392
|
+
id?: number;
|
|
5393
|
+
email?: string;
|
|
5394
|
+
};
|
|
4991
5395
|
locale?: string;
|
|
4992
5396
|
gotThread?: boolean;
|
|
4993
5397
|
threadFirstItemId?: number;
|
|
@@ -5005,44 +5409,20 @@ declare const pluginServices: {
|
|
|
5005
5409
|
author?: any;
|
|
5006
5410
|
};
|
|
5007
5411
|
};
|
|
5008
|
-
findAllFlat({ fields, limit, skip, sort,
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
} | {
|
|
5023
|
-
$lt?: string;
|
|
5024
|
-
} | {
|
|
5025
|
-
$lte?: string;
|
|
5026
|
-
} | {
|
|
5027
|
-
$startsWith?: string;
|
|
5028
|
-
} | {
|
|
5029
|
-
$startsWithi?: string;
|
|
5030
|
-
} | {
|
|
5031
|
-
$endsWith?: string;
|
|
5032
|
-
} | {
|
|
5033
|
-
$endsWithi?: string;
|
|
5034
|
-
} | {
|
|
5035
|
-
$contains?: string;
|
|
5036
|
-
} | {
|
|
5037
|
-
$containsi?: string;
|
|
5038
|
-
} | {
|
|
5039
|
-
$notContains?: string;
|
|
5040
|
-
} | {
|
|
5041
|
-
$notContainsi?: string;
|
|
5042
|
-
} | {
|
|
5043
|
-
$notNull?: boolean;
|
|
5044
|
-
}>[];
|
|
5045
|
-
$or?: Record<string, string | number | {
|
|
5412
|
+
findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
|
|
5413
|
+
sort?: string;
|
|
5414
|
+
locale?: string;
|
|
5415
|
+
pagination?: {
|
|
5416
|
+
page?: number;
|
|
5417
|
+
pageSize?: number;
|
|
5418
|
+
withCount?: boolean;
|
|
5419
|
+
};
|
|
5420
|
+
relation?: `${string}::${string}.${string}`;
|
|
5421
|
+
populate?: Record<string, boolean | {
|
|
5422
|
+
populate?: boolean;
|
|
5423
|
+
}>;
|
|
5424
|
+
filters?: {
|
|
5425
|
+
id?: string | number | {
|
|
5046
5426
|
$eq?: string;
|
|
5047
5427
|
} | {
|
|
5048
5428
|
$eqi?: string;
|
|
@@ -5076,10 +5456,7 @@ declare const pluginServices: {
|
|
|
5076
5456
|
$notContainsi?: string;
|
|
5077
5457
|
} | {
|
|
5078
5458
|
$notNull?: boolean;
|
|
5079
|
-
}
|
|
5080
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
5081
|
-
sort?: string;
|
|
5082
|
-
filter?: {
|
|
5459
|
+
};
|
|
5083
5460
|
content?: string | number | {
|
|
5084
5461
|
$eq?: string;
|
|
5085
5462
|
} | {
|
|
@@ -5221,15 +5598,6 @@ declare const pluginServices: {
|
|
|
5221
5598
|
$notNull?: boolean;
|
|
5222
5599
|
};
|
|
5223
5600
|
};
|
|
5224
|
-
pagination?: {
|
|
5225
|
-
page?: number;
|
|
5226
|
-
pageSize?: number;
|
|
5227
|
-
withCount?: boolean;
|
|
5228
|
-
};
|
|
5229
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
5230
|
-
populate?: Record<string, boolean | {
|
|
5231
|
-
populate?: boolean;
|
|
5232
|
-
}>;
|
|
5233
5601
|
limit?: number;
|
|
5234
5602
|
fields?: string[];
|
|
5235
5603
|
omit?: string[];
|
|
@@ -5254,7 +5622,10 @@ declare const pluginServices: {
|
|
|
5254
5622
|
authorName?: string;
|
|
5255
5623
|
authorEmail?: string;
|
|
5256
5624
|
authorAvatar?: string;
|
|
5257
|
-
authorUser?: string
|
|
5625
|
+
authorUser?: string | {
|
|
5626
|
+
id?: number;
|
|
5627
|
+
email?: string;
|
|
5628
|
+
};
|
|
5258
5629
|
locale?: string;
|
|
5259
5630
|
gotThread?: boolean;
|
|
5260
5631
|
threadFirstItemId?: number;
|
|
@@ -5288,7 +5659,10 @@ declare const pluginServices: {
|
|
|
5288
5659
|
authorName?: string;
|
|
5289
5660
|
authorEmail?: string;
|
|
5290
5661
|
authorAvatar?: string;
|
|
5291
|
-
authorUser?: string
|
|
5662
|
+
authorUser?: string | {
|
|
5663
|
+
id?: number;
|
|
5664
|
+
email?: string;
|
|
5665
|
+
};
|
|
5292
5666
|
locale?: string;
|
|
5293
5667
|
gotThread?: boolean;
|
|
5294
5668
|
threadFirstItemId?: number;
|
|
@@ -5317,6 +5691,8 @@ declare const pluginServices: {
|
|
|
5317
5691
|
approvalStatus?: string;
|
|
5318
5692
|
related?: {
|
|
5319
5693
|
id?: number;
|
|
5694
|
+
documentId?: string;
|
|
5695
|
+
locale?: string;
|
|
5320
5696
|
uid?: string;
|
|
5321
5697
|
requireCommentsApproval?: boolean;
|
|
5322
5698
|
};
|
|
@@ -5327,7 +5703,10 @@ declare const pluginServices: {
|
|
|
5327
5703
|
authorName?: string;
|
|
5328
5704
|
authorEmail?: string;
|
|
5329
5705
|
authorAvatar?: string;
|
|
5330
|
-
authorUser?: string
|
|
5706
|
+
authorUser?: string | {
|
|
5707
|
+
id?: number;
|
|
5708
|
+
email?: string;
|
|
5709
|
+
};
|
|
5331
5710
|
locale?: string;
|
|
5332
5711
|
gotThread?: boolean;
|
|
5333
5712
|
threadFirstItemId?: number;
|
|
@@ -5361,7 +5740,10 @@ declare const pluginServices: {
|
|
|
5361
5740
|
authorName?: string;
|
|
5362
5741
|
authorEmail?: string;
|
|
5363
5742
|
authorAvatar?: string;
|
|
5364
|
-
authorUser?: string
|
|
5743
|
+
authorUser?: string | {
|
|
5744
|
+
id?: number;
|
|
5745
|
+
email?: string;
|
|
5746
|
+
};
|
|
5365
5747
|
locale?: string;
|
|
5366
5748
|
gotThread?: boolean;
|
|
5367
5749
|
threadFirstItemId?: number;
|
|
@@ -5386,44 +5768,15 @@ declare const pluginServices: {
|
|
|
5386
5768
|
total?: number;
|
|
5387
5769
|
};
|
|
5388
5770
|
}>;
|
|
5389
|
-
findAllInHierarchy({
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
|
-
$nei?: string;
|
|
5399
|
-
} | {
|
|
5400
|
-
$gt?: string;
|
|
5401
|
-
} | {
|
|
5402
|
-
$gte?: string;
|
|
5403
|
-
} | {
|
|
5404
|
-
$lt?: string;
|
|
5405
|
-
} | {
|
|
5406
|
-
$lte?: string;
|
|
5407
|
-
} | {
|
|
5408
|
-
$startsWith?: string;
|
|
5409
|
-
} | {
|
|
5410
|
-
$startsWithi?: string;
|
|
5411
|
-
} | {
|
|
5412
|
-
$endsWith?: string;
|
|
5413
|
-
} | {
|
|
5414
|
-
$endsWithi?: string;
|
|
5415
|
-
} | {
|
|
5416
|
-
$contains?: string;
|
|
5417
|
-
} | {
|
|
5418
|
-
$containsi?: string;
|
|
5419
|
-
} | {
|
|
5420
|
-
$notContains?: string;
|
|
5421
|
-
} | {
|
|
5422
|
-
$notContainsi?: string;
|
|
5423
|
-
} | {
|
|
5424
|
-
$notNull?: boolean;
|
|
5425
|
-
}>[];
|
|
5426
|
-
$or?: Record<string, string | number | {
|
|
5771
|
+
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
5772
|
+
sort?: string;
|
|
5773
|
+
locale?: string;
|
|
5774
|
+
relation?: `${string}::${string}.${string}`;
|
|
5775
|
+
populate?: Record<string, boolean | {
|
|
5776
|
+
populate?: boolean;
|
|
5777
|
+
}>;
|
|
5778
|
+
filters?: {
|
|
5779
|
+
id?: string | number | {
|
|
5427
5780
|
$eq?: string;
|
|
5428
5781
|
} | {
|
|
5429
5782
|
$eqi?: string;
|
|
@@ -5457,10 +5810,7 @@ declare const pluginServices: {
|
|
|
5457
5810
|
$notContainsi?: string;
|
|
5458
5811
|
} | {
|
|
5459
5812
|
$notNull?: boolean;
|
|
5460
|
-
}
|
|
5461
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
5462
|
-
sort?: string;
|
|
5463
|
-
filter?: {
|
|
5813
|
+
};
|
|
5464
5814
|
content?: string | number | {
|
|
5465
5815
|
$eq?: string;
|
|
5466
5816
|
} | {
|
|
@@ -5602,10 +5952,6 @@ declare const pluginServices: {
|
|
|
5602
5952
|
$notNull?: boolean;
|
|
5603
5953
|
};
|
|
5604
5954
|
};
|
|
5605
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
5606
|
-
populate?: Record<string, boolean | {
|
|
5607
|
-
populate?: boolean;
|
|
5608
|
-
}>;
|
|
5609
5955
|
limit?: number;
|
|
5610
5956
|
fields?: string[];
|
|
5611
5957
|
omit?: string[];
|
|
@@ -5631,7 +5977,10 @@ declare const pluginServices: {
|
|
|
5631
5977
|
authorName?: string;
|
|
5632
5978
|
authorEmail?: string;
|
|
5633
5979
|
authorAvatar?: string;
|
|
5634
|
-
authorUser?: string
|
|
5980
|
+
authorUser?: string | {
|
|
5981
|
+
id?: number;
|
|
5982
|
+
email?: string;
|
|
5983
|
+
};
|
|
5635
5984
|
locale?: string;
|
|
5636
5985
|
gotThread?: boolean;
|
|
5637
5986
|
threadFirstItemId?: number;
|
|
@@ -5665,7 +6014,10 @@ declare const pluginServices: {
|
|
|
5665
6014
|
authorName?: string;
|
|
5666
6015
|
authorEmail?: string;
|
|
5667
6016
|
authorAvatar?: string;
|
|
5668
|
-
authorUser?: string
|
|
6017
|
+
authorUser?: string | {
|
|
6018
|
+
id?: number;
|
|
6019
|
+
email?: string;
|
|
6020
|
+
};
|
|
5669
6021
|
locale?: string;
|
|
5670
6022
|
gotThread?: boolean;
|
|
5671
6023
|
threadFirstItemId?: number;
|
|
@@ -5701,7 +6053,10 @@ declare const pluginServices: {
|
|
|
5701
6053
|
authorName?: string;
|
|
5702
6054
|
authorEmail?: string;
|
|
5703
6055
|
authorAvatar?: string;
|
|
5704
|
-
authorUser?: string
|
|
6056
|
+
authorUser?: string | {
|
|
6057
|
+
id?: number;
|
|
6058
|
+
email?: string;
|
|
6059
|
+
};
|
|
5705
6060
|
locale?: string;
|
|
5706
6061
|
gotThread?: boolean;
|
|
5707
6062
|
threadFirstItemId?: number;
|
|
@@ -5735,7 +6090,10 @@ declare const pluginServices: {
|
|
|
5735
6090
|
authorName?: string;
|
|
5736
6091
|
authorEmail?: string;
|
|
5737
6092
|
authorAvatar?: string;
|
|
5738
|
-
authorUser?: string
|
|
6093
|
+
authorUser?: string | {
|
|
6094
|
+
id?: number;
|
|
6095
|
+
email?: string;
|
|
6096
|
+
};
|
|
5739
6097
|
locale?: string;
|
|
5740
6098
|
gotThread?: boolean;
|
|
5741
6099
|
threadFirstItemId?: number;
|
|
@@ -5771,7 +6129,10 @@ declare const pluginServices: {
|
|
|
5771
6129
|
authorName?: string;
|
|
5772
6130
|
authorEmail?: string;
|
|
5773
6131
|
authorAvatar?: string;
|
|
5774
|
-
authorUser?: string
|
|
6132
|
+
authorUser?: string | {
|
|
6133
|
+
id?: number;
|
|
6134
|
+
email?: string;
|
|
6135
|
+
};
|
|
5775
6136
|
locale?: string;
|
|
5776
6137
|
gotThread?: boolean;
|
|
5777
6138
|
threadFirstItemId?: number;
|
|
@@ -5805,7 +6166,10 @@ declare const pluginServices: {
|
|
|
5805
6166
|
authorName?: string;
|
|
5806
6167
|
authorEmail?: string;
|
|
5807
6168
|
authorAvatar?: string;
|
|
5808
|
-
authorUser?: string
|
|
6169
|
+
authorUser?: string | {
|
|
6170
|
+
id?: number;
|
|
6171
|
+
email?: string;
|
|
6172
|
+
};
|
|
5809
6173
|
locale?: string;
|
|
5810
6174
|
gotThread?: boolean;
|
|
5811
6175
|
threadFirstItemId?: number;
|
|
@@ -5841,7 +6205,10 @@ declare const pluginServices: {
|
|
|
5841
6205
|
authorName?: string;
|
|
5842
6206
|
authorEmail?: string;
|
|
5843
6207
|
authorAvatar?: string;
|
|
5844
|
-
authorUser?: string
|
|
6208
|
+
authorUser?: string | {
|
|
6209
|
+
id?: number;
|
|
6210
|
+
email?: string;
|
|
6211
|
+
};
|
|
5845
6212
|
locale?: string;
|
|
5846
6213
|
gotThread?: boolean;
|
|
5847
6214
|
threadFirstItemId?: number;
|
|
@@ -5875,7 +6242,10 @@ declare const pluginServices: {
|
|
|
5875
6242
|
authorName?: string;
|
|
5876
6243
|
authorEmail?: string;
|
|
5877
6244
|
authorAvatar?: string;
|
|
5878
|
-
authorUser?: string
|
|
6245
|
+
authorUser?: string | {
|
|
6246
|
+
id?: number;
|
|
6247
|
+
email?: string;
|
|
6248
|
+
};
|
|
5879
6249
|
locale?: string;
|
|
5880
6250
|
gotThread?: boolean;
|
|
5881
6251
|
threadFirstItemId?: number;
|
|
@@ -5910,7 +6280,10 @@ declare const pluginServices: {
|
|
|
5910
6280
|
authorName?: string;
|
|
5911
6281
|
authorEmail?: string;
|
|
5912
6282
|
authorAvatar?: string;
|
|
5913
|
-
authorUser?: string
|
|
6283
|
+
authorUser?: string | {
|
|
6284
|
+
id?: number;
|
|
6285
|
+
email?: string;
|
|
6286
|
+
};
|
|
5914
6287
|
locale?: string;
|
|
5915
6288
|
gotThread?: boolean;
|
|
5916
6289
|
threadFirstItemId?: number;
|
|
@@ -5944,7 +6317,10 @@ declare const pluginServices: {
|
|
|
5944
6317
|
authorName?: string;
|
|
5945
6318
|
authorEmail?: string;
|
|
5946
6319
|
authorAvatar?: string;
|
|
5947
|
-
authorUser?: string
|
|
6320
|
+
authorUser?: string | {
|
|
6321
|
+
id?: number;
|
|
6322
|
+
email?: string;
|
|
6323
|
+
};
|
|
5948
6324
|
locale?: string;
|
|
5949
6325
|
gotThread?: boolean;
|
|
5950
6326
|
threadFirstItemId?: number;
|
|
@@ -5962,9 +6338,21 @@ declare const pluginServices: {
|
|
|
5962
6338
|
author?: any;
|
|
5963
6339
|
};
|
|
5964
6340
|
}>;
|
|
5965
|
-
findAllPerAuthor({
|
|
5966
|
-
|
|
5967
|
-
|
|
6341
|
+
findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
|
|
6342
|
+
type?: string;
|
|
6343
|
+
sort?: string;
|
|
6344
|
+
authorId?: string | number;
|
|
6345
|
+
locale?: string;
|
|
6346
|
+
pagination?: {
|
|
6347
|
+
page?: number;
|
|
6348
|
+
pageSize?: number;
|
|
6349
|
+
withCount?: boolean;
|
|
6350
|
+
};
|
|
6351
|
+
populate?: Record<string, boolean | {
|
|
6352
|
+
populate?: boolean;
|
|
6353
|
+
}>;
|
|
6354
|
+
filters?: {
|
|
6355
|
+
id?: string | number | {
|
|
5968
6356
|
$eq?: string;
|
|
5969
6357
|
} | {
|
|
5970
6358
|
$eqi?: string;
|
|
@@ -5998,8 +6386,8 @@ declare const pluginServices: {
|
|
|
5998
6386
|
$notContainsi?: string;
|
|
5999
6387
|
} | {
|
|
6000
6388
|
$notNull?: boolean;
|
|
6001
|
-
}
|
|
6002
|
-
|
|
6389
|
+
};
|
|
6390
|
+
content?: string | number | {
|
|
6003
6391
|
$eq?: string;
|
|
6004
6392
|
} | {
|
|
6005
6393
|
$eqi?: string;
|
|
@@ -6033,19 +6421,113 @@ declare const pluginServices: {
|
|
|
6033
6421
|
$notContainsi?: string;
|
|
6034
6422
|
} | {
|
|
6035
6423
|
$notNull?: boolean;
|
|
6036
|
-
}
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6041
|
-
|
|
6042
|
-
|
|
6043
|
-
|
|
6044
|
-
|
|
6424
|
+
};
|
|
6425
|
+
createdAt?: string | number | {
|
|
6426
|
+
$eq?: string;
|
|
6427
|
+
} | {
|
|
6428
|
+
$eqi?: string;
|
|
6429
|
+
} | {
|
|
6430
|
+
$ne?: string;
|
|
6431
|
+
} | {
|
|
6432
|
+
$nei?: string;
|
|
6433
|
+
} | {
|
|
6434
|
+
$gt?: string;
|
|
6435
|
+
} | {
|
|
6436
|
+
$gte?: string;
|
|
6437
|
+
} | {
|
|
6438
|
+
$lt?: string;
|
|
6439
|
+
} | {
|
|
6440
|
+
$lte?: string;
|
|
6441
|
+
} | {
|
|
6442
|
+
$startsWith?: string;
|
|
6443
|
+
} | {
|
|
6444
|
+
$startsWithi?: string;
|
|
6445
|
+
} | {
|
|
6446
|
+
$endsWith?: string;
|
|
6447
|
+
} | {
|
|
6448
|
+
$endsWithi?: string;
|
|
6449
|
+
} | {
|
|
6450
|
+
$contains?: string;
|
|
6451
|
+
} | {
|
|
6452
|
+
$containsi?: string;
|
|
6453
|
+
} | {
|
|
6454
|
+
$notContains?: string;
|
|
6455
|
+
} | {
|
|
6456
|
+
$notContainsi?: string;
|
|
6457
|
+
} | {
|
|
6458
|
+
$notNull?: boolean;
|
|
6459
|
+
};
|
|
6460
|
+
updatedAt?: string | number | {
|
|
6461
|
+
$eq?: string;
|
|
6462
|
+
} | {
|
|
6463
|
+
$eqi?: string;
|
|
6464
|
+
} | {
|
|
6465
|
+
$ne?: string;
|
|
6466
|
+
} | {
|
|
6467
|
+
$nei?: string;
|
|
6468
|
+
} | {
|
|
6469
|
+
$gt?: string;
|
|
6470
|
+
} | {
|
|
6471
|
+
$gte?: string;
|
|
6472
|
+
} | {
|
|
6473
|
+
$lt?: string;
|
|
6474
|
+
} | {
|
|
6475
|
+
$lte?: string;
|
|
6476
|
+
} | {
|
|
6477
|
+
$startsWith?: string;
|
|
6478
|
+
} | {
|
|
6479
|
+
$startsWithi?: string;
|
|
6480
|
+
} | {
|
|
6481
|
+
$endsWith?: string;
|
|
6482
|
+
} | {
|
|
6483
|
+
$endsWithi?: string;
|
|
6484
|
+
} | {
|
|
6485
|
+
$contains?: string;
|
|
6486
|
+
} | {
|
|
6487
|
+
$containsi?: string;
|
|
6488
|
+
} | {
|
|
6489
|
+
$notContains?: string;
|
|
6490
|
+
} | {
|
|
6491
|
+
$notContainsi?: string;
|
|
6492
|
+
} | {
|
|
6493
|
+
$notNull?: boolean;
|
|
6494
|
+
};
|
|
6495
|
+
authorName?: string | number | {
|
|
6496
|
+
$eq?: string;
|
|
6497
|
+
} | {
|
|
6498
|
+
$eqi?: string;
|
|
6499
|
+
} | {
|
|
6500
|
+
$ne?: string;
|
|
6501
|
+
} | {
|
|
6502
|
+
$nei?: string;
|
|
6503
|
+
} | {
|
|
6504
|
+
$gt?: string;
|
|
6505
|
+
} | {
|
|
6506
|
+
$gte?: string;
|
|
6507
|
+
} | {
|
|
6508
|
+
$lt?: string;
|
|
6509
|
+
} | {
|
|
6510
|
+
$lte?: string;
|
|
6511
|
+
} | {
|
|
6512
|
+
$startsWith?: string;
|
|
6513
|
+
} | {
|
|
6514
|
+
$startsWithi?: string;
|
|
6515
|
+
} | {
|
|
6516
|
+
$endsWith?: string;
|
|
6517
|
+
} | {
|
|
6518
|
+
$endsWithi?: string;
|
|
6519
|
+
} | {
|
|
6520
|
+
$contains?: string;
|
|
6521
|
+
} | {
|
|
6522
|
+
$containsi?: string;
|
|
6523
|
+
} | {
|
|
6524
|
+
$notContains?: string;
|
|
6525
|
+
} | {
|
|
6526
|
+
$notContainsi?: string;
|
|
6527
|
+
} | {
|
|
6528
|
+
$notNull?: boolean;
|
|
6529
|
+
};
|
|
6045
6530
|
};
|
|
6046
|
-
populate?: Record<string, boolean | {
|
|
6047
|
-
populate?: boolean;
|
|
6048
|
-
}>;
|
|
6049
6531
|
limit?: number;
|
|
6050
6532
|
fields?: string[];
|
|
6051
6533
|
omit?: string[];
|
|
@@ -6070,7 +6552,10 @@ declare const pluginServices: {
|
|
|
6070
6552
|
authorName?: string;
|
|
6071
6553
|
authorEmail?: string;
|
|
6072
6554
|
authorAvatar?: string;
|
|
6073
|
-
authorUser?: string
|
|
6555
|
+
authorUser?: string | {
|
|
6556
|
+
id?: number;
|
|
6557
|
+
email?: string;
|
|
6558
|
+
};
|
|
6074
6559
|
locale?: string;
|
|
6075
6560
|
gotThread?: boolean;
|
|
6076
6561
|
threadFirstItemId?: number;
|
|
@@ -6103,7 +6588,10 @@ declare const pluginServices: {
|
|
|
6103
6588
|
authorName?: string;
|
|
6104
6589
|
authorEmail?: string;
|
|
6105
6590
|
authorAvatar?: string;
|
|
6106
|
-
authorUser?: string
|
|
6591
|
+
authorUser?: string | {
|
|
6592
|
+
id?: number;
|
|
6593
|
+
email?: string;
|
|
6594
|
+
};
|
|
6107
6595
|
locale?: string;
|
|
6108
6596
|
gotThread?: boolean;
|
|
6109
6597
|
threadFirstItemId?: number;
|
|
@@ -6132,6 +6620,8 @@ declare const pluginServices: {
|
|
|
6132
6620
|
approvalStatus?: string;
|
|
6133
6621
|
related?: {
|
|
6134
6622
|
id?: number;
|
|
6623
|
+
documentId?: string;
|
|
6624
|
+
locale?: string;
|
|
6135
6625
|
uid?: string;
|
|
6136
6626
|
requireCommentsApproval?: boolean;
|
|
6137
6627
|
};
|
|
@@ -6142,7 +6632,10 @@ declare const pluginServices: {
|
|
|
6142
6632
|
authorName?: string;
|
|
6143
6633
|
authorEmail?: string;
|
|
6144
6634
|
authorAvatar?: string;
|
|
6145
|
-
authorUser?: string
|
|
6635
|
+
authorUser?: string | {
|
|
6636
|
+
id?: number;
|
|
6637
|
+
email?: string;
|
|
6638
|
+
};
|
|
6146
6639
|
locale?: string;
|
|
6147
6640
|
gotThread?: boolean;
|
|
6148
6641
|
threadFirstItemId?: number;
|
|
@@ -6175,7 +6668,10 @@ declare const pluginServices: {
|
|
|
6175
6668
|
authorName?: string;
|
|
6176
6669
|
authorEmail?: string;
|
|
6177
6670
|
authorAvatar?: string;
|
|
6178
|
-
authorUser?: string
|
|
6671
|
+
authorUser?: string | {
|
|
6672
|
+
id?: number;
|
|
6673
|
+
email?: string;
|
|
6674
|
+
};
|
|
6179
6675
|
locale?: string;
|
|
6180
6676
|
gotThread?: boolean;
|
|
6181
6677
|
threadFirstItemId?: number;
|
|
@@ -6218,7 +6714,10 @@ declare const pluginServices: {
|
|
|
6218
6714
|
authorName?: string;
|
|
6219
6715
|
authorEmail?: string;
|
|
6220
6716
|
authorAvatar?: string;
|
|
6221
|
-
authorUser?: string
|
|
6717
|
+
authorUser?: string | {
|
|
6718
|
+
id?: number;
|
|
6719
|
+
email?: string;
|
|
6720
|
+
};
|
|
6222
6721
|
locale?: string;
|
|
6223
6722
|
gotThread?: boolean;
|
|
6224
6723
|
threadFirstItemId?: number;
|
|
@@ -6252,7 +6751,10 @@ declare const pluginServices: {
|
|
|
6252
6751
|
authorName?: string;
|
|
6253
6752
|
authorEmail?: string;
|
|
6254
6753
|
authorAvatar?: string;
|
|
6255
|
-
authorUser?: string
|
|
6754
|
+
authorUser?: string | {
|
|
6755
|
+
id?: number;
|
|
6756
|
+
email?: string;
|
|
6757
|
+
};
|
|
6256
6758
|
locale?: string;
|
|
6257
6759
|
gotThread?: boolean;
|
|
6258
6760
|
threadFirstItemId?: number;
|
|
@@ -6271,6 +6773,8 @@ declare const pluginServices: {
|
|
|
6271
6773
|
};
|
|
6272
6774
|
}[]): Promise<{
|
|
6273
6775
|
id?: number;
|
|
6776
|
+
documentId?: string;
|
|
6777
|
+
locale?: string;
|
|
6274
6778
|
uid?: string;
|
|
6275
6779
|
requireCommentsApproval?: boolean;
|
|
6276
6780
|
}[]>;
|
|
@@ -6292,7 +6796,10 @@ declare const pluginServices: {
|
|
|
6292
6796
|
authorName?: string;
|
|
6293
6797
|
authorEmail?: string;
|
|
6294
6798
|
authorAvatar?: string;
|
|
6295
|
-
authorUser?: string
|
|
6799
|
+
authorUser?: string | {
|
|
6800
|
+
id?: number;
|
|
6801
|
+
email?: string;
|
|
6802
|
+
};
|
|
6296
6803
|
locale?: string;
|
|
6297
6804
|
gotThread?: boolean;
|
|
6298
6805
|
threadFirstItemId?: number;
|
|
@@ -6326,7 +6833,10 @@ declare const pluginServices: {
|
|
|
6326
6833
|
authorName?: string;
|
|
6327
6834
|
authorEmail?: string;
|
|
6328
6835
|
authorAvatar?: string;
|
|
6329
|
-
authorUser?: string
|
|
6836
|
+
authorUser?: string | {
|
|
6837
|
+
id?: number;
|
|
6838
|
+
email?: string;
|
|
6839
|
+
};
|
|
6330
6840
|
locale?: string;
|
|
6331
6841
|
gotThread?: boolean;
|
|
6332
6842
|
threadFirstItemId?: number;
|
|
@@ -6345,6 +6855,8 @@ declare const pluginServices: {
|
|
|
6345
6855
|
};
|
|
6346
6856
|
}, relatedEntities?: {
|
|
6347
6857
|
id?: number;
|
|
6858
|
+
documentId?: string;
|
|
6859
|
+
locale?: string;
|
|
6348
6860
|
uid?: string;
|
|
6349
6861
|
requireCommentsApproval?: boolean;
|
|
6350
6862
|
}[]): {
|
|
@@ -6359,6 +6871,8 @@ declare const pluginServices: {
|
|
|
6359
6871
|
approvalStatus?: string;
|
|
6360
6872
|
related?: {
|
|
6361
6873
|
id?: number;
|
|
6874
|
+
documentId?: string;
|
|
6875
|
+
locale?: string;
|
|
6362
6876
|
uid?: string;
|
|
6363
6877
|
requireCommentsApproval?: boolean;
|
|
6364
6878
|
};
|
|
@@ -6369,7 +6883,10 @@ declare const pluginServices: {
|
|
|
6369
6883
|
authorName?: string;
|
|
6370
6884
|
authorEmail?: string;
|
|
6371
6885
|
authorAvatar?: string;
|
|
6372
|
-
authorUser?: string
|
|
6886
|
+
authorUser?: string | {
|
|
6887
|
+
id?: number;
|
|
6888
|
+
email?: string;
|
|
6889
|
+
};
|
|
6373
6890
|
locale?: string;
|
|
6374
6891
|
gotThread?: boolean;
|
|
6375
6892
|
threadFirstItemId?: number;
|
|
@@ -6403,7 +6920,10 @@ declare const pluginServices: {
|
|
|
6403
6920
|
authorName?: string;
|
|
6404
6921
|
authorEmail?: string;
|
|
6405
6922
|
authorAvatar?: string;
|
|
6406
|
-
authorUser?: string
|
|
6923
|
+
authorUser?: string | {
|
|
6924
|
+
id?: number;
|
|
6925
|
+
email?: string;
|
|
6926
|
+
};
|
|
6407
6927
|
locale?: string;
|
|
6408
6928
|
gotThread?: boolean;
|
|
6409
6929
|
threadFirstItemId?: number;
|
|
@@ -6421,7 +6941,7 @@ declare const pluginServices: {
|
|
|
6421
6941
|
author?: any;
|
|
6422
6942
|
};
|
|
6423
6943
|
};
|
|
6424
|
-
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: {
|
|
6425
6945
|
id?: number;
|
|
6426
6946
|
documentId?: string;
|
|
6427
6947
|
content?: string;
|
|
@@ -6439,7 +6959,10 @@ declare const pluginServices: {
|
|
|
6439
6959
|
authorName?: string;
|
|
6440
6960
|
authorEmail?: string;
|
|
6441
6961
|
authorAvatar?: string;
|
|
6442
|
-
authorUser?: string
|
|
6962
|
+
authorUser?: string | {
|
|
6963
|
+
id?: number;
|
|
6964
|
+
email?: string;
|
|
6965
|
+
};
|
|
6443
6966
|
locale?: string;
|
|
6444
6967
|
gotThread?: boolean;
|
|
6445
6968
|
threadFirstItemId?: number;
|
|
@@ -6473,7 +6996,10 @@ declare const pluginServices: {
|
|
|
6473
6996
|
authorName?: string;
|
|
6474
6997
|
authorEmail?: string;
|
|
6475
6998
|
authorAvatar?: string;
|
|
6476
|
-
authorUser?: string
|
|
6999
|
+
authorUser?: string | {
|
|
7000
|
+
id?: number;
|
|
7001
|
+
email?: string;
|
|
7002
|
+
};
|
|
6477
7003
|
locale?: string;
|
|
6478
7004
|
gotThread?: boolean;
|
|
6479
7005
|
threadFirstItemId?: number;
|
|
@@ -6490,12 +7016,12 @@ declare const pluginServices: {
|
|
|
6490
7016
|
}[];
|
|
6491
7017
|
author?: any;
|
|
6492
7018
|
};
|
|
6493
|
-
}[T_2]): Promise<boolean>;
|
|
7019
|
+
}[T_2], deepLimit?: number): Promise<boolean>;
|
|
6494
7020
|
checkBadWords(content: string): Promise<string>;
|
|
6495
7021
|
registerLifecycleHook(): void;
|
|
6496
7022
|
runLifecycleHook(): Promise<void>;
|
|
6497
7023
|
};
|
|
6498
|
-
settings: ({ strapi }: import("../@types
|
|
7024
|
+
settings: ({ strapi }: import("../@types").StrapiContext) => {
|
|
6499
7025
|
getConfig: (viaSettingsPage?: boolean) => Promise<{
|
|
6500
7026
|
enabledCollections?: string[];
|
|
6501
7027
|
approvalFlow?: string[];
|
|
@@ -6510,6 +7036,13 @@ declare const pluginServices: {
|
|
|
6510
7036
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
6511
7037
|
};
|
|
6512
7038
|
isGQLPluginEnabled?: boolean;
|
|
7039
|
+
gql?: {
|
|
7040
|
+
auth?: boolean;
|
|
7041
|
+
};
|
|
7042
|
+
client?: {
|
|
7043
|
+
url?: string;
|
|
7044
|
+
contactEmail?: string;
|
|
7045
|
+
};
|
|
6513
7046
|
} | Omit<{
|
|
6514
7047
|
enabledCollections?: string[];
|
|
6515
7048
|
approvalFlow?: string[];
|
|
@@ -6524,6 +7057,13 @@ declare const pluginServices: {
|
|
|
6524
7057
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
6525
7058
|
};
|
|
6526
7059
|
isGQLPluginEnabled?: boolean;
|
|
7060
|
+
gql?: {
|
|
7061
|
+
auth?: boolean;
|
|
7062
|
+
};
|
|
7063
|
+
client?: {
|
|
7064
|
+
url?: string;
|
|
7065
|
+
contactEmail?: string;
|
|
7066
|
+
};
|
|
6527
7067
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
6528
7068
|
update: (config: {
|
|
6529
7069
|
enabledCollections?: string[];
|
|
@@ -6539,6 +7079,13 @@ declare const pluginServices: {
|
|
|
6539
7079
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
6540
7080
|
};
|
|
6541
7081
|
isGQLPluginEnabled?: boolean;
|
|
7082
|
+
gql?: {
|
|
7083
|
+
auth?: boolean;
|
|
7084
|
+
};
|
|
7085
|
+
client?: {
|
|
7086
|
+
url?: string;
|
|
7087
|
+
contactEmail?: string;
|
|
7088
|
+
};
|
|
6542
7089
|
}) => Promise<{
|
|
6543
7090
|
enabledCollections?: string[];
|
|
6544
7091
|
approvalFlow?: string[];
|
|
@@ -6553,6 +7100,13 @@ declare const pluginServices: {
|
|
|
6553
7100
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
6554
7101
|
};
|
|
6555
7102
|
isGQLPluginEnabled?: boolean;
|
|
7103
|
+
gql?: {
|
|
7104
|
+
auth?: boolean;
|
|
7105
|
+
};
|
|
7106
|
+
client?: {
|
|
7107
|
+
url?: string;
|
|
7108
|
+
contactEmail?: string;
|
|
7109
|
+
};
|
|
6556
7110
|
} | Omit<{
|
|
6557
7111
|
enabledCollections?: string[];
|
|
6558
7112
|
approvalFlow?: string[];
|
|
@@ -6567,6 +7121,13 @@ declare const pluginServices: {
|
|
|
6567
7121
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
6568
7122
|
};
|
|
6569
7123
|
isGQLPluginEnabled?: boolean;
|
|
7124
|
+
gql?: {
|
|
7125
|
+
auth?: boolean;
|
|
7126
|
+
};
|
|
7127
|
+
client?: {
|
|
7128
|
+
url?: string;
|
|
7129
|
+
contactEmail?: string;
|
|
7130
|
+
};
|
|
6570
7131
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
6571
7132
|
restore: () => Promise<{
|
|
6572
7133
|
enabledCollections?: string[];
|
|
@@ -6582,6 +7143,13 @@ declare const pluginServices: {
|
|
|
6582
7143
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
6583
7144
|
};
|
|
6584
7145
|
isGQLPluginEnabled?: boolean;
|
|
7146
|
+
gql?: {
|
|
7147
|
+
auth?: boolean;
|
|
7148
|
+
};
|
|
7149
|
+
client?: {
|
|
7150
|
+
url?: string;
|
|
7151
|
+
contactEmail?: string;
|
|
7152
|
+
};
|
|
6585
7153
|
} | Omit<{
|
|
6586
7154
|
enabledCollections?: string[];
|
|
6587
7155
|
approvalFlow?: string[];
|
|
@@ -6596,9 +7164,20 @@ declare const pluginServices: {
|
|
|
6596
7164
|
OTHER?: import("../const").REPORT_REASON.OTHER;
|
|
6597
7165
|
};
|
|
6598
7166
|
isGQLPluginEnabled?: boolean;
|
|
7167
|
+
gql?: {
|
|
7168
|
+
auth?: boolean;
|
|
7169
|
+
};
|
|
7170
|
+
client?: {
|
|
7171
|
+
url?: string;
|
|
7172
|
+
contactEmail?: string;
|
|
7173
|
+
};
|
|
6599
7174
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
6600
7175
|
restart: () => void;
|
|
6601
7176
|
};
|
|
7177
|
+
gql: ({ strapi }: import("../@types").StrapiContext) => {
|
|
7178
|
+
graphQLFiltersToStrapiQuery: (queryFilters: any, contentType?: any) => any;
|
|
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>;
|
|
7180
|
+
};
|
|
6602
7181
|
};
|
|
6603
7182
|
export type PluginServices = {
|
|
6604
7183
|
[key in keyof typeof pluginServices]: ReturnType<typeof pluginServices[key]>;
|