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
|
/// <reference types="koa" />
|
|
2
2
|
declare const _default: {
|
|
3
|
-
register: (context: import("./@types
|
|
4
|
-
bootstrap: ({ strapi }: import("./@types
|
|
3
|
+
register: (context: import("./@types").StrapiContext) => void;
|
|
4
|
+
bootstrap: ({ strapi }: import("./@types").StrapiContext) => Promise<void>;
|
|
5
5
|
config: {
|
|
6
6
|
readonly default: {
|
|
7
7
|
enabledCollections?: string[];
|
|
@@ -17,6 +17,13 @@ declare const _default: {
|
|
|
17
17
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
18
18
|
};
|
|
19
19
|
isGQLPluginEnabled?: boolean;
|
|
20
|
+
gql?: {
|
|
21
|
+
auth?: boolean;
|
|
22
|
+
};
|
|
23
|
+
client?: {
|
|
24
|
+
url?: string;
|
|
25
|
+
contactEmail?: string;
|
|
26
|
+
};
|
|
20
27
|
};
|
|
21
28
|
readonly validate: (config: unknown) => import("zod").SafeParseReturnType<{
|
|
22
29
|
enabledCollections?: string[];
|
|
@@ -32,6 +39,13 @@ declare const _default: {
|
|
|
32
39
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
33
40
|
};
|
|
34
41
|
isGQLPluginEnabled?: boolean;
|
|
42
|
+
gql?: {
|
|
43
|
+
auth?: boolean;
|
|
44
|
+
};
|
|
45
|
+
client?: {
|
|
46
|
+
url?: string;
|
|
47
|
+
contactEmail?: string;
|
|
48
|
+
};
|
|
35
49
|
}, {
|
|
36
50
|
enabledCollections?: string[];
|
|
37
51
|
approvalFlow?: string[];
|
|
@@ -46,12 +60,19 @@ declare const _default: {
|
|
|
46
60
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
47
61
|
};
|
|
48
62
|
isGQLPluginEnabled?: boolean;
|
|
63
|
+
gql?: {
|
|
64
|
+
auth?: boolean;
|
|
65
|
+
};
|
|
66
|
+
client?: {
|
|
67
|
+
url?: string;
|
|
68
|
+
contactEmail?: string;
|
|
69
|
+
};
|
|
49
70
|
}>;
|
|
50
71
|
};
|
|
51
72
|
controllers: {
|
|
52
|
-
admin: ({ strapi }: import("./@types
|
|
53
|
-
getService<T extends "
|
|
54
|
-
findAll(ctx: import("./@types
|
|
73
|
+
admin: ({ strapi }: import("./@types").StrapiContext) => {
|
|
74
|
+
getService<T extends "gql" | "client" | "admin" | "common" | "settings">(name: T): import("./services").PluginServices[T];
|
|
75
|
+
findAll(ctx: import("./@types").RequestContext): Promise<{
|
|
55
76
|
pagination: {
|
|
56
77
|
page?: number;
|
|
57
78
|
pageSize?: number;
|
|
@@ -70,6 +91,8 @@ declare const _default: {
|
|
|
70
91
|
approvalStatus?: string;
|
|
71
92
|
related?: {
|
|
72
93
|
id?: number;
|
|
94
|
+
documentId?: string;
|
|
95
|
+
locale?: string;
|
|
73
96
|
uid?: string;
|
|
74
97
|
requireCommentsApproval?: boolean;
|
|
75
98
|
};
|
|
@@ -80,7 +103,10 @@ declare const _default: {
|
|
|
80
103
|
authorName?: string;
|
|
81
104
|
authorEmail?: string;
|
|
82
105
|
authorAvatar?: string;
|
|
83
|
-
authorUser?: string
|
|
106
|
+
authorUser?: string | {
|
|
107
|
+
id?: number;
|
|
108
|
+
email?: string;
|
|
109
|
+
};
|
|
84
110
|
locale?: string;
|
|
85
111
|
gotThread?: boolean;
|
|
86
112
|
threadFirstItemId?: number;
|
|
@@ -114,7 +140,10 @@ declare const _default: {
|
|
|
114
140
|
authorName?: string;
|
|
115
141
|
authorEmail?: string;
|
|
116
142
|
authorAvatar?: string;
|
|
117
|
-
authorUser?: string
|
|
143
|
+
authorUser?: string | {
|
|
144
|
+
id?: number;
|
|
145
|
+
email?: string;
|
|
146
|
+
};
|
|
118
147
|
locale?: string;
|
|
119
148
|
gotThread?: boolean;
|
|
120
149
|
threadFirstItemId?: number;
|
|
@@ -133,7 +162,7 @@ declare const _default: {
|
|
|
133
162
|
};
|
|
134
163
|
}[];
|
|
135
164
|
}>;
|
|
136
|
-
findReports(ctx: import("./@types
|
|
165
|
+
findReports(ctx: import("./@types").RequestContext): Promise<{
|
|
137
166
|
result: {
|
|
138
167
|
id?: number;
|
|
139
168
|
documentId?: string;
|
|
@@ -152,7 +181,10 @@ declare const _default: {
|
|
|
152
181
|
authorName?: string;
|
|
153
182
|
authorEmail?: string;
|
|
154
183
|
authorAvatar?: string;
|
|
155
|
-
authorUser?: string
|
|
184
|
+
authorUser?: string | {
|
|
185
|
+
id?: number;
|
|
186
|
+
email?: string;
|
|
187
|
+
};
|
|
156
188
|
locale?: string;
|
|
157
189
|
gotThread?: boolean;
|
|
158
190
|
threadFirstItemId?: number;
|
|
@@ -186,7 +218,10 @@ declare const _default: {
|
|
|
186
218
|
authorName?: string;
|
|
187
219
|
authorEmail?: string;
|
|
188
220
|
authorAvatar?: string;
|
|
189
|
-
authorUser?: string
|
|
221
|
+
authorUser?: string | {
|
|
222
|
+
id?: number;
|
|
223
|
+
email?: string;
|
|
224
|
+
};
|
|
190
225
|
locale?: string;
|
|
191
226
|
gotThread?: boolean;
|
|
192
227
|
threadFirstItemId?: number;
|
|
@@ -221,12 +256,13 @@ declare const _default: {
|
|
|
221
256
|
body: object;
|
|
222
257
|
};
|
|
223
258
|
state: {
|
|
224
|
-
user?: import("./@types
|
|
259
|
+
user?: import("./@types").AdminUser;
|
|
225
260
|
};
|
|
226
261
|
}): Promise<{
|
|
227
262
|
entity: {
|
|
228
263
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
229
|
-
|
|
264
|
+
documentId: string;
|
|
265
|
+
id: number;
|
|
230
266
|
};
|
|
231
267
|
selected: {
|
|
232
268
|
id?: number;
|
|
@@ -246,7 +282,10 @@ declare const _default: {
|
|
|
246
282
|
authorName?: string;
|
|
247
283
|
authorEmail?: string;
|
|
248
284
|
authorAvatar?: string;
|
|
249
|
-
authorUser?: string
|
|
285
|
+
authorUser?: string | {
|
|
286
|
+
id?: number;
|
|
287
|
+
email?: string;
|
|
288
|
+
};
|
|
250
289
|
locale?: string;
|
|
251
290
|
gotThread?: boolean;
|
|
252
291
|
threadFirstItemId?: number;
|
|
@@ -280,7 +319,10 @@ declare const _default: {
|
|
|
280
319
|
authorName?: string;
|
|
281
320
|
authorEmail?: string;
|
|
282
321
|
authorAvatar?: string;
|
|
283
|
-
authorUser?: string
|
|
322
|
+
authorUser?: string | {
|
|
323
|
+
id?: number;
|
|
324
|
+
email?: string;
|
|
325
|
+
};
|
|
284
326
|
locale?: string;
|
|
285
327
|
gotThread?: boolean;
|
|
286
328
|
threadFirstItemId?: number;
|
|
@@ -316,7 +358,10 @@ declare const _default: {
|
|
|
316
358
|
authorName?: string;
|
|
317
359
|
authorEmail?: string;
|
|
318
360
|
authorAvatar?: string;
|
|
319
|
-
authorUser?: string
|
|
361
|
+
authorUser?: string | {
|
|
362
|
+
id?: number;
|
|
363
|
+
email?: string;
|
|
364
|
+
};
|
|
320
365
|
locale?: string;
|
|
321
366
|
gotThread?: boolean;
|
|
322
367
|
threadFirstItemId?: number;
|
|
@@ -350,7 +395,10 @@ declare const _default: {
|
|
|
350
395
|
authorName?: string;
|
|
351
396
|
authorEmail?: string;
|
|
352
397
|
authorAvatar?: string;
|
|
353
|
-
authorUser?: string
|
|
398
|
+
authorUser?: string | {
|
|
399
|
+
id?: number;
|
|
400
|
+
email?: string;
|
|
401
|
+
};
|
|
354
402
|
locale?: string;
|
|
355
403
|
gotThread?: boolean;
|
|
356
404
|
threadFirstItemId?: number;
|
|
@@ -379,7 +427,7 @@ declare const _default: {
|
|
|
379
427
|
body: object;
|
|
380
428
|
};
|
|
381
429
|
state: {
|
|
382
|
-
user?: import("./@types
|
|
430
|
+
user?: import("./@types").AdminUser;
|
|
383
431
|
};
|
|
384
432
|
}): Promise<{
|
|
385
433
|
id?: number;
|
|
@@ -399,7 +447,10 @@ declare const _default: {
|
|
|
399
447
|
authorName?: string;
|
|
400
448
|
authorEmail?: string;
|
|
401
449
|
authorAvatar?: string;
|
|
402
|
-
authorUser?: string
|
|
450
|
+
authorUser?: string | {
|
|
451
|
+
id?: number;
|
|
452
|
+
email?: string;
|
|
453
|
+
};
|
|
403
454
|
locale?: string;
|
|
404
455
|
gotThread?: boolean;
|
|
405
456
|
threadFirstItemId?: number;
|
|
@@ -433,7 +484,10 @@ declare const _default: {
|
|
|
433
484
|
authorName?: string;
|
|
434
485
|
authorEmail?: string;
|
|
435
486
|
authorAvatar?: string;
|
|
436
|
-
authorUser?: string
|
|
487
|
+
authorUser?: string | {
|
|
488
|
+
id?: number;
|
|
489
|
+
email?: string;
|
|
490
|
+
};
|
|
437
491
|
locale?: string;
|
|
438
492
|
gotThread?: boolean;
|
|
439
493
|
threadFirstItemId?: number;
|
|
@@ -461,7 +515,7 @@ declare const _default: {
|
|
|
461
515
|
body: object;
|
|
462
516
|
};
|
|
463
517
|
state: {
|
|
464
|
-
user?: import("./@types
|
|
518
|
+
user?: import("./@types").AdminUser;
|
|
465
519
|
};
|
|
466
520
|
}): Promise<{
|
|
467
521
|
id?: number;
|
|
@@ -481,7 +535,10 @@ declare const _default: {
|
|
|
481
535
|
authorName?: string;
|
|
482
536
|
authorEmail?: string;
|
|
483
537
|
authorAvatar?: string;
|
|
484
|
-
authorUser?: string
|
|
538
|
+
authorUser?: string | {
|
|
539
|
+
id?: number;
|
|
540
|
+
email?: string;
|
|
541
|
+
};
|
|
485
542
|
locale?: string;
|
|
486
543
|
gotThread?: boolean;
|
|
487
544
|
threadFirstItemId?: number;
|
|
@@ -515,7 +572,10 @@ declare const _default: {
|
|
|
515
572
|
authorName?: string;
|
|
516
573
|
authorEmail?: string;
|
|
517
574
|
authorAvatar?: string;
|
|
518
|
-
authorUser?: string
|
|
575
|
+
authorUser?: string | {
|
|
576
|
+
id?: number;
|
|
577
|
+
email?: string;
|
|
578
|
+
};
|
|
519
579
|
locale?: string;
|
|
520
580
|
gotThread?: boolean;
|
|
521
581
|
threadFirstItemId?: number;
|
|
@@ -543,7 +603,7 @@ declare const _default: {
|
|
|
543
603
|
body: object;
|
|
544
604
|
};
|
|
545
605
|
state: {
|
|
546
|
-
user?: import("./@types
|
|
606
|
+
user?: import("./@types").AdminUser;
|
|
547
607
|
};
|
|
548
608
|
}): Promise<{
|
|
549
609
|
id?: number;
|
|
@@ -563,7 +623,10 @@ declare const _default: {
|
|
|
563
623
|
authorName?: string;
|
|
564
624
|
authorEmail?: string;
|
|
565
625
|
authorAvatar?: string;
|
|
566
|
-
authorUser?: string
|
|
626
|
+
authorUser?: string | {
|
|
627
|
+
id?: number;
|
|
628
|
+
email?: string;
|
|
629
|
+
};
|
|
567
630
|
locale?: string;
|
|
568
631
|
gotThread?: boolean;
|
|
569
632
|
threadFirstItemId?: number;
|
|
@@ -597,7 +660,10 @@ declare const _default: {
|
|
|
597
660
|
authorName?: string;
|
|
598
661
|
authorEmail?: string;
|
|
599
662
|
authorAvatar?: string;
|
|
600
|
-
authorUser?: string
|
|
663
|
+
authorUser?: string | {
|
|
664
|
+
id?: number;
|
|
665
|
+
email?: string;
|
|
666
|
+
};
|
|
601
667
|
locale?: string;
|
|
602
668
|
gotThread?: boolean;
|
|
603
669
|
threadFirstItemId?: number;
|
|
@@ -625,7 +691,7 @@ declare const _default: {
|
|
|
625
691
|
body: object;
|
|
626
692
|
};
|
|
627
693
|
state: {
|
|
628
|
-
user?: import("./@types
|
|
694
|
+
user?: import("./@types").AdminUser;
|
|
629
695
|
};
|
|
630
696
|
}): Promise<{
|
|
631
697
|
id?: number;
|
|
@@ -645,7 +711,10 @@ declare const _default: {
|
|
|
645
711
|
authorName?: string;
|
|
646
712
|
authorEmail?: string;
|
|
647
713
|
authorAvatar?: string;
|
|
648
|
-
authorUser?: string
|
|
714
|
+
authorUser?: string | {
|
|
715
|
+
id?: number;
|
|
716
|
+
email?: string;
|
|
717
|
+
};
|
|
649
718
|
locale?: string;
|
|
650
719
|
gotThread?: boolean;
|
|
651
720
|
threadFirstItemId?: number;
|
|
@@ -679,7 +748,10 @@ declare const _default: {
|
|
|
679
748
|
authorName?: string;
|
|
680
749
|
authorEmail?: string;
|
|
681
750
|
authorAvatar?: string;
|
|
682
|
-
authorUser?: string
|
|
751
|
+
authorUser?: string | {
|
|
752
|
+
id?: number;
|
|
753
|
+
email?: string;
|
|
754
|
+
};
|
|
683
755
|
locale?: string;
|
|
684
756
|
gotThread?: boolean;
|
|
685
757
|
threadFirstItemId?: number;
|
|
@@ -707,7 +779,7 @@ declare const _default: {
|
|
|
707
779
|
body: object;
|
|
708
780
|
};
|
|
709
781
|
state: {
|
|
710
|
-
user?: import("./@types
|
|
782
|
+
user?: import("./@types").AdminUser;
|
|
711
783
|
};
|
|
712
784
|
}): Promise<{
|
|
713
785
|
id?: number;
|
|
@@ -727,7 +799,10 @@ declare const _default: {
|
|
|
727
799
|
authorName?: string;
|
|
728
800
|
authorEmail?: string;
|
|
729
801
|
authorAvatar?: string;
|
|
730
|
-
authorUser?: string
|
|
802
|
+
authorUser?: string | {
|
|
803
|
+
id?: number;
|
|
804
|
+
email?: string;
|
|
805
|
+
};
|
|
731
806
|
locale?: string;
|
|
732
807
|
gotThread?: boolean;
|
|
733
808
|
threadFirstItemId?: number;
|
|
@@ -761,7 +836,10 @@ declare const _default: {
|
|
|
761
836
|
authorName?: string;
|
|
762
837
|
authorEmail?: string;
|
|
763
838
|
authorAvatar?: string;
|
|
764
|
-
authorUser?: string
|
|
839
|
+
authorUser?: string | {
|
|
840
|
+
id?: number;
|
|
841
|
+
email?: string;
|
|
842
|
+
};
|
|
765
843
|
locale?: string;
|
|
766
844
|
gotThread?: boolean;
|
|
767
845
|
threadFirstItemId?: number;
|
|
@@ -779,7 +857,7 @@ declare const _default: {
|
|
|
779
857
|
author?: any;
|
|
780
858
|
};
|
|
781
859
|
}>;
|
|
782
|
-
resolveAbuseReport(ctx: import("./@types
|
|
860
|
+
resolveAbuseReport(ctx: import("./@types").RequestContext<object, {
|
|
783
861
|
id: string;
|
|
784
862
|
reportId: string;
|
|
785
863
|
}>): Promise<{
|
|
@@ -794,16 +872,16 @@ declare const _default: {
|
|
|
794
872
|
resolved?: boolean;
|
|
795
873
|
}>;
|
|
796
874
|
resolveCommentMultipleAbuseReports(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
|
|
797
|
-
body: import("./@types
|
|
875
|
+
body: import("./@types").Id[];
|
|
798
876
|
query: object;
|
|
799
877
|
params: {
|
|
800
878
|
id: string;
|
|
801
879
|
};
|
|
802
880
|
request: Omit<import("koa").Request, "body"> & {
|
|
803
|
-
body: import("./@types
|
|
881
|
+
body: import("./@types").Id[];
|
|
804
882
|
};
|
|
805
883
|
state: {
|
|
806
|
-
user?: import("./@types
|
|
884
|
+
user?: import("./@types").AdminUser;
|
|
807
885
|
};
|
|
808
886
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
809
887
|
resolveAllAbuseReportsForComment(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
|
|
@@ -816,7 +894,7 @@ declare const _default: {
|
|
|
816
894
|
body: object;
|
|
817
895
|
};
|
|
818
896
|
state: {
|
|
819
|
-
user?: import("./@types
|
|
897
|
+
user?: import("./@types").AdminUser;
|
|
820
898
|
};
|
|
821
899
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
822
900
|
resolveAllAbuseReportsForThread(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
|
|
@@ -829,11 +907,11 @@ declare const _default: {
|
|
|
829
907
|
body: object;
|
|
830
908
|
};
|
|
831
909
|
state: {
|
|
832
|
-
user?: import("./@types
|
|
910
|
+
user?: import("./@types").AdminUser;
|
|
833
911
|
};
|
|
834
912
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
835
|
-
resolveMultipleAbuseReports(ctx: import("./@types
|
|
836
|
-
postComment(ctx: import("./@types
|
|
913
|
+
resolveMultipleAbuseReports(ctx: import("./@types").RequestContext<import("./@types").Id[]>): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
914
|
+
postComment(ctx: import("./@types").RequestContext<Omit<{
|
|
837
915
|
id?: string | number;
|
|
838
916
|
content?: string;
|
|
839
917
|
author?: {
|
|
@@ -871,7 +949,10 @@ declare const _default: {
|
|
|
871
949
|
authorName?: string;
|
|
872
950
|
authorEmail?: string;
|
|
873
951
|
authorAvatar?: string;
|
|
874
|
-
authorUser?: string
|
|
952
|
+
authorUser?: string | {
|
|
953
|
+
id?: number;
|
|
954
|
+
email?: string;
|
|
955
|
+
};
|
|
875
956
|
locale?: string;
|
|
876
957
|
gotThread?: boolean;
|
|
877
958
|
threadFirstItemId?: number;
|
|
@@ -905,7 +986,10 @@ declare const _default: {
|
|
|
905
986
|
authorName?: string;
|
|
906
987
|
authorEmail?: string;
|
|
907
988
|
authorAvatar?: string;
|
|
908
|
-
authorUser?: string
|
|
989
|
+
authorUser?: string | {
|
|
990
|
+
id?: number;
|
|
991
|
+
email?: string;
|
|
992
|
+
};
|
|
909
993
|
locale?: string;
|
|
910
994
|
gotThread?: boolean;
|
|
911
995
|
threadFirstItemId?: number;
|
|
@@ -923,7 +1007,7 @@ declare const _default: {
|
|
|
923
1007
|
author?: any;
|
|
924
1008
|
};
|
|
925
1009
|
}>;
|
|
926
|
-
updateComment(ctx: import("./@types
|
|
1010
|
+
updateComment(ctx: import("./@types").RequestContext<Omit<{
|
|
927
1011
|
id?: string | number;
|
|
928
1012
|
content?: string;
|
|
929
1013
|
author?: {
|
|
@@ -961,7 +1045,10 @@ declare const _default: {
|
|
|
961
1045
|
authorName?: string;
|
|
962
1046
|
authorEmail?: string;
|
|
963
1047
|
authorAvatar?: string;
|
|
964
|
-
authorUser?: string
|
|
1048
|
+
authorUser?: string | {
|
|
1049
|
+
id?: number;
|
|
1050
|
+
email?: string;
|
|
1051
|
+
};
|
|
965
1052
|
locale?: string;
|
|
966
1053
|
gotThread?: boolean;
|
|
967
1054
|
threadFirstItemId?: number;
|
|
@@ -995,7 +1082,10 @@ declare const _default: {
|
|
|
995
1082
|
authorName?: string;
|
|
996
1083
|
authorEmail?: string;
|
|
997
1084
|
authorAvatar?: string;
|
|
998
|
-
authorUser?: string
|
|
1085
|
+
authorUser?: string | {
|
|
1086
|
+
id?: number;
|
|
1087
|
+
email?: string;
|
|
1088
|
+
};
|
|
999
1089
|
locale?: string;
|
|
1000
1090
|
gotThread?: boolean;
|
|
1001
1091
|
threadFirstItemId?: number;
|
|
@@ -1013,7 +1103,7 @@ declare const _default: {
|
|
|
1013
1103
|
author?: any;
|
|
1014
1104
|
};
|
|
1015
1105
|
}>;
|
|
1016
|
-
approveComment(ctx: import("./@types
|
|
1106
|
+
approveComment(ctx: import("./@types").RequestContext<object, {
|
|
1017
1107
|
id?: number;
|
|
1018
1108
|
}>): Promise<{
|
|
1019
1109
|
id?: number;
|
|
@@ -1033,7 +1123,10 @@ declare const _default: {
|
|
|
1033
1123
|
authorName?: string;
|
|
1034
1124
|
authorEmail?: string;
|
|
1035
1125
|
authorAvatar?: string;
|
|
1036
|
-
authorUser?: string
|
|
1126
|
+
authorUser?: string | {
|
|
1127
|
+
id?: number;
|
|
1128
|
+
email?: string;
|
|
1129
|
+
};
|
|
1037
1130
|
locale?: string;
|
|
1038
1131
|
gotThread?: boolean;
|
|
1039
1132
|
threadFirstItemId?: number;
|
|
@@ -1067,7 +1160,10 @@ declare const _default: {
|
|
|
1067
1160
|
authorName?: string;
|
|
1068
1161
|
authorEmail?: string;
|
|
1069
1162
|
authorAvatar?: string;
|
|
1070
|
-
authorUser?: string
|
|
1163
|
+
authorUser?: string | {
|
|
1164
|
+
id?: number;
|
|
1165
|
+
email?: string;
|
|
1166
|
+
};
|
|
1071
1167
|
locale?: string;
|
|
1072
1168
|
gotThread?: boolean;
|
|
1073
1169
|
threadFirstItemId?: number;
|
|
@@ -1085,7 +1181,7 @@ declare const _default: {
|
|
|
1085
1181
|
author?: any;
|
|
1086
1182
|
};
|
|
1087
1183
|
}>;
|
|
1088
|
-
rejectComment(ctx: import("./@types
|
|
1184
|
+
rejectComment(ctx: import("./@types").RequestContext<object, {
|
|
1089
1185
|
id?: number;
|
|
1090
1186
|
}>): Promise<{
|
|
1091
1187
|
id?: number;
|
|
@@ -1105,7 +1201,10 @@ declare const _default: {
|
|
|
1105
1201
|
authorName?: string;
|
|
1106
1202
|
authorEmail?: string;
|
|
1107
1203
|
authorAvatar?: string;
|
|
1108
|
-
authorUser?: string
|
|
1204
|
+
authorUser?: string | {
|
|
1205
|
+
id?: number;
|
|
1206
|
+
email?: string;
|
|
1207
|
+
};
|
|
1109
1208
|
locale?: string;
|
|
1110
1209
|
gotThread?: boolean;
|
|
1111
1210
|
threadFirstItemId?: number;
|
|
@@ -1139,7 +1238,10 @@ declare const _default: {
|
|
|
1139
1238
|
authorName?: string;
|
|
1140
1239
|
authorEmail?: string;
|
|
1141
1240
|
authorAvatar?: string;
|
|
1142
|
-
authorUser?: string
|
|
1241
|
+
authorUser?: string | {
|
|
1242
|
+
id?: number;
|
|
1243
|
+
email?: string;
|
|
1244
|
+
};
|
|
1143
1245
|
locale?: string;
|
|
1144
1246
|
gotThread?: boolean;
|
|
1145
1247
|
threadFirstItemId?: number;
|
|
@@ -1158,10 +1260,10 @@ declare const _default: {
|
|
|
1158
1260
|
};
|
|
1159
1261
|
}>;
|
|
1160
1262
|
};
|
|
1161
|
-
client: ({ strapi }: import("./@types
|
|
1162
|
-
getService<T_1 extends "
|
|
1263
|
+
client: ({ strapi }: import("./@types").StrapiContext) => {
|
|
1264
|
+
getService<T_1 extends "gql" | "client" | "admin" | "common" | "settings">(name: T_1): import("./services").PluginServices[T_1];
|
|
1163
1265
|
getStoreRepository(): {
|
|
1164
|
-
getLocalConfig<P extends
|
|
1266
|
+
getLocalConfig<P extends string>(prop?: P, defaultValue?: import("./@types").PathValue<{
|
|
1165
1267
|
enabledCollections?: string[];
|
|
1166
1268
|
approvalFlow?: string[];
|
|
1167
1269
|
entryLabel?: Record<string, string[]>;
|
|
@@ -1175,7 +1277,14 @@ declare const _default: {
|
|
|
1175
1277
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1176
1278
|
};
|
|
1177
1279
|
isGQLPluginEnabled?: boolean;
|
|
1178
|
-
|
|
1280
|
+
gql?: {
|
|
1281
|
+
auth?: boolean;
|
|
1282
|
+
};
|
|
1283
|
+
client?: {
|
|
1284
|
+
url?: string;
|
|
1285
|
+
contactEmail?: string;
|
|
1286
|
+
};
|
|
1287
|
+
}, P>): import("./@types").PathValue<{
|
|
1179
1288
|
enabledCollections?: string[];
|
|
1180
1289
|
approvalFlow?: string[];
|
|
1181
1290
|
entryLabel?: Record<string, string[]>;
|
|
@@ -1189,7 +1298,14 @@ declare const _default: {
|
|
|
1189
1298
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1190
1299
|
};
|
|
1191
1300
|
isGQLPluginEnabled?: boolean;
|
|
1192
|
-
|
|
1301
|
+
gql?: {
|
|
1302
|
+
auth?: boolean;
|
|
1303
|
+
};
|
|
1304
|
+
client?: {
|
|
1305
|
+
url?: string;
|
|
1306
|
+
contactEmail?: string;
|
|
1307
|
+
};
|
|
1308
|
+
}, P>;
|
|
1193
1309
|
getStore(): Promise<{
|
|
1194
1310
|
get(params?: Partial<{
|
|
1195
1311
|
key: string;
|
|
@@ -1228,6 +1344,13 @@ declare const _default: {
|
|
|
1228
1344
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1229
1345
|
};
|
|
1230
1346
|
isGQLPluginEnabled?: boolean;
|
|
1347
|
+
gql?: {
|
|
1348
|
+
auth?: boolean;
|
|
1349
|
+
};
|
|
1350
|
+
client?: {
|
|
1351
|
+
url?: string;
|
|
1352
|
+
contactEmail?: string;
|
|
1353
|
+
};
|
|
1231
1354
|
}>>;
|
|
1232
1355
|
get<T_2 extends boolean>(viaSettingsPage?: T_2): Promise<import("./utils/Either").Either<unknown, T_2 extends true ? {
|
|
1233
1356
|
enabledCollections?: string[];
|
|
@@ -1243,6 +1366,13 @@ declare const _default: {
|
|
|
1243
1366
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1244
1367
|
};
|
|
1245
1368
|
isGQLPluginEnabled?: boolean;
|
|
1369
|
+
gql?: {
|
|
1370
|
+
auth?: boolean;
|
|
1371
|
+
};
|
|
1372
|
+
client?: {
|
|
1373
|
+
url?: string;
|
|
1374
|
+
contactEmail?: string;
|
|
1375
|
+
};
|
|
1246
1376
|
} : Omit<{
|
|
1247
1377
|
enabledCollections?: string[];
|
|
1248
1378
|
approvalFlow?: string[];
|
|
@@ -1257,6 +1387,13 @@ declare const _default: {
|
|
|
1257
1387
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1258
1388
|
};
|
|
1259
1389
|
isGQLPluginEnabled?: boolean;
|
|
1390
|
+
gql?: {
|
|
1391
|
+
auth?: boolean;
|
|
1392
|
+
};
|
|
1393
|
+
client?: {
|
|
1394
|
+
url?: string;
|
|
1395
|
+
contactEmail?: string;
|
|
1396
|
+
};
|
|
1260
1397
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1261
1398
|
update(config: {
|
|
1262
1399
|
enabledCollections?: string[];
|
|
@@ -1272,6 +1409,13 @@ declare const _default: {
|
|
|
1272
1409
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1273
1410
|
};
|
|
1274
1411
|
isGQLPluginEnabled?: boolean;
|
|
1412
|
+
gql?: {
|
|
1413
|
+
auth?: boolean;
|
|
1414
|
+
};
|
|
1415
|
+
client?: {
|
|
1416
|
+
url?: string;
|
|
1417
|
+
contactEmail?: string;
|
|
1418
|
+
};
|
|
1275
1419
|
}): Promise<import("./utils/Either").Either<unknown, {
|
|
1276
1420
|
enabledCollections?: string[];
|
|
1277
1421
|
approvalFlow?: string[];
|
|
@@ -1286,6 +1430,13 @@ declare const _default: {
|
|
|
1286
1430
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1287
1431
|
};
|
|
1288
1432
|
isGQLPluginEnabled?: boolean;
|
|
1433
|
+
gql?: {
|
|
1434
|
+
auth?: boolean;
|
|
1435
|
+
};
|
|
1436
|
+
client?: {
|
|
1437
|
+
url?: string;
|
|
1438
|
+
contactEmail?: string;
|
|
1439
|
+
};
|
|
1289
1440
|
} | Omit<{
|
|
1290
1441
|
enabledCollections?: string[];
|
|
1291
1442
|
approvalFlow?: string[];
|
|
@@ -1300,6 +1451,13 @@ declare const _default: {
|
|
|
1300
1451
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1301
1452
|
};
|
|
1302
1453
|
isGQLPluginEnabled?: boolean;
|
|
1454
|
+
gql?: {
|
|
1455
|
+
auth?: boolean;
|
|
1456
|
+
};
|
|
1457
|
+
client?: {
|
|
1458
|
+
url?: string;
|
|
1459
|
+
contactEmail?: string;
|
|
1460
|
+
};
|
|
1303
1461
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1304
1462
|
restore(): Promise<import("./utils/Either").Either<unknown, {
|
|
1305
1463
|
enabledCollections?: string[];
|
|
@@ -1315,6 +1473,13 @@ declare const _default: {
|
|
|
1315
1473
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1316
1474
|
};
|
|
1317
1475
|
isGQLPluginEnabled?: boolean;
|
|
1476
|
+
gql?: {
|
|
1477
|
+
auth?: boolean;
|
|
1478
|
+
};
|
|
1479
|
+
client?: {
|
|
1480
|
+
url?: string;
|
|
1481
|
+
contactEmail?: string;
|
|
1482
|
+
};
|
|
1318
1483
|
} | Omit<{
|
|
1319
1484
|
enabledCollections?: string[];
|
|
1320
1485
|
approvalFlow?: string[];
|
|
@@ -1329,19 +1494,27 @@ declare const _default: {
|
|
|
1329
1494
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
1330
1495
|
};
|
|
1331
1496
|
isGQLPluginEnabled?: boolean;
|
|
1497
|
+
gql?: {
|
|
1498
|
+
auth?: boolean;
|
|
1499
|
+
};
|
|
1500
|
+
client?: {
|
|
1501
|
+
url?: string;
|
|
1502
|
+
contactEmail?: string;
|
|
1503
|
+
};
|
|
1332
1504
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
|
|
1333
1505
|
};
|
|
1334
|
-
post(ctx: import("./@types
|
|
1506
|
+
post(ctx: import("./@types").RequestContext<object, Pick<{
|
|
1335
1507
|
content?: string;
|
|
1336
1508
|
approvalStatus?: import("./const").APPROVAL_STATUS;
|
|
1509
|
+
locale?: string;
|
|
1337
1510
|
author?: {
|
|
1338
1511
|
name?: string;
|
|
1339
1512
|
id?: number;
|
|
1340
1513
|
email?: string;
|
|
1341
1514
|
avatar?: string;
|
|
1342
1515
|
};
|
|
1343
|
-
threadOf?:
|
|
1344
|
-
relation?:
|
|
1516
|
+
threadOf?: string;
|
|
1517
|
+
relation?: `${string}::${string}.${string}`;
|
|
1345
1518
|
}, "relation">>): Promise<{
|
|
1346
1519
|
id?: number;
|
|
1347
1520
|
documentId?: string;
|
|
@@ -1360,7 +1533,10 @@ declare const _default: {
|
|
|
1360
1533
|
authorName?: string;
|
|
1361
1534
|
authorEmail?: string;
|
|
1362
1535
|
authorAvatar?: string;
|
|
1363
|
-
authorUser?: string
|
|
1536
|
+
authorUser?: string | {
|
|
1537
|
+
id?: number;
|
|
1538
|
+
email?: string;
|
|
1539
|
+
};
|
|
1364
1540
|
locale?: string;
|
|
1365
1541
|
gotThread?: boolean;
|
|
1366
1542
|
threadFirstItemId?: number;
|
|
@@ -1394,7 +1570,10 @@ declare const _default: {
|
|
|
1394
1570
|
authorName?: string;
|
|
1395
1571
|
authorEmail?: string;
|
|
1396
1572
|
authorAvatar?: string;
|
|
1397
|
-
authorUser?: string
|
|
1573
|
+
authorUser?: string | {
|
|
1574
|
+
id?: number;
|
|
1575
|
+
email?: string;
|
|
1576
|
+
};
|
|
1398
1577
|
locale?: string;
|
|
1399
1578
|
gotThread?: boolean;
|
|
1400
1579
|
threadFirstItemId?: number;
|
|
@@ -1412,44 +1591,20 @@ declare const _default: {
|
|
|
1412
1591
|
author?: any;
|
|
1413
1592
|
};
|
|
1414
1593
|
}>;
|
|
1415
|
-
findAllFlat(ctx: import("./@types
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
} | {
|
|
1430
|
-
$lt?: string;
|
|
1431
|
-
} | {
|
|
1432
|
-
$lte?: string;
|
|
1433
|
-
} | {
|
|
1434
|
-
$startsWith?: string;
|
|
1435
|
-
} | {
|
|
1436
|
-
$startsWithi?: string;
|
|
1437
|
-
} | {
|
|
1438
|
-
$endsWith?: string;
|
|
1439
|
-
} | {
|
|
1440
|
-
$endsWithi?: string;
|
|
1441
|
-
} | {
|
|
1442
|
-
$contains?: string;
|
|
1443
|
-
} | {
|
|
1444
|
-
$containsi?: string;
|
|
1445
|
-
} | {
|
|
1446
|
-
$notContains?: string;
|
|
1447
|
-
} | {
|
|
1448
|
-
$notContainsi?: string;
|
|
1449
|
-
} | {
|
|
1450
|
-
$notNull?: boolean;
|
|
1451
|
-
}>[];
|
|
1452
|
-
$or?: Record<string, string | number | {
|
|
1594
|
+
findAllFlat(ctx: import("./@types").RequestContext<object, Pick<{
|
|
1595
|
+
sort?: string;
|
|
1596
|
+
locale?: string;
|
|
1597
|
+
pagination?: {
|
|
1598
|
+
page?: number;
|
|
1599
|
+
pageSize?: number;
|
|
1600
|
+
withCount?: boolean;
|
|
1601
|
+
};
|
|
1602
|
+
relation?: `${string}::${string}.${string}`;
|
|
1603
|
+
populate?: Record<string, boolean | {
|
|
1604
|
+
populate?: boolean;
|
|
1605
|
+
}>;
|
|
1606
|
+
filters?: {
|
|
1607
|
+
id?: string | number | {
|
|
1453
1608
|
$eq?: string;
|
|
1454
1609
|
} | {
|
|
1455
1610
|
$eqi?: string;
|
|
@@ -1483,10 +1638,7 @@ declare const _default: {
|
|
|
1483
1638
|
$notContainsi?: string;
|
|
1484
1639
|
} | {
|
|
1485
1640
|
$notNull?: boolean;
|
|
1486
|
-
}
|
|
1487
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
1488
|
-
sort?: string;
|
|
1489
|
-
filter?: {
|
|
1641
|
+
};
|
|
1490
1642
|
content?: string | number | {
|
|
1491
1643
|
$eq?: string;
|
|
1492
1644
|
} | {
|
|
@@ -1628,15 +1780,6 @@ declare const _default: {
|
|
|
1628
1780
|
$notNull?: boolean;
|
|
1629
1781
|
};
|
|
1630
1782
|
};
|
|
1631
|
-
pagination?: {
|
|
1632
|
-
page?: number;
|
|
1633
|
-
pageSize?: number;
|
|
1634
|
-
withCount?: boolean;
|
|
1635
|
-
};
|
|
1636
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
1637
|
-
populate?: Record<string, boolean | {
|
|
1638
|
-
populate?: boolean;
|
|
1639
|
-
}>;
|
|
1640
1783
|
limit?: number;
|
|
1641
1784
|
fields?: string[];
|
|
1642
1785
|
omit?: string[];
|
|
@@ -1661,7 +1804,10 @@ declare const _default: {
|
|
|
1661
1804
|
authorName?: string;
|
|
1662
1805
|
authorEmail?: string;
|
|
1663
1806
|
authorAvatar?: string;
|
|
1664
|
-
authorUser?: string
|
|
1807
|
+
authorUser?: string | {
|
|
1808
|
+
id?: number;
|
|
1809
|
+
email?: string;
|
|
1810
|
+
};
|
|
1665
1811
|
locale?: string;
|
|
1666
1812
|
gotThread?: boolean;
|
|
1667
1813
|
threadFirstItemId?: number;
|
|
@@ -1695,7 +1841,10 @@ declare const _default: {
|
|
|
1695
1841
|
authorName?: string;
|
|
1696
1842
|
authorEmail?: string;
|
|
1697
1843
|
authorAvatar?: string;
|
|
1698
|
-
authorUser?: string
|
|
1844
|
+
authorUser?: string | {
|
|
1845
|
+
id?: number;
|
|
1846
|
+
email?: string;
|
|
1847
|
+
};
|
|
1699
1848
|
locale?: string;
|
|
1700
1849
|
gotThread?: boolean;
|
|
1701
1850
|
threadFirstItemId?: number;
|
|
@@ -1724,6 +1873,8 @@ declare const _default: {
|
|
|
1724
1873
|
approvalStatus?: string;
|
|
1725
1874
|
related?: {
|
|
1726
1875
|
id?: number;
|
|
1876
|
+
documentId?: string;
|
|
1877
|
+
locale?: string;
|
|
1727
1878
|
uid?: string;
|
|
1728
1879
|
requireCommentsApproval?: boolean;
|
|
1729
1880
|
};
|
|
@@ -1734,7 +1885,10 @@ declare const _default: {
|
|
|
1734
1885
|
authorName?: string;
|
|
1735
1886
|
authorEmail?: string;
|
|
1736
1887
|
authorAvatar?: string;
|
|
1737
|
-
authorUser?: string
|
|
1888
|
+
authorUser?: string | {
|
|
1889
|
+
id?: number;
|
|
1890
|
+
email?: string;
|
|
1891
|
+
};
|
|
1738
1892
|
locale?: string;
|
|
1739
1893
|
gotThread?: boolean;
|
|
1740
1894
|
threadFirstItemId?: number;
|
|
@@ -1768,7 +1922,10 @@ declare const _default: {
|
|
|
1768
1922
|
authorName?: string;
|
|
1769
1923
|
authorEmail?: string;
|
|
1770
1924
|
authorAvatar?: string;
|
|
1771
|
-
authorUser?: string
|
|
1925
|
+
authorUser?: string | {
|
|
1926
|
+
id?: number;
|
|
1927
|
+
email?: string;
|
|
1928
|
+
};
|
|
1772
1929
|
locale?: string;
|
|
1773
1930
|
gotThread?: boolean;
|
|
1774
1931
|
threadFirstItemId?: number;
|
|
@@ -1793,44 +1950,15 @@ declare const _default: {
|
|
|
1793
1950
|
total?: number;
|
|
1794
1951
|
};
|
|
1795
1952
|
}>;
|
|
1796
|
-
findAllInHierarchy(ctx: import("./@types
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
$nei?: string;
|
|
1806
|
-
} | {
|
|
1807
|
-
$gt?: string;
|
|
1808
|
-
} | {
|
|
1809
|
-
$gte?: string;
|
|
1810
|
-
} | {
|
|
1811
|
-
$lt?: string;
|
|
1812
|
-
} | {
|
|
1813
|
-
$lte?: string;
|
|
1814
|
-
} | {
|
|
1815
|
-
$startsWith?: string;
|
|
1816
|
-
} | {
|
|
1817
|
-
$startsWithi?: string;
|
|
1818
|
-
} | {
|
|
1819
|
-
$endsWith?: string;
|
|
1820
|
-
} | {
|
|
1821
|
-
$endsWithi?: string;
|
|
1822
|
-
} | {
|
|
1823
|
-
$contains?: string;
|
|
1824
|
-
} | {
|
|
1825
|
-
$containsi?: string;
|
|
1826
|
-
} | {
|
|
1827
|
-
$notContains?: string;
|
|
1828
|
-
} | {
|
|
1829
|
-
$notContainsi?: string;
|
|
1830
|
-
} | {
|
|
1831
|
-
$notNull?: boolean;
|
|
1832
|
-
}>[];
|
|
1833
|
-
$or?: Record<string, string | number | {
|
|
1953
|
+
findAllInHierarchy(ctx: import("./@types").RequestContext<object, Pick<{
|
|
1954
|
+
sort?: string;
|
|
1955
|
+
locale?: string;
|
|
1956
|
+
relation?: `${string}::${string}.${string}`;
|
|
1957
|
+
populate?: Record<string, boolean | {
|
|
1958
|
+
populate?: boolean;
|
|
1959
|
+
}>;
|
|
1960
|
+
filters?: {
|
|
1961
|
+
id?: string | number | {
|
|
1834
1962
|
$eq?: string;
|
|
1835
1963
|
} | {
|
|
1836
1964
|
$eqi?: string;
|
|
@@ -1864,10 +1992,7 @@ declare const _default: {
|
|
|
1864
1992
|
$notContainsi?: string;
|
|
1865
1993
|
} | {
|
|
1866
1994
|
$notNull?: boolean;
|
|
1867
|
-
}
|
|
1868
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
1869
|
-
sort?: string;
|
|
1870
|
-
filter?: {
|
|
1995
|
+
};
|
|
1871
1996
|
content?: string | number | {
|
|
1872
1997
|
$eq?: string;
|
|
1873
1998
|
} | {
|
|
@@ -2009,10 +2134,6 @@ declare const _default: {
|
|
|
2009
2134
|
$notNull?: boolean;
|
|
2010
2135
|
};
|
|
2011
2136
|
};
|
|
2012
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
2013
|
-
populate?: Record<string, boolean | {
|
|
2014
|
-
populate?: boolean;
|
|
2015
|
-
}>;
|
|
2016
2137
|
limit?: number;
|
|
2017
2138
|
fields?: string[];
|
|
2018
2139
|
omit?: string[];
|
|
@@ -2038,7 +2159,10 @@ declare const _default: {
|
|
|
2038
2159
|
authorName?: string;
|
|
2039
2160
|
authorEmail?: string;
|
|
2040
2161
|
authorAvatar?: string;
|
|
2041
|
-
authorUser?: string
|
|
2162
|
+
authorUser?: string | {
|
|
2163
|
+
id?: number;
|
|
2164
|
+
email?: string;
|
|
2165
|
+
};
|
|
2042
2166
|
locale?: string;
|
|
2043
2167
|
gotThread?: boolean;
|
|
2044
2168
|
threadFirstItemId?: number;
|
|
@@ -2072,7 +2196,10 @@ declare const _default: {
|
|
|
2072
2196
|
authorName?: string;
|
|
2073
2197
|
authorEmail?: string;
|
|
2074
2198
|
authorAvatar?: string;
|
|
2075
|
-
authorUser?: string
|
|
2199
|
+
authorUser?: string | {
|
|
2200
|
+
id?: number;
|
|
2201
|
+
email?: string;
|
|
2202
|
+
};
|
|
2076
2203
|
locale?: string;
|
|
2077
2204
|
gotThread?: boolean;
|
|
2078
2205
|
threadFirstItemId?: number;
|
|
@@ -2090,9 +2217,21 @@ declare const _default: {
|
|
|
2090
2217
|
author?: any;
|
|
2091
2218
|
};
|
|
2092
2219
|
}[]>;
|
|
2093
|
-
findAllPerAuthor(ctx: import("./@types
|
|
2094
|
-
|
|
2095
|
-
|
|
2220
|
+
findAllPerAuthor(ctx: import("./@types").RequestContext<object, Pick<{
|
|
2221
|
+
type?: string;
|
|
2222
|
+
sort?: string;
|
|
2223
|
+
authorId?: string | number;
|
|
2224
|
+
locale?: string;
|
|
2225
|
+
pagination?: {
|
|
2226
|
+
page?: number;
|
|
2227
|
+
pageSize?: number;
|
|
2228
|
+
withCount?: boolean;
|
|
2229
|
+
};
|
|
2230
|
+
populate?: Record<string, boolean | {
|
|
2231
|
+
populate?: boolean;
|
|
2232
|
+
}>;
|
|
2233
|
+
filters?: {
|
|
2234
|
+
id?: string | number | {
|
|
2096
2235
|
$eq?: string;
|
|
2097
2236
|
} | {
|
|
2098
2237
|
$eqi?: string;
|
|
@@ -2126,8 +2265,8 @@ declare const _default: {
|
|
|
2126
2265
|
$notContainsi?: string;
|
|
2127
2266
|
} | {
|
|
2128
2267
|
$notNull?: boolean;
|
|
2129
|
-
}
|
|
2130
|
-
|
|
2268
|
+
};
|
|
2269
|
+
content?: string | number | {
|
|
2131
2270
|
$eq?: string;
|
|
2132
2271
|
} | {
|
|
2133
2272
|
$eqi?: string;
|
|
@@ -2161,45 +2300,142 @@ declare const _default: {
|
|
|
2161
2300
|
$notContainsi?: string;
|
|
2162
2301
|
} | {
|
|
2163
2302
|
$notNull?: boolean;
|
|
2164
|
-
}
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2303
|
+
};
|
|
2304
|
+
createdAt?: string | number | {
|
|
2305
|
+
$eq?: string;
|
|
2306
|
+
} | {
|
|
2307
|
+
$eqi?: string;
|
|
2308
|
+
} | {
|
|
2309
|
+
$ne?: string;
|
|
2310
|
+
} | {
|
|
2311
|
+
$nei?: string;
|
|
2312
|
+
} | {
|
|
2313
|
+
$gt?: string;
|
|
2314
|
+
} | {
|
|
2315
|
+
$gte?: string;
|
|
2316
|
+
} | {
|
|
2317
|
+
$lt?: string;
|
|
2318
|
+
} | {
|
|
2319
|
+
$lte?: string;
|
|
2320
|
+
} | {
|
|
2321
|
+
$startsWith?: string;
|
|
2322
|
+
} | {
|
|
2323
|
+
$startsWithi?: string;
|
|
2324
|
+
} | {
|
|
2325
|
+
$endsWith?: string;
|
|
2326
|
+
} | {
|
|
2327
|
+
$endsWithi?: string;
|
|
2328
|
+
} | {
|
|
2329
|
+
$contains?: string;
|
|
2330
|
+
} | {
|
|
2331
|
+
$containsi?: string;
|
|
2332
|
+
} | {
|
|
2333
|
+
$notContains?: string;
|
|
2334
|
+
} | {
|
|
2335
|
+
$notContainsi?: string;
|
|
2336
|
+
} | {
|
|
2337
|
+
$notNull?: boolean;
|
|
2338
|
+
};
|
|
2339
|
+
updatedAt?: string | number | {
|
|
2340
|
+
$eq?: string;
|
|
2341
|
+
} | {
|
|
2342
|
+
$eqi?: string;
|
|
2343
|
+
} | {
|
|
2344
|
+
$ne?: string;
|
|
2345
|
+
} | {
|
|
2346
|
+
$nei?: string;
|
|
2347
|
+
} | {
|
|
2348
|
+
$gt?: string;
|
|
2349
|
+
} | {
|
|
2350
|
+
$gte?: string;
|
|
2351
|
+
} | {
|
|
2352
|
+
$lt?: string;
|
|
2353
|
+
} | {
|
|
2354
|
+
$lte?: string;
|
|
2355
|
+
} | {
|
|
2356
|
+
$startsWith?: string;
|
|
2357
|
+
} | {
|
|
2358
|
+
$startsWithi?: string;
|
|
2359
|
+
} | {
|
|
2360
|
+
$endsWith?: string;
|
|
2361
|
+
} | {
|
|
2362
|
+
$endsWithi?: string;
|
|
2363
|
+
} | {
|
|
2364
|
+
$contains?: string;
|
|
2365
|
+
} | {
|
|
2366
|
+
$containsi?: string;
|
|
2367
|
+
} | {
|
|
2368
|
+
$notContains?: string;
|
|
2369
|
+
} | {
|
|
2370
|
+
$notContainsi?: string;
|
|
2371
|
+
} | {
|
|
2372
|
+
$notNull?: boolean;
|
|
2373
|
+
};
|
|
2374
|
+
authorName?: string | number | {
|
|
2375
|
+
$eq?: string;
|
|
2376
|
+
} | {
|
|
2377
|
+
$eqi?: string;
|
|
2378
|
+
} | {
|
|
2379
|
+
$ne?: string;
|
|
2380
|
+
} | {
|
|
2381
|
+
$nei?: string;
|
|
2382
|
+
} | {
|
|
2383
|
+
$gt?: string;
|
|
2384
|
+
} | {
|
|
2385
|
+
$gte?: string;
|
|
2386
|
+
} | {
|
|
2387
|
+
$lt?: string;
|
|
2388
|
+
} | {
|
|
2389
|
+
$lte?: string;
|
|
2390
|
+
} | {
|
|
2391
|
+
$startsWith?: string;
|
|
2392
|
+
} | {
|
|
2393
|
+
$startsWithi?: string;
|
|
2394
|
+
} | {
|
|
2395
|
+
$endsWith?: string;
|
|
2396
|
+
} | {
|
|
2397
|
+
$endsWithi?: string;
|
|
2398
|
+
} | {
|
|
2399
|
+
$contains?: string;
|
|
2400
|
+
} | {
|
|
2401
|
+
$containsi?: string;
|
|
2402
|
+
} | {
|
|
2403
|
+
$notContains?: string;
|
|
2404
|
+
} | {
|
|
2405
|
+
$notContainsi?: string;
|
|
2406
|
+
} | {
|
|
2407
|
+
$notNull?: boolean;
|
|
2408
|
+
};
|
|
2409
|
+
};
|
|
2410
|
+
limit?: number;
|
|
2411
|
+
fields?: string[];
|
|
2412
|
+
omit?: string[];
|
|
2413
|
+
isAdmin?: boolean;
|
|
2414
|
+
skip?: number;
|
|
2415
|
+
}, "type" | "authorId">>): Promise<{
|
|
2416
|
+
data: ({
|
|
2417
|
+
id?: number;
|
|
2418
|
+
documentId?: string;
|
|
2419
|
+
content?: string;
|
|
2420
|
+
blocked?: boolean;
|
|
2421
|
+
blockedThread?: boolean;
|
|
2422
|
+
blockReason?: string;
|
|
2423
|
+
isAdminComment?: boolean;
|
|
2424
|
+
removed?: boolean;
|
|
2425
|
+
approvalStatus?: string;
|
|
2426
|
+
related?: string;
|
|
2427
|
+
createdAt?: string;
|
|
2428
|
+
updatedAt?: string;
|
|
2429
|
+
publishedAt?: string;
|
|
2430
|
+
authorId?: string;
|
|
2431
|
+
authorName?: string;
|
|
2432
|
+
authorEmail?: string;
|
|
2433
|
+
authorAvatar?: string;
|
|
2434
|
+
authorUser?: string | {
|
|
2435
|
+
id?: number;
|
|
2436
|
+
email?: string;
|
|
2437
|
+
};
|
|
2438
|
+
locale?: string;
|
|
2203
2439
|
gotThread?: boolean;
|
|
2204
2440
|
threadFirstItemId?: number;
|
|
2205
2441
|
reports?: {
|
|
@@ -2231,7 +2467,10 @@ declare const _default: {
|
|
|
2231
2467
|
authorName?: string;
|
|
2232
2468
|
authorEmail?: string;
|
|
2233
2469
|
authorAvatar?: string;
|
|
2234
|
-
authorUser?: string
|
|
2470
|
+
authorUser?: string | {
|
|
2471
|
+
id?: number;
|
|
2472
|
+
email?: string;
|
|
2473
|
+
};
|
|
2235
2474
|
locale?: string;
|
|
2236
2475
|
gotThread?: boolean;
|
|
2237
2476
|
threadFirstItemId?: number;
|
|
@@ -2260,6 +2499,8 @@ declare const _default: {
|
|
|
2260
2499
|
approvalStatus?: string;
|
|
2261
2500
|
related?: {
|
|
2262
2501
|
id?: number;
|
|
2502
|
+
documentId?: string;
|
|
2503
|
+
locale?: string;
|
|
2263
2504
|
uid?: string;
|
|
2264
2505
|
requireCommentsApproval?: boolean;
|
|
2265
2506
|
};
|
|
@@ -2270,7 +2511,10 @@ declare const _default: {
|
|
|
2270
2511
|
authorName?: string;
|
|
2271
2512
|
authorEmail?: string;
|
|
2272
2513
|
authorAvatar?: string;
|
|
2273
|
-
authorUser?: string
|
|
2514
|
+
authorUser?: string | {
|
|
2515
|
+
id?: number;
|
|
2516
|
+
email?: string;
|
|
2517
|
+
};
|
|
2274
2518
|
locale?: string;
|
|
2275
2519
|
gotThread?: boolean;
|
|
2276
2520
|
threadFirstItemId?: number;
|
|
@@ -2303,7 +2547,10 @@ declare const _default: {
|
|
|
2303
2547
|
authorName?: string;
|
|
2304
2548
|
authorEmail?: string;
|
|
2305
2549
|
authorAvatar?: string;
|
|
2306
|
-
authorUser?: string
|
|
2550
|
+
authorUser?: string | {
|
|
2551
|
+
id?: number;
|
|
2552
|
+
email?: string;
|
|
2553
|
+
};
|
|
2307
2554
|
locale?: string;
|
|
2308
2555
|
gotThread?: boolean;
|
|
2309
2556
|
threadFirstItemId?: number;
|
|
@@ -2328,7 +2575,7 @@ declare const _default: {
|
|
|
2328
2575
|
total?: number;
|
|
2329
2576
|
};
|
|
2330
2577
|
}>;
|
|
2331
|
-
put(ctx: import("./@types
|
|
2578
|
+
put(ctx: import("./@types").RequestContext): Promise<{
|
|
2332
2579
|
id?: number;
|
|
2333
2580
|
documentId?: string;
|
|
2334
2581
|
content?: string;
|
|
@@ -2346,7 +2593,10 @@ declare const _default: {
|
|
|
2346
2593
|
authorName?: string;
|
|
2347
2594
|
authorEmail?: string;
|
|
2348
2595
|
authorAvatar?: string;
|
|
2349
|
-
authorUser?: string
|
|
2596
|
+
authorUser?: string | {
|
|
2597
|
+
id?: number;
|
|
2598
|
+
email?: string;
|
|
2599
|
+
};
|
|
2350
2600
|
locale?: string;
|
|
2351
2601
|
gotThread?: boolean;
|
|
2352
2602
|
threadFirstItemId?: number;
|
|
@@ -2380,7 +2630,10 @@ declare const _default: {
|
|
|
2380
2630
|
authorName?: string;
|
|
2381
2631
|
authorEmail?: string;
|
|
2382
2632
|
authorAvatar?: string;
|
|
2383
|
-
authorUser?: string
|
|
2633
|
+
authorUser?: string | {
|
|
2634
|
+
id?: number;
|
|
2635
|
+
email?: string;
|
|
2636
|
+
};
|
|
2384
2637
|
locale?: string;
|
|
2385
2638
|
gotThread?: boolean;
|
|
2386
2639
|
threadFirstItemId?: number;
|
|
@@ -2398,7 +2651,7 @@ declare const _default: {
|
|
|
2398
2651
|
author?: any;
|
|
2399
2652
|
};
|
|
2400
2653
|
}>;
|
|
2401
|
-
reportAbuse(ctx: import("./@types
|
|
2654
|
+
reportAbuse(ctx: import("./@types").RequestContext): Promise<{
|
|
2402
2655
|
related: {
|
|
2403
2656
|
id?: number;
|
|
2404
2657
|
documentId?: string;
|
|
@@ -2417,7 +2670,10 @@ declare const _default: {
|
|
|
2417
2670
|
authorName?: string;
|
|
2418
2671
|
authorEmail?: string;
|
|
2419
2672
|
authorAvatar?: string;
|
|
2420
|
-
authorUser?: string
|
|
2673
|
+
authorUser?: string | {
|
|
2674
|
+
id?: number;
|
|
2675
|
+
email?: string;
|
|
2676
|
+
};
|
|
2421
2677
|
locale?: string;
|
|
2422
2678
|
gotThread?: boolean;
|
|
2423
2679
|
threadFirstItemId?: number;
|
|
@@ -2451,7 +2707,10 @@ declare const _default: {
|
|
|
2451
2707
|
authorName?: string;
|
|
2452
2708
|
authorEmail?: string;
|
|
2453
2709
|
authorAvatar?: string;
|
|
2454
|
-
authorUser?: string
|
|
2710
|
+
authorUser?: string | {
|
|
2711
|
+
id?: number;
|
|
2712
|
+
email?: string;
|
|
2713
|
+
};
|
|
2455
2714
|
locale?: string;
|
|
2456
2715
|
gotThread?: boolean;
|
|
2457
2716
|
threadFirstItemId?: number;
|
|
@@ -2479,7 +2738,7 @@ declare const _default: {
|
|
|
2479
2738
|
reason?: string;
|
|
2480
2739
|
resolved?: boolean;
|
|
2481
2740
|
}>;
|
|
2482
|
-
removeComment(ctx: import("./@types
|
|
2741
|
+
removeComment(ctx: import("./@types").RequestContext): Promise<{
|
|
2483
2742
|
id?: number;
|
|
2484
2743
|
documentId?: string;
|
|
2485
2744
|
content?: string;
|
|
@@ -2497,7 +2756,10 @@ declare const _default: {
|
|
|
2497
2756
|
authorName?: string;
|
|
2498
2757
|
authorEmail?: string;
|
|
2499
2758
|
authorAvatar?: string;
|
|
2500
|
-
authorUser?: string
|
|
2759
|
+
authorUser?: string | {
|
|
2760
|
+
id?: number;
|
|
2761
|
+
email?: string;
|
|
2762
|
+
};
|
|
2501
2763
|
locale?: string;
|
|
2502
2764
|
gotThread?: boolean;
|
|
2503
2765
|
threadFirstItemId?: number;
|
|
@@ -2531,7 +2793,10 @@ declare const _default: {
|
|
|
2531
2793
|
authorName?: string;
|
|
2532
2794
|
authorEmail?: string;
|
|
2533
2795
|
authorAvatar?: string;
|
|
2534
|
-
authorUser?: string
|
|
2796
|
+
authorUser?: string | {
|
|
2797
|
+
id?: number;
|
|
2798
|
+
email?: string;
|
|
2799
|
+
};
|
|
2535
2800
|
locale?: string;
|
|
2536
2801
|
gotThread?: boolean;
|
|
2537
2802
|
threadFirstItemId?: number;
|
|
@@ -2550,8 +2815,8 @@ declare const _default: {
|
|
|
2550
2815
|
};
|
|
2551
2816
|
}>;
|
|
2552
2817
|
};
|
|
2553
|
-
settings: ({ strapi }: import("./@types
|
|
2554
|
-
get(ctx: import("./@types
|
|
2818
|
+
settings: ({ strapi }: import("./@types").StrapiContext) => {
|
|
2819
|
+
get(ctx: import("./@types").RequestContext): Promise<{
|
|
2555
2820
|
enabledCollections?: string[];
|
|
2556
2821
|
approvalFlow?: string[];
|
|
2557
2822
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2565,6 +2830,13 @@ declare const _default: {
|
|
|
2565
2830
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2566
2831
|
};
|
|
2567
2832
|
isGQLPluginEnabled?: boolean;
|
|
2833
|
+
gql?: {
|
|
2834
|
+
auth?: boolean;
|
|
2835
|
+
};
|
|
2836
|
+
client?: {
|
|
2837
|
+
url?: string;
|
|
2838
|
+
contactEmail?: string;
|
|
2839
|
+
};
|
|
2568
2840
|
} | Omit<{
|
|
2569
2841
|
enabledCollections?: string[];
|
|
2570
2842
|
approvalFlow?: string[];
|
|
@@ -2579,8 +2851,15 @@ declare const _default: {
|
|
|
2579
2851
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2580
2852
|
};
|
|
2581
2853
|
isGQLPluginEnabled?: boolean;
|
|
2854
|
+
gql?: {
|
|
2855
|
+
auth?: boolean;
|
|
2856
|
+
};
|
|
2857
|
+
client?: {
|
|
2858
|
+
url?: string;
|
|
2859
|
+
contactEmail?: string;
|
|
2860
|
+
};
|
|
2582
2861
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2583
|
-
getForSettingsPage(ctx: import("./@types
|
|
2862
|
+
getForSettingsPage(ctx: import("./@types").RequestContext): Promise<{
|
|
2584
2863
|
enabledCollections?: string[];
|
|
2585
2864
|
approvalFlow?: string[];
|
|
2586
2865
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2594,6 +2873,13 @@ declare const _default: {
|
|
|
2594
2873
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2595
2874
|
};
|
|
2596
2875
|
isGQLPluginEnabled?: boolean;
|
|
2876
|
+
gql?: {
|
|
2877
|
+
auth?: boolean;
|
|
2878
|
+
};
|
|
2879
|
+
client?: {
|
|
2880
|
+
url?: string;
|
|
2881
|
+
contactEmail?: string;
|
|
2882
|
+
};
|
|
2597
2883
|
} | Omit<{
|
|
2598
2884
|
enabledCollections?: string[];
|
|
2599
2885
|
approvalFlow?: string[];
|
|
@@ -2608,8 +2894,15 @@ declare const _default: {
|
|
|
2608
2894
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2609
2895
|
};
|
|
2610
2896
|
isGQLPluginEnabled?: boolean;
|
|
2897
|
+
gql?: {
|
|
2898
|
+
auth?: boolean;
|
|
2899
|
+
};
|
|
2900
|
+
client?: {
|
|
2901
|
+
url?: string;
|
|
2902
|
+
contactEmail?: string;
|
|
2903
|
+
};
|
|
2611
2904
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2612
|
-
update(ctx: import("./@types
|
|
2905
|
+
update(ctx: import("./@types").RequestContext<{
|
|
2613
2906
|
enabledCollections?: string[];
|
|
2614
2907
|
approvalFlow?: string[];
|
|
2615
2908
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2623,6 +2916,13 @@ declare const _default: {
|
|
|
2623
2916
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2624
2917
|
};
|
|
2625
2918
|
isGQLPluginEnabled?: boolean;
|
|
2919
|
+
gql?: {
|
|
2920
|
+
auth?: boolean;
|
|
2921
|
+
};
|
|
2922
|
+
client?: {
|
|
2923
|
+
url?: string;
|
|
2924
|
+
contactEmail?: string;
|
|
2925
|
+
};
|
|
2626
2926
|
}>): Promise<{
|
|
2627
2927
|
enabledCollections?: string[];
|
|
2628
2928
|
approvalFlow?: string[];
|
|
@@ -2637,6 +2937,13 @@ declare const _default: {
|
|
|
2637
2937
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2638
2938
|
};
|
|
2639
2939
|
isGQLPluginEnabled?: boolean;
|
|
2940
|
+
gql?: {
|
|
2941
|
+
auth?: boolean;
|
|
2942
|
+
};
|
|
2943
|
+
client?: {
|
|
2944
|
+
url?: string;
|
|
2945
|
+
contactEmail?: string;
|
|
2946
|
+
};
|
|
2640
2947
|
} | Omit<{
|
|
2641
2948
|
enabledCollections?: string[];
|
|
2642
2949
|
approvalFlow?: string[];
|
|
@@ -2651,8 +2958,15 @@ declare const _default: {
|
|
|
2651
2958
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2652
2959
|
};
|
|
2653
2960
|
isGQLPluginEnabled?: boolean;
|
|
2961
|
+
gql?: {
|
|
2962
|
+
auth?: boolean;
|
|
2963
|
+
};
|
|
2964
|
+
client?: {
|
|
2965
|
+
url?: string;
|
|
2966
|
+
contactEmail?: string;
|
|
2967
|
+
};
|
|
2654
2968
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2655
|
-
restore(ctx: import("./@types
|
|
2969
|
+
restore(ctx: import("./@types").RequestContext): Promise<{
|
|
2656
2970
|
enabledCollections?: string[];
|
|
2657
2971
|
approvalFlow?: string[];
|
|
2658
2972
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2666,6 +2980,13 @@ declare const _default: {
|
|
|
2666
2980
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2667
2981
|
};
|
|
2668
2982
|
isGQLPluginEnabled?: boolean;
|
|
2983
|
+
gql?: {
|
|
2984
|
+
auth?: boolean;
|
|
2985
|
+
};
|
|
2986
|
+
client?: {
|
|
2987
|
+
url?: string;
|
|
2988
|
+
contactEmail?: string;
|
|
2989
|
+
};
|
|
2669
2990
|
} | Omit<{
|
|
2670
2991
|
enabledCollections?: string[];
|
|
2671
2992
|
approvalFlow?: string[];
|
|
@@ -2680,24 +3001,31 @@ declare const _default: {
|
|
|
2680
3001
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2681
3002
|
};
|
|
2682
3003
|
isGQLPluginEnabled?: boolean;
|
|
3004
|
+
gql?: {
|
|
3005
|
+
auth?: boolean;
|
|
3006
|
+
};
|
|
3007
|
+
client?: {
|
|
3008
|
+
url?: string;
|
|
3009
|
+
contactEmail?: string;
|
|
3010
|
+
};
|
|
2683
3011
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
2684
|
-
restart(ctx: import("./@types
|
|
3012
|
+
restart(ctx: import("./@types").RequestContext): Promise<any>;
|
|
2685
3013
|
};
|
|
2686
3014
|
};
|
|
2687
3015
|
routes: {
|
|
2688
3016
|
'content-api': {
|
|
2689
3017
|
type: string;
|
|
2690
|
-
routes: import("./@types
|
|
3018
|
+
routes: import("./@types").StrapiRoute<"client">[];
|
|
2691
3019
|
};
|
|
2692
3020
|
admin: {
|
|
2693
3021
|
type: string;
|
|
2694
|
-
routes: (import("./@types
|
|
3022
|
+
routes: (import("./@types").StrapiRoute<"admin"> | import("./@types").StrapiRoute<"settings">)[];
|
|
2695
3023
|
};
|
|
2696
3024
|
};
|
|
2697
3025
|
services: {
|
|
2698
|
-
admin: ({ strapi }: import("./@types
|
|
3026
|
+
admin: ({ strapi }: import("./@types").StrapiContext) => {
|
|
2699
3027
|
getCommonService(): {
|
|
2700
|
-
getConfig<T_3 extends
|
|
3028
|
+
getConfig<T_3 extends string>(prop?: T_3, defaultValue?: import("./@types").PathValue<{
|
|
2701
3029
|
enabledCollections?: string[];
|
|
2702
3030
|
approvalFlow?: string[];
|
|
2703
3031
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2711,21 +3039,14 @@ declare const _default: {
|
|
|
2711
3039
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2712
3040
|
};
|
|
2713
3041
|
isGQLPluginEnabled?: boolean;
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
approvalFlow?: string[];
|
|
2717
|
-
entryLabel?: Record<string, string[]>;
|
|
2718
|
-
moderatorRoles?: string[];
|
|
2719
|
-
badWords?: boolean;
|
|
2720
|
-
blockedAuthorProps?: string[];
|
|
2721
|
-
isValidationEnabled?: boolean;
|
|
2722
|
-
reportReasons?: {
|
|
2723
|
-
BAD_LANGUAGE?: import("./const").REPORT_REASON.BAD_LANGUAGE;
|
|
2724
|
-
DISCRIMINATION?: import("./const").REPORT_REASON.DISCRIMINATION;
|
|
2725
|
-
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
3042
|
+
gql?: {
|
|
3043
|
+
auth?: boolean;
|
|
2726
3044
|
};
|
|
2727
|
-
|
|
2728
|
-
|
|
3045
|
+
client?: {
|
|
3046
|
+
url?: string;
|
|
3047
|
+
contactEmail?: string;
|
|
3048
|
+
};
|
|
3049
|
+
}, T_3>, useLocal?: boolean): Promise<import("./@types").PathValue<{
|
|
2729
3050
|
enabledCollections?: string[];
|
|
2730
3051
|
approvalFlow?: string[];
|
|
2731
3052
|
entryLabel?: Record<string, string[]>;
|
|
@@ -2739,10 +3060,17 @@ declare const _default: {
|
|
|
2739
3060
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
2740
3061
|
};
|
|
2741
3062
|
isGQLPluginEnabled?: boolean;
|
|
2742
|
-
|
|
3063
|
+
gql?: {
|
|
3064
|
+
auth?: boolean;
|
|
3065
|
+
};
|
|
3066
|
+
client?: {
|
|
3067
|
+
url?: string;
|
|
3068
|
+
contactEmail?: string;
|
|
3069
|
+
};
|
|
3070
|
+
}, T_3>>;
|
|
2743
3071
|
parseRelationString(relation: string): {
|
|
2744
3072
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
2745
|
-
relatedId: string
|
|
3073
|
+
relatedId: string;
|
|
2746
3074
|
};
|
|
2747
3075
|
isValidUserContext<T_4 extends {
|
|
2748
3076
|
id?: string | number;
|
|
@@ -2765,7 +3093,10 @@ declare const _default: {
|
|
|
2765
3093
|
authorName?: string;
|
|
2766
3094
|
authorEmail?: string;
|
|
2767
3095
|
authorAvatar?: string;
|
|
2768
|
-
authorUser?: string
|
|
3096
|
+
authorUser?: string | {
|
|
3097
|
+
id?: number;
|
|
3098
|
+
email?: string;
|
|
3099
|
+
};
|
|
2769
3100
|
locale?: string;
|
|
2770
3101
|
gotThread?: boolean;
|
|
2771
3102
|
threadFirstItemId?: number;
|
|
@@ -2799,7 +3130,10 @@ declare const _default: {
|
|
|
2799
3130
|
authorName?: string;
|
|
2800
3131
|
authorEmail?: string;
|
|
2801
3132
|
authorAvatar?: string;
|
|
2802
|
-
authorUser?: string
|
|
3133
|
+
authorUser?: string | {
|
|
3134
|
+
id?: number;
|
|
3135
|
+
email?: string;
|
|
3136
|
+
};
|
|
2803
3137
|
locale?: string;
|
|
2804
3138
|
gotThread?: boolean;
|
|
2805
3139
|
threadFirstItemId?: number;
|
|
@@ -2828,6 +3162,8 @@ declare const _default: {
|
|
|
2828
3162
|
approvalStatus?: string;
|
|
2829
3163
|
related?: {
|
|
2830
3164
|
id?: number;
|
|
3165
|
+
documentId?: string;
|
|
3166
|
+
locale?: string;
|
|
2831
3167
|
uid?: string;
|
|
2832
3168
|
requireCommentsApproval?: boolean;
|
|
2833
3169
|
};
|
|
@@ -2838,7 +3174,10 @@ declare const _default: {
|
|
|
2838
3174
|
authorName?: string;
|
|
2839
3175
|
authorEmail?: string;
|
|
2840
3176
|
authorAvatar?: string;
|
|
2841
|
-
authorUser?: string
|
|
3177
|
+
authorUser?: string | {
|
|
3178
|
+
id?: number;
|
|
3179
|
+
email?: string;
|
|
3180
|
+
};
|
|
2842
3181
|
locale?: string;
|
|
2843
3182
|
gotThread?: boolean;
|
|
2844
3183
|
threadFirstItemId?: number;
|
|
@@ -2872,7 +3211,10 @@ declare const _default: {
|
|
|
2872
3211
|
authorName?: string;
|
|
2873
3212
|
authorEmail?: string;
|
|
2874
3213
|
authorAvatar?: string;
|
|
2875
|
-
authorUser?: string
|
|
3214
|
+
authorUser?: string | {
|
|
3215
|
+
id?: number;
|
|
3216
|
+
email?: string;
|
|
3217
|
+
};
|
|
2876
3218
|
locale?: string;
|
|
2877
3219
|
gotThread?: boolean;
|
|
2878
3220
|
threadFirstItemId?: number;
|
|
@@ -2907,7 +3249,10 @@ declare const _default: {
|
|
|
2907
3249
|
authorName?: string;
|
|
2908
3250
|
authorEmail?: string;
|
|
2909
3251
|
authorAvatar?: string;
|
|
2910
|
-
authorUser?: string
|
|
3252
|
+
authorUser?: string | {
|
|
3253
|
+
id?: number;
|
|
3254
|
+
email?: string;
|
|
3255
|
+
};
|
|
2911
3256
|
locale?: string;
|
|
2912
3257
|
gotThread?: boolean;
|
|
2913
3258
|
threadFirstItemId?: number;
|
|
@@ -2941,7 +3286,10 @@ declare const _default: {
|
|
|
2941
3286
|
authorName?: string;
|
|
2942
3287
|
authorEmail?: string;
|
|
2943
3288
|
authorAvatar?: string;
|
|
2944
|
-
authorUser?: string
|
|
3289
|
+
authorUser?: string | {
|
|
3290
|
+
id?: number;
|
|
3291
|
+
email?: string;
|
|
3292
|
+
};
|
|
2945
3293
|
locale?: string;
|
|
2946
3294
|
gotThread?: boolean;
|
|
2947
3295
|
threadFirstItemId?: number;
|
|
@@ -2959,44 +3307,20 @@ declare const _default: {
|
|
|
2959
3307
|
author?: any;
|
|
2960
3308
|
};
|
|
2961
3309
|
};
|
|
2962
|
-
findAllFlat({ fields, limit, skip, sort,
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
} | {
|
|
2977
|
-
$lt?: string;
|
|
2978
|
-
} | {
|
|
2979
|
-
$lte?: string;
|
|
2980
|
-
} | {
|
|
2981
|
-
$startsWith?: string;
|
|
2982
|
-
} | {
|
|
2983
|
-
$startsWithi?: string;
|
|
2984
|
-
} | {
|
|
2985
|
-
$endsWith?: string;
|
|
2986
|
-
} | {
|
|
2987
|
-
$endsWithi?: string;
|
|
2988
|
-
} | {
|
|
2989
|
-
$contains?: string;
|
|
2990
|
-
} | {
|
|
2991
|
-
$containsi?: string;
|
|
2992
|
-
} | {
|
|
2993
|
-
$notContains?: string;
|
|
2994
|
-
} | {
|
|
2995
|
-
$notContainsi?: string;
|
|
2996
|
-
} | {
|
|
2997
|
-
$notNull?: boolean;
|
|
2998
|
-
}>[];
|
|
2999
|
-
$or?: Record<string, string | number | {
|
|
3310
|
+
findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
|
|
3311
|
+
sort?: string;
|
|
3312
|
+
locale?: string;
|
|
3313
|
+
pagination?: {
|
|
3314
|
+
page?: number;
|
|
3315
|
+
pageSize?: number;
|
|
3316
|
+
withCount?: boolean;
|
|
3317
|
+
};
|
|
3318
|
+
relation?: `${string}::${string}.${string}`;
|
|
3319
|
+
populate?: Record<string, boolean | {
|
|
3320
|
+
populate?: boolean;
|
|
3321
|
+
}>;
|
|
3322
|
+
filters?: {
|
|
3323
|
+
id?: string | number | {
|
|
3000
3324
|
$eq?: string;
|
|
3001
3325
|
} | {
|
|
3002
3326
|
$eqi?: string;
|
|
@@ -3030,10 +3354,7 @@ declare const _default: {
|
|
|
3030
3354
|
$notContainsi?: string;
|
|
3031
3355
|
} | {
|
|
3032
3356
|
$notNull?: boolean;
|
|
3033
|
-
}
|
|
3034
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
3035
|
-
sort?: string;
|
|
3036
|
-
filter?: {
|
|
3357
|
+
};
|
|
3037
3358
|
content?: string | number | {
|
|
3038
3359
|
$eq?: string;
|
|
3039
3360
|
} | {
|
|
@@ -3175,15 +3496,6 @@ declare const _default: {
|
|
|
3175
3496
|
$notNull?: boolean;
|
|
3176
3497
|
};
|
|
3177
3498
|
};
|
|
3178
|
-
pagination?: {
|
|
3179
|
-
page?: number;
|
|
3180
|
-
pageSize?: number;
|
|
3181
|
-
withCount?: boolean;
|
|
3182
|
-
};
|
|
3183
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
3184
|
-
populate?: Record<string, boolean | {
|
|
3185
|
-
populate?: boolean;
|
|
3186
|
-
}>;
|
|
3187
3499
|
limit?: number;
|
|
3188
3500
|
fields?: string[];
|
|
3189
3501
|
omit?: string[];
|
|
@@ -3208,7 +3520,10 @@ declare const _default: {
|
|
|
3208
3520
|
authorName?: string;
|
|
3209
3521
|
authorEmail?: string;
|
|
3210
3522
|
authorAvatar?: string;
|
|
3211
|
-
authorUser?: string
|
|
3523
|
+
authorUser?: string | {
|
|
3524
|
+
id?: number;
|
|
3525
|
+
email?: string;
|
|
3526
|
+
};
|
|
3212
3527
|
locale?: string;
|
|
3213
3528
|
gotThread?: boolean;
|
|
3214
3529
|
threadFirstItemId?: number;
|
|
@@ -3242,7 +3557,10 @@ declare const _default: {
|
|
|
3242
3557
|
authorName?: string;
|
|
3243
3558
|
authorEmail?: string;
|
|
3244
3559
|
authorAvatar?: string;
|
|
3245
|
-
authorUser?: string
|
|
3560
|
+
authorUser?: string | {
|
|
3561
|
+
id?: number;
|
|
3562
|
+
email?: string;
|
|
3563
|
+
};
|
|
3246
3564
|
locale?: string;
|
|
3247
3565
|
gotThread?: boolean;
|
|
3248
3566
|
threadFirstItemId?: number;
|
|
@@ -3271,6 +3589,8 @@ declare const _default: {
|
|
|
3271
3589
|
approvalStatus?: string;
|
|
3272
3590
|
related?: {
|
|
3273
3591
|
id?: number;
|
|
3592
|
+
documentId?: string;
|
|
3593
|
+
locale?: string;
|
|
3274
3594
|
uid?: string;
|
|
3275
3595
|
requireCommentsApproval?: boolean;
|
|
3276
3596
|
};
|
|
@@ -3281,7 +3601,10 @@ declare const _default: {
|
|
|
3281
3601
|
authorName?: string;
|
|
3282
3602
|
authorEmail?: string;
|
|
3283
3603
|
authorAvatar?: string;
|
|
3284
|
-
authorUser?: string
|
|
3604
|
+
authorUser?: string | {
|
|
3605
|
+
id?: number;
|
|
3606
|
+
email?: string;
|
|
3607
|
+
};
|
|
3285
3608
|
locale?: string;
|
|
3286
3609
|
gotThread?: boolean;
|
|
3287
3610
|
threadFirstItemId?: number;
|
|
@@ -3315,7 +3638,10 @@ declare const _default: {
|
|
|
3315
3638
|
authorName?: string;
|
|
3316
3639
|
authorEmail?: string;
|
|
3317
3640
|
authorAvatar?: string;
|
|
3318
|
-
authorUser?: string
|
|
3641
|
+
authorUser?: string | {
|
|
3642
|
+
id?: number;
|
|
3643
|
+
email?: string;
|
|
3644
|
+
};
|
|
3319
3645
|
locale?: string;
|
|
3320
3646
|
gotThread?: boolean;
|
|
3321
3647
|
threadFirstItemId?: number;
|
|
@@ -3340,44 +3666,15 @@ declare const _default: {
|
|
|
3340
3666
|
total?: number;
|
|
3341
3667
|
};
|
|
3342
3668
|
}>;
|
|
3343
|
-
findAllInHierarchy({
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
$nei?: string;
|
|
3353
|
-
} | {
|
|
3354
|
-
$gt?: string;
|
|
3355
|
-
} | {
|
|
3356
|
-
$gte?: string;
|
|
3357
|
-
} | {
|
|
3358
|
-
$lt?: string;
|
|
3359
|
-
} | {
|
|
3360
|
-
$lte?: string;
|
|
3361
|
-
} | {
|
|
3362
|
-
$startsWith?: string;
|
|
3363
|
-
} | {
|
|
3364
|
-
$startsWithi?: string;
|
|
3365
|
-
} | {
|
|
3366
|
-
$endsWith?: string;
|
|
3367
|
-
} | {
|
|
3368
|
-
$endsWithi?: string;
|
|
3369
|
-
} | {
|
|
3370
|
-
$contains?: string;
|
|
3371
|
-
} | {
|
|
3372
|
-
$containsi?: string;
|
|
3373
|
-
} | {
|
|
3374
|
-
$notContains?: string;
|
|
3375
|
-
} | {
|
|
3376
|
-
$notContainsi?: string;
|
|
3377
|
-
} | {
|
|
3378
|
-
$notNull?: boolean;
|
|
3379
|
-
}>[];
|
|
3380
|
-
$or?: Record<string, string | number | {
|
|
3669
|
+
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
3670
|
+
sort?: string;
|
|
3671
|
+
locale?: string;
|
|
3672
|
+
relation?: `${string}::${string}.${string}`;
|
|
3673
|
+
populate?: Record<string, boolean | {
|
|
3674
|
+
populate?: boolean;
|
|
3675
|
+
}>;
|
|
3676
|
+
filters?: {
|
|
3677
|
+
id?: string | number | {
|
|
3381
3678
|
$eq?: string;
|
|
3382
3679
|
} | {
|
|
3383
3680
|
$eqi?: string;
|
|
@@ -3411,10 +3708,7 @@ declare const _default: {
|
|
|
3411
3708
|
$notContainsi?: string;
|
|
3412
3709
|
} | {
|
|
3413
3710
|
$notNull?: boolean;
|
|
3414
|
-
}
|
|
3415
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
3416
|
-
sort?: string;
|
|
3417
|
-
filter?: {
|
|
3711
|
+
};
|
|
3418
3712
|
content?: string | number | {
|
|
3419
3713
|
$eq?: string;
|
|
3420
3714
|
} | {
|
|
@@ -3556,10 +3850,6 @@ declare const _default: {
|
|
|
3556
3850
|
$notNull?: boolean;
|
|
3557
3851
|
};
|
|
3558
3852
|
};
|
|
3559
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
3560
|
-
populate?: Record<string, boolean | {
|
|
3561
|
-
populate?: boolean;
|
|
3562
|
-
}>;
|
|
3563
3853
|
limit?: number;
|
|
3564
3854
|
fields?: string[];
|
|
3565
3855
|
omit?: string[];
|
|
@@ -3585,7 +3875,10 @@ declare const _default: {
|
|
|
3585
3875
|
authorName?: string;
|
|
3586
3876
|
authorEmail?: string;
|
|
3587
3877
|
authorAvatar?: string;
|
|
3588
|
-
authorUser?: string
|
|
3878
|
+
authorUser?: string | {
|
|
3879
|
+
id?: number;
|
|
3880
|
+
email?: string;
|
|
3881
|
+
};
|
|
3589
3882
|
locale?: string;
|
|
3590
3883
|
gotThread?: boolean;
|
|
3591
3884
|
threadFirstItemId?: number;
|
|
@@ -3619,7 +3912,10 @@ declare const _default: {
|
|
|
3619
3912
|
authorName?: string;
|
|
3620
3913
|
authorEmail?: string;
|
|
3621
3914
|
authorAvatar?: string;
|
|
3622
|
-
authorUser?: string
|
|
3915
|
+
authorUser?: string | {
|
|
3916
|
+
id?: number;
|
|
3917
|
+
email?: string;
|
|
3918
|
+
};
|
|
3623
3919
|
locale?: string;
|
|
3624
3920
|
gotThread?: boolean;
|
|
3625
3921
|
threadFirstItemId?: number;
|
|
@@ -3655,7 +3951,10 @@ declare const _default: {
|
|
|
3655
3951
|
authorName?: string;
|
|
3656
3952
|
authorEmail?: string;
|
|
3657
3953
|
authorAvatar?: string;
|
|
3658
|
-
authorUser?: string
|
|
3954
|
+
authorUser?: string | {
|
|
3955
|
+
id?: number;
|
|
3956
|
+
email?: string;
|
|
3957
|
+
};
|
|
3659
3958
|
locale?: string;
|
|
3660
3959
|
gotThread?: boolean;
|
|
3661
3960
|
threadFirstItemId?: number;
|
|
@@ -3689,7 +3988,10 @@ declare const _default: {
|
|
|
3689
3988
|
authorName?: string;
|
|
3690
3989
|
authorEmail?: string;
|
|
3691
3990
|
authorAvatar?: string;
|
|
3692
|
-
authorUser?: string
|
|
3991
|
+
authorUser?: string | {
|
|
3992
|
+
id?: number;
|
|
3993
|
+
email?: string;
|
|
3994
|
+
};
|
|
3693
3995
|
locale?: string;
|
|
3694
3996
|
gotThread?: boolean;
|
|
3695
3997
|
threadFirstItemId?: number;
|
|
@@ -3725,7 +4027,10 @@ declare const _default: {
|
|
|
3725
4027
|
authorName?: string;
|
|
3726
4028
|
authorEmail?: string;
|
|
3727
4029
|
authorAvatar?: string;
|
|
3728
|
-
authorUser?: string
|
|
4030
|
+
authorUser?: string | {
|
|
4031
|
+
id?: number;
|
|
4032
|
+
email?: string;
|
|
4033
|
+
};
|
|
3729
4034
|
locale?: string;
|
|
3730
4035
|
gotThread?: boolean;
|
|
3731
4036
|
threadFirstItemId?: number;
|
|
@@ -3759,7 +4064,10 @@ declare const _default: {
|
|
|
3759
4064
|
authorName?: string;
|
|
3760
4065
|
authorEmail?: string;
|
|
3761
4066
|
authorAvatar?: string;
|
|
3762
|
-
authorUser?: string
|
|
4067
|
+
authorUser?: string | {
|
|
4068
|
+
id?: number;
|
|
4069
|
+
email?: string;
|
|
4070
|
+
};
|
|
3763
4071
|
locale?: string;
|
|
3764
4072
|
gotThread?: boolean;
|
|
3765
4073
|
threadFirstItemId?: number;
|
|
@@ -3795,7 +4103,10 @@ declare const _default: {
|
|
|
3795
4103
|
authorName?: string;
|
|
3796
4104
|
authorEmail?: string;
|
|
3797
4105
|
authorAvatar?: string;
|
|
3798
|
-
authorUser?: string
|
|
4106
|
+
authorUser?: string | {
|
|
4107
|
+
id?: number;
|
|
4108
|
+
email?: string;
|
|
4109
|
+
};
|
|
3799
4110
|
locale?: string;
|
|
3800
4111
|
gotThread?: boolean;
|
|
3801
4112
|
threadFirstItemId?: number;
|
|
@@ -3829,7 +4140,10 @@ declare const _default: {
|
|
|
3829
4140
|
authorName?: string;
|
|
3830
4141
|
authorEmail?: string;
|
|
3831
4142
|
authorAvatar?: string;
|
|
3832
|
-
authorUser?: string
|
|
4143
|
+
authorUser?: string | {
|
|
4144
|
+
id?: number;
|
|
4145
|
+
email?: string;
|
|
4146
|
+
};
|
|
3833
4147
|
locale?: string;
|
|
3834
4148
|
gotThread?: boolean;
|
|
3835
4149
|
threadFirstItemId?: number;
|
|
@@ -3864,7 +4178,10 @@ declare const _default: {
|
|
|
3864
4178
|
authorName?: string;
|
|
3865
4179
|
authorEmail?: string;
|
|
3866
4180
|
authorAvatar?: string;
|
|
3867
|
-
authorUser?: string
|
|
4181
|
+
authorUser?: string | {
|
|
4182
|
+
id?: number;
|
|
4183
|
+
email?: string;
|
|
4184
|
+
};
|
|
3868
4185
|
locale?: string;
|
|
3869
4186
|
gotThread?: boolean;
|
|
3870
4187
|
threadFirstItemId?: number;
|
|
@@ -3898,7 +4215,10 @@ declare const _default: {
|
|
|
3898
4215
|
authorName?: string;
|
|
3899
4216
|
authorEmail?: string;
|
|
3900
4217
|
authorAvatar?: string;
|
|
3901
|
-
authorUser?: string
|
|
4218
|
+
authorUser?: string | {
|
|
4219
|
+
id?: number;
|
|
4220
|
+
email?: string;
|
|
4221
|
+
};
|
|
3902
4222
|
locale?: string;
|
|
3903
4223
|
gotThread?: boolean;
|
|
3904
4224
|
threadFirstItemId?: number;
|
|
@@ -3916,9 +4236,21 @@ declare const _default: {
|
|
|
3916
4236
|
author?: any;
|
|
3917
4237
|
};
|
|
3918
4238
|
}>;
|
|
3919
|
-
findAllPerAuthor({
|
|
3920
|
-
|
|
3921
|
-
|
|
4239
|
+
findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
|
|
4240
|
+
type?: string;
|
|
4241
|
+
sort?: string;
|
|
4242
|
+
authorId?: string | number;
|
|
4243
|
+
locale?: string;
|
|
4244
|
+
pagination?: {
|
|
4245
|
+
page?: number;
|
|
4246
|
+
pageSize?: number;
|
|
4247
|
+
withCount?: boolean;
|
|
4248
|
+
};
|
|
4249
|
+
populate?: Record<string, boolean | {
|
|
4250
|
+
populate?: boolean;
|
|
4251
|
+
}>;
|
|
4252
|
+
filters?: {
|
|
4253
|
+
id?: string | number | {
|
|
3922
4254
|
$eq?: string;
|
|
3923
4255
|
} | {
|
|
3924
4256
|
$eqi?: string;
|
|
@@ -3952,8 +4284,8 @@ declare const _default: {
|
|
|
3952
4284
|
$notContainsi?: string;
|
|
3953
4285
|
} | {
|
|
3954
4286
|
$notNull?: boolean;
|
|
3955
|
-
}
|
|
3956
|
-
|
|
4287
|
+
};
|
|
4288
|
+
content?: string | number | {
|
|
3957
4289
|
$eq?: string;
|
|
3958
4290
|
} | {
|
|
3959
4291
|
$eqi?: string;
|
|
@@ -3987,19 +4319,113 @@ declare const _default: {
|
|
|
3987
4319
|
$notContainsi?: string;
|
|
3988
4320
|
} | {
|
|
3989
4321
|
$notNull?: boolean;
|
|
3990
|
-
}
|
|
3991
|
-
|
|
3992
|
-
|
|
3993
|
-
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
4322
|
+
};
|
|
4323
|
+
createdAt?: string | number | {
|
|
4324
|
+
$eq?: string;
|
|
4325
|
+
} | {
|
|
4326
|
+
$eqi?: string;
|
|
4327
|
+
} | {
|
|
4328
|
+
$ne?: string;
|
|
4329
|
+
} | {
|
|
4330
|
+
$nei?: string;
|
|
4331
|
+
} | {
|
|
4332
|
+
$gt?: string;
|
|
4333
|
+
} | {
|
|
4334
|
+
$gte?: string;
|
|
4335
|
+
} | {
|
|
4336
|
+
$lt?: string;
|
|
4337
|
+
} | {
|
|
4338
|
+
$lte?: string;
|
|
4339
|
+
} | {
|
|
4340
|
+
$startsWith?: string;
|
|
4341
|
+
} | {
|
|
4342
|
+
$startsWithi?: string;
|
|
4343
|
+
} | {
|
|
4344
|
+
$endsWith?: string;
|
|
4345
|
+
} | {
|
|
4346
|
+
$endsWithi?: string;
|
|
4347
|
+
} | {
|
|
4348
|
+
$contains?: string;
|
|
4349
|
+
} | {
|
|
4350
|
+
$containsi?: string;
|
|
4351
|
+
} | {
|
|
4352
|
+
$notContains?: string;
|
|
4353
|
+
} | {
|
|
4354
|
+
$notContainsi?: string;
|
|
4355
|
+
} | {
|
|
4356
|
+
$notNull?: boolean;
|
|
4357
|
+
};
|
|
4358
|
+
updatedAt?: string | number | {
|
|
4359
|
+
$eq?: string;
|
|
4360
|
+
} | {
|
|
4361
|
+
$eqi?: string;
|
|
4362
|
+
} | {
|
|
4363
|
+
$ne?: string;
|
|
4364
|
+
} | {
|
|
4365
|
+
$nei?: string;
|
|
4366
|
+
} | {
|
|
4367
|
+
$gt?: string;
|
|
4368
|
+
} | {
|
|
4369
|
+
$gte?: string;
|
|
4370
|
+
} | {
|
|
4371
|
+
$lt?: string;
|
|
4372
|
+
} | {
|
|
4373
|
+
$lte?: string;
|
|
4374
|
+
} | {
|
|
4375
|
+
$startsWith?: string;
|
|
4376
|
+
} | {
|
|
4377
|
+
$startsWithi?: string;
|
|
4378
|
+
} | {
|
|
4379
|
+
$endsWith?: string;
|
|
4380
|
+
} | {
|
|
4381
|
+
$endsWithi?: string;
|
|
4382
|
+
} | {
|
|
4383
|
+
$contains?: string;
|
|
4384
|
+
} | {
|
|
4385
|
+
$containsi?: string;
|
|
4386
|
+
} | {
|
|
4387
|
+
$notContains?: string;
|
|
4388
|
+
} | {
|
|
4389
|
+
$notContainsi?: string;
|
|
4390
|
+
} | {
|
|
4391
|
+
$notNull?: boolean;
|
|
4392
|
+
};
|
|
4393
|
+
authorName?: string | number | {
|
|
4394
|
+
$eq?: string;
|
|
4395
|
+
} | {
|
|
4396
|
+
$eqi?: string;
|
|
4397
|
+
} | {
|
|
4398
|
+
$ne?: string;
|
|
4399
|
+
} | {
|
|
4400
|
+
$nei?: string;
|
|
4401
|
+
} | {
|
|
4402
|
+
$gt?: string;
|
|
4403
|
+
} | {
|
|
4404
|
+
$gte?: string;
|
|
4405
|
+
} | {
|
|
4406
|
+
$lt?: string;
|
|
4407
|
+
} | {
|
|
4408
|
+
$lte?: string;
|
|
4409
|
+
} | {
|
|
4410
|
+
$startsWith?: string;
|
|
4411
|
+
} | {
|
|
4412
|
+
$startsWithi?: string;
|
|
4413
|
+
} | {
|
|
4414
|
+
$endsWith?: string;
|
|
4415
|
+
} | {
|
|
4416
|
+
$endsWithi?: string;
|
|
4417
|
+
} | {
|
|
4418
|
+
$contains?: string;
|
|
4419
|
+
} | {
|
|
4420
|
+
$containsi?: string;
|
|
4421
|
+
} | {
|
|
4422
|
+
$notContains?: string;
|
|
4423
|
+
} | {
|
|
4424
|
+
$notContainsi?: string;
|
|
4425
|
+
} | {
|
|
4426
|
+
$notNull?: boolean;
|
|
4427
|
+
};
|
|
3999
4428
|
};
|
|
4000
|
-
populate?: Record<string, boolean | {
|
|
4001
|
-
populate?: boolean;
|
|
4002
|
-
}>;
|
|
4003
4429
|
limit?: number;
|
|
4004
4430
|
fields?: string[];
|
|
4005
4431
|
omit?: string[];
|
|
@@ -4024,7 +4450,10 @@ declare const _default: {
|
|
|
4024
4450
|
authorName?: string;
|
|
4025
4451
|
authorEmail?: string;
|
|
4026
4452
|
authorAvatar?: string;
|
|
4027
|
-
authorUser?: string
|
|
4453
|
+
authorUser?: string | {
|
|
4454
|
+
id?: number;
|
|
4455
|
+
email?: string;
|
|
4456
|
+
};
|
|
4028
4457
|
locale?: string;
|
|
4029
4458
|
gotThread?: boolean;
|
|
4030
4459
|
threadFirstItemId?: number;
|
|
@@ -4057,7 +4486,10 @@ declare const _default: {
|
|
|
4057
4486
|
authorName?: string;
|
|
4058
4487
|
authorEmail?: string;
|
|
4059
4488
|
authorAvatar?: string;
|
|
4060
|
-
authorUser?: string
|
|
4489
|
+
authorUser?: string | {
|
|
4490
|
+
id?: number;
|
|
4491
|
+
email?: string;
|
|
4492
|
+
};
|
|
4061
4493
|
locale?: string;
|
|
4062
4494
|
gotThread?: boolean;
|
|
4063
4495
|
threadFirstItemId?: number;
|
|
@@ -4086,6 +4518,8 @@ declare const _default: {
|
|
|
4086
4518
|
approvalStatus?: string;
|
|
4087
4519
|
related?: {
|
|
4088
4520
|
id?: number;
|
|
4521
|
+
documentId?: string;
|
|
4522
|
+
locale?: string;
|
|
4089
4523
|
uid?: string;
|
|
4090
4524
|
requireCommentsApproval?: boolean;
|
|
4091
4525
|
};
|
|
@@ -4096,7 +4530,10 @@ declare const _default: {
|
|
|
4096
4530
|
authorName?: string;
|
|
4097
4531
|
authorEmail?: string;
|
|
4098
4532
|
authorAvatar?: string;
|
|
4099
|
-
authorUser?: string
|
|
4533
|
+
authorUser?: string | {
|
|
4534
|
+
id?: number;
|
|
4535
|
+
email?: string;
|
|
4536
|
+
};
|
|
4100
4537
|
locale?: string;
|
|
4101
4538
|
gotThread?: boolean;
|
|
4102
4539
|
threadFirstItemId?: number;
|
|
@@ -4129,7 +4566,10 @@ declare const _default: {
|
|
|
4129
4566
|
authorName?: string;
|
|
4130
4567
|
authorEmail?: string;
|
|
4131
4568
|
authorAvatar?: string;
|
|
4132
|
-
authorUser?: string
|
|
4569
|
+
authorUser?: string | {
|
|
4570
|
+
id?: number;
|
|
4571
|
+
email?: string;
|
|
4572
|
+
};
|
|
4133
4573
|
locale?: string;
|
|
4134
4574
|
gotThread?: boolean;
|
|
4135
4575
|
threadFirstItemId?: number;
|
|
@@ -4172,7 +4612,10 @@ declare const _default: {
|
|
|
4172
4612
|
authorName?: string;
|
|
4173
4613
|
authorEmail?: string;
|
|
4174
4614
|
authorAvatar?: string;
|
|
4175
|
-
authorUser?: string
|
|
4615
|
+
authorUser?: string | {
|
|
4616
|
+
id?: number;
|
|
4617
|
+
email?: string;
|
|
4618
|
+
};
|
|
4176
4619
|
locale?: string;
|
|
4177
4620
|
gotThread?: boolean;
|
|
4178
4621
|
threadFirstItemId?: number;
|
|
@@ -4206,7 +4649,10 @@ declare const _default: {
|
|
|
4206
4649
|
authorName?: string;
|
|
4207
4650
|
authorEmail?: string;
|
|
4208
4651
|
authorAvatar?: string;
|
|
4209
|
-
authorUser?: string
|
|
4652
|
+
authorUser?: string | {
|
|
4653
|
+
id?: number;
|
|
4654
|
+
email?: string;
|
|
4655
|
+
};
|
|
4210
4656
|
locale?: string;
|
|
4211
4657
|
gotThread?: boolean;
|
|
4212
4658
|
threadFirstItemId?: number;
|
|
@@ -4225,6 +4671,8 @@ declare const _default: {
|
|
|
4225
4671
|
};
|
|
4226
4672
|
}[]): Promise<{
|
|
4227
4673
|
id?: number;
|
|
4674
|
+
documentId?: string;
|
|
4675
|
+
locale?: string;
|
|
4228
4676
|
uid?: string;
|
|
4229
4677
|
requireCommentsApproval?: boolean;
|
|
4230
4678
|
}[]>;
|
|
@@ -4246,7 +4694,10 @@ declare const _default: {
|
|
|
4246
4694
|
authorName?: string;
|
|
4247
4695
|
authorEmail?: string;
|
|
4248
4696
|
authorAvatar?: string;
|
|
4249
|
-
authorUser?: string
|
|
4697
|
+
authorUser?: string | {
|
|
4698
|
+
id?: number;
|
|
4699
|
+
email?: string;
|
|
4700
|
+
};
|
|
4250
4701
|
locale?: string;
|
|
4251
4702
|
gotThread?: boolean;
|
|
4252
4703
|
threadFirstItemId?: number;
|
|
@@ -4280,7 +4731,10 @@ declare const _default: {
|
|
|
4280
4731
|
authorName?: string;
|
|
4281
4732
|
authorEmail?: string;
|
|
4282
4733
|
authorAvatar?: string;
|
|
4283
|
-
authorUser?: string
|
|
4734
|
+
authorUser?: string | {
|
|
4735
|
+
id?: number;
|
|
4736
|
+
email?: string;
|
|
4737
|
+
};
|
|
4284
4738
|
locale?: string;
|
|
4285
4739
|
gotThread?: boolean;
|
|
4286
4740
|
threadFirstItemId?: number;
|
|
@@ -4299,6 +4753,8 @@ declare const _default: {
|
|
|
4299
4753
|
};
|
|
4300
4754
|
}, relatedEntities?: {
|
|
4301
4755
|
id?: number;
|
|
4756
|
+
documentId?: string;
|
|
4757
|
+
locale?: string;
|
|
4302
4758
|
uid?: string;
|
|
4303
4759
|
requireCommentsApproval?: boolean;
|
|
4304
4760
|
}[]): {
|
|
@@ -4313,6 +4769,8 @@ declare const _default: {
|
|
|
4313
4769
|
approvalStatus?: string;
|
|
4314
4770
|
related?: {
|
|
4315
4771
|
id?: number;
|
|
4772
|
+
documentId?: string;
|
|
4773
|
+
locale?: string;
|
|
4316
4774
|
uid?: string;
|
|
4317
4775
|
requireCommentsApproval?: boolean;
|
|
4318
4776
|
};
|
|
@@ -4323,7 +4781,10 @@ declare const _default: {
|
|
|
4323
4781
|
authorName?: string;
|
|
4324
4782
|
authorEmail?: string;
|
|
4325
4783
|
authorAvatar?: string;
|
|
4326
|
-
authorUser?: string
|
|
4784
|
+
authorUser?: string | {
|
|
4785
|
+
id?: number;
|
|
4786
|
+
email?: string;
|
|
4787
|
+
};
|
|
4327
4788
|
locale?: string;
|
|
4328
4789
|
gotThread?: boolean;
|
|
4329
4790
|
threadFirstItemId?: number;
|
|
@@ -4357,7 +4818,10 @@ declare const _default: {
|
|
|
4357
4818
|
authorName?: string;
|
|
4358
4819
|
authorEmail?: string;
|
|
4359
4820
|
authorAvatar?: string;
|
|
4360
|
-
authorUser?: string
|
|
4821
|
+
authorUser?: string | {
|
|
4822
|
+
id?: number;
|
|
4823
|
+
email?: string;
|
|
4824
|
+
};
|
|
4361
4825
|
locale?: string;
|
|
4362
4826
|
gotThread?: boolean;
|
|
4363
4827
|
threadFirstItemId?: number;
|
|
@@ -4375,7 +4839,7 @@ declare const _default: {
|
|
|
4375
4839
|
author?: any;
|
|
4376
4840
|
};
|
|
4377
4841
|
};
|
|
4378
|
-
modifiedNestedNestedComments<T_5 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
|
|
4842
|
+
modifiedNestedNestedComments<T_5 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_5, value: {
|
|
4379
4843
|
id?: number;
|
|
4380
4844
|
documentId?: string;
|
|
4381
4845
|
content?: string;
|
|
@@ -4393,7 +4857,10 @@ declare const _default: {
|
|
|
4393
4857
|
authorName?: string;
|
|
4394
4858
|
authorEmail?: string;
|
|
4395
4859
|
authorAvatar?: string;
|
|
4396
|
-
authorUser?: string
|
|
4860
|
+
authorUser?: string | {
|
|
4861
|
+
id?: number;
|
|
4862
|
+
email?: string;
|
|
4863
|
+
};
|
|
4397
4864
|
locale?: string;
|
|
4398
4865
|
gotThread?: boolean;
|
|
4399
4866
|
threadFirstItemId?: number;
|
|
@@ -4427,7 +4894,10 @@ declare const _default: {
|
|
|
4427
4894
|
authorName?: string;
|
|
4428
4895
|
authorEmail?: string;
|
|
4429
4896
|
authorAvatar?: string;
|
|
4430
|
-
authorUser?: string
|
|
4897
|
+
authorUser?: string | {
|
|
4898
|
+
id?: number;
|
|
4899
|
+
email?: string;
|
|
4900
|
+
};
|
|
4431
4901
|
locale?: string;
|
|
4432
4902
|
gotThread?: boolean;
|
|
4433
4903
|
threadFirstItemId?: number;
|
|
@@ -4444,7 +4914,7 @@ declare const _default: {
|
|
|
4444
4914
|
}[];
|
|
4445
4915
|
author?: any;
|
|
4446
4916
|
};
|
|
4447
|
-
}[T_5]): Promise<boolean>;
|
|
4917
|
+
}[T_5], deepLimit?: number): Promise<boolean>;
|
|
4448
4918
|
checkBadWords(content: string): Promise<string>;
|
|
4449
4919
|
registerLifecycleHook(): void;
|
|
4450
4920
|
runLifecycleHook(): Promise<void>;
|
|
@@ -4473,6 +4943,8 @@ declare const _default: {
|
|
|
4473
4943
|
approvalStatus?: string;
|
|
4474
4944
|
related?: {
|
|
4475
4945
|
id?: number;
|
|
4946
|
+
documentId?: string;
|
|
4947
|
+
locale?: string;
|
|
4476
4948
|
uid?: string;
|
|
4477
4949
|
requireCommentsApproval?: boolean;
|
|
4478
4950
|
};
|
|
@@ -4483,7 +4955,10 @@ declare const _default: {
|
|
|
4483
4955
|
authorName?: string;
|
|
4484
4956
|
authorEmail?: string;
|
|
4485
4957
|
authorAvatar?: string;
|
|
4486
|
-
authorUser?: string
|
|
4958
|
+
authorUser?: string | {
|
|
4959
|
+
id?: number;
|
|
4960
|
+
email?: string;
|
|
4961
|
+
};
|
|
4487
4962
|
locale?: string;
|
|
4488
4963
|
gotThread?: boolean;
|
|
4489
4964
|
threadFirstItemId?: number;
|
|
@@ -4517,7 +4992,10 @@ declare const _default: {
|
|
|
4517
4992
|
authorName?: string;
|
|
4518
4993
|
authorEmail?: string;
|
|
4519
4994
|
authorAvatar?: string;
|
|
4520
|
-
authorUser?: string
|
|
4995
|
+
authorUser?: string | {
|
|
4996
|
+
id?: number;
|
|
4997
|
+
email?: string;
|
|
4998
|
+
};
|
|
4521
4999
|
locale?: string;
|
|
4522
5000
|
gotThread?: boolean;
|
|
4523
5001
|
threadFirstItemId?: number;
|
|
@@ -4560,7 +5038,10 @@ declare const _default: {
|
|
|
4560
5038
|
authorName?: string;
|
|
4561
5039
|
authorEmail?: string;
|
|
4562
5040
|
authorAvatar?: string;
|
|
4563
|
-
authorUser?: string
|
|
5041
|
+
authorUser?: string | {
|
|
5042
|
+
id?: number;
|
|
5043
|
+
email?: string;
|
|
5044
|
+
};
|
|
4564
5045
|
locale?: string;
|
|
4565
5046
|
gotThread?: boolean;
|
|
4566
5047
|
threadFirstItemId?: number;
|
|
@@ -4594,7 +5075,10 @@ declare const _default: {
|
|
|
4594
5075
|
authorName?: string;
|
|
4595
5076
|
authorEmail?: string;
|
|
4596
5077
|
authorAvatar?: string;
|
|
4597
|
-
authorUser?: string
|
|
5078
|
+
authorUser?: string | {
|
|
5079
|
+
id?: number;
|
|
5080
|
+
email?: string;
|
|
5081
|
+
};
|
|
4598
5082
|
locale?: string;
|
|
4599
5083
|
gotThread?: boolean;
|
|
4600
5084
|
threadFirstItemId?: number;
|
|
@@ -4625,7 +5109,8 @@ declare const _default: {
|
|
|
4625
5109
|
}): Promise<{
|
|
4626
5110
|
entity: {
|
|
4627
5111
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
4628
|
-
|
|
5112
|
+
documentId: string;
|
|
5113
|
+
id: number;
|
|
4629
5114
|
};
|
|
4630
5115
|
selected: {
|
|
4631
5116
|
id?: number;
|
|
@@ -4645,7 +5130,10 @@ declare const _default: {
|
|
|
4645
5130
|
authorName?: string;
|
|
4646
5131
|
authorEmail?: string;
|
|
4647
5132
|
authorAvatar?: string;
|
|
4648
|
-
authorUser?: string
|
|
5133
|
+
authorUser?: string | {
|
|
5134
|
+
id?: number;
|
|
5135
|
+
email?: string;
|
|
5136
|
+
};
|
|
4649
5137
|
locale?: string;
|
|
4650
5138
|
gotThread?: boolean;
|
|
4651
5139
|
threadFirstItemId?: number;
|
|
@@ -4679,7 +5167,10 @@ declare const _default: {
|
|
|
4679
5167
|
authorName?: string;
|
|
4680
5168
|
authorEmail?: string;
|
|
4681
5169
|
authorAvatar?: string;
|
|
4682
|
-
authorUser?: string
|
|
5170
|
+
authorUser?: string | {
|
|
5171
|
+
id?: number;
|
|
5172
|
+
email?: string;
|
|
5173
|
+
};
|
|
4683
5174
|
locale?: string;
|
|
4684
5175
|
gotThread?: boolean;
|
|
4685
5176
|
threadFirstItemId?: number;
|
|
@@ -4715,7 +5206,10 @@ declare const _default: {
|
|
|
4715
5206
|
authorName?: string;
|
|
4716
5207
|
authorEmail?: string;
|
|
4717
5208
|
authorAvatar?: string;
|
|
4718
|
-
authorUser?: string
|
|
5209
|
+
authorUser?: string | {
|
|
5210
|
+
id?: number;
|
|
5211
|
+
email?: string;
|
|
5212
|
+
};
|
|
4719
5213
|
locale?: string;
|
|
4720
5214
|
gotThread?: boolean;
|
|
4721
5215
|
threadFirstItemId?: number;
|
|
@@ -4749,7 +5243,10 @@ declare const _default: {
|
|
|
4749
5243
|
authorName?: string;
|
|
4750
5244
|
authorEmail?: string;
|
|
4751
5245
|
authorAvatar?: string;
|
|
4752
|
-
authorUser?: string
|
|
5246
|
+
authorUser?: string | {
|
|
5247
|
+
id?: number;
|
|
5248
|
+
email?: string;
|
|
5249
|
+
};
|
|
4753
5250
|
locale?: string;
|
|
4754
5251
|
gotThread?: boolean;
|
|
4755
5252
|
threadFirstItemId?: number;
|
|
@@ -4768,7 +5265,7 @@ declare const _default: {
|
|
|
4768
5265
|
};
|
|
4769
5266
|
}[];
|
|
4770
5267
|
}>;
|
|
4771
|
-
changeBlockedComment(id: import("./@types
|
|
5268
|
+
changeBlockedComment(id: import("./@types").Id, forceStatus?: boolean): Promise<{
|
|
4772
5269
|
id?: number;
|
|
4773
5270
|
documentId?: string;
|
|
4774
5271
|
content?: string;
|
|
@@ -4786,7 +5283,10 @@ declare const _default: {
|
|
|
4786
5283
|
authorName?: string;
|
|
4787
5284
|
authorEmail?: string;
|
|
4788
5285
|
authorAvatar?: string;
|
|
4789
|
-
authorUser?: string
|
|
5286
|
+
authorUser?: string | {
|
|
5287
|
+
id?: number;
|
|
5288
|
+
email?: string;
|
|
5289
|
+
};
|
|
4790
5290
|
locale?: string;
|
|
4791
5291
|
gotThread?: boolean;
|
|
4792
5292
|
threadFirstItemId?: number;
|
|
@@ -4820,7 +5320,10 @@ declare const _default: {
|
|
|
4820
5320
|
authorName?: string;
|
|
4821
5321
|
authorEmail?: string;
|
|
4822
5322
|
authorAvatar?: string;
|
|
4823
|
-
authorUser?: string
|
|
5323
|
+
authorUser?: string | {
|
|
5324
|
+
id?: number;
|
|
5325
|
+
email?: string;
|
|
5326
|
+
};
|
|
4824
5327
|
locale?: string;
|
|
4825
5328
|
gotThread?: boolean;
|
|
4826
5329
|
threadFirstItemId?: number;
|
|
@@ -4838,7 +5341,7 @@ declare const _default: {
|
|
|
4838
5341
|
author?: any;
|
|
4839
5342
|
};
|
|
4840
5343
|
}>;
|
|
4841
|
-
deleteComment(id: import("./@types
|
|
5344
|
+
deleteComment(id: import("./@types").Id): Promise<{
|
|
4842
5345
|
id?: number;
|
|
4843
5346
|
documentId?: string;
|
|
4844
5347
|
content?: string;
|
|
@@ -4856,7 +5359,10 @@ declare const _default: {
|
|
|
4856
5359
|
authorName?: string;
|
|
4857
5360
|
authorEmail?: string;
|
|
4858
5361
|
authorAvatar?: string;
|
|
4859
|
-
authorUser?: string
|
|
5362
|
+
authorUser?: string | {
|
|
5363
|
+
id?: number;
|
|
5364
|
+
email?: string;
|
|
5365
|
+
};
|
|
4860
5366
|
locale?: string;
|
|
4861
5367
|
gotThread?: boolean;
|
|
4862
5368
|
threadFirstItemId?: number;
|
|
@@ -4890,7 +5396,10 @@ declare const _default: {
|
|
|
4890
5396
|
authorName?: string;
|
|
4891
5397
|
authorEmail?: string;
|
|
4892
5398
|
authorAvatar?: string;
|
|
4893
|
-
authorUser?: string
|
|
5399
|
+
authorUser?: string | {
|
|
5400
|
+
id?: number;
|
|
5401
|
+
email?: string;
|
|
5402
|
+
};
|
|
4894
5403
|
locale?: string;
|
|
4895
5404
|
gotThread?: boolean;
|
|
4896
5405
|
threadFirstItemId?: number;
|
|
@@ -4908,7 +5417,7 @@ declare const _default: {
|
|
|
4908
5417
|
author?: any;
|
|
4909
5418
|
};
|
|
4910
5419
|
}>;
|
|
4911
|
-
blockCommentThread(id: import("./@types
|
|
5420
|
+
blockCommentThread(id: import("./@types").Id, forceStatus?: boolean): Promise<{
|
|
4912
5421
|
id?: number;
|
|
4913
5422
|
documentId?: string;
|
|
4914
5423
|
content?: string;
|
|
@@ -4926,7 +5435,10 @@ declare const _default: {
|
|
|
4926
5435
|
authorName?: string;
|
|
4927
5436
|
authorEmail?: string;
|
|
4928
5437
|
authorAvatar?: string;
|
|
4929
|
-
authorUser?: string
|
|
5438
|
+
authorUser?: string | {
|
|
5439
|
+
id?: number;
|
|
5440
|
+
email?: string;
|
|
5441
|
+
};
|
|
4930
5442
|
locale?: string;
|
|
4931
5443
|
gotThread?: boolean;
|
|
4932
5444
|
threadFirstItemId?: number;
|
|
@@ -4960,7 +5472,10 @@ declare const _default: {
|
|
|
4960
5472
|
authorName?: string;
|
|
4961
5473
|
authorEmail?: string;
|
|
4962
5474
|
authorAvatar?: string;
|
|
4963
|
-
authorUser?: string
|
|
5475
|
+
authorUser?: string | {
|
|
5476
|
+
id?: number;
|
|
5477
|
+
email?: string;
|
|
5478
|
+
};
|
|
4964
5479
|
locale?: string;
|
|
4965
5480
|
gotThread?: boolean;
|
|
4966
5481
|
threadFirstItemId?: number;
|
|
@@ -4978,7 +5493,7 @@ declare const _default: {
|
|
|
4978
5493
|
author?: any;
|
|
4979
5494
|
};
|
|
4980
5495
|
}>;
|
|
4981
|
-
approveComment(id: import("./@types
|
|
5496
|
+
approveComment(id: import("./@types").Id): Promise<{
|
|
4982
5497
|
id?: number;
|
|
4983
5498
|
documentId?: string;
|
|
4984
5499
|
content?: string;
|
|
@@ -4996,7 +5511,10 @@ declare const _default: {
|
|
|
4996
5511
|
authorName?: string;
|
|
4997
5512
|
authorEmail?: string;
|
|
4998
5513
|
authorAvatar?: string;
|
|
4999
|
-
authorUser?: string
|
|
5514
|
+
authorUser?: string | {
|
|
5515
|
+
id?: number;
|
|
5516
|
+
email?: string;
|
|
5517
|
+
};
|
|
5000
5518
|
locale?: string;
|
|
5001
5519
|
gotThread?: boolean;
|
|
5002
5520
|
threadFirstItemId?: number;
|
|
@@ -5030,7 +5548,10 @@ declare const _default: {
|
|
|
5030
5548
|
authorName?: string;
|
|
5031
5549
|
authorEmail?: string;
|
|
5032
5550
|
authorAvatar?: string;
|
|
5033
|
-
authorUser?: string
|
|
5551
|
+
authorUser?: string | {
|
|
5552
|
+
id?: number;
|
|
5553
|
+
email?: string;
|
|
5554
|
+
};
|
|
5034
5555
|
locale?: string;
|
|
5035
5556
|
gotThread?: boolean;
|
|
5036
5557
|
threadFirstItemId?: number;
|
|
@@ -5048,7 +5569,7 @@ declare const _default: {
|
|
|
5048
5569
|
author?: any;
|
|
5049
5570
|
};
|
|
5050
5571
|
}>;
|
|
5051
|
-
rejectComment(id: import("./@types
|
|
5572
|
+
rejectComment(id: import("./@types").Id): Promise<{
|
|
5052
5573
|
id?: number;
|
|
5053
5574
|
documentId?: string;
|
|
5054
5575
|
content?: string;
|
|
@@ -5066,7 +5587,10 @@ declare const _default: {
|
|
|
5066
5587
|
authorName?: string;
|
|
5067
5588
|
authorEmail?: string;
|
|
5068
5589
|
authorAvatar?: string;
|
|
5069
|
-
authorUser?: string
|
|
5590
|
+
authorUser?: string | {
|
|
5591
|
+
id?: number;
|
|
5592
|
+
email?: string;
|
|
5593
|
+
};
|
|
5070
5594
|
locale?: string;
|
|
5071
5595
|
gotThread?: boolean;
|
|
5072
5596
|
threadFirstItemId?: number;
|
|
@@ -5100,7 +5624,10 @@ declare const _default: {
|
|
|
5100
5624
|
authorName?: string;
|
|
5101
5625
|
authorEmail?: string;
|
|
5102
5626
|
authorAvatar?: string;
|
|
5103
|
-
authorUser?: string
|
|
5627
|
+
authorUser?: string | {
|
|
5628
|
+
id?: number;
|
|
5629
|
+
email?: string;
|
|
5630
|
+
};
|
|
5104
5631
|
locale?: string;
|
|
5105
5632
|
gotThread?: boolean;
|
|
5106
5633
|
threadFirstItemId?: number;
|
|
@@ -5118,7 +5645,7 @@ declare const _default: {
|
|
|
5118
5645
|
author?: any;
|
|
5119
5646
|
};
|
|
5120
5647
|
}>;
|
|
5121
|
-
blockNestedThreads(id: import("./@types
|
|
5648
|
+
blockNestedThreads(id: import("./@types").Id, status: boolean): Promise<boolean>;
|
|
5122
5649
|
resolveAbuseReport({ id: commentId, reportId, }: {
|
|
5123
5650
|
id?: number;
|
|
5124
5651
|
reportId?: number;
|
|
@@ -5137,7 +5664,7 @@ declare const _default: {
|
|
|
5137
5664
|
id?: number;
|
|
5138
5665
|
reportIds?: number[];
|
|
5139
5666
|
}): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
5140
|
-
resolveAllAbuseReportsForComment(id: import("./@types
|
|
5667
|
+
resolveAllAbuseReportsForComment(id: import("./@types").Id): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
5141
5668
|
resolveAllAbuseReportsForThread(commentId: number): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
5142
5669
|
resolveMultipleAbuseReports({ reportIds, }: {
|
|
5143
5670
|
reportIds?: number[];
|
|
@@ -5170,7 +5697,10 @@ declare const _default: {
|
|
|
5170
5697
|
authorName?: string;
|
|
5171
5698
|
authorEmail?: string;
|
|
5172
5699
|
authorAvatar?: string;
|
|
5173
|
-
authorUser?: string
|
|
5700
|
+
authorUser?: string | {
|
|
5701
|
+
id?: number;
|
|
5702
|
+
email?: string;
|
|
5703
|
+
};
|
|
5174
5704
|
locale?: string;
|
|
5175
5705
|
gotThread?: boolean;
|
|
5176
5706
|
threadFirstItemId?: number;
|
|
@@ -5204,7 +5734,10 @@ declare const _default: {
|
|
|
5204
5734
|
authorName?: string;
|
|
5205
5735
|
authorEmail?: string;
|
|
5206
5736
|
authorAvatar?: string;
|
|
5207
|
-
authorUser?: string
|
|
5737
|
+
authorUser?: string | {
|
|
5738
|
+
id?: number;
|
|
5739
|
+
email?: string;
|
|
5740
|
+
};
|
|
5208
5741
|
locale?: string;
|
|
5209
5742
|
gotThread?: boolean;
|
|
5210
5743
|
threadFirstItemId?: number;
|
|
@@ -5243,7 +5776,10 @@ declare const _default: {
|
|
|
5243
5776
|
authorName?: string;
|
|
5244
5777
|
authorEmail?: string;
|
|
5245
5778
|
authorAvatar?: string;
|
|
5246
|
-
authorUser?: string
|
|
5779
|
+
authorUser?: string | {
|
|
5780
|
+
id?: number;
|
|
5781
|
+
email?: string;
|
|
5782
|
+
};
|
|
5247
5783
|
locale?: string;
|
|
5248
5784
|
gotThread?: boolean;
|
|
5249
5785
|
threadFirstItemId?: number;
|
|
@@ -5277,7 +5813,10 @@ declare const _default: {
|
|
|
5277
5813
|
authorName?: string;
|
|
5278
5814
|
authorEmail?: string;
|
|
5279
5815
|
authorAvatar?: string;
|
|
5280
|
-
authorUser?: string
|
|
5816
|
+
authorUser?: string | {
|
|
5817
|
+
id?: number;
|
|
5818
|
+
email?: string;
|
|
5819
|
+
};
|
|
5281
5820
|
locale?: string;
|
|
5282
5821
|
gotThread?: boolean;
|
|
5283
5822
|
threadFirstItemId?: number;
|
|
@@ -5296,9 +5835,9 @@ declare const _default: {
|
|
|
5296
5835
|
};
|
|
5297
5836
|
}>;
|
|
5298
5837
|
};
|
|
5299
|
-
client: ({ strapi }: import("./@types
|
|
5838
|
+
client: ({ strapi }: import("./@types").StrapiContext) => {
|
|
5300
5839
|
getCommonService(): {
|
|
5301
|
-
getConfig<T_3 extends
|
|
5840
|
+
getConfig<T_3 extends string>(prop?: T_3, defaultValue?: import("./@types").PathValue<{
|
|
5302
5841
|
enabledCollections?: string[];
|
|
5303
5842
|
approvalFlow?: string[];
|
|
5304
5843
|
entryLabel?: Record<string, string[]>;
|
|
@@ -5312,21 +5851,14 @@ declare const _default: {
|
|
|
5312
5851
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
5313
5852
|
};
|
|
5314
5853
|
isGQLPluginEnabled?: boolean;
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
approvalFlow?: string[];
|
|
5318
|
-
entryLabel?: Record<string, string[]>;
|
|
5319
|
-
moderatorRoles?: string[];
|
|
5320
|
-
badWords?: boolean;
|
|
5321
|
-
blockedAuthorProps?: string[];
|
|
5322
|
-
isValidationEnabled?: boolean;
|
|
5323
|
-
reportReasons?: {
|
|
5324
|
-
BAD_LANGUAGE?: import("./const").REPORT_REASON.BAD_LANGUAGE;
|
|
5325
|
-
DISCRIMINATION?: import("./const").REPORT_REASON.DISCRIMINATION;
|
|
5326
|
-
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
5854
|
+
gql?: {
|
|
5855
|
+
auth?: boolean;
|
|
5327
5856
|
};
|
|
5328
|
-
|
|
5329
|
-
|
|
5857
|
+
client?: {
|
|
5858
|
+
url?: string;
|
|
5859
|
+
contactEmail?: string;
|
|
5860
|
+
};
|
|
5861
|
+
}, T_3>, useLocal?: boolean): Promise<import("./@types").PathValue<{
|
|
5330
5862
|
enabledCollections?: string[];
|
|
5331
5863
|
approvalFlow?: string[];
|
|
5332
5864
|
entryLabel?: Record<string, string[]>;
|
|
@@ -5340,10 +5872,17 @@ declare const _default: {
|
|
|
5340
5872
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
5341
5873
|
};
|
|
5342
5874
|
isGQLPluginEnabled?: boolean;
|
|
5343
|
-
|
|
5875
|
+
gql?: {
|
|
5876
|
+
auth?: boolean;
|
|
5877
|
+
};
|
|
5878
|
+
client?: {
|
|
5879
|
+
url?: string;
|
|
5880
|
+
contactEmail?: string;
|
|
5881
|
+
};
|
|
5882
|
+
}, T_3>>;
|
|
5344
5883
|
parseRelationString(relation: string): {
|
|
5345
5884
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
5346
|
-
relatedId: string
|
|
5885
|
+
relatedId: string;
|
|
5347
5886
|
};
|
|
5348
5887
|
isValidUserContext<T_4 extends {
|
|
5349
5888
|
id?: string | number;
|
|
@@ -5366,7 +5905,10 @@ declare const _default: {
|
|
|
5366
5905
|
authorName?: string;
|
|
5367
5906
|
authorEmail?: string;
|
|
5368
5907
|
authorAvatar?: string;
|
|
5369
|
-
authorUser?: string
|
|
5908
|
+
authorUser?: string | {
|
|
5909
|
+
id?: number;
|
|
5910
|
+
email?: string;
|
|
5911
|
+
};
|
|
5370
5912
|
locale?: string;
|
|
5371
5913
|
gotThread?: boolean;
|
|
5372
5914
|
threadFirstItemId?: number;
|
|
@@ -5400,7 +5942,10 @@ declare const _default: {
|
|
|
5400
5942
|
authorName?: string;
|
|
5401
5943
|
authorEmail?: string;
|
|
5402
5944
|
authorAvatar?: string;
|
|
5403
|
-
authorUser?: string
|
|
5945
|
+
authorUser?: string | {
|
|
5946
|
+
id?: number;
|
|
5947
|
+
email?: string;
|
|
5948
|
+
};
|
|
5404
5949
|
locale?: string;
|
|
5405
5950
|
gotThread?: boolean;
|
|
5406
5951
|
threadFirstItemId?: number;
|
|
@@ -5429,6 +5974,8 @@ declare const _default: {
|
|
|
5429
5974
|
approvalStatus?: string;
|
|
5430
5975
|
related?: {
|
|
5431
5976
|
id?: number;
|
|
5977
|
+
documentId?: string;
|
|
5978
|
+
locale?: string;
|
|
5432
5979
|
uid?: string;
|
|
5433
5980
|
requireCommentsApproval?: boolean;
|
|
5434
5981
|
};
|
|
@@ -5439,7 +5986,10 @@ declare const _default: {
|
|
|
5439
5986
|
authorName?: string;
|
|
5440
5987
|
authorEmail?: string;
|
|
5441
5988
|
authorAvatar?: string;
|
|
5442
|
-
authorUser?: string
|
|
5989
|
+
authorUser?: string | {
|
|
5990
|
+
id?: number;
|
|
5991
|
+
email?: string;
|
|
5992
|
+
};
|
|
5443
5993
|
locale?: string;
|
|
5444
5994
|
gotThread?: boolean;
|
|
5445
5995
|
threadFirstItemId?: number;
|
|
@@ -5473,7 +6023,10 @@ declare const _default: {
|
|
|
5473
6023
|
authorName?: string;
|
|
5474
6024
|
authorEmail?: string;
|
|
5475
6025
|
authorAvatar?: string;
|
|
5476
|
-
authorUser?: string
|
|
6026
|
+
authorUser?: string | {
|
|
6027
|
+
id?: number;
|
|
6028
|
+
email?: string;
|
|
6029
|
+
};
|
|
5477
6030
|
locale?: string;
|
|
5478
6031
|
gotThread?: boolean;
|
|
5479
6032
|
threadFirstItemId?: number;
|
|
@@ -5508,7 +6061,10 @@ declare const _default: {
|
|
|
5508
6061
|
authorName?: string;
|
|
5509
6062
|
authorEmail?: string;
|
|
5510
6063
|
authorAvatar?: string;
|
|
5511
|
-
authorUser?: string
|
|
6064
|
+
authorUser?: string | {
|
|
6065
|
+
id?: number;
|
|
6066
|
+
email?: string;
|
|
6067
|
+
};
|
|
5512
6068
|
locale?: string;
|
|
5513
6069
|
gotThread?: boolean;
|
|
5514
6070
|
threadFirstItemId?: number;
|
|
@@ -5542,7 +6098,10 @@ declare const _default: {
|
|
|
5542
6098
|
authorName?: string;
|
|
5543
6099
|
authorEmail?: string;
|
|
5544
6100
|
authorAvatar?: string;
|
|
5545
|
-
authorUser?: string
|
|
6101
|
+
authorUser?: string | {
|
|
6102
|
+
id?: number;
|
|
6103
|
+
email?: string;
|
|
6104
|
+
};
|
|
5546
6105
|
locale?: string;
|
|
5547
6106
|
gotThread?: boolean;
|
|
5548
6107
|
threadFirstItemId?: number;
|
|
@@ -5560,44 +6119,20 @@ declare const _default: {
|
|
|
5560
6119
|
author?: any;
|
|
5561
6120
|
};
|
|
5562
6121
|
};
|
|
5563
|
-
findAllFlat({ fields, limit, skip, sort,
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
|
|
5569
|
-
|
|
5570
|
-
|
|
5571
|
-
|
|
5572
|
-
|
|
5573
|
-
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5577
|
-
} | {
|
|
5578
|
-
$lt?: string;
|
|
5579
|
-
} | {
|
|
5580
|
-
$lte?: string;
|
|
5581
|
-
} | {
|
|
5582
|
-
$startsWith?: string;
|
|
5583
|
-
} | {
|
|
5584
|
-
$startsWithi?: string;
|
|
5585
|
-
} | {
|
|
5586
|
-
$endsWith?: string;
|
|
5587
|
-
} | {
|
|
5588
|
-
$endsWithi?: string;
|
|
5589
|
-
} | {
|
|
5590
|
-
$contains?: string;
|
|
5591
|
-
} | {
|
|
5592
|
-
$containsi?: string;
|
|
5593
|
-
} | {
|
|
5594
|
-
$notContains?: string;
|
|
5595
|
-
} | {
|
|
5596
|
-
$notContainsi?: string;
|
|
5597
|
-
} | {
|
|
5598
|
-
$notNull?: boolean;
|
|
5599
|
-
}>[];
|
|
5600
|
-
$or?: Record<string, string | number | {
|
|
6122
|
+
findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
|
|
6123
|
+
sort?: string;
|
|
6124
|
+
locale?: string;
|
|
6125
|
+
pagination?: {
|
|
6126
|
+
page?: number;
|
|
6127
|
+
pageSize?: number;
|
|
6128
|
+
withCount?: boolean;
|
|
6129
|
+
};
|
|
6130
|
+
relation?: `${string}::${string}.${string}`;
|
|
6131
|
+
populate?: Record<string, boolean | {
|
|
6132
|
+
populate?: boolean;
|
|
6133
|
+
}>;
|
|
6134
|
+
filters?: {
|
|
6135
|
+
id?: string | number | {
|
|
5601
6136
|
$eq?: string;
|
|
5602
6137
|
} | {
|
|
5603
6138
|
$eqi?: string;
|
|
@@ -5631,10 +6166,7 @@ declare const _default: {
|
|
|
5631
6166
|
$notContainsi?: string;
|
|
5632
6167
|
} | {
|
|
5633
6168
|
$notNull?: boolean;
|
|
5634
|
-
}
|
|
5635
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
5636
|
-
sort?: string;
|
|
5637
|
-
filter?: {
|
|
6169
|
+
};
|
|
5638
6170
|
content?: string | number | {
|
|
5639
6171
|
$eq?: string;
|
|
5640
6172
|
} | {
|
|
@@ -5776,15 +6308,6 @@ declare const _default: {
|
|
|
5776
6308
|
$notNull?: boolean;
|
|
5777
6309
|
};
|
|
5778
6310
|
};
|
|
5779
|
-
pagination?: {
|
|
5780
|
-
page?: number;
|
|
5781
|
-
pageSize?: number;
|
|
5782
|
-
withCount?: boolean;
|
|
5783
|
-
};
|
|
5784
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
5785
|
-
populate?: Record<string, boolean | {
|
|
5786
|
-
populate?: boolean;
|
|
5787
|
-
}>;
|
|
5788
6311
|
limit?: number;
|
|
5789
6312
|
fields?: string[];
|
|
5790
6313
|
omit?: string[];
|
|
@@ -5809,7 +6332,10 @@ declare const _default: {
|
|
|
5809
6332
|
authorName?: string;
|
|
5810
6333
|
authorEmail?: string;
|
|
5811
6334
|
authorAvatar?: string;
|
|
5812
|
-
authorUser?: string
|
|
6335
|
+
authorUser?: string | {
|
|
6336
|
+
id?: number;
|
|
6337
|
+
email?: string;
|
|
6338
|
+
};
|
|
5813
6339
|
locale?: string;
|
|
5814
6340
|
gotThread?: boolean;
|
|
5815
6341
|
threadFirstItemId?: number;
|
|
@@ -5843,7 +6369,10 @@ declare const _default: {
|
|
|
5843
6369
|
authorName?: string;
|
|
5844
6370
|
authorEmail?: string;
|
|
5845
6371
|
authorAvatar?: string;
|
|
5846
|
-
authorUser?: string
|
|
6372
|
+
authorUser?: string | {
|
|
6373
|
+
id?: number;
|
|
6374
|
+
email?: string;
|
|
6375
|
+
};
|
|
5847
6376
|
locale?: string;
|
|
5848
6377
|
gotThread?: boolean;
|
|
5849
6378
|
threadFirstItemId?: number;
|
|
@@ -5872,6 +6401,8 @@ declare const _default: {
|
|
|
5872
6401
|
approvalStatus?: string;
|
|
5873
6402
|
related?: {
|
|
5874
6403
|
id?: number;
|
|
6404
|
+
documentId?: string;
|
|
6405
|
+
locale?: string;
|
|
5875
6406
|
uid?: string;
|
|
5876
6407
|
requireCommentsApproval?: boolean;
|
|
5877
6408
|
};
|
|
@@ -5882,7 +6413,10 @@ declare const _default: {
|
|
|
5882
6413
|
authorName?: string;
|
|
5883
6414
|
authorEmail?: string;
|
|
5884
6415
|
authorAvatar?: string;
|
|
5885
|
-
authorUser?: string
|
|
6416
|
+
authorUser?: string | {
|
|
6417
|
+
id?: number;
|
|
6418
|
+
email?: string;
|
|
6419
|
+
};
|
|
5886
6420
|
locale?: string;
|
|
5887
6421
|
gotThread?: boolean;
|
|
5888
6422
|
threadFirstItemId?: number;
|
|
@@ -5916,7 +6450,10 @@ declare const _default: {
|
|
|
5916
6450
|
authorName?: string;
|
|
5917
6451
|
authorEmail?: string;
|
|
5918
6452
|
authorAvatar?: string;
|
|
5919
|
-
authorUser?: string
|
|
6453
|
+
authorUser?: string | {
|
|
6454
|
+
id?: number;
|
|
6455
|
+
email?: string;
|
|
6456
|
+
};
|
|
5920
6457
|
locale?: string;
|
|
5921
6458
|
gotThread?: boolean;
|
|
5922
6459
|
threadFirstItemId?: number;
|
|
@@ -5941,44 +6478,15 @@ declare const _default: {
|
|
|
5941
6478
|
total?: number;
|
|
5942
6479
|
};
|
|
5943
6480
|
}>;
|
|
5944
|
-
findAllInHierarchy({
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5953
|
-
$nei?: string;
|
|
5954
|
-
} | {
|
|
5955
|
-
$gt?: string;
|
|
5956
|
-
} | {
|
|
5957
|
-
$gte?: string;
|
|
5958
|
-
} | {
|
|
5959
|
-
$lt?: string;
|
|
5960
|
-
} | {
|
|
5961
|
-
$lte?: string;
|
|
5962
|
-
} | {
|
|
5963
|
-
$startsWith?: string;
|
|
5964
|
-
} | {
|
|
5965
|
-
$startsWithi?: string;
|
|
5966
|
-
} | {
|
|
5967
|
-
$endsWith?: string;
|
|
5968
|
-
} | {
|
|
5969
|
-
$endsWithi?: string;
|
|
5970
|
-
} | {
|
|
5971
|
-
$contains?: string;
|
|
5972
|
-
} | {
|
|
5973
|
-
$containsi?: string;
|
|
5974
|
-
} | {
|
|
5975
|
-
$notContains?: string;
|
|
5976
|
-
} | {
|
|
5977
|
-
$notContainsi?: string;
|
|
5978
|
-
} | {
|
|
5979
|
-
$notNull?: boolean;
|
|
5980
|
-
}>[];
|
|
5981
|
-
$or?: Record<string, string | number | {
|
|
6481
|
+
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
6482
|
+
sort?: string;
|
|
6483
|
+
locale?: string;
|
|
6484
|
+
relation?: `${string}::${string}.${string}`;
|
|
6485
|
+
populate?: Record<string, boolean | {
|
|
6486
|
+
populate?: boolean;
|
|
6487
|
+
}>;
|
|
6488
|
+
filters?: {
|
|
6489
|
+
id?: string | number | {
|
|
5982
6490
|
$eq?: string;
|
|
5983
6491
|
} | {
|
|
5984
6492
|
$eqi?: string;
|
|
@@ -6012,10 +6520,7 @@ declare const _default: {
|
|
|
6012
6520
|
$notContainsi?: string;
|
|
6013
6521
|
} | {
|
|
6014
6522
|
$notNull?: boolean;
|
|
6015
|
-
}
|
|
6016
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
6017
|
-
sort?: string;
|
|
6018
|
-
filter?: {
|
|
6523
|
+
};
|
|
6019
6524
|
content?: string | number | {
|
|
6020
6525
|
$eq?: string;
|
|
6021
6526
|
} | {
|
|
@@ -6157,10 +6662,6 @@ declare const _default: {
|
|
|
6157
6662
|
$notNull?: boolean;
|
|
6158
6663
|
};
|
|
6159
6664
|
};
|
|
6160
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
6161
|
-
populate?: Record<string, boolean | {
|
|
6162
|
-
populate?: boolean;
|
|
6163
|
-
}>;
|
|
6164
6665
|
limit?: number;
|
|
6165
6666
|
fields?: string[];
|
|
6166
6667
|
omit?: string[];
|
|
@@ -6186,7 +6687,10 @@ declare const _default: {
|
|
|
6186
6687
|
authorName?: string;
|
|
6187
6688
|
authorEmail?: string;
|
|
6188
6689
|
authorAvatar?: string;
|
|
6189
|
-
authorUser?: string
|
|
6690
|
+
authorUser?: string | {
|
|
6691
|
+
id?: number;
|
|
6692
|
+
email?: string;
|
|
6693
|
+
};
|
|
6190
6694
|
locale?: string;
|
|
6191
6695
|
gotThread?: boolean;
|
|
6192
6696
|
threadFirstItemId?: number;
|
|
@@ -6220,7 +6724,10 @@ declare const _default: {
|
|
|
6220
6724
|
authorName?: string;
|
|
6221
6725
|
authorEmail?: string;
|
|
6222
6726
|
authorAvatar?: string;
|
|
6223
|
-
authorUser?: string
|
|
6727
|
+
authorUser?: string | {
|
|
6728
|
+
id?: number;
|
|
6729
|
+
email?: string;
|
|
6730
|
+
};
|
|
6224
6731
|
locale?: string;
|
|
6225
6732
|
gotThread?: boolean;
|
|
6226
6733
|
threadFirstItemId?: number;
|
|
@@ -6256,7 +6763,10 @@ declare const _default: {
|
|
|
6256
6763
|
authorName?: string;
|
|
6257
6764
|
authorEmail?: string;
|
|
6258
6765
|
authorAvatar?: string;
|
|
6259
|
-
authorUser?: string
|
|
6766
|
+
authorUser?: string | {
|
|
6767
|
+
id?: number;
|
|
6768
|
+
email?: string;
|
|
6769
|
+
};
|
|
6260
6770
|
locale?: string;
|
|
6261
6771
|
gotThread?: boolean;
|
|
6262
6772
|
threadFirstItemId?: number;
|
|
@@ -6290,7 +6800,10 @@ declare const _default: {
|
|
|
6290
6800
|
authorName?: string;
|
|
6291
6801
|
authorEmail?: string;
|
|
6292
6802
|
authorAvatar?: string;
|
|
6293
|
-
authorUser?: string
|
|
6803
|
+
authorUser?: string | {
|
|
6804
|
+
id?: number;
|
|
6805
|
+
email?: string;
|
|
6806
|
+
};
|
|
6294
6807
|
locale?: string;
|
|
6295
6808
|
gotThread?: boolean;
|
|
6296
6809
|
threadFirstItemId?: number;
|
|
@@ -6326,7 +6839,10 @@ declare const _default: {
|
|
|
6326
6839
|
authorName?: string;
|
|
6327
6840
|
authorEmail?: string;
|
|
6328
6841
|
authorAvatar?: string;
|
|
6329
|
-
authorUser?: string
|
|
6842
|
+
authorUser?: string | {
|
|
6843
|
+
id?: number;
|
|
6844
|
+
email?: string;
|
|
6845
|
+
};
|
|
6330
6846
|
locale?: string;
|
|
6331
6847
|
gotThread?: boolean;
|
|
6332
6848
|
threadFirstItemId?: number;
|
|
@@ -6360,7 +6876,10 @@ declare const _default: {
|
|
|
6360
6876
|
authorName?: string;
|
|
6361
6877
|
authorEmail?: string;
|
|
6362
6878
|
authorAvatar?: string;
|
|
6363
|
-
authorUser?: string
|
|
6879
|
+
authorUser?: string | {
|
|
6880
|
+
id?: number;
|
|
6881
|
+
email?: string;
|
|
6882
|
+
};
|
|
6364
6883
|
locale?: string;
|
|
6365
6884
|
gotThread?: boolean;
|
|
6366
6885
|
threadFirstItemId?: number;
|
|
@@ -6396,7 +6915,10 @@ declare const _default: {
|
|
|
6396
6915
|
authorName?: string;
|
|
6397
6916
|
authorEmail?: string;
|
|
6398
6917
|
authorAvatar?: string;
|
|
6399
|
-
authorUser?: string
|
|
6918
|
+
authorUser?: string | {
|
|
6919
|
+
id?: number;
|
|
6920
|
+
email?: string;
|
|
6921
|
+
};
|
|
6400
6922
|
locale?: string;
|
|
6401
6923
|
gotThread?: boolean;
|
|
6402
6924
|
threadFirstItemId?: number;
|
|
@@ -6430,7 +6952,10 @@ declare const _default: {
|
|
|
6430
6952
|
authorName?: string;
|
|
6431
6953
|
authorEmail?: string;
|
|
6432
6954
|
authorAvatar?: string;
|
|
6433
|
-
authorUser?: string
|
|
6955
|
+
authorUser?: string | {
|
|
6956
|
+
id?: number;
|
|
6957
|
+
email?: string;
|
|
6958
|
+
};
|
|
6434
6959
|
locale?: string;
|
|
6435
6960
|
gotThread?: boolean;
|
|
6436
6961
|
threadFirstItemId?: number;
|
|
@@ -6465,7 +6990,10 @@ declare const _default: {
|
|
|
6465
6990
|
authorName?: string;
|
|
6466
6991
|
authorEmail?: string;
|
|
6467
6992
|
authorAvatar?: string;
|
|
6468
|
-
authorUser?: string
|
|
6993
|
+
authorUser?: string | {
|
|
6994
|
+
id?: number;
|
|
6995
|
+
email?: string;
|
|
6996
|
+
};
|
|
6469
6997
|
locale?: string;
|
|
6470
6998
|
gotThread?: boolean;
|
|
6471
6999
|
threadFirstItemId?: number;
|
|
@@ -6499,7 +7027,10 @@ declare const _default: {
|
|
|
6499
7027
|
authorName?: string;
|
|
6500
7028
|
authorEmail?: string;
|
|
6501
7029
|
authorAvatar?: string;
|
|
6502
|
-
authorUser?: string
|
|
7030
|
+
authorUser?: string | {
|
|
7031
|
+
id?: number;
|
|
7032
|
+
email?: string;
|
|
7033
|
+
};
|
|
6503
7034
|
locale?: string;
|
|
6504
7035
|
gotThread?: boolean;
|
|
6505
7036
|
threadFirstItemId?: number;
|
|
@@ -6517,9 +7048,56 @@ declare const _default: {
|
|
|
6517
7048
|
author?: any;
|
|
6518
7049
|
};
|
|
6519
7050
|
}>;
|
|
6520
|
-
findAllPerAuthor({
|
|
6521
|
-
|
|
6522
|
-
|
|
7051
|
+
findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
|
|
7052
|
+
type?: string;
|
|
7053
|
+
sort?: string;
|
|
7054
|
+
authorId?: string | number;
|
|
7055
|
+
locale?: string;
|
|
7056
|
+
pagination?: {
|
|
7057
|
+
page?: number;
|
|
7058
|
+
pageSize?: number;
|
|
7059
|
+
withCount?: boolean;
|
|
7060
|
+
};
|
|
7061
|
+
populate?: Record<string, boolean | {
|
|
7062
|
+
populate?: boolean;
|
|
7063
|
+
}>;
|
|
7064
|
+
filters?: {
|
|
7065
|
+
id?: string | number | {
|
|
7066
|
+
$eq?: string;
|
|
7067
|
+
} | {
|
|
7068
|
+
$eqi?: string;
|
|
7069
|
+
} | {
|
|
7070
|
+
$ne?: string;
|
|
7071
|
+
} | {
|
|
7072
|
+
$nei?: string;
|
|
7073
|
+
} | {
|
|
7074
|
+
$gt?: string;
|
|
7075
|
+
} | {
|
|
7076
|
+
$gte?: string;
|
|
7077
|
+
} | {
|
|
7078
|
+
$lt?: string;
|
|
7079
|
+
} | {
|
|
7080
|
+
$lte?: string;
|
|
7081
|
+
} | {
|
|
7082
|
+
$startsWith?: string;
|
|
7083
|
+
} | {
|
|
7084
|
+
$startsWithi?: string;
|
|
7085
|
+
} | {
|
|
7086
|
+
$endsWith?: string;
|
|
7087
|
+
} | {
|
|
7088
|
+
$endsWithi?: string;
|
|
7089
|
+
} | {
|
|
7090
|
+
$contains?: string;
|
|
7091
|
+
} | {
|
|
7092
|
+
$containsi?: string;
|
|
7093
|
+
} | {
|
|
7094
|
+
$notContains?: string;
|
|
7095
|
+
} | {
|
|
7096
|
+
$notContainsi?: string;
|
|
7097
|
+
} | {
|
|
7098
|
+
$notNull?: boolean;
|
|
7099
|
+
};
|
|
7100
|
+
content?: string | number | {
|
|
6523
7101
|
$eq?: string;
|
|
6524
7102
|
} | {
|
|
6525
7103
|
$eqi?: string;
|
|
@@ -6553,8 +7131,8 @@ declare const _default: {
|
|
|
6553
7131
|
$notContainsi?: string;
|
|
6554
7132
|
} | {
|
|
6555
7133
|
$notNull?: boolean;
|
|
6556
|
-
}
|
|
6557
|
-
|
|
7134
|
+
};
|
|
7135
|
+
createdAt?: string | number | {
|
|
6558
7136
|
$eq?: string;
|
|
6559
7137
|
} | {
|
|
6560
7138
|
$eqi?: string;
|
|
@@ -6588,19 +7166,78 @@ declare const _default: {
|
|
|
6588
7166
|
$notContainsi?: string;
|
|
6589
7167
|
} | {
|
|
6590
7168
|
$notNull?: boolean;
|
|
6591
|
-
}
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
7169
|
+
};
|
|
7170
|
+
updatedAt?: string | number | {
|
|
7171
|
+
$eq?: string;
|
|
7172
|
+
} | {
|
|
7173
|
+
$eqi?: string;
|
|
7174
|
+
} | {
|
|
7175
|
+
$ne?: string;
|
|
7176
|
+
} | {
|
|
7177
|
+
$nei?: string;
|
|
7178
|
+
} | {
|
|
7179
|
+
$gt?: string;
|
|
7180
|
+
} | {
|
|
7181
|
+
$gte?: string;
|
|
7182
|
+
} | {
|
|
7183
|
+
$lt?: string;
|
|
7184
|
+
} | {
|
|
7185
|
+
$lte?: string;
|
|
7186
|
+
} | {
|
|
7187
|
+
$startsWith?: string;
|
|
7188
|
+
} | {
|
|
7189
|
+
$startsWithi?: string;
|
|
7190
|
+
} | {
|
|
7191
|
+
$endsWith?: string;
|
|
7192
|
+
} | {
|
|
7193
|
+
$endsWithi?: string;
|
|
7194
|
+
} | {
|
|
7195
|
+
$contains?: string;
|
|
7196
|
+
} | {
|
|
7197
|
+
$containsi?: string;
|
|
7198
|
+
} | {
|
|
7199
|
+
$notContains?: string;
|
|
7200
|
+
} | {
|
|
7201
|
+
$notContainsi?: string;
|
|
7202
|
+
} | {
|
|
7203
|
+
$notNull?: boolean;
|
|
7204
|
+
};
|
|
7205
|
+
authorName?: string | number | {
|
|
7206
|
+
$eq?: string;
|
|
7207
|
+
} | {
|
|
7208
|
+
$eqi?: string;
|
|
7209
|
+
} | {
|
|
7210
|
+
$ne?: string;
|
|
7211
|
+
} | {
|
|
7212
|
+
$nei?: string;
|
|
7213
|
+
} | {
|
|
7214
|
+
$gt?: string;
|
|
7215
|
+
} | {
|
|
7216
|
+
$gte?: string;
|
|
7217
|
+
} | {
|
|
7218
|
+
$lt?: string;
|
|
7219
|
+
} | {
|
|
7220
|
+
$lte?: string;
|
|
7221
|
+
} | {
|
|
7222
|
+
$startsWith?: string;
|
|
7223
|
+
} | {
|
|
7224
|
+
$startsWithi?: string;
|
|
7225
|
+
} | {
|
|
7226
|
+
$endsWith?: string;
|
|
7227
|
+
} | {
|
|
7228
|
+
$endsWithi?: string;
|
|
7229
|
+
} | {
|
|
7230
|
+
$contains?: string;
|
|
7231
|
+
} | {
|
|
7232
|
+
$containsi?: string;
|
|
7233
|
+
} | {
|
|
7234
|
+
$notContains?: string;
|
|
7235
|
+
} | {
|
|
7236
|
+
$notContainsi?: string;
|
|
7237
|
+
} | {
|
|
7238
|
+
$notNull?: boolean;
|
|
7239
|
+
};
|
|
6600
7240
|
};
|
|
6601
|
-
populate?: Record<string, boolean | {
|
|
6602
|
-
populate?: boolean;
|
|
6603
|
-
}>;
|
|
6604
7241
|
limit?: number;
|
|
6605
7242
|
fields?: string[];
|
|
6606
7243
|
omit?: string[];
|
|
@@ -6625,7 +7262,10 @@ declare const _default: {
|
|
|
6625
7262
|
authorName?: string;
|
|
6626
7263
|
authorEmail?: string;
|
|
6627
7264
|
authorAvatar?: string;
|
|
6628
|
-
authorUser?: string
|
|
7265
|
+
authorUser?: string | {
|
|
7266
|
+
id?: number;
|
|
7267
|
+
email?: string;
|
|
7268
|
+
};
|
|
6629
7269
|
locale?: string;
|
|
6630
7270
|
gotThread?: boolean;
|
|
6631
7271
|
threadFirstItemId?: number;
|
|
@@ -6658,7 +7298,10 @@ declare const _default: {
|
|
|
6658
7298
|
authorName?: string;
|
|
6659
7299
|
authorEmail?: string;
|
|
6660
7300
|
authorAvatar?: string;
|
|
6661
|
-
authorUser?: string
|
|
7301
|
+
authorUser?: string | {
|
|
7302
|
+
id?: number;
|
|
7303
|
+
email?: string;
|
|
7304
|
+
};
|
|
6662
7305
|
locale?: string;
|
|
6663
7306
|
gotThread?: boolean;
|
|
6664
7307
|
threadFirstItemId?: number;
|
|
@@ -6687,6 +7330,8 @@ declare const _default: {
|
|
|
6687
7330
|
approvalStatus?: string;
|
|
6688
7331
|
related?: {
|
|
6689
7332
|
id?: number;
|
|
7333
|
+
documentId?: string;
|
|
7334
|
+
locale?: string;
|
|
6690
7335
|
uid?: string;
|
|
6691
7336
|
requireCommentsApproval?: boolean;
|
|
6692
7337
|
};
|
|
@@ -6697,7 +7342,10 @@ declare const _default: {
|
|
|
6697
7342
|
authorName?: string;
|
|
6698
7343
|
authorEmail?: string;
|
|
6699
7344
|
authorAvatar?: string;
|
|
6700
|
-
authorUser?: string
|
|
7345
|
+
authorUser?: string | {
|
|
7346
|
+
id?: number;
|
|
7347
|
+
email?: string;
|
|
7348
|
+
};
|
|
6701
7349
|
locale?: string;
|
|
6702
7350
|
gotThread?: boolean;
|
|
6703
7351
|
threadFirstItemId?: number;
|
|
@@ -6730,7 +7378,10 @@ declare const _default: {
|
|
|
6730
7378
|
authorName?: string;
|
|
6731
7379
|
authorEmail?: string;
|
|
6732
7380
|
authorAvatar?: string;
|
|
6733
|
-
authorUser?: string
|
|
7381
|
+
authorUser?: string | {
|
|
7382
|
+
id?: number;
|
|
7383
|
+
email?: string;
|
|
7384
|
+
};
|
|
6734
7385
|
locale?: string;
|
|
6735
7386
|
gotThread?: boolean;
|
|
6736
7387
|
threadFirstItemId?: number;
|
|
@@ -6773,7 +7424,10 @@ declare const _default: {
|
|
|
6773
7424
|
authorName?: string;
|
|
6774
7425
|
authorEmail?: string;
|
|
6775
7426
|
authorAvatar?: string;
|
|
6776
|
-
authorUser?: string
|
|
7427
|
+
authorUser?: string | {
|
|
7428
|
+
id?: number;
|
|
7429
|
+
email?: string;
|
|
7430
|
+
};
|
|
6777
7431
|
locale?: string;
|
|
6778
7432
|
gotThread?: boolean;
|
|
6779
7433
|
threadFirstItemId?: number;
|
|
@@ -6807,7 +7461,10 @@ declare const _default: {
|
|
|
6807
7461
|
authorName?: string;
|
|
6808
7462
|
authorEmail?: string;
|
|
6809
7463
|
authorAvatar?: string;
|
|
6810
|
-
authorUser?: string
|
|
7464
|
+
authorUser?: string | {
|
|
7465
|
+
id?: number;
|
|
7466
|
+
email?: string;
|
|
7467
|
+
};
|
|
6811
7468
|
locale?: string;
|
|
6812
7469
|
gotThread?: boolean;
|
|
6813
7470
|
threadFirstItemId?: number;
|
|
@@ -6826,6 +7483,8 @@ declare const _default: {
|
|
|
6826
7483
|
};
|
|
6827
7484
|
}[]): Promise<{
|
|
6828
7485
|
id?: number;
|
|
7486
|
+
documentId?: string;
|
|
7487
|
+
locale?: string;
|
|
6829
7488
|
uid?: string;
|
|
6830
7489
|
requireCommentsApproval?: boolean;
|
|
6831
7490
|
}[]>;
|
|
@@ -6847,7 +7506,10 @@ declare const _default: {
|
|
|
6847
7506
|
authorName?: string;
|
|
6848
7507
|
authorEmail?: string;
|
|
6849
7508
|
authorAvatar?: string;
|
|
6850
|
-
authorUser?: string
|
|
7509
|
+
authorUser?: string | {
|
|
7510
|
+
id?: number;
|
|
7511
|
+
email?: string;
|
|
7512
|
+
};
|
|
6851
7513
|
locale?: string;
|
|
6852
7514
|
gotThread?: boolean;
|
|
6853
7515
|
threadFirstItemId?: number;
|
|
@@ -6881,7 +7543,10 @@ declare const _default: {
|
|
|
6881
7543
|
authorName?: string;
|
|
6882
7544
|
authorEmail?: string;
|
|
6883
7545
|
authorAvatar?: string;
|
|
6884
|
-
authorUser?: string
|
|
7546
|
+
authorUser?: string | {
|
|
7547
|
+
id?: number;
|
|
7548
|
+
email?: string;
|
|
7549
|
+
};
|
|
6885
7550
|
locale?: string;
|
|
6886
7551
|
gotThread?: boolean;
|
|
6887
7552
|
threadFirstItemId?: number;
|
|
@@ -6900,6 +7565,8 @@ declare const _default: {
|
|
|
6900
7565
|
};
|
|
6901
7566
|
}, relatedEntities?: {
|
|
6902
7567
|
id?: number;
|
|
7568
|
+
documentId?: string;
|
|
7569
|
+
locale?: string;
|
|
6903
7570
|
uid?: string;
|
|
6904
7571
|
requireCommentsApproval?: boolean;
|
|
6905
7572
|
}[]): {
|
|
@@ -6914,6 +7581,8 @@ declare const _default: {
|
|
|
6914
7581
|
approvalStatus?: string;
|
|
6915
7582
|
related?: {
|
|
6916
7583
|
id?: number;
|
|
7584
|
+
documentId?: string;
|
|
7585
|
+
locale?: string;
|
|
6917
7586
|
uid?: string;
|
|
6918
7587
|
requireCommentsApproval?: boolean;
|
|
6919
7588
|
};
|
|
@@ -6924,7 +7593,10 @@ declare const _default: {
|
|
|
6924
7593
|
authorName?: string;
|
|
6925
7594
|
authorEmail?: string;
|
|
6926
7595
|
authorAvatar?: string;
|
|
6927
|
-
authorUser?: string
|
|
7596
|
+
authorUser?: string | {
|
|
7597
|
+
id?: number;
|
|
7598
|
+
email?: string;
|
|
7599
|
+
};
|
|
6928
7600
|
locale?: string;
|
|
6929
7601
|
gotThread?: boolean;
|
|
6930
7602
|
threadFirstItemId?: number;
|
|
@@ -6958,7 +7630,10 @@ declare const _default: {
|
|
|
6958
7630
|
authorName?: string;
|
|
6959
7631
|
authorEmail?: string;
|
|
6960
7632
|
authorAvatar?: string;
|
|
6961
|
-
authorUser?: string
|
|
7633
|
+
authorUser?: string | {
|
|
7634
|
+
id?: number;
|
|
7635
|
+
email?: string;
|
|
7636
|
+
};
|
|
6962
7637
|
locale?: string;
|
|
6963
7638
|
gotThread?: boolean;
|
|
6964
7639
|
threadFirstItemId?: number;
|
|
@@ -6976,7 +7651,7 @@ declare const _default: {
|
|
|
6976
7651
|
author?: any;
|
|
6977
7652
|
};
|
|
6978
7653
|
};
|
|
6979
|
-
modifiedNestedNestedComments<T_5 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
|
|
7654
|
+
modifiedNestedNestedComments<T_5 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_5, value: {
|
|
6980
7655
|
id?: number;
|
|
6981
7656
|
documentId?: string;
|
|
6982
7657
|
content?: string;
|
|
@@ -6994,7 +7669,10 @@ declare const _default: {
|
|
|
6994
7669
|
authorName?: string;
|
|
6995
7670
|
authorEmail?: string;
|
|
6996
7671
|
authorAvatar?: string;
|
|
6997
|
-
authorUser?: string
|
|
7672
|
+
authorUser?: string | {
|
|
7673
|
+
id?: number;
|
|
7674
|
+
email?: string;
|
|
7675
|
+
};
|
|
6998
7676
|
locale?: string;
|
|
6999
7677
|
gotThread?: boolean;
|
|
7000
7678
|
threadFirstItemId?: number;
|
|
@@ -7028,7 +7706,10 @@ declare const _default: {
|
|
|
7028
7706
|
authorName?: string;
|
|
7029
7707
|
authorEmail?: string;
|
|
7030
7708
|
authorAvatar?: string;
|
|
7031
|
-
authorUser?: string
|
|
7709
|
+
authorUser?: string | {
|
|
7710
|
+
id?: number;
|
|
7711
|
+
email?: string;
|
|
7712
|
+
};
|
|
7032
7713
|
locale?: string;
|
|
7033
7714
|
gotThread?: boolean;
|
|
7034
7715
|
threadFirstItemId?: number;
|
|
@@ -7045,23 +7726,24 @@ declare const _default: {
|
|
|
7045
7726
|
}[];
|
|
7046
7727
|
author?: any;
|
|
7047
7728
|
};
|
|
7048
|
-
}[T_5]): Promise<boolean>;
|
|
7729
|
+
}[T_5], deepLimit?: number): Promise<boolean>;
|
|
7049
7730
|
checkBadWords(content: string): Promise<string>;
|
|
7050
7731
|
registerLifecycleHook(): void;
|
|
7051
7732
|
runLifecycleHook(): Promise<void>;
|
|
7052
7733
|
};
|
|
7053
|
-
create({ relation, content, threadOf, author, approvalStatus }: {
|
|
7734
|
+
create({ relation, content, threadOf, author, approvalStatus, locale }: {
|
|
7054
7735
|
content?: string;
|
|
7055
7736
|
approvalStatus?: import("./const").APPROVAL_STATUS;
|
|
7737
|
+
locale?: string;
|
|
7056
7738
|
author?: {
|
|
7057
7739
|
name?: string;
|
|
7058
7740
|
id?: number;
|
|
7059
7741
|
email?: string;
|
|
7060
7742
|
avatar?: string;
|
|
7061
7743
|
};
|
|
7062
|
-
threadOf?:
|
|
7063
|
-
relation?:
|
|
7064
|
-
}, user?: import("./@types
|
|
7744
|
+
threadOf?: string;
|
|
7745
|
+
relation?: `${string}::${string}.${string}`;
|
|
7746
|
+
}, user?: import("./@types").AdminUser): Promise<{
|
|
7065
7747
|
id?: number;
|
|
7066
7748
|
documentId?: string;
|
|
7067
7749
|
content?: string;
|
|
@@ -7079,7 +7761,10 @@ declare const _default: {
|
|
|
7079
7761
|
authorName?: string;
|
|
7080
7762
|
authorEmail?: string;
|
|
7081
7763
|
authorAvatar?: string;
|
|
7082
|
-
authorUser?: string
|
|
7764
|
+
authorUser?: string | {
|
|
7765
|
+
id?: number;
|
|
7766
|
+
email?: string;
|
|
7767
|
+
};
|
|
7083
7768
|
locale?: string;
|
|
7084
7769
|
gotThread?: boolean;
|
|
7085
7770
|
threadFirstItemId?: number;
|
|
@@ -7113,7 +7798,10 @@ declare const _default: {
|
|
|
7113
7798
|
authorName?: string;
|
|
7114
7799
|
authorEmail?: string;
|
|
7115
7800
|
authorAvatar?: string;
|
|
7116
|
-
authorUser?: string
|
|
7801
|
+
authorUser?: string | {
|
|
7802
|
+
id?: number;
|
|
7803
|
+
email?: string;
|
|
7804
|
+
};
|
|
7117
7805
|
locale?: string;
|
|
7118
7806
|
gotThread?: boolean;
|
|
7119
7807
|
threadFirstItemId?: number;
|
|
@@ -7133,9 +7821,9 @@ declare const _default: {
|
|
|
7133
7821
|
}>;
|
|
7134
7822
|
update({ commentId, content }: {
|
|
7135
7823
|
content?: string;
|
|
7136
|
-
relation?:
|
|
7824
|
+
relation?: `${string}::${string}.${string}`;
|
|
7137
7825
|
commentId?: number;
|
|
7138
|
-
}, user?: import("./@types
|
|
7826
|
+
}, user?: import("./@types").AdminUser): Promise<{
|
|
7139
7827
|
id?: number;
|
|
7140
7828
|
documentId?: string;
|
|
7141
7829
|
content?: string;
|
|
@@ -7153,7 +7841,10 @@ declare const _default: {
|
|
|
7153
7841
|
authorName?: string;
|
|
7154
7842
|
authorEmail?: string;
|
|
7155
7843
|
authorAvatar?: string;
|
|
7156
|
-
authorUser?: string
|
|
7844
|
+
authorUser?: string | {
|
|
7845
|
+
id?: number;
|
|
7846
|
+
email?: string;
|
|
7847
|
+
};
|
|
7157
7848
|
locale?: string;
|
|
7158
7849
|
gotThread?: boolean;
|
|
7159
7850
|
threadFirstItemId?: number;
|
|
@@ -7187,7 +7878,10 @@ declare const _default: {
|
|
|
7187
7878
|
authorName?: string;
|
|
7188
7879
|
authorEmail?: string;
|
|
7189
7880
|
authorAvatar?: string;
|
|
7190
|
-
authorUser?: string
|
|
7881
|
+
authorUser?: string | {
|
|
7882
|
+
id?: number;
|
|
7883
|
+
email?: string;
|
|
7884
|
+
};
|
|
7191
7885
|
locale?: string;
|
|
7192
7886
|
gotThread?: boolean;
|
|
7193
7887
|
threadFirstItemId?: number;
|
|
@@ -7207,10 +7901,10 @@ declare const _default: {
|
|
|
7207
7901
|
}>;
|
|
7208
7902
|
reportAbuse({ commentId, relation, ...payload }: {
|
|
7209
7903
|
content?: string;
|
|
7210
|
-
reason?:
|
|
7211
|
-
relation?:
|
|
7904
|
+
reason?: import("./const").REPORT_REASON;
|
|
7905
|
+
relation?: `${string}::${string}.${string}`;
|
|
7212
7906
|
commentId?: number;
|
|
7213
|
-
}, user?: import("./@types
|
|
7907
|
+
}, user?: import("./@types").AdminUser): Promise<{
|
|
7214
7908
|
related: {
|
|
7215
7909
|
id?: number;
|
|
7216
7910
|
documentId?: string;
|
|
@@ -7229,7 +7923,10 @@ declare const _default: {
|
|
|
7229
7923
|
authorName?: string;
|
|
7230
7924
|
authorEmail?: string;
|
|
7231
7925
|
authorAvatar?: string;
|
|
7232
|
-
authorUser?: string
|
|
7926
|
+
authorUser?: string | {
|
|
7927
|
+
id?: number;
|
|
7928
|
+
email?: string;
|
|
7929
|
+
};
|
|
7233
7930
|
locale?: string;
|
|
7234
7931
|
gotThread?: boolean;
|
|
7235
7932
|
threadFirstItemId?: number;
|
|
@@ -7263,7 +7960,10 @@ declare const _default: {
|
|
|
7263
7960
|
authorName?: string;
|
|
7264
7961
|
authorEmail?: string;
|
|
7265
7962
|
authorAvatar?: string;
|
|
7266
|
-
authorUser?: string
|
|
7963
|
+
authorUser?: string | {
|
|
7964
|
+
id?: number;
|
|
7965
|
+
email?: string;
|
|
7966
|
+
};
|
|
7267
7967
|
locale?: string;
|
|
7268
7968
|
gotThread?: boolean;
|
|
7269
7969
|
threadFirstItemId?: number;
|
|
@@ -7293,9 +7993,9 @@ declare const _default: {
|
|
|
7293
7993
|
}>;
|
|
7294
7994
|
markAsRemoved({ commentId, relation, authorId }: {
|
|
7295
7995
|
authorId?: string | number;
|
|
7296
|
-
relation?:
|
|
7996
|
+
relation?: `${string}::${string}.${string}`;
|
|
7297
7997
|
commentId?: number;
|
|
7298
|
-
}, user: import("./@types
|
|
7998
|
+
}, user: import("./@types").AdminUser): Promise<{
|
|
7299
7999
|
id?: number;
|
|
7300
8000
|
documentId?: string;
|
|
7301
8001
|
content?: string;
|
|
@@ -7313,7 +8013,10 @@ declare const _default: {
|
|
|
7313
8013
|
authorName?: string;
|
|
7314
8014
|
authorEmail?: string;
|
|
7315
8015
|
authorAvatar?: string;
|
|
7316
|
-
authorUser?: string
|
|
8016
|
+
authorUser?: string | {
|
|
8017
|
+
id?: number;
|
|
8018
|
+
email?: string;
|
|
8019
|
+
};
|
|
7317
8020
|
locale?: string;
|
|
7318
8021
|
gotThread?: boolean;
|
|
7319
8022
|
threadFirstItemId?: number;
|
|
@@ -7347,7 +8050,10 @@ declare const _default: {
|
|
|
7347
8050
|
authorName?: string;
|
|
7348
8051
|
authorEmail?: string;
|
|
7349
8052
|
authorAvatar?: string;
|
|
7350
|
-
authorUser?: string
|
|
8053
|
+
authorUser?: string | {
|
|
8054
|
+
id?: number;
|
|
8055
|
+
email?: string;
|
|
8056
|
+
};
|
|
7351
8057
|
locale?: string;
|
|
7352
8058
|
gotThread?: boolean;
|
|
7353
8059
|
threadFirstItemId?: number;
|
|
@@ -7366,8 +8072,8 @@ declare const _default: {
|
|
|
7366
8072
|
};
|
|
7367
8073
|
}>;
|
|
7368
8074
|
sendAbuseReportEmail(reason: string, content: string): Promise<void>;
|
|
7369
|
-
markAsRemovedNested(commentId: string | number, status: boolean): Promise<
|
|
7370
|
-
sendResponseNotification(
|
|
8075
|
+
markAsRemovedNested(commentId: string | number, status: boolean): Promise<boolean>;
|
|
8076
|
+
sendResponseNotification(entity: {
|
|
7371
8077
|
id?: number;
|
|
7372
8078
|
documentId?: string;
|
|
7373
8079
|
content?: string;
|
|
@@ -7385,7 +8091,10 @@ declare const _default: {
|
|
|
7385
8091
|
authorName?: string;
|
|
7386
8092
|
authorEmail?: string;
|
|
7387
8093
|
authorAvatar?: string;
|
|
7388
|
-
authorUser?: string
|
|
8094
|
+
authorUser?: string | {
|
|
8095
|
+
id?: number;
|
|
8096
|
+
email?: string;
|
|
8097
|
+
};
|
|
7389
8098
|
locale?: string;
|
|
7390
8099
|
gotThread?: boolean;
|
|
7391
8100
|
threadFirstItemId?: number;
|
|
@@ -7419,7 +8128,10 @@ declare const _default: {
|
|
|
7419
8128
|
authorName?: string;
|
|
7420
8129
|
authorEmail?: string;
|
|
7421
8130
|
authorAvatar?: string;
|
|
7422
|
-
authorUser?: string
|
|
8131
|
+
authorUser?: string | {
|
|
8132
|
+
id?: number;
|
|
8133
|
+
email?: string;
|
|
8134
|
+
};
|
|
7423
8135
|
locale?: string;
|
|
7424
8136
|
gotThread?: boolean;
|
|
7425
8137
|
threadFirstItemId?: number;
|
|
@@ -7438,8 +8150,8 @@ declare const _default: {
|
|
|
7438
8150
|
};
|
|
7439
8151
|
}): Promise<void>;
|
|
7440
8152
|
};
|
|
7441
|
-
common: ({ strapi }: import("./@types
|
|
7442
|
-
getConfig<T_3 extends
|
|
8153
|
+
common: ({ strapi }: import("./@types").StrapiContext) => {
|
|
8154
|
+
getConfig<T_3 extends string>(prop?: T_3, defaultValue?: import("./@types").PathValue<{
|
|
7443
8155
|
enabledCollections?: string[];
|
|
7444
8156
|
approvalFlow?: string[];
|
|
7445
8157
|
entryLabel?: Record<string, string[]>;
|
|
@@ -7453,21 +8165,14 @@ declare const _default: {
|
|
|
7453
8165
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
7454
8166
|
};
|
|
7455
8167
|
isGQLPluginEnabled?: boolean;
|
|
7456
|
-
|
|
7457
|
-
|
|
7458
|
-
approvalFlow?: string[];
|
|
7459
|
-
entryLabel?: Record<string, string[]>;
|
|
7460
|
-
moderatorRoles?: string[];
|
|
7461
|
-
badWords?: boolean;
|
|
7462
|
-
blockedAuthorProps?: string[];
|
|
7463
|
-
isValidationEnabled?: boolean;
|
|
7464
|
-
reportReasons?: {
|
|
7465
|
-
BAD_LANGUAGE?: import("./const").REPORT_REASON.BAD_LANGUAGE;
|
|
7466
|
-
DISCRIMINATION?: import("./const").REPORT_REASON.DISCRIMINATION;
|
|
7467
|
-
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
8168
|
+
gql?: {
|
|
8169
|
+
auth?: boolean;
|
|
7468
8170
|
};
|
|
7469
|
-
|
|
7470
|
-
|
|
8171
|
+
client?: {
|
|
8172
|
+
url?: string;
|
|
8173
|
+
contactEmail?: string;
|
|
8174
|
+
};
|
|
8175
|
+
}, T_3>, useLocal?: boolean): Promise<import("./@types").PathValue<{
|
|
7471
8176
|
enabledCollections?: string[];
|
|
7472
8177
|
approvalFlow?: string[];
|
|
7473
8178
|
entryLabel?: Record<string, string[]>;
|
|
@@ -7481,10 +8186,17 @@ declare const _default: {
|
|
|
7481
8186
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
7482
8187
|
};
|
|
7483
8188
|
isGQLPluginEnabled?: boolean;
|
|
7484
|
-
|
|
8189
|
+
gql?: {
|
|
8190
|
+
auth?: boolean;
|
|
8191
|
+
};
|
|
8192
|
+
client?: {
|
|
8193
|
+
url?: string;
|
|
8194
|
+
contactEmail?: string;
|
|
8195
|
+
};
|
|
8196
|
+
}, T_3>>;
|
|
7485
8197
|
parseRelationString(relation: string): {
|
|
7486
8198
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
7487
|
-
relatedId: string
|
|
8199
|
+
relatedId: string;
|
|
7488
8200
|
};
|
|
7489
8201
|
isValidUserContext<T_4 extends {
|
|
7490
8202
|
id?: string | number;
|
|
@@ -7507,7 +8219,10 @@ declare const _default: {
|
|
|
7507
8219
|
authorName?: string;
|
|
7508
8220
|
authorEmail?: string;
|
|
7509
8221
|
authorAvatar?: string;
|
|
7510
|
-
authorUser?: string
|
|
8222
|
+
authorUser?: string | {
|
|
8223
|
+
id?: number;
|
|
8224
|
+
email?: string;
|
|
8225
|
+
};
|
|
7511
8226
|
locale?: string;
|
|
7512
8227
|
gotThread?: boolean;
|
|
7513
8228
|
threadFirstItemId?: number;
|
|
@@ -7541,7 +8256,10 @@ declare const _default: {
|
|
|
7541
8256
|
authorName?: string;
|
|
7542
8257
|
authorEmail?: string;
|
|
7543
8258
|
authorAvatar?: string;
|
|
7544
|
-
authorUser?: string
|
|
8259
|
+
authorUser?: string | {
|
|
8260
|
+
id?: number;
|
|
8261
|
+
email?: string;
|
|
8262
|
+
};
|
|
7545
8263
|
locale?: string;
|
|
7546
8264
|
gotThread?: boolean;
|
|
7547
8265
|
threadFirstItemId?: number;
|
|
@@ -7570,6 +8288,8 @@ declare const _default: {
|
|
|
7570
8288
|
approvalStatus?: string;
|
|
7571
8289
|
related?: {
|
|
7572
8290
|
id?: number;
|
|
8291
|
+
documentId?: string;
|
|
8292
|
+
locale?: string;
|
|
7573
8293
|
uid?: string;
|
|
7574
8294
|
requireCommentsApproval?: boolean;
|
|
7575
8295
|
};
|
|
@@ -7580,7 +8300,10 @@ declare const _default: {
|
|
|
7580
8300
|
authorName?: string;
|
|
7581
8301
|
authorEmail?: string;
|
|
7582
8302
|
authorAvatar?: string;
|
|
7583
|
-
authorUser?: string
|
|
8303
|
+
authorUser?: string | {
|
|
8304
|
+
id?: number;
|
|
8305
|
+
email?: string;
|
|
8306
|
+
};
|
|
7584
8307
|
locale?: string;
|
|
7585
8308
|
gotThread?: boolean;
|
|
7586
8309
|
threadFirstItemId?: number;
|
|
@@ -7614,7 +8337,10 @@ declare const _default: {
|
|
|
7614
8337
|
authorName?: string;
|
|
7615
8338
|
authorEmail?: string;
|
|
7616
8339
|
authorAvatar?: string;
|
|
7617
|
-
authorUser?: string
|
|
8340
|
+
authorUser?: string | {
|
|
8341
|
+
id?: number;
|
|
8342
|
+
email?: string;
|
|
8343
|
+
};
|
|
7618
8344
|
locale?: string;
|
|
7619
8345
|
gotThread?: boolean;
|
|
7620
8346
|
threadFirstItemId?: number;
|
|
@@ -7649,7 +8375,10 @@ declare const _default: {
|
|
|
7649
8375
|
authorName?: string;
|
|
7650
8376
|
authorEmail?: string;
|
|
7651
8377
|
authorAvatar?: string;
|
|
7652
|
-
authorUser?: string
|
|
8378
|
+
authorUser?: string | {
|
|
8379
|
+
id?: number;
|
|
8380
|
+
email?: string;
|
|
8381
|
+
};
|
|
7653
8382
|
locale?: string;
|
|
7654
8383
|
gotThread?: boolean;
|
|
7655
8384
|
threadFirstItemId?: number;
|
|
@@ -7683,7 +8412,10 @@ declare const _default: {
|
|
|
7683
8412
|
authorName?: string;
|
|
7684
8413
|
authorEmail?: string;
|
|
7685
8414
|
authorAvatar?: string;
|
|
7686
|
-
authorUser?: string
|
|
8415
|
+
authorUser?: string | {
|
|
8416
|
+
id?: number;
|
|
8417
|
+
email?: string;
|
|
8418
|
+
};
|
|
7687
8419
|
locale?: string;
|
|
7688
8420
|
gotThread?: boolean;
|
|
7689
8421
|
threadFirstItemId?: number;
|
|
@@ -7701,44 +8433,20 @@ declare const _default: {
|
|
|
7701
8433
|
author?: any;
|
|
7702
8434
|
};
|
|
7703
8435
|
};
|
|
7704
|
-
findAllFlat({ fields, limit, skip, sort,
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
|
|
7713
|
-
|
|
7714
|
-
|
|
7715
|
-
|
|
7716
|
-
|
|
7717
|
-
|
|
7718
|
-
} | {
|
|
7719
|
-
$lt?: string;
|
|
7720
|
-
} | {
|
|
7721
|
-
$lte?: string;
|
|
7722
|
-
} | {
|
|
7723
|
-
$startsWith?: string;
|
|
7724
|
-
} | {
|
|
7725
|
-
$startsWithi?: string;
|
|
7726
|
-
} | {
|
|
7727
|
-
$endsWith?: string;
|
|
7728
|
-
} | {
|
|
7729
|
-
$endsWithi?: string;
|
|
7730
|
-
} | {
|
|
7731
|
-
$contains?: string;
|
|
7732
|
-
} | {
|
|
7733
|
-
$containsi?: string;
|
|
7734
|
-
} | {
|
|
7735
|
-
$notContains?: string;
|
|
7736
|
-
} | {
|
|
7737
|
-
$notContainsi?: string;
|
|
7738
|
-
} | {
|
|
7739
|
-
$notNull?: boolean;
|
|
7740
|
-
}>[];
|
|
7741
|
-
$or?: Record<string, string | number | {
|
|
8436
|
+
findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
|
|
8437
|
+
sort?: string;
|
|
8438
|
+
locale?: string;
|
|
8439
|
+
pagination?: {
|
|
8440
|
+
page?: number;
|
|
8441
|
+
pageSize?: number;
|
|
8442
|
+
withCount?: boolean;
|
|
8443
|
+
};
|
|
8444
|
+
relation?: `${string}::${string}.${string}`;
|
|
8445
|
+
populate?: Record<string, boolean | {
|
|
8446
|
+
populate?: boolean;
|
|
8447
|
+
}>;
|
|
8448
|
+
filters?: {
|
|
8449
|
+
id?: string | number | {
|
|
7742
8450
|
$eq?: string;
|
|
7743
8451
|
} | {
|
|
7744
8452
|
$eqi?: string;
|
|
@@ -7772,10 +8480,7 @@ declare const _default: {
|
|
|
7772
8480
|
$notContainsi?: string;
|
|
7773
8481
|
} | {
|
|
7774
8482
|
$notNull?: boolean;
|
|
7775
|
-
}
|
|
7776
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
7777
|
-
sort?: string;
|
|
7778
|
-
filter?: {
|
|
8483
|
+
};
|
|
7779
8484
|
content?: string | number | {
|
|
7780
8485
|
$eq?: string;
|
|
7781
8486
|
} | {
|
|
@@ -7917,15 +8622,6 @@ declare const _default: {
|
|
|
7917
8622
|
$notNull?: boolean;
|
|
7918
8623
|
};
|
|
7919
8624
|
};
|
|
7920
|
-
pagination?: {
|
|
7921
|
-
page?: number;
|
|
7922
|
-
pageSize?: number;
|
|
7923
|
-
withCount?: boolean;
|
|
7924
|
-
};
|
|
7925
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
7926
|
-
populate?: Record<string, boolean | {
|
|
7927
|
-
populate?: boolean;
|
|
7928
|
-
}>;
|
|
7929
8625
|
limit?: number;
|
|
7930
8626
|
fields?: string[];
|
|
7931
8627
|
omit?: string[];
|
|
@@ -7950,7 +8646,10 @@ declare const _default: {
|
|
|
7950
8646
|
authorName?: string;
|
|
7951
8647
|
authorEmail?: string;
|
|
7952
8648
|
authorAvatar?: string;
|
|
7953
|
-
authorUser?: string
|
|
8649
|
+
authorUser?: string | {
|
|
8650
|
+
id?: number;
|
|
8651
|
+
email?: string;
|
|
8652
|
+
};
|
|
7954
8653
|
locale?: string;
|
|
7955
8654
|
gotThread?: boolean;
|
|
7956
8655
|
threadFirstItemId?: number;
|
|
@@ -7984,7 +8683,10 @@ declare const _default: {
|
|
|
7984
8683
|
authorName?: string;
|
|
7985
8684
|
authorEmail?: string;
|
|
7986
8685
|
authorAvatar?: string;
|
|
7987
|
-
authorUser?: string
|
|
8686
|
+
authorUser?: string | {
|
|
8687
|
+
id?: number;
|
|
8688
|
+
email?: string;
|
|
8689
|
+
};
|
|
7988
8690
|
locale?: string;
|
|
7989
8691
|
gotThread?: boolean;
|
|
7990
8692
|
threadFirstItemId?: number;
|
|
@@ -8013,6 +8715,8 @@ declare const _default: {
|
|
|
8013
8715
|
approvalStatus?: string;
|
|
8014
8716
|
related?: {
|
|
8015
8717
|
id?: number;
|
|
8718
|
+
documentId?: string;
|
|
8719
|
+
locale?: string;
|
|
8016
8720
|
uid?: string;
|
|
8017
8721
|
requireCommentsApproval?: boolean;
|
|
8018
8722
|
};
|
|
@@ -8023,7 +8727,10 @@ declare const _default: {
|
|
|
8023
8727
|
authorName?: string;
|
|
8024
8728
|
authorEmail?: string;
|
|
8025
8729
|
authorAvatar?: string;
|
|
8026
|
-
authorUser?: string
|
|
8730
|
+
authorUser?: string | {
|
|
8731
|
+
id?: number;
|
|
8732
|
+
email?: string;
|
|
8733
|
+
};
|
|
8027
8734
|
locale?: string;
|
|
8028
8735
|
gotThread?: boolean;
|
|
8029
8736
|
threadFirstItemId?: number;
|
|
@@ -8057,7 +8764,10 @@ declare const _default: {
|
|
|
8057
8764
|
authorName?: string;
|
|
8058
8765
|
authorEmail?: string;
|
|
8059
8766
|
authorAvatar?: string;
|
|
8060
|
-
authorUser?: string
|
|
8767
|
+
authorUser?: string | {
|
|
8768
|
+
id?: number;
|
|
8769
|
+
email?: string;
|
|
8770
|
+
};
|
|
8061
8771
|
locale?: string;
|
|
8062
8772
|
gotThread?: boolean;
|
|
8063
8773
|
threadFirstItemId?: number;
|
|
@@ -8082,44 +8792,15 @@ declare const _default: {
|
|
|
8082
8792
|
total?: number;
|
|
8083
8793
|
};
|
|
8084
8794
|
}>;
|
|
8085
|
-
findAllInHierarchy({
|
|
8086
|
-
|
|
8087
|
-
|
|
8088
|
-
|
|
8089
|
-
|
|
8090
|
-
|
|
8091
|
-
|
|
8092
|
-
|
|
8093
|
-
|
|
8094
|
-
$nei?: string;
|
|
8095
|
-
} | {
|
|
8096
|
-
$gt?: string;
|
|
8097
|
-
} | {
|
|
8098
|
-
$gte?: string;
|
|
8099
|
-
} | {
|
|
8100
|
-
$lt?: string;
|
|
8101
|
-
} | {
|
|
8102
|
-
$lte?: string;
|
|
8103
|
-
} | {
|
|
8104
|
-
$startsWith?: string;
|
|
8105
|
-
} | {
|
|
8106
|
-
$startsWithi?: string;
|
|
8107
|
-
} | {
|
|
8108
|
-
$endsWith?: string;
|
|
8109
|
-
} | {
|
|
8110
|
-
$endsWithi?: string;
|
|
8111
|
-
} | {
|
|
8112
|
-
$contains?: string;
|
|
8113
|
-
} | {
|
|
8114
|
-
$containsi?: string;
|
|
8115
|
-
} | {
|
|
8116
|
-
$notContains?: string;
|
|
8117
|
-
} | {
|
|
8118
|
-
$notContainsi?: string;
|
|
8119
|
-
} | {
|
|
8120
|
-
$notNull?: boolean;
|
|
8121
|
-
}>[];
|
|
8122
|
-
$or?: Record<string, string | number | {
|
|
8795
|
+
findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
|
|
8796
|
+
sort?: string;
|
|
8797
|
+
locale?: string;
|
|
8798
|
+
relation?: `${string}::${string}.${string}`;
|
|
8799
|
+
populate?: Record<string, boolean | {
|
|
8800
|
+
populate?: boolean;
|
|
8801
|
+
}>;
|
|
8802
|
+
filters?: {
|
|
8803
|
+
id?: string | number | {
|
|
8123
8804
|
$eq?: string;
|
|
8124
8805
|
} | {
|
|
8125
8806
|
$eqi?: string;
|
|
@@ -8153,10 +8834,7 @@ declare const _default: {
|
|
|
8153
8834
|
$notContainsi?: string;
|
|
8154
8835
|
} | {
|
|
8155
8836
|
$notNull?: boolean;
|
|
8156
|
-
}
|
|
8157
|
-
} | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
|
|
8158
|
-
sort?: string;
|
|
8159
|
-
filter?: {
|
|
8837
|
+
};
|
|
8160
8838
|
content?: string | number | {
|
|
8161
8839
|
$eq?: string;
|
|
8162
8840
|
} | {
|
|
@@ -8298,10 +8976,6 @@ declare const _default: {
|
|
|
8298
8976
|
$notNull?: boolean;
|
|
8299
8977
|
};
|
|
8300
8978
|
};
|
|
8301
|
-
relation?: `{${string}::${string}.${number}}`;
|
|
8302
|
-
populate?: Record<string, boolean | {
|
|
8303
|
-
populate?: boolean;
|
|
8304
|
-
}>;
|
|
8305
8979
|
limit?: number;
|
|
8306
8980
|
fields?: string[];
|
|
8307
8981
|
omit?: string[];
|
|
@@ -8327,7 +9001,10 @@ declare const _default: {
|
|
|
8327
9001
|
authorName?: string;
|
|
8328
9002
|
authorEmail?: string;
|
|
8329
9003
|
authorAvatar?: string;
|
|
8330
|
-
authorUser?: string
|
|
9004
|
+
authorUser?: string | {
|
|
9005
|
+
id?: number;
|
|
9006
|
+
email?: string;
|
|
9007
|
+
};
|
|
8331
9008
|
locale?: string;
|
|
8332
9009
|
gotThread?: boolean;
|
|
8333
9010
|
threadFirstItemId?: number;
|
|
@@ -8361,7 +9038,10 @@ declare const _default: {
|
|
|
8361
9038
|
authorName?: string;
|
|
8362
9039
|
authorEmail?: string;
|
|
8363
9040
|
authorAvatar?: string;
|
|
8364
|
-
authorUser?: string
|
|
9041
|
+
authorUser?: string | {
|
|
9042
|
+
id?: number;
|
|
9043
|
+
email?: string;
|
|
9044
|
+
};
|
|
8365
9045
|
locale?: string;
|
|
8366
9046
|
gotThread?: boolean;
|
|
8367
9047
|
threadFirstItemId?: number;
|
|
@@ -8397,7 +9077,10 @@ declare const _default: {
|
|
|
8397
9077
|
authorName?: string;
|
|
8398
9078
|
authorEmail?: string;
|
|
8399
9079
|
authorAvatar?: string;
|
|
8400
|
-
authorUser?: string
|
|
9080
|
+
authorUser?: string | {
|
|
9081
|
+
id?: number;
|
|
9082
|
+
email?: string;
|
|
9083
|
+
};
|
|
8401
9084
|
locale?: string;
|
|
8402
9085
|
gotThread?: boolean;
|
|
8403
9086
|
threadFirstItemId?: number;
|
|
@@ -8431,7 +9114,10 @@ declare const _default: {
|
|
|
8431
9114
|
authorName?: string;
|
|
8432
9115
|
authorEmail?: string;
|
|
8433
9116
|
authorAvatar?: string;
|
|
8434
|
-
authorUser?: string
|
|
9117
|
+
authorUser?: string | {
|
|
9118
|
+
id?: number;
|
|
9119
|
+
email?: string;
|
|
9120
|
+
};
|
|
8435
9121
|
locale?: string;
|
|
8436
9122
|
gotThread?: boolean;
|
|
8437
9123
|
threadFirstItemId?: number;
|
|
@@ -8467,7 +9153,10 @@ declare const _default: {
|
|
|
8467
9153
|
authorName?: string;
|
|
8468
9154
|
authorEmail?: string;
|
|
8469
9155
|
authorAvatar?: string;
|
|
8470
|
-
authorUser?: string
|
|
9156
|
+
authorUser?: string | {
|
|
9157
|
+
id?: number;
|
|
9158
|
+
email?: string;
|
|
9159
|
+
};
|
|
8471
9160
|
locale?: string;
|
|
8472
9161
|
gotThread?: boolean;
|
|
8473
9162
|
threadFirstItemId?: number;
|
|
@@ -8501,7 +9190,10 @@ declare const _default: {
|
|
|
8501
9190
|
authorName?: string;
|
|
8502
9191
|
authorEmail?: string;
|
|
8503
9192
|
authorAvatar?: string;
|
|
8504
|
-
authorUser?: string
|
|
9193
|
+
authorUser?: string | {
|
|
9194
|
+
id?: number;
|
|
9195
|
+
email?: string;
|
|
9196
|
+
};
|
|
8505
9197
|
locale?: string;
|
|
8506
9198
|
gotThread?: boolean;
|
|
8507
9199
|
threadFirstItemId?: number;
|
|
@@ -8537,7 +9229,10 @@ declare const _default: {
|
|
|
8537
9229
|
authorName?: string;
|
|
8538
9230
|
authorEmail?: string;
|
|
8539
9231
|
authorAvatar?: string;
|
|
8540
|
-
authorUser?: string
|
|
9232
|
+
authorUser?: string | {
|
|
9233
|
+
id?: number;
|
|
9234
|
+
email?: string;
|
|
9235
|
+
};
|
|
8541
9236
|
locale?: string;
|
|
8542
9237
|
gotThread?: boolean;
|
|
8543
9238
|
threadFirstItemId?: number;
|
|
@@ -8571,7 +9266,10 @@ declare const _default: {
|
|
|
8571
9266
|
authorName?: string;
|
|
8572
9267
|
authorEmail?: string;
|
|
8573
9268
|
authorAvatar?: string;
|
|
8574
|
-
authorUser?: string
|
|
9269
|
+
authorUser?: string | {
|
|
9270
|
+
id?: number;
|
|
9271
|
+
email?: string;
|
|
9272
|
+
};
|
|
8575
9273
|
locale?: string;
|
|
8576
9274
|
gotThread?: boolean;
|
|
8577
9275
|
threadFirstItemId?: number;
|
|
@@ -8606,7 +9304,10 @@ declare const _default: {
|
|
|
8606
9304
|
authorName?: string;
|
|
8607
9305
|
authorEmail?: string;
|
|
8608
9306
|
authorAvatar?: string;
|
|
8609
|
-
authorUser?: string
|
|
9307
|
+
authorUser?: string | {
|
|
9308
|
+
id?: number;
|
|
9309
|
+
email?: string;
|
|
9310
|
+
};
|
|
8610
9311
|
locale?: string;
|
|
8611
9312
|
gotThread?: boolean;
|
|
8612
9313
|
threadFirstItemId?: number;
|
|
@@ -8640,7 +9341,10 @@ declare const _default: {
|
|
|
8640
9341
|
authorName?: string;
|
|
8641
9342
|
authorEmail?: string;
|
|
8642
9343
|
authorAvatar?: string;
|
|
8643
|
-
authorUser?: string
|
|
9344
|
+
authorUser?: string | {
|
|
9345
|
+
id?: number;
|
|
9346
|
+
email?: string;
|
|
9347
|
+
};
|
|
8644
9348
|
locale?: string;
|
|
8645
9349
|
gotThread?: boolean;
|
|
8646
9350
|
threadFirstItemId?: number;
|
|
@@ -8658,9 +9362,21 @@ declare const _default: {
|
|
|
8658
9362
|
author?: any;
|
|
8659
9363
|
};
|
|
8660
9364
|
}>;
|
|
8661
|
-
findAllPerAuthor({
|
|
8662
|
-
|
|
8663
|
-
|
|
9365
|
+
findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
|
|
9366
|
+
type?: string;
|
|
9367
|
+
sort?: string;
|
|
9368
|
+
authorId?: string | number;
|
|
9369
|
+
locale?: string;
|
|
9370
|
+
pagination?: {
|
|
9371
|
+
page?: number;
|
|
9372
|
+
pageSize?: number;
|
|
9373
|
+
withCount?: boolean;
|
|
9374
|
+
};
|
|
9375
|
+
populate?: Record<string, boolean | {
|
|
9376
|
+
populate?: boolean;
|
|
9377
|
+
}>;
|
|
9378
|
+
filters?: {
|
|
9379
|
+
id?: string | number | {
|
|
8664
9380
|
$eq?: string;
|
|
8665
9381
|
} | {
|
|
8666
9382
|
$eqi?: string;
|
|
@@ -8694,8 +9410,8 @@ declare const _default: {
|
|
|
8694
9410
|
$notContainsi?: string;
|
|
8695
9411
|
} | {
|
|
8696
9412
|
$notNull?: boolean;
|
|
8697
|
-
}
|
|
8698
|
-
|
|
9413
|
+
};
|
|
9414
|
+
content?: string | number | {
|
|
8699
9415
|
$eq?: string;
|
|
8700
9416
|
} | {
|
|
8701
9417
|
$eqi?: string;
|
|
@@ -8729,19 +9445,113 @@ declare const _default: {
|
|
|
8729
9445
|
$notContainsi?: string;
|
|
8730
9446
|
} | {
|
|
8731
9447
|
$notNull?: boolean;
|
|
8732
|
-
}
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8737
|
-
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
9448
|
+
};
|
|
9449
|
+
createdAt?: string | number | {
|
|
9450
|
+
$eq?: string;
|
|
9451
|
+
} | {
|
|
9452
|
+
$eqi?: string;
|
|
9453
|
+
} | {
|
|
9454
|
+
$ne?: string;
|
|
9455
|
+
} | {
|
|
9456
|
+
$nei?: string;
|
|
9457
|
+
} | {
|
|
9458
|
+
$gt?: string;
|
|
9459
|
+
} | {
|
|
9460
|
+
$gte?: string;
|
|
9461
|
+
} | {
|
|
9462
|
+
$lt?: string;
|
|
9463
|
+
} | {
|
|
9464
|
+
$lte?: string;
|
|
9465
|
+
} | {
|
|
9466
|
+
$startsWith?: string;
|
|
9467
|
+
} | {
|
|
9468
|
+
$startsWithi?: string;
|
|
9469
|
+
} | {
|
|
9470
|
+
$endsWith?: string;
|
|
9471
|
+
} | {
|
|
9472
|
+
$endsWithi?: string;
|
|
9473
|
+
} | {
|
|
9474
|
+
$contains?: string;
|
|
9475
|
+
} | {
|
|
9476
|
+
$containsi?: string;
|
|
9477
|
+
} | {
|
|
9478
|
+
$notContains?: string;
|
|
9479
|
+
} | {
|
|
9480
|
+
$notContainsi?: string;
|
|
9481
|
+
} | {
|
|
9482
|
+
$notNull?: boolean;
|
|
9483
|
+
};
|
|
9484
|
+
updatedAt?: string | number | {
|
|
9485
|
+
$eq?: string;
|
|
9486
|
+
} | {
|
|
9487
|
+
$eqi?: string;
|
|
9488
|
+
} | {
|
|
9489
|
+
$ne?: string;
|
|
9490
|
+
} | {
|
|
9491
|
+
$nei?: string;
|
|
9492
|
+
} | {
|
|
9493
|
+
$gt?: string;
|
|
9494
|
+
} | {
|
|
9495
|
+
$gte?: string;
|
|
9496
|
+
} | {
|
|
9497
|
+
$lt?: string;
|
|
9498
|
+
} | {
|
|
9499
|
+
$lte?: string;
|
|
9500
|
+
} | {
|
|
9501
|
+
$startsWith?: string;
|
|
9502
|
+
} | {
|
|
9503
|
+
$startsWithi?: string;
|
|
9504
|
+
} | {
|
|
9505
|
+
$endsWith?: string;
|
|
9506
|
+
} | {
|
|
9507
|
+
$endsWithi?: string;
|
|
9508
|
+
} | {
|
|
9509
|
+
$contains?: string;
|
|
9510
|
+
} | {
|
|
9511
|
+
$containsi?: string;
|
|
9512
|
+
} | {
|
|
9513
|
+
$notContains?: string;
|
|
9514
|
+
} | {
|
|
9515
|
+
$notContainsi?: string;
|
|
9516
|
+
} | {
|
|
9517
|
+
$notNull?: boolean;
|
|
9518
|
+
};
|
|
9519
|
+
authorName?: string | number | {
|
|
9520
|
+
$eq?: string;
|
|
9521
|
+
} | {
|
|
9522
|
+
$eqi?: string;
|
|
9523
|
+
} | {
|
|
9524
|
+
$ne?: string;
|
|
9525
|
+
} | {
|
|
9526
|
+
$nei?: string;
|
|
9527
|
+
} | {
|
|
9528
|
+
$gt?: string;
|
|
9529
|
+
} | {
|
|
9530
|
+
$gte?: string;
|
|
9531
|
+
} | {
|
|
9532
|
+
$lt?: string;
|
|
9533
|
+
} | {
|
|
9534
|
+
$lte?: string;
|
|
9535
|
+
} | {
|
|
9536
|
+
$startsWith?: string;
|
|
9537
|
+
} | {
|
|
9538
|
+
$startsWithi?: string;
|
|
9539
|
+
} | {
|
|
9540
|
+
$endsWith?: string;
|
|
9541
|
+
} | {
|
|
9542
|
+
$endsWithi?: string;
|
|
9543
|
+
} | {
|
|
9544
|
+
$contains?: string;
|
|
9545
|
+
} | {
|
|
9546
|
+
$containsi?: string;
|
|
9547
|
+
} | {
|
|
9548
|
+
$notContains?: string;
|
|
9549
|
+
} | {
|
|
9550
|
+
$notContainsi?: string;
|
|
9551
|
+
} | {
|
|
9552
|
+
$notNull?: boolean;
|
|
9553
|
+
};
|
|
8741
9554
|
};
|
|
8742
|
-
populate?: Record<string, boolean | {
|
|
8743
|
-
populate?: boolean;
|
|
8744
|
-
}>;
|
|
8745
9555
|
limit?: number;
|
|
8746
9556
|
fields?: string[];
|
|
8747
9557
|
omit?: string[];
|
|
@@ -8766,7 +9576,10 @@ declare const _default: {
|
|
|
8766
9576
|
authorName?: string;
|
|
8767
9577
|
authorEmail?: string;
|
|
8768
9578
|
authorAvatar?: string;
|
|
8769
|
-
authorUser?: string
|
|
9579
|
+
authorUser?: string | {
|
|
9580
|
+
id?: number;
|
|
9581
|
+
email?: string;
|
|
9582
|
+
};
|
|
8770
9583
|
locale?: string;
|
|
8771
9584
|
gotThread?: boolean;
|
|
8772
9585
|
threadFirstItemId?: number;
|
|
@@ -8799,7 +9612,10 @@ declare const _default: {
|
|
|
8799
9612
|
authorName?: string;
|
|
8800
9613
|
authorEmail?: string;
|
|
8801
9614
|
authorAvatar?: string;
|
|
8802
|
-
authorUser?: string
|
|
9615
|
+
authorUser?: string | {
|
|
9616
|
+
id?: number;
|
|
9617
|
+
email?: string;
|
|
9618
|
+
};
|
|
8803
9619
|
locale?: string;
|
|
8804
9620
|
gotThread?: boolean;
|
|
8805
9621
|
threadFirstItemId?: number;
|
|
@@ -8828,6 +9644,8 @@ declare const _default: {
|
|
|
8828
9644
|
approvalStatus?: string;
|
|
8829
9645
|
related?: {
|
|
8830
9646
|
id?: number;
|
|
9647
|
+
documentId?: string;
|
|
9648
|
+
locale?: string;
|
|
8831
9649
|
uid?: string;
|
|
8832
9650
|
requireCommentsApproval?: boolean;
|
|
8833
9651
|
};
|
|
@@ -8838,7 +9656,10 @@ declare const _default: {
|
|
|
8838
9656
|
authorName?: string;
|
|
8839
9657
|
authorEmail?: string;
|
|
8840
9658
|
authorAvatar?: string;
|
|
8841
|
-
authorUser?: string
|
|
9659
|
+
authorUser?: string | {
|
|
9660
|
+
id?: number;
|
|
9661
|
+
email?: string;
|
|
9662
|
+
};
|
|
8842
9663
|
locale?: string;
|
|
8843
9664
|
gotThread?: boolean;
|
|
8844
9665
|
threadFirstItemId?: number;
|
|
@@ -8871,7 +9692,10 @@ declare const _default: {
|
|
|
8871
9692
|
authorName?: string;
|
|
8872
9693
|
authorEmail?: string;
|
|
8873
9694
|
authorAvatar?: string;
|
|
8874
|
-
authorUser?: string
|
|
9695
|
+
authorUser?: string | {
|
|
9696
|
+
id?: number;
|
|
9697
|
+
email?: string;
|
|
9698
|
+
};
|
|
8875
9699
|
locale?: string;
|
|
8876
9700
|
gotThread?: boolean;
|
|
8877
9701
|
threadFirstItemId?: number;
|
|
@@ -8914,7 +9738,10 @@ declare const _default: {
|
|
|
8914
9738
|
authorName?: string;
|
|
8915
9739
|
authorEmail?: string;
|
|
8916
9740
|
authorAvatar?: string;
|
|
8917
|
-
authorUser?: string
|
|
9741
|
+
authorUser?: string | {
|
|
9742
|
+
id?: number;
|
|
9743
|
+
email?: string;
|
|
9744
|
+
};
|
|
8918
9745
|
locale?: string;
|
|
8919
9746
|
gotThread?: boolean;
|
|
8920
9747
|
threadFirstItemId?: number;
|
|
@@ -8948,7 +9775,10 @@ declare const _default: {
|
|
|
8948
9775
|
authorName?: string;
|
|
8949
9776
|
authorEmail?: string;
|
|
8950
9777
|
authorAvatar?: string;
|
|
8951
|
-
authorUser?: string
|
|
9778
|
+
authorUser?: string | {
|
|
9779
|
+
id?: number;
|
|
9780
|
+
email?: string;
|
|
9781
|
+
};
|
|
8952
9782
|
locale?: string;
|
|
8953
9783
|
gotThread?: boolean;
|
|
8954
9784
|
threadFirstItemId?: number;
|
|
@@ -8967,6 +9797,8 @@ declare const _default: {
|
|
|
8967
9797
|
};
|
|
8968
9798
|
}[]): Promise<{
|
|
8969
9799
|
id?: number;
|
|
9800
|
+
documentId?: string;
|
|
9801
|
+
locale?: string;
|
|
8970
9802
|
uid?: string;
|
|
8971
9803
|
requireCommentsApproval?: boolean;
|
|
8972
9804
|
}[]>;
|
|
@@ -8988,7 +9820,10 @@ declare const _default: {
|
|
|
8988
9820
|
authorName?: string;
|
|
8989
9821
|
authorEmail?: string;
|
|
8990
9822
|
authorAvatar?: string;
|
|
8991
|
-
authorUser?: string
|
|
9823
|
+
authorUser?: string | {
|
|
9824
|
+
id?: number;
|
|
9825
|
+
email?: string;
|
|
9826
|
+
};
|
|
8992
9827
|
locale?: string;
|
|
8993
9828
|
gotThread?: boolean;
|
|
8994
9829
|
threadFirstItemId?: number;
|
|
@@ -9022,7 +9857,10 @@ declare const _default: {
|
|
|
9022
9857
|
authorName?: string;
|
|
9023
9858
|
authorEmail?: string;
|
|
9024
9859
|
authorAvatar?: string;
|
|
9025
|
-
authorUser?: string
|
|
9860
|
+
authorUser?: string | {
|
|
9861
|
+
id?: number;
|
|
9862
|
+
email?: string;
|
|
9863
|
+
};
|
|
9026
9864
|
locale?: string;
|
|
9027
9865
|
gotThread?: boolean;
|
|
9028
9866
|
threadFirstItemId?: number;
|
|
@@ -9041,6 +9879,8 @@ declare const _default: {
|
|
|
9041
9879
|
};
|
|
9042
9880
|
}, relatedEntities?: {
|
|
9043
9881
|
id?: number;
|
|
9882
|
+
documentId?: string;
|
|
9883
|
+
locale?: string;
|
|
9044
9884
|
uid?: string;
|
|
9045
9885
|
requireCommentsApproval?: boolean;
|
|
9046
9886
|
}[]): {
|
|
@@ -9055,6 +9895,8 @@ declare const _default: {
|
|
|
9055
9895
|
approvalStatus?: string;
|
|
9056
9896
|
related?: {
|
|
9057
9897
|
id?: number;
|
|
9898
|
+
documentId?: string;
|
|
9899
|
+
locale?: string;
|
|
9058
9900
|
uid?: string;
|
|
9059
9901
|
requireCommentsApproval?: boolean;
|
|
9060
9902
|
};
|
|
@@ -9065,7 +9907,10 @@ declare const _default: {
|
|
|
9065
9907
|
authorName?: string;
|
|
9066
9908
|
authorEmail?: string;
|
|
9067
9909
|
authorAvatar?: string;
|
|
9068
|
-
authorUser?: string
|
|
9910
|
+
authorUser?: string | {
|
|
9911
|
+
id?: number;
|
|
9912
|
+
email?: string;
|
|
9913
|
+
};
|
|
9069
9914
|
locale?: string;
|
|
9070
9915
|
gotThread?: boolean;
|
|
9071
9916
|
threadFirstItemId?: number;
|
|
@@ -9099,7 +9944,10 @@ declare const _default: {
|
|
|
9099
9944
|
authorName?: string;
|
|
9100
9945
|
authorEmail?: string;
|
|
9101
9946
|
authorAvatar?: string;
|
|
9102
|
-
authorUser?: string
|
|
9947
|
+
authorUser?: string | {
|
|
9948
|
+
id?: number;
|
|
9949
|
+
email?: string;
|
|
9950
|
+
};
|
|
9103
9951
|
locale?: string;
|
|
9104
9952
|
gotThread?: boolean;
|
|
9105
9953
|
threadFirstItemId?: number;
|
|
@@ -9117,7 +9965,7 @@ declare const _default: {
|
|
|
9117
9965
|
author?: any;
|
|
9118
9966
|
};
|
|
9119
9967
|
};
|
|
9120
|
-
modifiedNestedNestedComments<T_5 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
|
|
9968
|
+
modifiedNestedNestedComments<T_5 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_5, value: {
|
|
9121
9969
|
id?: number;
|
|
9122
9970
|
documentId?: string;
|
|
9123
9971
|
content?: string;
|
|
@@ -9135,7 +9983,10 @@ declare const _default: {
|
|
|
9135
9983
|
authorName?: string;
|
|
9136
9984
|
authorEmail?: string;
|
|
9137
9985
|
authorAvatar?: string;
|
|
9138
|
-
authorUser?: string
|
|
9986
|
+
authorUser?: string | {
|
|
9987
|
+
id?: number;
|
|
9988
|
+
email?: string;
|
|
9989
|
+
};
|
|
9139
9990
|
locale?: string;
|
|
9140
9991
|
gotThread?: boolean;
|
|
9141
9992
|
threadFirstItemId?: number;
|
|
@@ -9169,7 +10020,10 @@ declare const _default: {
|
|
|
9169
10020
|
authorName?: string;
|
|
9170
10021
|
authorEmail?: string;
|
|
9171
10022
|
authorAvatar?: string;
|
|
9172
|
-
authorUser?: string
|
|
10023
|
+
authorUser?: string | {
|
|
10024
|
+
id?: number;
|
|
10025
|
+
email?: string;
|
|
10026
|
+
};
|
|
9173
10027
|
locale?: string;
|
|
9174
10028
|
gotThread?: boolean;
|
|
9175
10029
|
threadFirstItemId?: number;
|
|
@@ -9186,12 +10040,12 @@ declare const _default: {
|
|
|
9186
10040
|
}[];
|
|
9187
10041
|
author?: any;
|
|
9188
10042
|
};
|
|
9189
|
-
}[T_5]): Promise<boolean>;
|
|
10043
|
+
}[T_5], deepLimit?: number): Promise<boolean>;
|
|
9190
10044
|
checkBadWords(content: string): Promise<string>;
|
|
9191
10045
|
registerLifecycleHook(): void;
|
|
9192
10046
|
runLifecycleHook(): Promise<void>;
|
|
9193
10047
|
};
|
|
9194
|
-
settings: ({ strapi }: import("./@types
|
|
10048
|
+
settings: ({ strapi }: import("./@types").StrapiContext) => {
|
|
9195
10049
|
getConfig: (viaSettingsPage?: boolean) => Promise<{
|
|
9196
10050
|
enabledCollections?: string[];
|
|
9197
10051
|
approvalFlow?: string[];
|
|
@@ -9206,6 +10060,13 @@ declare const _default: {
|
|
|
9206
10060
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9207
10061
|
};
|
|
9208
10062
|
isGQLPluginEnabled?: boolean;
|
|
10063
|
+
gql?: {
|
|
10064
|
+
auth?: boolean;
|
|
10065
|
+
};
|
|
10066
|
+
client?: {
|
|
10067
|
+
url?: string;
|
|
10068
|
+
contactEmail?: string;
|
|
10069
|
+
};
|
|
9209
10070
|
} | Omit<{
|
|
9210
10071
|
enabledCollections?: string[];
|
|
9211
10072
|
approvalFlow?: string[];
|
|
@@ -9220,6 +10081,13 @@ declare const _default: {
|
|
|
9220
10081
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9221
10082
|
};
|
|
9222
10083
|
isGQLPluginEnabled?: boolean;
|
|
10084
|
+
gql?: {
|
|
10085
|
+
auth?: boolean;
|
|
10086
|
+
};
|
|
10087
|
+
client?: {
|
|
10088
|
+
url?: string;
|
|
10089
|
+
contactEmail?: string;
|
|
10090
|
+
};
|
|
9223
10091
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
9224
10092
|
update: (config: {
|
|
9225
10093
|
enabledCollections?: string[];
|
|
@@ -9235,6 +10103,13 @@ declare const _default: {
|
|
|
9235
10103
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9236
10104
|
};
|
|
9237
10105
|
isGQLPluginEnabled?: boolean;
|
|
10106
|
+
gql?: {
|
|
10107
|
+
auth?: boolean;
|
|
10108
|
+
};
|
|
10109
|
+
client?: {
|
|
10110
|
+
url?: string;
|
|
10111
|
+
contactEmail?: string;
|
|
10112
|
+
};
|
|
9238
10113
|
}) => Promise<{
|
|
9239
10114
|
enabledCollections?: string[];
|
|
9240
10115
|
approvalFlow?: string[];
|
|
@@ -9249,6 +10124,13 @@ declare const _default: {
|
|
|
9249
10124
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9250
10125
|
};
|
|
9251
10126
|
isGQLPluginEnabled?: boolean;
|
|
10127
|
+
gql?: {
|
|
10128
|
+
auth?: boolean;
|
|
10129
|
+
};
|
|
10130
|
+
client?: {
|
|
10131
|
+
url?: string;
|
|
10132
|
+
contactEmail?: string;
|
|
10133
|
+
};
|
|
9252
10134
|
} | Omit<{
|
|
9253
10135
|
enabledCollections?: string[];
|
|
9254
10136
|
approvalFlow?: string[];
|
|
@@ -9263,6 +10145,13 @@ declare const _default: {
|
|
|
9263
10145
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9264
10146
|
};
|
|
9265
10147
|
isGQLPluginEnabled?: boolean;
|
|
10148
|
+
gql?: {
|
|
10149
|
+
auth?: boolean;
|
|
10150
|
+
};
|
|
10151
|
+
client?: {
|
|
10152
|
+
url?: string;
|
|
10153
|
+
contactEmail?: string;
|
|
10154
|
+
};
|
|
9266
10155
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
9267
10156
|
restore: () => Promise<{
|
|
9268
10157
|
enabledCollections?: string[];
|
|
@@ -9278,6 +10167,13 @@ declare const _default: {
|
|
|
9278
10167
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9279
10168
|
};
|
|
9280
10169
|
isGQLPluginEnabled?: boolean;
|
|
10170
|
+
gql?: {
|
|
10171
|
+
auth?: boolean;
|
|
10172
|
+
};
|
|
10173
|
+
client?: {
|
|
10174
|
+
url?: string;
|
|
10175
|
+
contactEmail?: string;
|
|
10176
|
+
};
|
|
9281
10177
|
} | Omit<{
|
|
9282
10178
|
enabledCollections?: string[];
|
|
9283
10179
|
approvalFlow?: string[];
|
|
@@ -9292,9 +10188,20 @@ declare const _default: {
|
|
|
9292
10188
|
OTHER?: import("./const").REPORT_REASON.OTHER;
|
|
9293
10189
|
};
|
|
9294
10190
|
isGQLPluginEnabled?: boolean;
|
|
10191
|
+
gql?: {
|
|
10192
|
+
auth?: boolean;
|
|
10193
|
+
};
|
|
10194
|
+
client?: {
|
|
10195
|
+
url?: string;
|
|
10196
|
+
contactEmail?: string;
|
|
10197
|
+
};
|
|
9295
10198
|
}, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
|
|
9296
10199
|
restart: () => void;
|
|
9297
10200
|
};
|
|
10201
|
+
gql: ({ strapi }: import("./@types").StrapiContext) => {
|
|
10202
|
+
graphQLFiltersToStrapiQuery: (queryFilters: any, contentType?: any) => any;
|
|
10203
|
+
buildContentTypeFilters<T_6 extends import("@strapi/types/dist/uid").ContentType>(contentType: import("@strapi/types/dist/schema").ContentType<T_6>): import("nexus/dist/core").NexusInputObjectTypeDef<any>;
|
|
10204
|
+
};
|
|
9298
10205
|
};
|
|
9299
10206
|
contentTypes: {
|
|
9300
10207
|
comment: {
|