strapi-plugin-comments 3.0.0-beta.1 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +81 -122
  2. package/dist/_chunks/{index-D3iNqWZT.mjs → index-BC5Odn17.mjs} +5 -5
  3. package/dist/_chunks/{index-BBcsmSTs.mjs → index-BIorFYba.mjs} +448 -256
  4. package/dist/_chunks/{index-Bcck91A8.js → index-COoWcAcA.js} +1290 -1144
  5. package/dist/_chunks/{index-CY_AVWS-.js → index-Ccb93U47.js} +445 -253
  6. package/dist/_chunks/{index-D9MOkoQ2.mjs → index-D1DAMkhj.mjs} +20 -26
  7. package/dist/_chunks/{index-BFPteXuP.js → index-R1krliyC.js} +5 -5
  8. package/dist/_chunks/{index-DJ32APz-.mjs → index-_exHAK6u.mjs} +1290 -1144
  9. package/dist/_chunks/{index-BXEk5PWx.js → index-k7z0V0lj.js} +20 -26
  10. package/dist/admin/index.js +1 -1
  11. package/dist/admin/index.mjs +1 -1
  12. package/dist/admin/src/api/client.d.ts +30 -50
  13. package/dist/admin/src/api/schemas.d.ts +432 -756
  14. package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
  15. package/dist/admin/src/hooks/useAPI.d.ts +30 -50
  16. package/dist/admin/src/hooks/useCommentsAll.d.ts +6 -10
  17. package/dist/admin/src/hooks/useReports.d.ts +6 -10
  18. package/dist/server/index.js +212 -157
  19. package/dist/server/index.mjs +212 -157
  20. package/dist/server/src/{@types-v5 → @types}/utils.d.ts +4 -0
  21. package/dist/server/src/bootstrap.d.ts +1 -1
  22. package/dist/server/src/config/index.d.ts +30 -0
  23. package/dist/server/src/content-types/index.d.ts +1 -1
  24. package/dist/server/src/controllers/admin.controller.d.ts +108 -29
  25. package/dist/server/src/controllers/client.controller.d.ts +121 -24
  26. package/dist/server/src/controllers/index.d.ts +300 -88
  27. package/dist/server/src/controllers/settings.controller.d.ts +33 -1
  28. package/dist/server/src/graphql/index.d.ts +1 -1
  29. package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +10 -4
  30. package/dist/server/src/graphql/mutations/getCreateComment.d.ts +10 -4
  31. package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +10 -4
  32. package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +10 -4
  33. package/dist/server/src/graphql/mutations/index.d.ts +2 -2
  34. package/dist/server/src/graphql/queries/findAllFlat.d.ts +18 -6
  35. package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +10 -4
  36. package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +18 -6
  37. package/dist/server/src/graphql/queries/index.d.ts +2 -2
  38. package/dist/server/src/graphql/types/getComment.d.ts +1 -1
  39. package/dist/server/src/graphql/types/getCommentAuthor.d.ts +1 -1
  40. package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +1 -1
  41. package/dist/server/src/graphql/types/getCommentNested.d.ts +1 -1
  42. package/dist/server/src/graphql/types/getCreateComment.d.ts +1 -1
  43. package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +1 -1
  44. package/dist/server/src/graphql/types/getCreateReport.d.ts +1 -1
  45. package/dist/server/src/graphql/types/getId.d.ts +1 -1
  46. package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +1 -1
  47. package/dist/server/src/graphql/types/getRemoveComment.d.ts +1 -1
  48. package/dist/server/src/graphql/types/getReport.d.ts +1 -1
  49. package/dist/server/src/graphql/types/getReportReason.d.ts +1 -1
  50. package/dist/server/src/graphql/types/getResponseFindAll.d.ts +1 -1
  51. package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +1 -1
  52. package/dist/server/src/graphql/types/getResponseMeta.d.ts +1 -1
  53. package/dist/server/src/graphql/types/getResponsePagination.d.ts +1 -1
  54. package/dist/server/src/graphql/types/getUpdateComment.d.ts +1 -1
  55. package/dist/server/src/graphql/types/index.d.ts +1 -1
  56. package/dist/server/src/index.d.ts +931 -315
  57. package/dist/server/src/register/custom-fields/index.d.ts +1 -1
  58. package/dist/server/src/register/index.d.ts +1 -1
  59. package/dist/server/src/repositories/comment.repository.d.ts +10 -1
  60. package/dist/server/src/repositories/index.d.ts +0 -2
  61. package/dist/server/src/repositories/report.comment.repository.d.ts +38 -1
  62. package/dist/server/src/repositories/store.repository.d.ts +159 -3
  63. package/dist/server/src/repositories/utils.d.ts +1 -3
  64. package/dist/server/src/routes/admin.routes.d.ts +1 -1
  65. package/dist/server/src/routes/client.routes.d.ts +1 -1
  66. package/dist/server/src/routes/index.d.ts +2 -2
  67. package/dist/server/src/services/admin/admin.service.d.ts +232 -78
  68. package/dist/server/src/services/admin/utils.d.ts +1 -1
  69. package/dist/server/src/services/client.service.d.ts +178 -67
  70. package/dist/server/src/services/common.service.d.ts +60 -19
  71. package/dist/server/src/services/gql.service.d.ts +1 -1
  72. package/dist/server/src/services/index.d.ts +615 -223
  73. package/dist/server/src/services/settings.service.d.ts +25 -1
  74. package/dist/server/src/services/utils/functions.d.ts +1 -3
  75. package/dist/server/src/test/utils.d.ts +1 -0
  76. package/dist/server/src/utils/constants.d.ts +1 -1
  77. package/dist/server/src/utils/getConfig.d.ts +2 -2
  78. package/dist/server/src/utils/getPluginService.d.ts +2 -2
  79. package/dist/server/src/utils/throwError.d.ts +1 -1
  80. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +16 -9
  81. package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +4 -0
  82. package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
  83. package/dist/server/src/validators/repositories/comment.validator.d.ts +384 -72
  84. package/dist/server/src/validators/repositories/reports.validator.d.ts +60 -18
  85. package/dist/server/src/validators/utils.d.ts +1 -1
  86. package/package.json +18 -12
  87. /package/dist/server/src/{@types-v5 → @types}/controllers.d.ts +0 -0
  88. /package/dist/server/src/{@types-v5 → @types}/index.d.ts +0 -0
  89. /package/dist/server/src/{@types-v5 → @types}/repositories.d.ts +0 -0
  90. /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-v5").StrapiContext) => void;
4
- bootstrap: ({ strapi }: import("./@types-v5").StrapiContext) => Promise<void>;
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[];
@@ -20,6 +20,10 @@ declare const _default: {
20
20
  gql?: {
21
21
  auth?: boolean;
22
22
  };
23
+ client?: {
24
+ url?: string;
25
+ contactEmail?: string;
26
+ };
23
27
  };
24
28
  readonly validate: (config: unknown) => import("zod").SafeParseReturnType<{
25
29
  enabledCollections?: string[];
@@ -38,6 +42,10 @@ declare const _default: {
38
42
  gql?: {
39
43
  auth?: boolean;
40
44
  };
45
+ client?: {
46
+ url?: string;
47
+ contactEmail?: string;
48
+ };
41
49
  }, {
42
50
  enabledCollections?: string[];
43
51
  approvalFlow?: string[];
@@ -55,12 +63,16 @@ declare const _default: {
55
63
  gql?: {
56
64
  auth?: boolean;
57
65
  };
66
+ client?: {
67
+ url?: string;
68
+ contactEmail?: string;
69
+ };
58
70
  }>;
59
71
  };
60
72
  controllers: {
61
- admin: ({ strapi }: import("./@types-v5").StrapiContext) => {
62
- getService<T extends "gql" | "admin" | "client" | "common" | "settings">(name: T): import("./services").PluginServices[T];
63
- findAll(ctx: import("./@types-v5").RequestContext): Promise<{
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<{
64
76
  pagination: {
65
77
  page?: number;
66
78
  pageSize?: number;
@@ -91,7 +103,10 @@ declare const _default: {
91
103
  authorName?: string;
92
104
  authorEmail?: string;
93
105
  authorAvatar?: string;
94
- authorUser?: string;
106
+ authorUser?: string | {
107
+ id?: number;
108
+ email?: string;
109
+ };
95
110
  locale?: string;
96
111
  gotThread?: boolean;
97
112
  threadFirstItemId?: number;
@@ -125,7 +140,10 @@ declare const _default: {
125
140
  authorName?: string;
126
141
  authorEmail?: string;
127
142
  authorAvatar?: string;
128
- authorUser?: string;
143
+ authorUser?: string | {
144
+ id?: number;
145
+ email?: string;
146
+ };
129
147
  locale?: string;
130
148
  gotThread?: boolean;
131
149
  threadFirstItemId?: number;
@@ -144,7 +162,7 @@ declare const _default: {
144
162
  };
145
163
  }[];
146
164
  }>;
147
- findReports(ctx: import("./@types-v5").RequestContext): Promise<{
165
+ findReports(ctx: import("./@types").RequestContext): Promise<{
148
166
  result: {
149
167
  id?: number;
150
168
  documentId?: string;
@@ -163,7 +181,10 @@ declare const _default: {
163
181
  authorName?: string;
164
182
  authorEmail?: string;
165
183
  authorAvatar?: string;
166
- authorUser?: string;
184
+ authorUser?: string | {
185
+ id?: number;
186
+ email?: string;
187
+ };
167
188
  locale?: string;
168
189
  gotThread?: boolean;
169
190
  threadFirstItemId?: number;
@@ -197,7 +218,10 @@ declare const _default: {
197
218
  authorName?: string;
198
219
  authorEmail?: string;
199
220
  authorAvatar?: string;
200
- authorUser?: string;
221
+ authorUser?: string | {
222
+ id?: number;
223
+ email?: string;
224
+ };
201
225
  locale?: string;
202
226
  gotThread?: boolean;
203
227
  threadFirstItemId?: number;
@@ -232,12 +256,13 @@ declare const _default: {
232
256
  body: object;
233
257
  };
234
258
  state: {
235
- user?: import("./@types-v5").AdminUser;
259
+ user?: import("./@types").AdminUser;
236
260
  };
237
261
  }): Promise<{
238
262
  entity: {
239
263
  uid: import("@strapi/types/dist/uid").ContentType;
240
- id: import("@strapi/types/dist/data").ID;
264
+ documentId: string;
265
+ id: number;
241
266
  };
242
267
  selected: {
243
268
  id?: number;
@@ -257,7 +282,10 @@ declare const _default: {
257
282
  authorName?: string;
258
283
  authorEmail?: string;
259
284
  authorAvatar?: string;
260
- authorUser?: string;
285
+ authorUser?: string | {
286
+ id?: number;
287
+ email?: string;
288
+ };
261
289
  locale?: string;
262
290
  gotThread?: boolean;
263
291
  threadFirstItemId?: number;
@@ -291,7 +319,10 @@ declare const _default: {
291
319
  authorName?: string;
292
320
  authorEmail?: string;
293
321
  authorAvatar?: string;
294
- authorUser?: string;
322
+ authorUser?: string | {
323
+ id?: number;
324
+ email?: string;
325
+ };
295
326
  locale?: string;
296
327
  gotThread?: boolean;
297
328
  threadFirstItemId?: number;
@@ -327,7 +358,10 @@ declare const _default: {
327
358
  authorName?: string;
328
359
  authorEmail?: string;
329
360
  authorAvatar?: string;
330
- authorUser?: string;
361
+ authorUser?: string | {
362
+ id?: number;
363
+ email?: string;
364
+ };
331
365
  locale?: string;
332
366
  gotThread?: boolean;
333
367
  threadFirstItemId?: number;
@@ -361,7 +395,10 @@ declare const _default: {
361
395
  authorName?: string;
362
396
  authorEmail?: string;
363
397
  authorAvatar?: string;
364
- authorUser?: string;
398
+ authorUser?: string | {
399
+ id?: number;
400
+ email?: string;
401
+ };
365
402
  locale?: string;
366
403
  gotThread?: boolean;
367
404
  threadFirstItemId?: number;
@@ -390,7 +427,7 @@ declare const _default: {
390
427
  body: object;
391
428
  };
392
429
  state: {
393
- user?: import("./@types-v5").AdminUser;
430
+ user?: import("./@types").AdminUser;
394
431
  };
395
432
  }): Promise<{
396
433
  id?: number;
@@ -410,7 +447,10 @@ declare const _default: {
410
447
  authorName?: string;
411
448
  authorEmail?: string;
412
449
  authorAvatar?: string;
413
- authorUser?: string;
450
+ authorUser?: string | {
451
+ id?: number;
452
+ email?: string;
453
+ };
414
454
  locale?: string;
415
455
  gotThread?: boolean;
416
456
  threadFirstItemId?: number;
@@ -444,7 +484,10 @@ declare const _default: {
444
484
  authorName?: string;
445
485
  authorEmail?: string;
446
486
  authorAvatar?: string;
447
- authorUser?: string;
487
+ authorUser?: string | {
488
+ id?: number;
489
+ email?: string;
490
+ };
448
491
  locale?: string;
449
492
  gotThread?: boolean;
450
493
  threadFirstItemId?: number;
@@ -472,7 +515,7 @@ declare const _default: {
472
515
  body: object;
473
516
  };
474
517
  state: {
475
- user?: import("./@types-v5").AdminUser;
518
+ user?: import("./@types").AdminUser;
476
519
  };
477
520
  }): Promise<{
478
521
  id?: number;
@@ -492,7 +535,10 @@ declare const _default: {
492
535
  authorName?: string;
493
536
  authorEmail?: string;
494
537
  authorAvatar?: string;
495
- authorUser?: string;
538
+ authorUser?: string | {
539
+ id?: number;
540
+ email?: string;
541
+ };
496
542
  locale?: string;
497
543
  gotThread?: boolean;
498
544
  threadFirstItemId?: number;
@@ -526,7 +572,10 @@ declare const _default: {
526
572
  authorName?: string;
527
573
  authorEmail?: string;
528
574
  authorAvatar?: string;
529
- authorUser?: string;
575
+ authorUser?: string | {
576
+ id?: number;
577
+ email?: string;
578
+ };
530
579
  locale?: string;
531
580
  gotThread?: boolean;
532
581
  threadFirstItemId?: number;
@@ -554,7 +603,7 @@ declare const _default: {
554
603
  body: object;
555
604
  };
556
605
  state: {
557
- user?: import("./@types-v5").AdminUser;
606
+ user?: import("./@types").AdminUser;
558
607
  };
559
608
  }): Promise<{
560
609
  id?: number;
@@ -574,7 +623,10 @@ declare const _default: {
574
623
  authorName?: string;
575
624
  authorEmail?: string;
576
625
  authorAvatar?: string;
577
- authorUser?: string;
626
+ authorUser?: string | {
627
+ id?: number;
628
+ email?: string;
629
+ };
578
630
  locale?: string;
579
631
  gotThread?: boolean;
580
632
  threadFirstItemId?: number;
@@ -608,7 +660,10 @@ declare const _default: {
608
660
  authorName?: string;
609
661
  authorEmail?: string;
610
662
  authorAvatar?: string;
611
- authorUser?: string;
663
+ authorUser?: string | {
664
+ id?: number;
665
+ email?: string;
666
+ };
612
667
  locale?: string;
613
668
  gotThread?: boolean;
614
669
  threadFirstItemId?: number;
@@ -636,7 +691,7 @@ declare const _default: {
636
691
  body: object;
637
692
  };
638
693
  state: {
639
- user?: import("./@types-v5").AdminUser;
694
+ user?: import("./@types").AdminUser;
640
695
  };
641
696
  }): Promise<{
642
697
  id?: number;
@@ -656,7 +711,10 @@ declare const _default: {
656
711
  authorName?: string;
657
712
  authorEmail?: string;
658
713
  authorAvatar?: string;
659
- authorUser?: string;
714
+ authorUser?: string | {
715
+ id?: number;
716
+ email?: string;
717
+ };
660
718
  locale?: string;
661
719
  gotThread?: boolean;
662
720
  threadFirstItemId?: number;
@@ -690,7 +748,10 @@ declare const _default: {
690
748
  authorName?: string;
691
749
  authorEmail?: string;
692
750
  authorAvatar?: string;
693
- authorUser?: string;
751
+ authorUser?: string | {
752
+ id?: number;
753
+ email?: string;
754
+ };
694
755
  locale?: string;
695
756
  gotThread?: boolean;
696
757
  threadFirstItemId?: number;
@@ -718,7 +779,7 @@ declare const _default: {
718
779
  body: object;
719
780
  };
720
781
  state: {
721
- user?: import("./@types-v5").AdminUser;
782
+ user?: import("./@types").AdminUser;
722
783
  };
723
784
  }): Promise<{
724
785
  id?: number;
@@ -738,7 +799,10 @@ declare const _default: {
738
799
  authorName?: string;
739
800
  authorEmail?: string;
740
801
  authorAvatar?: string;
741
- authorUser?: string;
802
+ authorUser?: string | {
803
+ id?: number;
804
+ email?: string;
805
+ };
742
806
  locale?: string;
743
807
  gotThread?: boolean;
744
808
  threadFirstItemId?: number;
@@ -772,7 +836,10 @@ declare const _default: {
772
836
  authorName?: string;
773
837
  authorEmail?: string;
774
838
  authorAvatar?: string;
775
- authorUser?: string;
839
+ authorUser?: string | {
840
+ id?: number;
841
+ email?: string;
842
+ };
776
843
  locale?: string;
777
844
  gotThread?: boolean;
778
845
  threadFirstItemId?: number;
@@ -790,7 +857,7 @@ declare const _default: {
790
857
  author?: any;
791
858
  };
792
859
  }>;
793
- resolveAbuseReport(ctx: import("./@types-v5").RequestContext<object, {
860
+ resolveAbuseReport(ctx: import("./@types").RequestContext<object, {
794
861
  id: string;
795
862
  reportId: string;
796
863
  }>): Promise<{
@@ -805,16 +872,16 @@ declare const _default: {
805
872
  resolved?: boolean;
806
873
  }>;
807
874
  resolveCommentMultipleAbuseReports(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
808
- body: import("./@types-v5").Id[];
875
+ body: import("./@types").Id[];
809
876
  query: object;
810
877
  params: {
811
878
  id: string;
812
879
  };
813
880
  request: Omit<import("koa").Request, "body"> & {
814
- body: import("./@types-v5").Id[];
881
+ body: import("./@types").Id[];
815
882
  };
816
883
  state: {
817
- user?: import("./@types-v5").AdminUser;
884
+ user?: import("./@types").AdminUser;
818
885
  };
819
886
  }): Promise<import("@strapi/database/dist/types").CountResult>;
820
887
  resolveAllAbuseReportsForComment(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
@@ -827,7 +894,7 @@ declare const _default: {
827
894
  body: object;
828
895
  };
829
896
  state: {
830
- user?: import("./@types-v5").AdminUser;
897
+ user?: import("./@types").AdminUser;
831
898
  };
832
899
  }): Promise<import("@strapi/database/dist/types").CountResult>;
833
900
  resolveAllAbuseReportsForThread(ctx: Omit<import("koa").Context, "body" | "query" | "request"> & {
@@ -840,11 +907,11 @@ declare const _default: {
840
907
  body: object;
841
908
  };
842
909
  state: {
843
- user?: import("./@types-v5").AdminUser;
910
+ user?: import("./@types").AdminUser;
844
911
  };
845
912
  }): Promise<import("@strapi/database/dist/types").CountResult>;
846
- resolveMultipleAbuseReports(ctx: import("./@types-v5").RequestContext<import("./@types-v5").Id[]>): Promise<import("@strapi/database/dist/types").CountResult>;
847
- postComment(ctx: import("./@types-v5").RequestContext<Omit<{
913
+ resolveMultipleAbuseReports(ctx: import("./@types").RequestContext<import("./@types").Id[]>): Promise<import("@strapi/database/dist/types").CountResult>;
914
+ postComment(ctx: import("./@types").RequestContext<Omit<{
848
915
  id?: string | number;
849
916
  content?: string;
850
917
  author?: {
@@ -882,7 +949,10 @@ declare const _default: {
882
949
  authorName?: string;
883
950
  authorEmail?: string;
884
951
  authorAvatar?: string;
885
- authorUser?: string;
952
+ authorUser?: string | {
953
+ id?: number;
954
+ email?: string;
955
+ };
886
956
  locale?: string;
887
957
  gotThread?: boolean;
888
958
  threadFirstItemId?: number;
@@ -916,7 +986,10 @@ declare const _default: {
916
986
  authorName?: string;
917
987
  authorEmail?: string;
918
988
  authorAvatar?: string;
919
- authorUser?: string;
989
+ authorUser?: string | {
990
+ id?: number;
991
+ email?: string;
992
+ };
920
993
  locale?: string;
921
994
  gotThread?: boolean;
922
995
  threadFirstItemId?: number;
@@ -934,7 +1007,7 @@ declare const _default: {
934
1007
  author?: any;
935
1008
  };
936
1009
  }>;
937
- updateComment(ctx: import("./@types-v5").RequestContext<Omit<{
1010
+ updateComment(ctx: import("./@types").RequestContext<Omit<{
938
1011
  id?: string | number;
939
1012
  content?: string;
940
1013
  author?: {
@@ -972,7 +1045,10 @@ declare const _default: {
972
1045
  authorName?: string;
973
1046
  authorEmail?: string;
974
1047
  authorAvatar?: string;
975
- authorUser?: string;
1048
+ authorUser?: string | {
1049
+ id?: number;
1050
+ email?: string;
1051
+ };
976
1052
  locale?: string;
977
1053
  gotThread?: boolean;
978
1054
  threadFirstItemId?: number;
@@ -1006,7 +1082,10 @@ declare const _default: {
1006
1082
  authorName?: string;
1007
1083
  authorEmail?: string;
1008
1084
  authorAvatar?: string;
1009
- authorUser?: string;
1085
+ authorUser?: string | {
1086
+ id?: number;
1087
+ email?: string;
1088
+ };
1010
1089
  locale?: string;
1011
1090
  gotThread?: boolean;
1012
1091
  threadFirstItemId?: number;
@@ -1024,7 +1103,7 @@ declare const _default: {
1024
1103
  author?: any;
1025
1104
  };
1026
1105
  }>;
1027
- approveComment(ctx: import("./@types-v5").RequestContext<object, {
1106
+ approveComment(ctx: import("./@types").RequestContext<object, {
1028
1107
  id?: number;
1029
1108
  }>): Promise<{
1030
1109
  id?: number;
@@ -1044,7 +1123,10 @@ declare const _default: {
1044
1123
  authorName?: string;
1045
1124
  authorEmail?: string;
1046
1125
  authorAvatar?: string;
1047
- authorUser?: string;
1126
+ authorUser?: string | {
1127
+ id?: number;
1128
+ email?: string;
1129
+ };
1048
1130
  locale?: string;
1049
1131
  gotThread?: boolean;
1050
1132
  threadFirstItemId?: number;
@@ -1078,7 +1160,10 @@ declare const _default: {
1078
1160
  authorName?: string;
1079
1161
  authorEmail?: string;
1080
1162
  authorAvatar?: string;
1081
- authorUser?: string;
1163
+ authorUser?: string | {
1164
+ id?: number;
1165
+ email?: string;
1166
+ };
1082
1167
  locale?: string;
1083
1168
  gotThread?: boolean;
1084
1169
  threadFirstItemId?: number;
@@ -1096,7 +1181,7 @@ declare const _default: {
1096
1181
  author?: any;
1097
1182
  };
1098
1183
  }>;
1099
- rejectComment(ctx: import("./@types-v5").RequestContext<object, {
1184
+ rejectComment(ctx: import("./@types").RequestContext<object, {
1100
1185
  id?: number;
1101
1186
  }>): Promise<{
1102
1187
  id?: number;
@@ -1116,7 +1201,10 @@ declare const _default: {
1116
1201
  authorName?: string;
1117
1202
  authorEmail?: string;
1118
1203
  authorAvatar?: string;
1119
- authorUser?: string;
1204
+ authorUser?: string | {
1205
+ id?: number;
1206
+ email?: string;
1207
+ };
1120
1208
  locale?: string;
1121
1209
  gotThread?: boolean;
1122
1210
  threadFirstItemId?: number;
@@ -1150,7 +1238,10 @@ declare const _default: {
1150
1238
  authorName?: string;
1151
1239
  authorEmail?: string;
1152
1240
  authorAvatar?: string;
1153
- authorUser?: string;
1241
+ authorUser?: string | {
1242
+ id?: number;
1243
+ email?: string;
1244
+ };
1154
1245
  locale?: string;
1155
1246
  gotThread?: boolean;
1156
1247
  threadFirstItemId?: number;
@@ -1169,10 +1260,10 @@ declare const _default: {
1169
1260
  };
1170
1261
  }>;
1171
1262
  };
1172
- client: ({ strapi }: import("./@types-v5").StrapiContext) => {
1173
- getService<T_1 extends "gql" | "admin" | "client" | "common" | "settings">(name: T_1): import("./services").PluginServices[T_1];
1263
+ client: ({ strapi }: import("./@types").StrapiContext) => {
1264
+ getService<T_1 extends "gql" | "client" | "admin" | "common" | "settings">(name: T_1): import("./services").PluginServices[T_1];
1174
1265
  getStoreRepository(): {
1175
- getLocalConfig<P extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: P, defaultValue?: {
1266
+ getLocalConfig<P extends string>(prop?: P, defaultValue?: import("./@types").PathValue<{
1176
1267
  enabledCollections?: string[];
1177
1268
  approvalFlow?: string[];
1178
1269
  entryLabel?: Record<string, string[]>;
@@ -1189,7 +1280,11 @@ declare const _default: {
1189
1280
  gql?: {
1190
1281
  auth?: boolean;
1191
1282
  };
1192
- }[P]): {
1283
+ client?: {
1284
+ url?: string;
1285
+ contactEmail?: string;
1286
+ };
1287
+ }, P>): import("./@types").PathValue<{
1193
1288
  enabledCollections?: string[];
1194
1289
  approvalFlow?: string[];
1195
1290
  entryLabel?: Record<string, string[]>;
@@ -1206,7 +1301,11 @@ declare const _default: {
1206
1301
  gql?: {
1207
1302
  auth?: boolean;
1208
1303
  };
1209
- }[P];
1304
+ client?: {
1305
+ url?: string;
1306
+ contactEmail?: string;
1307
+ };
1308
+ }, P>;
1210
1309
  getStore(): Promise<{
1211
1310
  get(params?: Partial<{
1212
1311
  key: string;
@@ -1248,6 +1347,10 @@ declare const _default: {
1248
1347
  gql?: {
1249
1348
  auth?: boolean;
1250
1349
  };
1350
+ client?: {
1351
+ url?: string;
1352
+ contactEmail?: string;
1353
+ };
1251
1354
  }>>;
1252
1355
  get<T_2 extends boolean>(viaSettingsPage?: T_2): Promise<import("./utils/Either").Either<unknown, T_2 extends true ? {
1253
1356
  enabledCollections?: string[];
@@ -1266,6 +1369,10 @@ declare const _default: {
1266
1369
  gql?: {
1267
1370
  auth?: boolean;
1268
1371
  };
1372
+ client?: {
1373
+ url?: string;
1374
+ contactEmail?: string;
1375
+ };
1269
1376
  } : Omit<{
1270
1377
  enabledCollections?: string[];
1271
1378
  approvalFlow?: string[];
@@ -1283,6 +1390,10 @@ declare const _default: {
1283
1390
  gql?: {
1284
1391
  auth?: boolean;
1285
1392
  };
1393
+ client?: {
1394
+ url?: string;
1395
+ contactEmail?: string;
1396
+ };
1286
1397
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
1287
1398
  update(config: {
1288
1399
  enabledCollections?: string[];
@@ -1301,6 +1412,10 @@ declare const _default: {
1301
1412
  gql?: {
1302
1413
  auth?: boolean;
1303
1414
  };
1415
+ client?: {
1416
+ url?: string;
1417
+ contactEmail?: string;
1418
+ };
1304
1419
  }): Promise<import("./utils/Either").Either<unknown, {
1305
1420
  enabledCollections?: string[];
1306
1421
  approvalFlow?: string[];
@@ -1318,6 +1433,10 @@ declare const _default: {
1318
1433
  gql?: {
1319
1434
  auth?: boolean;
1320
1435
  };
1436
+ client?: {
1437
+ url?: string;
1438
+ contactEmail?: string;
1439
+ };
1321
1440
  } | Omit<{
1322
1441
  enabledCollections?: string[];
1323
1442
  approvalFlow?: string[];
@@ -1335,6 +1454,10 @@ declare const _default: {
1335
1454
  gql?: {
1336
1455
  auth?: boolean;
1337
1456
  };
1457
+ client?: {
1458
+ url?: string;
1459
+ contactEmail?: string;
1460
+ };
1338
1461
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
1339
1462
  restore(): Promise<import("./utils/Either").Either<unknown, {
1340
1463
  enabledCollections?: string[];
@@ -1353,6 +1476,10 @@ declare const _default: {
1353
1476
  gql?: {
1354
1477
  auth?: boolean;
1355
1478
  };
1479
+ client?: {
1480
+ url?: string;
1481
+ contactEmail?: string;
1482
+ };
1356
1483
  } | Omit<{
1357
1484
  enabledCollections?: string[];
1358
1485
  approvalFlow?: string[];
@@ -1370,9 +1497,13 @@ declare const _default: {
1370
1497
  gql?: {
1371
1498
  auth?: boolean;
1372
1499
  };
1500
+ client?: {
1501
+ url?: string;
1502
+ contactEmail?: string;
1503
+ };
1373
1504
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>>;
1374
1505
  };
1375
- post(ctx: import("./@types-v5").RequestContext<object, Pick<{
1506
+ post(ctx: import("./@types").RequestContext<object, Pick<{
1376
1507
  content?: string;
1377
1508
  approvalStatus?: import("./const").APPROVAL_STATUS;
1378
1509
  locale?: string;
@@ -1382,8 +1513,8 @@ declare const _default: {
1382
1513
  email?: string;
1383
1514
  avatar?: string;
1384
1515
  };
1385
- threadOf?: number;
1386
- relation?: `{${string}::${string}.${string}}`;
1516
+ threadOf?: string;
1517
+ relation?: `${string}::${string}.${string}`;
1387
1518
  }, "relation">>): Promise<{
1388
1519
  id?: number;
1389
1520
  documentId?: string;
@@ -1402,7 +1533,10 @@ declare const _default: {
1402
1533
  authorName?: string;
1403
1534
  authorEmail?: string;
1404
1535
  authorAvatar?: string;
1405
- authorUser?: string;
1536
+ authorUser?: string | {
1537
+ id?: number;
1538
+ email?: string;
1539
+ };
1406
1540
  locale?: string;
1407
1541
  gotThread?: boolean;
1408
1542
  threadFirstItemId?: number;
@@ -1436,7 +1570,10 @@ declare const _default: {
1436
1570
  authorName?: string;
1437
1571
  authorEmail?: string;
1438
1572
  authorAvatar?: string;
1439
- authorUser?: string;
1573
+ authorUser?: string | {
1574
+ id?: number;
1575
+ email?: string;
1576
+ };
1440
1577
  locale?: string;
1441
1578
  gotThread?: boolean;
1442
1579
  threadFirstItemId?: number;
@@ -1454,7 +1591,7 @@ declare const _default: {
1454
1591
  author?: any;
1455
1592
  };
1456
1593
  }>;
1457
- findAllFlat(ctx: import("./@types-v5").RequestContext<object, Pick<{
1594
+ findAllFlat(ctx: import("./@types").RequestContext<object, Pick<{
1458
1595
  sort?: string;
1459
1596
  locale?: string;
1460
1597
  pagination?: {
@@ -1462,7 +1599,7 @@ declare const _default: {
1462
1599
  pageSize?: number;
1463
1600
  withCount?: boolean;
1464
1601
  };
1465
- relation?: `{${string}::${string}.${string}}`;
1602
+ relation?: `${string}::${string}.${string}`;
1466
1603
  populate?: Record<string, boolean | {
1467
1604
  populate?: boolean;
1468
1605
  }>;
@@ -1667,7 +1804,10 @@ declare const _default: {
1667
1804
  authorName?: string;
1668
1805
  authorEmail?: string;
1669
1806
  authorAvatar?: string;
1670
- authorUser?: string;
1807
+ authorUser?: string | {
1808
+ id?: number;
1809
+ email?: string;
1810
+ };
1671
1811
  locale?: string;
1672
1812
  gotThread?: boolean;
1673
1813
  threadFirstItemId?: number;
@@ -1701,7 +1841,10 @@ declare const _default: {
1701
1841
  authorName?: string;
1702
1842
  authorEmail?: string;
1703
1843
  authorAvatar?: string;
1704
- authorUser?: string;
1844
+ authorUser?: string | {
1845
+ id?: number;
1846
+ email?: string;
1847
+ };
1705
1848
  locale?: string;
1706
1849
  gotThread?: boolean;
1707
1850
  threadFirstItemId?: number;
@@ -1742,7 +1885,10 @@ declare const _default: {
1742
1885
  authorName?: string;
1743
1886
  authorEmail?: string;
1744
1887
  authorAvatar?: string;
1745
- authorUser?: string;
1888
+ authorUser?: string | {
1889
+ id?: number;
1890
+ email?: string;
1891
+ };
1746
1892
  locale?: string;
1747
1893
  gotThread?: boolean;
1748
1894
  threadFirstItemId?: number;
@@ -1776,7 +1922,10 @@ declare const _default: {
1776
1922
  authorName?: string;
1777
1923
  authorEmail?: string;
1778
1924
  authorAvatar?: string;
1779
- authorUser?: string;
1925
+ authorUser?: string | {
1926
+ id?: number;
1927
+ email?: string;
1928
+ };
1780
1929
  locale?: string;
1781
1930
  gotThread?: boolean;
1782
1931
  threadFirstItemId?: number;
@@ -1801,10 +1950,10 @@ declare const _default: {
1801
1950
  total?: number;
1802
1951
  };
1803
1952
  }>;
1804
- findAllInHierarchy(ctx: import("./@types-v5").RequestContext<object, Pick<{
1953
+ findAllInHierarchy(ctx: import("./@types").RequestContext<object, Pick<{
1805
1954
  sort?: string;
1806
1955
  locale?: string;
1807
- relation?: `{${string}::${string}.${string}}`;
1956
+ relation?: `${string}::${string}.${string}`;
1808
1957
  populate?: Record<string, boolean | {
1809
1958
  populate?: boolean;
1810
1959
  }>;
@@ -2010,7 +2159,10 @@ declare const _default: {
2010
2159
  authorName?: string;
2011
2160
  authorEmail?: string;
2012
2161
  authorAvatar?: string;
2013
- authorUser?: string;
2162
+ authorUser?: string | {
2163
+ id?: number;
2164
+ email?: string;
2165
+ };
2014
2166
  locale?: string;
2015
2167
  gotThread?: boolean;
2016
2168
  threadFirstItemId?: number;
@@ -2044,7 +2196,10 @@ declare const _default: {
2044
2196
  authorName?: string;
2045
2197
  authorEmail?: string;
2046
2198
  authorAvatar?: string;
2047
- authorUser?: string;
2199
+ authorUser?: string | {
2200
+ id?: number;
2201
+ email?: string;
2202
+ };
2048
2203
  locale?: string;
2049
2204
  gotThread?: boolean;
2050
2205
  threadFirstItemId?: number;
@@ -2062,7 +2217,7 @@ declare const _default: {
2062
2217
  author?: any;
2063
2218
  };
2064
2219
  }[]>;
2065
- findAllPerAuthor(ctx: import("./@types-v5").RequestContext<object, Pick<{
2220
+ findAllPerAuthor(ctx: import("./@types").RequestContext<object, Pick<{
2066
2221
  type?: string;
2067
2222
  sort?: string;
2068
2223
  authorId?: string | number;
@@ -2276,7 +2431,10 @@ declare const _default: {
2276
2431
  authorName?: string;
2277
2432
  authorEmail?: string;
2278
2433
  authorAvatar?: string;
2279
- authorUser?: string;
2434
+ authorUser?: string | {
2435
+ id?: number;
2436
+ email?: string;
2437
+ };
2280
2438
  locale?: string;
2281
2439
  gotThread?: boolean;
2282
2440
  threadFirstItemId?: number;
@@ -2309,7 +2467,10 @@ declare const _default: {
2309
2467
  authorName?: string;
2310
2468
  authorEmail?: string;
2311
2469
  authorAvatar?: string;
2312
- authorUser?: string;
2470
+ authorUser?: string | {
2471
+ id?: number;
2472
+ email?: string;
2473
+ };
2313
2474
  locale?: string;
2314
2475
  gotThread?: boolean;
2315
2476
  threadFirstItemId?: number;
@@ -2350,7 +2511,10 @@ declare const _default: {
2350
2511
  authorName?: string;
2351
2512
  authorEmail?: string;
2352
2513
  authorAvatar?: string;
2353
- authorUser?: string;
2514
+ authorUser?: string | {
2515
+ id?: number;
2516
+ email?: string;
2517
+ };
2354
2518
  locale?: string;
2355
2519
  gotThread?: boolean;
2356
2520
  threadFirstItemId?: number;
@@ -2383,7 +2547,10 @@ declare const _default: {
2383
2547
  authorName?: string;
2384
2548
  authorEmail?: string;
2385
2549
  authorAvatar?: string;
2386
- authorUser?: string;
2550
+ authorUser?: string | {
2551
+ id?: number;
2552
+ email?: string;
2553
+ };
2387
2554
  locale?: string;
2388
2555
  gotThread?: boolean;
2389
2556
  threadFirstItemId?: number;
@@ -2408,7 +2575,10 @@ declare const _default: {
2408
2575
  total?: number;
2409
2576
  };
2410
2577
  }>;
2411
- put(ctx: import("./@types-v5").RequestContext): Promise<{
2578
+ put(ctx: import("./@types").RequestContext<{
2579
+ content: string;
2580
+ author: unknown;
2581
+ }>): Promise<{
2412
2582
  id?: number;
2413
2583
  documentId?: string;
2414
2584
  content?: string;
@@ -2426,7 +2596,10 @@ declare const _default: {
2426
2596
  authorName?: string;
2427
2597
  authorEmail?: string;
2428
2598
  authorAvatar?: string;
2429
- authorUser?: string;
2599
+ authorUser?: string | {
2600
+ id?: number;
2601
+ email?: string;
2602
+ };
2430
2603
  locale?: string;
2431
2604
  gotThread?: boolean;
2432
2605
  threadFirstItemId?: number;
@@ -2460,7 +2633,10 @@ declare const _default: {
2460
2633
  authorName?: string;
2461
2634
  authorEmail?: string;
2462
2635
  authorAvatar?: string;
2463
- authorUser?: string;
2636
+ authorUser?: string | {
2637
+ id?: number;
2638
+ email?: string;
2639
+ };
2464
2640
  locale?: string;
2465
2641
  gotThread?: boolean;
2466
2642
  threadFirstItemId?: number;
@@ -2478,7 +2654,7 @@ declare const _default: {
2478
2654
  author?: any;
2479
2655
  };
2480
2656
  }>;
2481
- reportAbuse(ctx: import("./@types-v5").RequestContext): Promise<{
2657
+ reportAbuse(ctx: import("./@types").RequestContext): Promise<{
2482
2658
  related: {
2483
2659
  id?: number;
2484
2660
  documentId?: string;
@@ -2497,7 +2673,10 @@ declare const _default: {
2497
2673
  authorName?: string;
2498
2674
  authorEmail?: string;
2499
2675
  authorAvatar?: string;
2500
- authorUser?: string;
2676
+ authorUser?: string | {
2677
+ id?: number;
2678
+ email?: string;
2679
+ };
2501
2680
  locale?: string;
2502
2681
  gotThread?: boolean;
2503
2682
  threadFirstItemId?: number;
@@ -2531,7 +2710,10 @@ declare const _default: {
2531
2710
  authorName?: string;
2532
2711
  authorEmail?: string;
2533
2712
  authorAvatar?: string;
2534
- authorUser?: string;
2713
+ authorUser?: string | {
2714
+ id?: number;
2715
+ email?: string;
2716
+ };
2535
2717
  locale?: string;
2536
2718
  gotThread?: boolean;
2537
2719
  threadFirstItemId?: number;
@@ -2559,7 +2741,7 @@ declare const _default: {
2559
2741
  reason?: string;
2560
2742
  resolved?: boolean;
2561
2743
  }>;
2562
- removeComment(ctx: import("./@types-v5").RequestContext): Promise<{
2744
+ removeComment(ctx: import("./@types").RequestContext): Promise<{
2563
2745
  id?: number;
2564
2746
  documentId?: string;
2565
2747
  content?: string;
@@ -2577,7 +2759,10 @@ declare const _default: {
2577
2759
  authorName?: string;
2578
2760
  authorEmail?: string;
2579
2761
  authorAvatar?: string;
2580
- authorUser?: string;
2762
+ authorUser?: string | {
2763
+ id?: number;
2764
+ email?: string;
2765
+ };
2581
2766
  locale?: string;
2582
2767
  gotThread?: boolean;
2583
2768
  threadFirstItemId?: number;
@@ -2611,7 +2796,10 @@ declare const _default: {
2611
2796
  authorName?: string;
2612
2797
  authorEmail?: string;
2613
2798
  authorAvatar?: string;
2614
- authorUser?: string;
2799
+ authorUser?: string | {
2800
+ id?: number;
2801
+ email?: string;
2802
+ };
2615
2803
  locale?: string;
2616
2804
  gotThread?: boolean;
2617
2805
  threadFirstItemId?: number;
@@ -2630,8 +2818,8 @@ declare const _default: {
2630
2818
  };
2631
2819
  }>;
2632
2820
  };
2633
- settings: ({ strapi }: import("./@types-v5").StrapiContext) => {
2634
- get(ctx: import("./@types-v5").RequestContext): Promise<{
2821
+ settings: ({ strapi }: import("./@types").StrapiContext) => {
2822
+ get(ctx: import("./@types").RequestContext): Promise<{
2635
2823
  enabledCollections?: string[];
2636
2824
  approvalFlow?: string[];
2637
2825
  entryLabel?: Record<string, string[]>;
@@ -2648,6 +2836,10 @@ declare const _default: {
2648
2836
  gql?: {
2649
2837
  auth?: boolean;
2650
2838
  };
2839
+ client?: {
2840
+ url?: string;
2841
+ contactEmail?: string;
2842
+ };
2651
2843
  } | Omit<{
2652
2844
  enabledCollections?: string[];
2653
2845
  approvalFlow?: string[];
@@ -2665,8 +2857,12 @@ declare const _default: {
2665
2857
  gql?: {
2666
2858
  auth?: boolean;
2667
2859
  };
2860
+ client?: {
2861
+ url?: string;
2862
+ contactEmail?: string;
2863
+ };
2668
2864
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
2669
- getForSettingsPage(ctx: import("./@types-v5").RequestContext): Promise<{
2865
+ getForSettingsPage(ctx: import("./@types").RequestContext): Promise<{
2670
2866
  enabledCollections?: string[];
2671
2867
  approvalFlow?: string[];
2672
2868
  entryLabel?: Record<string, string[]>;
@@ -2683,6 +2879,10 @@ declare const _default: {
2683
2879
  gql?: {
2684
2880
  auth?: boolean;
2685
2881
  };
2882
+ client?: {
2883
+ url?: string;
2884
+ contactEmail?: string;
2885
+ };
2686
2886
  } | Omit<{
2687
2887
  enabledCollections?: string[];
2688
2888
  approvalFlow?: string[];
@@ -2700,8 +2900,12 @@ declare const _default: {
2700
2900
  gql?: {
2701
2901
  auth?: boolean;
2702
2902
  };
2903
+ client?: {
2904
+ url?: string;
2905
+ contactEmail?: string;
2906
+ };
2703
2907
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
2704
- update(ctx: import("./@types-v5").RequestContext<{
2908
+ update(ctx: import("./@types").RequestContext<{
2705
2909
  enabledCollections?: string[];
2706
2910
  approvalFlow?: string[];
2707
2911
  entryLabel?: Record<string, string[]>;
@@ -2718,6 +2922,10 @@ declare const _default: {
2718
2922
  gql?: {
2719
2923
  auth?: boolean;
2720
2924
  };
2925
+ client?: {
2926
+ url?: string;
2927
+ contactEmail?: string;
2928
+ };
2721
2929
  }>): Promise<{
2722
2930
  enabledCollections?: string[];
2723
2931
  approvalFlow?: string[];
@@ -2735,6 +2943,10 @@ declare const _default: {
2735
2943
  gql?: {
2736
2944
  auth?: boolean;
2737
2945
  };
2946
+ client?: {
2947
+ url?: string;
2948
+ contactEmail?: string;
2949
+ };
2738
2950
  } | Omit<{
2739
2951
  enabledCollections?: string[];
2740
2952
  approvalFlow?: string[];
@@ -2752,8 +2964,12 @@ declare const _default: {
2752
2964
  gql?: {
2753
2965
  auth?: boolean;
2754
2966
  };
2967
+ client?: {
2968
+ url?: string;
2969
+ contactEmail?: string;
2970
+ };
2755
2971
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
2756
- restore(ctx: import("./@types-v5").RequestContext): Promise<{
2972
+ restore(ctx: import("./@types").RequestContext): Promise<{
2757
2973
  enabledCollections?: string[];
2758
2974
  approvalFlow?: string[];
2759
2975
  entryLabel?: Record<string, string[]>;
@@ -2770,6 +2986,10 @@ declare const _default: {
2770
2986
  gql?: {
2771
2987
  auth?: boolean;
2772
2988
  };
2989
+ client?: {
2990
+ url?: string;
2991
+ contactEmail?: string;
2992
+ };
2773
2993
  } | Omit<{
2774
2994
  enabledCollections?: string[];
2775
2995
  approvalFlow?: string[];
@@ -2787,24 +3007,28 @@ declare const _default: {
2787
3007
  gql?: {
2788
3008
  auth?: boolean;
2789
3009
  };
3010
+ client?: {
3011
+ url?: string;
3012
+ contactEmail?: string;
3013
+ };
2790
3014
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
2791
- restart(ctx: import("./@types-v5").RequestContext): Promise<any>;
3015
+ restart(ctx: import("./@types").RequestContext): Promise<any>;
2792
3016
  };
2793
3017
  };
2794
3018
  routes: {
2795
3019
  'content-api': {
2796
3020
  type: string;
2797
- routes: import("./@types-v5").StrapiRoute<"client">[];
3021
+ routes: import("./@types").StrapiRoute<"client">[];
2798
3022
  };
2799
3023
  admin: {
2800
3024
  type: string;
2801
- routes: (import("./@types-v5").StrapiRoute<"admin"> | import("./@types-v5").StrapiRoute<"settings">)[];
3025
+ routes: (import("./@types").StrapiRoute<"admin"> | import("./@types").StrapiRoute<"settings">)[];
2802
3026
  };
2803
3027
  };
2804
3028
  services: {
2805
- admin: ({ strapi }: import("./@types-v5").StrapiContext) => {
3029
+ admin: ({ strapi }: import("./@types").StrapiContext) => {
2806
3030
  getCommonService(): {
2807
- getConfig<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T_3, defaultValue?: {
3031
+ getConfig<T_3 extends string>(prop?: T_3, defaultValue?: import("./@types").PathValue<{
2808
3032
  enabledCollections?: string[];
2809
3033
  approvalFlow?: string[];
2810
3034
  entryLabel?: Record<string, string[]>;
@@ -2821,24 +3045,11 @@ declare const _default: {
2821
3045
  gql?: {
2822
3046
  auth?: boolean;
2823
3047
  };
2824
- }[T_3], useLocal?: boolean): Promise<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql" ? {
2825
- enabledCollections?: string[];
2826
- approvalFlow?: string[];
2827
- entryLabel?: Record<string, string[]>;
2828
- moderatorRoles?: string[];
2829
- badWords?: boolean;
2830
- blockedAuthorProps?: string[];
2831
- isValidationEnabled?: boolean;
2832
- reportReasons?: {
2833
- BAD_LANGUAGE?: import("./const").REPORT_REASON.BAD_LANGUAGE;
2834
- DISCRIMINATION?: import("./const").REPORT_REASON.DISCRIMINATION;
2835
- OTHER?: import("./const").REPORT_REASON.OTHER;
2836
- };
2837
- isGQLPluginEnabled?: boolean;
2838
- gql?: {
2839
- auth?: boolean;
3048
+ client?: {
3049
+ url?: string;
3050
+ contactEmail?: string;
2840
3051
  };
2841
- }[T_3] : {
3052
+ }, T_3>, useLocal?: boolean): Promise<import("./@types").PathValue<{
2842
3053
  enabledCollections?: string[];
2843
3054
  approvalFlow?: string[];
2844
3055
  entryLabel?: Record<string, string[]>;
@@ -2855,7 +3066,11 @@ declare const _default: {
2855
3066
  gql?: {
2856
3067
  auth?: boolean;
2857
3068
  };
2858
- }>;
3069
+ client?: {
3070
+ url?: string;
3071
+ contactEmail?: string;
3072
+ };
3073
+ }, T_3>>;
2859
3074
  parseRelationString(relation: string): {
2860
3075
  uid: import("@strapi/types/dist/uid").ContentType;
2861
3076
  relatedId: string;
@@ -2881,7 +3096,10 @@ declare const _default: {
2881
3096
  authorName?: string;
2882
3097
  authorEmail?: string;
2883
3098
  authorAvatar?: string;
2884
- authorUser?: string;
3099
+ authorUser?: string | {
3100
+ id?: number;
3101
+ email?: string;
3102
+ };
2885
3103
  locale?: string;
2886
3104
  gotThread?: boolean;
2887
3105
  threadFirstItemId?: number;
@@ -2915,7 +3133,10 @@ declare const _default: {
2915
3133
  authorName?: string;
2916
3134
  authorEmail?: string;
2917
3135
  authorAvatar?: string;
2918
- authorUser?: string;
3136
+ authorUser?: string | {
3137
+ id?: number;
3138
+ email?: string;
3139
+ };
2919
3140
  locale?: string;
2920
3141
  gotThread?: boolean;
2921
3142
  threadFirstItemId?: number;
@@ -2956,7 +3177,10 @@ declare const _default: {
2956
3177
  authorName?: string;
2957
3178
  authorEmail?: string;
2958
3179
  authorAvatar?: string;
2959
- authorUser?: string;
3180
+ authorUser?: string | {
3181
+ id?: number;
3182
+ email?: string;
3183
+ };
2960
3184
  locale?: string;
2961
3185
  gotThread?: boolean;
2962
3186
  threadFirstItemId?: number;
@@ -2990,7 +3214,10 @@ declare const _default: {
2990
3214
  authorName?: string;
2991
3215
  authorEmail?: string;
2992
3216
  authorAvatar?: string;
2993
- authorUser?: string;
3217
+ authorUser?: string | {
3218
+ id?: number;
3219
+ email?: string;
3220
+ };
2994
3221
  locale?: string;
2995
3222
  gotThread?: boolean;
2996
3223
  threadFirstItemId?: number;
@@ -3025,7 +3252,10 @@ declare const _default: {
3025
3252
  authorName?: string;
3026
3253
  authorEmail?: string;
3027
3254
  authorAvatar?: string;
3028
- authorUser?: string;
3255
+ authorUser?: string | {
3256
+ id?: number;
3257
+ email?: string;
3258
+ };
3029
3259
  locale?: string;
3030
3260
  gotThread?: boolean;
3031
3261
  threadFirstItemId?: number;
@@ -3059,7 +3289,10 @@ declare const _default: {
3059
3289
  authorName?: string;
3060
3290
  authorEmail?: string;
3061
3291
  authorAvatar?: string;
3062
- authorUser?: string;
3292
+ authorUser?: string | {
3293
+ id?: number;
3294
+ email?: string;
3295
+ };
3063
3296
  locale?: string;
3064
3297
  gotThread?: boolean;
3065
3298
  threadFirstItemId?: number;
@@ -3085,7 +3318,7 @@ declare const _default: {
3085
3318
  pageSize?: number;
3086
3319
  withCount?: boolean;
3087
3320
  };
3088
- relation?: `{${string}::${string}.${string}}`;
3321
+ relation?: `${string}::${string}.${string}`;
3089
3322
  populate?: Record<string, boolean | {
3090
3323
  populate?: boolean;
3091
3324
  }>;
@@ -3290,7 +3523,10 @@ declare const _default: {
3290
3523
  authorName?: string;
3291
3524
  authorEmail?: string;
3292
3525
  authorAvatar?: string;
3293
- authorUser?: string;
3526
+ authorUser?: string | {
3527
+ id?: number;
3528
+ email?: string;
3529
+ };
3294
3530
  locale?: string;
3295
3531
  gotThread?: boolean;
3296
3532
  threadFirstItemId?: number;
@@ -3324,7 +3560,10 @@ declare const _default: {
3324
3560
  authorName?: string;
3325
3561
  authorEmail?: string;
3326
3562
  authorAvatar?: string;
3327
- authorUser?: string;
3563
+ authorUser?: string | {
3564
+ id?: number;
3565
+ email?: string;
3566
+ };
3328
3567
  locale?: string;
3329
3568
  gotThread?: boolean;
3330
3569
  threadFirstItemId?: number;
@@ -3365,7 +3604,10 @@ declare const _default: {
3365
3604
  authorName?: string;
3366
3605
  authorEmail?: string;
3367
3606
  authorAvatar?: string;
3368
- authorUser?: string;
3607
+ authorUser?: string | {
3608
+ id?: number;
3609
+ email?: string;
3610
+ };
3369
3611
  locale?: string;
3370
3612
  gotThread?: boolean;
3371
3613
  threadFirstItemId?: number;
@@ -3399,7 +3641,10 @@ declare const _default: {
3399
3641
  authorName?: string;
3400
3642
  authorEmail?: string;
3401
3643
  authorAvatar?: string;
3402
- authorUser?: string;
3644
+ authorUser?: string | {
3645
+ id?: number;
3646
+ email?: string;
3647
+ };
3403
3648
  locale?: string;
3404
3649
  gotThread?: boolean;
3405
3650
  threadFirstItemId?: number;
@@ -3427,7 +3672,7 @@ declare const _default: {
3427
3672
  findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
3428
3673
  sort?: string;
3429
3674
  locale?: string;
3430
- relation?: `{${string}::${string}.${string}}`;
3675
+ relation?: `${string}::${string}.${string}`;
3431
3676
  populate?: Record<string, boolean | {
3432
3677
  populate?: boolean;
3433
3678
  }>;
@@ -3633,7 +3878,10 @@ declare const _default: {
3633
3878
  authorName?: string;
3634
3879
  authorEmail?: string;
3635
3880
  authorAvatar?: string;
3636
- authorUser?: string;
3881
+ authorUser?: string | {
3882
+ id?: number;
3883
+ email?: string;
3884
+ };
3637
3885
  locale?: string;
3638
3886
  gotThread?: boolean;
3639
3887
  threadFirstItemId?: number;
@@ -3667,7 +3915,10 @@ declare const _default: {
3667
3915
  authorName?: string;
3668
3916
  authorEmail?: string;
3669
3917
  authorAvatar?: string;
3670
- authorUser?: string;
3918
+ authorUser?: string | {
3919
+ id?: number;
3920
+ email?: string;
3921
+ };
3671
3922
  locale?: string;
3672
3923
  gotThread?: boolean;
3673
3924
  threadFirstItemId?: number;
@@ -3703,7 +3954,10 @@ declare const _default: {
3703
3954
  authorName?: string;
3704
3955
  authorEmail?: string;
3705
3956
  authorAvatar?: string;
3706
- authorUser?: string;
3957
+ authorUser?: string | {
3958
+ id?: number;
3959
+ email?: string;
3960
+ };
3707
3961
  locale?: string;
3708
3962
  gotThread?: boolean;
3709
3963
  threadFirstItemId?: number;
@@ -3737,7 +3991,10 @@ declare const _default: {
3737
3991
  authorName?: string;
3738
3992
  authorEmail?: string;
3739
3993
  authorAvatar?: string;
3740
- authorUser?: string;
3994
+ authorUser?: string | {
3995
+ id?: number;
3996
+ email?: string;
3997
+ };
3741
3998
  locale?: string;
3742
3999
  gotThread?: boolean;
3743
4000
  threadFirstItemId?: number;
@@ -3773,7 +4030,10 @@ declare const _default: {
3773
4030
  authorName?: string;
3774
4031
  authorEmail?: string;
3775
4032
  authorAvatar?: string;
3776
- authorUser?: string;
4033
+ authorUser?: string | {
4034
+ id?: number;
4035
+ email?: string;
4036
+ };
3777
4037
  locale?: string;
3778
4038
  gotThread?: boolean;
3779
4039
  threadFirstItemId?: number;
@@ -3807,7 +4067,10 @@ declare const _default: {
3807
4067
  authorName?: string;
3808
4068
  authorEmail?: string;
3809
4069
  authorAvatar?: string;
3810
- authorUser?: string;
4070
+ authorUser?: string | {
4071
+ id?: number;
4072
+ email?: string;
4073
+ };
3811
4074
  locale?: string;
3812
4075
  gotThread?: boolean;
3813
4076
  threadFirstItemId?: number;
@@ -3843,7 +4106,10 @@ declare const _default: {
3843
4106
  authorName?: string;
3844
4107
  authorEmail?: string;
3845
4108
  authorAvatar?: string;
3846
- authorUser?: string;
4109
+ authorUser?: string | {
4110
+ id?: number;
4111
+ email?: string;
4112
+ };
3847
4113
  locale?: string;
3848
4114
  gotThread?: boolean;
3849
4115
  threadFirstItemId?: number;
@@ -3877,7 +4143,10 @@ declare const _default: {
3877
4143
  authorName?: string;
3878
4144
  authorEmail?: string;
3879
4145
  authorAvatar?: string;
3880
- authorUser?: string;
4146
+ authorUser?: string | {
4147
+ id?: number;
4148
+ email?: string;
4149
+ };
3881
4150
  locale?: string;
3882
4151
  gotThread?: boolean;
3883
4152
  threadFirstItemId?: number;
@@ -3912,7 +4181,10 @@ declare const _default: {
3912
4181
  authorName?: string;
3913
4182
  authorEmail?: string;
3914
4183
  authorAvatar?: string;
3915
- authorUser?: string;
4184
+ authorUser?: string | {
4185
+ id?: number;
4186
+ email?: string;
4187
+ };
3916
4188
  locale?: string;
3917
4189
  gotThread?: boolean;
3918
4190
  threadFirstItemId?: number;
@@ -3946,7 +4218,10 @@ declare const _default: {
3946
4218
  authorName?: string;
3947
4219
  authorEmail?: string;
3948
4220
  authorAvatar?: string;
3949
- authorUser?: string;
4221
+ authorUser?: string | {
4222
+ id?: number;
4223
+ email?: string;
4224
+ };
3950
4225
  locale?: string;
3951
4226
  gotThread?: boolean;
3952
4227
  threadFirstItemId?: number;
@@ -4178,7 +4453,10 @@ declare const _default: {
4178
4453
  authorName?: string;
4179
4454
  authorEmail?: string;
4180
4455
  authorAvatar?: string;
4181
- authorUser?: string;
4456
+ authorUser?: string | {
4457
+ id?: number;
4458
+ email?: string;
4459
+ };
4182
4460
  locale?: string;
4183
4461
  gotThread?: boolean;
4184
4462
  threadFirstItemId?: number;
@@ -4211,7 +4489,10 @@ declare const _default: {
4211
4489
  authorName?: string;
4212
4490
  authorEmail?: string;
4213
4491
  authorAvatar?: string;
4214
- authorUser?: string;
4492
+ authorUser?: string | {
4493
+ id?: number;
4494
+ email?: string;
4495
+ };
4215
4496
  locale?: string;
4216
4497
  gotThread?: boolean;
4217
4498
  threadFirstItemId?: number;
@@ -4252,7 +4533,10 @@ declare const _default: {
4252
4533
  authorName?: string;
4253
4534
  authorEmail?: string;
4254
4535
  authorAvatar?: string;
4255
- authorUser?: string;
4536
+ authorUser?: string | {
4537
+ id?: number;
4538
+ email?: string;
4539
+ };
4256
4540
  locale?: string;
4257
4541
  gotThread?: boolean;
4258
4542
  threadFirstItemId?: number;
@@ -4285,7 +4569,10 @@ declare const _default: {
4285
4569
  authorName?: string;
4286
4570
  authorEmail?: string;
4287
4571
  authorAvatar?: string;
4288
- authorUser?: string;
4572
+ authorUser?: string | {
4573
+ id?: number;
4574
+ email?: string;
4575
+ };
4289
4576
  locale?: string;
4290
4577
  gotThread?: boolean;
4291
4578
  threadFirstItemId?: number;
@@ -4328,7 +4615,10 @@ declare const _default: {
4328
4615
  authorName?: string;
4329
4616
  authorEmail?: string;
4330
4617
  authorAvatar?: string;
4331
- authorUser?: string;
4618
+ authorUser?: string | {
4619
+ id?: number;
4620
+ email?: string;
4621
+ };
4332
4622
  locale?: string;
4333
4623
  gotThread?: boolean;
4334
4624
  threadFirstItemId?: number;
@@ -4362,7 +4652,10 @@ declare const _default: {
4362
4652
  authorName?: string;
4363
4653
  authorEmail?: string;
4364
4654
  authorAvatar?: string;
4365
- authorUser?: string;
4655
+ authorUser?: string | {
4656
+ id?: number;
4657
+ email?: string;
4658
+ };
4366
4659
  locale?: string;
4367
4660
  gotThread?: boolean;
4368
4661
  threadFirstItemId?: number;
@@ -4404,7 +4697,10 @@ declare const _default: {
4404
4697
  authorName?: string;
4405
4698
  authorEmail?: string;
4406
4699
  authorAvatar?: string;
4407
- authorUser?: string;
4700
+ authorUser?: string | {
4701
+ id?: number;
4702
+ email?: string;
4703
+ };
4408
4704
  locale?: string;
4409
4705
  gotThread?: boolean;
4410
4706
  threadFirstItemId?: number;
@@ -4438,7 +4734,10 @@ declare const _default: {
4438
4734
  authorName?: string;
4439
4735
  authorEmail?: string;
4440
4736
  authorAvatar?: string;
4441
- authorUser?: string;
4737
+ authorUser?: string | {
4738
+ id?: number;
4739
+ email?: string;
4740
+ };
4442
4741
  locale?: string;
4443
4742
  gotThread?: boolean;
4444
4743
  threadFirstItemId?: number;
@@ -4485,7 +4784,10 @@ declare const _default: {
4485
4784
  authorName?: string;
4486
4785
  authorEmail?: string;
4487
4786
  authorAvatar?: string;
4488
- authorUser?: string;
4787
+ authorUser?: string | {
4788
+ id?: number;
4789
+ email?: string;
4790
+ };
4489
4791
  locale?: string;
4490
4792
  gotThread?: boolean;
4491
4793
  threadFirstItemId?: number;
@@ -4519,7 +4821,10 @@ declare const _default: {
4519
4821
  authorName?: string;
4520
4822
  authorEmail?: string;
4521
4823
  authorAvatar?: string;
4522
- authorUser?: string;
4824
+ authorUser?: string | {
4825
+ id?: number;
4826
+ email?: string;
4827
+ };
4523
4828
  locale?: string;
4524
4829
  gotThread?: boolean;
4525
4830
  threadFirstItemId?: number;
@@ -4537,7 +4842,7 @@ declare const _default: {
4537
4842
  author?: any;
4538
4843
  };
4539
4844
  };
4540
- 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-v5").Id, fieldName: T_5, value: {
4845
+ 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: {
4541
4846
  id?: number;
4542
4847
  documentId?: string;
4543
4848
  content?: string;
@@ -4555,7 +4860,10 @@ declare const _default: {
4555
4860
  authorName?: string;
4556
4861
  authorEmail?: string;
4557
4862
  authorAvatar?: string;
4558
- authorUser?: string;
4863
+ authorUser?: string | {
4864
+ id?: number;
4865
+ email?: string;
4866
+ };
4559
4867
  locale?: string;
4560
4868
  gotThread?: boolean;
4561
4869
  threadFirstItemId?: number;
@@ -4589,7 +4897,10 @@ declare const _default: {
4589
4897
  authorName?: string;
4590
4898
  authorEmail?: string;
4591
4899
  authorAvatar?: string;
4592
- authorUser?: string;
4900
+ authorUser?: string | {
4901
+ id?: number;
4902
+ email?: string;
4903
+ };
4593
4904
  locale?: string;
4594
4905
  gotThread?: boolean;
4595
4906
  threadFirstItemId?: number;
@@ -4606,7 +4917,7 @@ declare const _default: {
4606
4917
  }[];
4607
4918
  author?: any;
4608
4919
  };
4609
- }[T_5]): Promise<boolean>;
4920
+ }[T_5], deepLimit?: number): Promise<boolean>;
4610
4921
  checkBadWords(content: string): Promise<string>;
4611
4922
  registerLifecycleHook(): void;
4612
4923
  runLifecycleHook(): Promise<void>;
@@ -4647,7 +4958,10 @@ declare const _default: {
4647
4958
  authorName?: string;
4648
4959
  authorEmail?: string;
4649
4960
  authorAvatar?: string;
4650
- authorUser?: string;
4961
+ authorUser?: string | {
4962
+ id?: number;
4963
+ email?: string;
4964
+ };
4651
4965
  locale?: string;
4652
4966
  gotThread?: boolean;
4653
4967
  threadFirstItemId?: number;
@@ -4681,7 +4995,10 @@ declare const _default: {
4681
4995
  authorName?: string;
4682
4996
  authorEmail?: string;
4683
4997
  authorAvatar?: string;
4684
- authorUser?: string;
4998
+ authorUser?: string | {
4999
+ id?: number;
5000
+ email?: string;
5001
+ };
4685
5002
  locale?: string;
4686
5003
  gotThread?: boolean;
4687
5004
  threadFirstItemId?: number;
@@ -4724,7 +5041,10 @@ declare const _default: {
4724
5041
  authorName?: string;
4725
5042
  authorEmail?: string;
4726
5043
  authorAvatar?: string;
4727
- authorUser?: string;
5044
+ authorUser?: string | {
5045
+ id?: number;
5046
+ email?: string;
5047
+ };
4728
5048
  locale?: string;
4729
5049
  gotThread?: boolean;
4730
5050
  threadFirstItemId?: number;
@@ -4758,7 +5078,10 @@ declare const _default: {
4758
5078
  authorName?: string;
4759
5079
  authorEmail?: string;
4760
5080
  authorAvatar?: string;
4761
- authorUser?: string;
5081
+ authorUser?: string | {
5082
+ id?: number;
5083
+ email?: string;
5084
+ };
4762
5085
  locale?: string;
4763
5086
  gotThread?: boolean;
4764
5087
  threadFirstItemId?: number;
@@ -4789,7 +5112,8 @@ declare const _default: {
4789
5112
  }): Promise<{
4790
5113
  entity: {
4791
5114
  uid: import("@strapi/types/dist/uid").ContentType;
4792
- id: import("@strapi/types/dist/data").ID;
5115
+ documentId: string;
5116
+ id: number;
4793
5117
  };
4794
5118
  selected: {
4795
5119
  id?: number;
@@ -4809,7 +5133,10 @@ declare const _default: {
4809
5133
  authorName?: string;
4810
5134
  authorEmail?: string;
4811
5135
  authorAvatar?: string;
4812
- authorUser?: string;
5136
+ authorUser?: string | {
5137
+ id?: number;
5138
+ email?: string;
5139
+ };
4813
5140
  locale?: string;
4814
5141
  gotThread?: boolean;
4815
5142
  threadFirstItemId?: number;
@@ -4843,7 +5170,10 @@ declare const _default: {
4843
5170
  authorName?: string;
4844
5171
  authorEmail?: string;
4845
5172
  authorAvatar?: string;
4846
- authorUser?: string;
5173
+ authorUser?: string | {
5174
+ id?: number;
5175
+ email?: string;
5176
+ };
4847
5177
  locale?: string;
4848
5178
  gotThread?: boolean;
4849
5179
  threadFirstItemId?: number;
@@ -4879,7 +5209,10 @@ declare const _default: {
4879
5209
  authorName?: string;
4880
5210
  authorEmail?: string;
4881
5211
  authorAvatar?: string;
4882
- authorUser?: string;
5212
+ authorUser?: string | {
5213
+ id?: number;
5214
+ email?: string;
5215
+ };
4883
5216
  locale?: string;
4884
5217
  gotThread?: boolean;
4885
5218
  threadFirstItemId?: number;
@@ -4913,7 +5246,10 @@ declare const _default: {
4913
5246
  authorName?: string;
4914
5247
  authorEmail?: string;
4915
5248
  authorAvatar?: string;
4916
- authorUser?: string;
5249
+ authorUser?: string | {
5250
+ id?: number;
5251
+ email?: string;
5252
+ };
4917
5253
  locale?: string;
4918
5254
  gotThread?: boolean;
4919
5255
  threadFirstItemId?: number;
@@ -4932,7 +5268,7 @@ declare const _default: {
4932
5268
  };
4933
5269
  }[];
4934
5270
  }>;
4935
- changeBlockedComment(id: import("./@types-v5").Id, forceStatus?: boolean): Promise<{
5271
+ changeBlockedComment(id: import("./@types").Id, forceStatus?: boolean): Promise<{
4936
5272
  id?: number;
4937
5273
  documentId?: string;
4938
5274
  content?: string;
@@ -4950,7 +5286,10 @@ declare const _default: {
4950
5286
  authorName?: string;
4951
5287
  authorEmail?: string;
4952
5288
  authorAvatar?: string;
4953
- authorUser?: string;
5289
+ authorUser?: string | {
5290
+ id?: number;
5291
+ email?: string;
5292
+ };
4954
5293
  locale?: string;
4955
5294
  gotThread?: boolean;
4956
5295
  threadFirstItemId?: number;
@@ -4984,7 +5323,10 @@ declare const _default: {
4984
5323
  authorName?: string;
4985
5324
  authorEmail?: string;
4986
5325
  authorAvatar?: string;
4987
- authorUser?: string;
5326
+ authorUser?: string | {
5327
+ id?: number;
5328
+ email?: string;
5329
+ };
4988
5330
  locale?: string;
4989
5331
  gotThread?: boolean;
4990
5332
  threadFirstItemId?: number;
@@ -5002,7 +5344,7 @@ declare const _default: {
5002
5344
  author?: any;
5003
5345
  };
5004
5346
  }>;
5005
- deleteComment(id: import("./@types-v5").Id): Promise<{
5347
+ deleteComment(id: import("./@types").Id): Promise<{
5006
5348
  id?: number;
5007
5349
  documentId?: string;
5008
5350
  content?: string;
@@ -5020,7 +5362,10 @@ declare const _default: {
5020
5362
  authorName?: string;
5021
5363
  authorEmail?: string;
5022
5364
  authorAvatar?: string;
5023
- authorUser?: string;
5365
+ authorUser?: string | {
5366
+ id?: number;
5367
+ email?: string;
5368
+ };
5024
5369
  locale?: string;
5025
5370
  gotThread?: boolean;
5026
5371
  threadFirstItemId?: number;
@@ -5054,7 +5399,10 @@ declare const _default: {
5054
5399
  authorName?: string;
5055
5400
  authorEmail?: string;
5056
5401
  authorAvatar?: string;
5057
- authorUser?: string;
5402
+ authorUser?: string | {
5403
+ id?: number;
5404
+ email?: string;
5405
+ };
5058
5406
  locale?: string;
5059
5407
  gotThread?: boolean;
5060
5408
  threadFirstItemId?: number;
@@ -5072,7 +5420,7 @@ declare const _default: {
5072
5420
  author?: any;
5073
5421
  };
5074
5422
  }>;
5075
- blockCommentThread(id: import("./@types-v5").Id, forceStatus?: boolean): Promise<{
5423
+ blockCommentThread(id: import("./@types").Id, forceStatus?: boolean): Promise<{
5076
5424
  id?: number;
5077
5425
  documentId?: string;
5078
5426
  content?: string;
@@ -5090,7 +5438,10 @@ declare const _default: {
5090
5438
  authorName?: string;
5091
5439
  authorEmail?: string;
5092
5440
  authorAvatar?: string;
5093
- authorUser?: string;
5441
+ authorUser?: string | {
5442
+ id?: number;
5443
+ email?: string;
5444
+ };
5094
5445
  locale?: string;
5095
5446
  gotThread?: boolean;
5096
5447
  threadFirstItemId?: number;
@@ -5124,7 +5475,10 @@ declare const _default: {
5124
5475
  authorName?: string;
5125
5476
  authorEmail?: string;
5126
5477
  authorAvatar?: string;
5127
- authorUser?: string;
5478
+ authorUser?: string | {
5479
+ id?: number;
5480
+ email?: string;
5481
+ };
5128
5482
  locale?: string;
5129
5483
  gotThread?: boolean;
5130
5484
  threadFirstItemId?: number;
@@ -5142,7 +5496,7 @@ declare const _default: {
5142
5496
  author?: any;
5143
5497
  };
5144
5498
  }>;
5145
- approveComment(id: import("./@types-v5").Id): Promise<{
5499
+ approveComment(id: import("./@types").Id): Promise<{
5146
5500
  id?: number;
5147
5501
  documentId?: string;
5148
5502
  content?: string;
@@ -5160,7 +5514,10 @@ declare const _default: {
5160
5514
  authorName?: string;
5161
5515
  authorEmail?: string;
5162
5516
  authorAvatar?: string;
5163
- authorUser?: string;
5517
+ authorUser?: string | {
5518
+ id?: number;
5519
+ email?: string;
5520
+ };
5164
5521
  locale?: string;
5165
5522
  gotThread?: boolean;
5166
5523
  threadFirstItemId?: number;
@@ -5194,7 +5551,10 @@ declare const _default: {
5194
5551
  authorName?: string;
5195
5552
  authorEmail?: string;
5196
5553
  authorAvatar?: string;
5197
- authorUser?: string;
5554
+ authorUser?: string | {
5555
+ id?: number;
5556
+ email?: string;
5557
+ };
5198
5558
  locale?: string;
5199
5559
  gotThread?: boolean;
5200
5560
  threadFirstItemId?: number;
@@ -5212,7 +5572,7 @@ declare const _default: {
5212
5572
  author?: any;
5213
5573
  };
5214
5574
  }>;
5215
- rejectComment(id: import("./@types-v5").Id): Promise<{
5575
+ rejectComment(id: import("./@types").Id): Promise<{
5216
5576
  id?: number;
5217
5577
  documentId?: string;
5218
5578
  content?: string;
@@ -5230,7 +5590,10 @@ declare const _default: {
5230
5590
  authorName?: string;
5231
5591
  authorEmail?: string;
5232
5592
  authorAvatar?: string;
5233
- authorUser?: string;
5593
+ authorUser?: string | {
5594
+ id?: number;
5595
+ email?: string;
5596
+ };
5234
5597
  locale?: string;
5235
5598
  gotThread?: boolean;
5236
5599
  threadFirstItemId?: number;
@@ -5264,7 +5627,10 @@ declare const _default: {
5264
5627
  authorName?: string;
5265
5628
  authorEmail?: string;
5266
5629
  authorAvatar?: string;
5267
- authorUser?: string;
5630
+ authorUser?: string | {
5631
+ id?: number;
5632
+ email?: string;
5633
+ };
5268
5634
  locale?: string;
5269
5635
  gotThread?: boolean;
5270
5636
  threadFirstItemId?: number;
@@ -5282,7 +5648,7 @@ declare const _default: {
5282
5648
  author?: any;
5283
5649
  };
5284
5650
  }>;
5285
- blockNestedThreads(id: import("./@types-v5").Id, status: boolean): Promise<boolean>;
5651
+ blockNestedThreads(id: import("./@types").Id, status: boolean): Promise<boolean>;
5286
5652
  resolveAbuseReport({ id: commentId, reportId, }: {
5287
5653
  id?: number;
5288
5654
  reportId?: number;
@@ -5301,7 +5667,7 @@ declare const _default: {
5301
5667
  id?: number;
5302
5668
  reportIds?: number[];
5303
5669
  }): Promise<import("@strapi/database/dist/types").CountResult>;
5304
- resolveAllAbuseReportsForComment(id: import("./@types-v5").Id): Promise<import("@strapi/database/dist/types").CountResult>;
5670
+ resolveAllAbuseReportsForComment(id: import("./@types").Id): Promise<import("@strapi/database/dist/types").CountResult>;
5305
5671
  resolveAllAbuseReportsForThread(commentId: number): Promise<import("@strapi/database/dist/types").CountResult>;
5306
5672
  resolveMultipleAbuseReports({ reportIds, }: {
5307
5673
  reportIds?: number[];
@@ -5334,7 +5700,10 @@ declare const _default: {
5334
5700
  authorName?: string;
5335
5701
  authorEmail?: string;
5336
5702
  authorAvatar?: string;
5337
- authorUser?: string;
5703
+ authorUser?: string | {
5704
+ id?: number;
5705
+ email?: string;
5706
+ };
5338
5707
  locale?: string;
5339
5708
  gotThread?: boolean;
5340
5709
  threadFirstItemId?: number;
@@ -5368,7 +5737,10 @@ declare const _default: {
5368
5737
  authorName?: string;
5369
5738
  authorEmail?: string;
5370
5739
  authorAvatar?: string;
5371
- authorUser?: string;
5740
+ authorUser?: string | {
5741
+ id?: number;
5742
+ email?: string;
5743
+ };
5372
5744
  locale?: string;
5373
5745
  gotThread?: boolean;
5374
5746
  threadFirstItemId?: number;
@@ -5407,7 +5779,10 @@ declare const _default: {
5407
5779
  authorName?: string;
5408
5780
  authorEmail?: string;
5409
5781
  authorAvatar?: string;
5410
- authorUser?: string;
5782
+ authorUser?: string | {
5783
+ id?: number;
5784
+ email?: string;
5785
+ };
5411
5786
  locale?: string;
5412
5787
  gotThread?: boolean;
5413
5788
  threadFirstItemId?: number;
@@ -5441,7 +5816,10 @@ declare const _default: {
5441
5816
  authorName?: string;
5442
5817
  authorEmail?: string;
5443
5818
  authorAvatar?: string;
5444
- authorUser?: string;
5819
+ authorUser?: string | {
5820
+ id?: number;
5821
+ email?: string;
5822
+ };
5445
5823
  locale?: string;
5446
5824
  gotThread?: boolean;
5447
5825
  threadFirstItemId?: number;
@@ -5460,9 +5838,9 @@ declare const _default: {
5460
5838
  };
5461
5839
  }>;
5462
5840
  };
5463
- client: ({ strapi }: import("./@types-v5").StrapiContext) => {
5841
+ client: ({ strapi }: import("./@types").StrapiContext) => {
5464
5842
  getCommonService(): {
5465
- getConfig<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T_3, defaultValue?: {
5843
+ getConfig<T_3 extends string>(prop?: T_3, defaultValue?: import("./@types").PathValue<{
5466
5844
  enabledCollections?: string[];
5467
5845
  approvalFlow?: string[];
5468
5846
  entryLabel?: Record<string, string[]>;
@@ -5479,24 +5857,11 @@ declare const _default: {
5479
5857
  gql?: {
5480
5858
  auth?: boolean;
5481
5859
  };
5482
- }[T_3], useLocal?: boolean): Promise<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql" ? {
5483
- enabledCollections?: string[];
5484
- approvalFlow?: string[];
5485
- entryLabel?: Record<string, string[]>;
5486
- moderatorRoles?: string[];
5487
- badWords?: boolean;
5488
- blockedAuthorProps?: string[];
5489
- isValidationEnabled?: boolean;
5490
- reportReasons?: {
5491
- BAD_LANGUAGE?: import("./const").REPORT_REASON.BAD_LANGUAGE;
5492
- DISCRIMINATION?: import("./const").REPORT_REASON.DISCRIMINATION;
5493
- OTHER?: import("./const").REPORT_REASON.OTHER;
5494
- };
5495
- isGQLPluginEnabled?: boolean;
5496
- gql?: {
5497
- auth?: boolean;
5860
+ client?: {
5861
+ url?: string;
5862
+ contactEmail?: string;
5498
5863
  };
5499
- }[T_3] : {
5864
+ }, T_3>, useLocal?: boolean): Promise<import("./@types").PathValue<{
5500
5865
  enabledCollections?: string[];
5501
5866
  approvalFlow?: string[];
5502
5867
  entryLabel?: Record<string, string[]>;
@@ -5513,7 +5878,11 @@ declare const _default: {
5513
5878
  gql?: {
5514
5879
  auth?: boolean;
5515
5880
  };
5516
- }>;
5881
+ client?: {
5882
+ url?: string;
5883
+ contactEmail?: string;
5884
+ };
5885
+ }, T_3>>;
5517
5886
  parseRelationString(relation: string): {
5518
5887
  uid: import("@strapi/types/dist/uid").ContentType;
5519
5888
  relatedId: string;
@@ -5539,7 +5908,10 @@ declare const _default: {
5539
5908
  authorName?: string;
5540
5909
  authorEmail?: string;
5541
5910
  authorAvatar?: string;
5542
- authorUser?: string;
5911
+ authorUser?: string | {
5912
+ id?: number;
5913
+ email?: string;
5914
+ };
5543
5915
  locale?: string;
5544
5916
  gotThread?: boolean;
5545
5917
  threadFirstItemId?: number;
@@ -5573,7 +5945,10 @@ declare const _default: {
5573
5945
  authorName?: string;
5574
5946
  authorEmail?: string;
5575
5947
  authorAvatar?: string;
5576
- authorUser?: string;
5948
+ authorUser?: string | {
5949
+ id?: number;
5950
+ email?: string;
5951
+ };
5577
5952
  locale?: string;
5578
5953
  gotThread?: boolean;
5579
5954
  threadFirstItemId?: number;
@@ -5614,7 +5989,10 @@ declare const _default: {
5614
5989
  authorName?: string;
5615
5990
  authorEmail?: string;
5616
5991
  authorAvatar?: string;
5617
- authorUser?: string;
5992
+ authorUser?: string | {
5993
+ id?: number;
5994
+ email?: string;
5995
+ };
5618
5996
  locale?: string;
5619
5997
  gotThread?: boolean;
5620
5998
  threadFirstItemId?: number;
@@ -5648,7 +6026,10 @@ declare const _default: {
5648
6026
  authorName?: string;
5649
6027
  authorEmail?: string;
5650
6028
  authorAvatar?: string;
5651
- authorUser?: string;
6029
+ authorUser?: string | {
6030
+ id?: number;
6031
+ email?: string;
6032
+ };
5652
6033
  locale?: string;
5653
6034
  gotThread?: boolean;
5654
6035
  threadFirstItemId?: number;
@@ -5683,7 +6064,10 @@ declare const _default: {
5683
6064
  authorName?: string;
5684
6065
  authorEmail?: string;
5685
6066
  authorAvatar?: string;
5686
- authorUser?: string;
6067
+ authorUser?: string | {
6068
+ id?: number;
6069
+ email?: string;
6070
+ };
5687
6071
  locale?: string;
5688
6072
  gotThread?: boolean;
5689
6073
  threadFirstItemId?: number;
@@ -5717,7 +6101,10 @@ declare const _default: {
5717
6101
  authorName?: string;
5718
6102
  authorEmail?: string;
5719
6103
  authorAvatar?: string;
5720
- authorUser?: string;
6104
+ authorUser?: string | {
6105
+ id?: number;
6106
+ email?: string;
6107
+ };
5721
6108
  locale?: string;
5722
6109
  gotThread?: boolean;
5723
6110
  threadFirstItemId?: number;
@@ -5743,7 +6130,7 @@ declare const _default: {
5743
6130
  pageSize?: number;
5744
6131
  withCount?: boolean;
5745
6132
  };
5746
- relation?: `{${string}::${string}.${string}}`;
6133
+ relation?: `${string}::${string}.${string}`;
5747
6134
  populate?: Record<string, boolean | {
5748
6135
  populate?: boolean;
5749
6136
  }>;
@@ -5948,7 +6335,10 @@ declare const _default: {
5948
6335
  authorName?: string;
5949
6336
  authorEmail?: string;
5950
6337
  authorAvatar?: string;
5951
- authorUser?: string;
6338
+ authorUser?: string | {
6339
+ id?: number;
6340
+ email?: string;
6341
+ };
5952
6342
  locale?: string;
5953
6343
  gotThread?: boolean;
5954
6344
  threadFirstItemId?: number;
@@ -5982,7 +6372,10 @@ declare const _default: {
5982
6372
  authorName?: string;
5983
6373
  authorEmail?: string;
5984
6374
  authorAvatar?: string;
5985
- authorUser?: string;
6375
+ authorUser?: string | {
6376
+ id?: number;
6377
+ email?: string;
6378
+ };
5986
6379
  locale?: string;
5987
6380
  gotThread?: boolean;
5988
6381
  threadFirstItemId?: number;
@@ -6023,7 +6416,10 @@ declare const _default: {
6023
6416
  authorName?: string;
6024
6417
  authorEmail?: string;
6025
6418
  authorAvatar?: string;
6026
- authorUser?: string;
6419
+ authorUser?: string | {
6420
+ id?: number;
6421
+ email?: string;
6422
+ };
6027
6423
  locale?: string;
6028
6424
  gotThread?: boolean;
6029
6425
  threadFirstItemId?: number;
@@ -6057,7 +6453,10 @@ declare const _default: {
6057
6453
  authorName?: string;
6058
6454
  authorEmail?: string;
6059
6455
  authorAvatar?: string;
6060
- authorUser?: string;
6456
+ authorUser?: string | {
6457
+ id?: number;
6458
+ email?: string;
6459
+ };
6061
6460
  locale?: string;
6062
6461
  gotThread?: boolean;
6063
6462
  threadFirstItemId?: number;
@@ -6085,7 +6484,7 @@ declare const _default: {
6085
6484
  findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
6086
6485
  sort?: string;
6087
6486
  locale?: string;
6088
- relation?: `{${string}::${string}.${string}}`;
6487
+ relation?: `${string}::${string}.${string}`;
6089
6488
  populate?: Record<string, boolean | {
6090
6489
  populate?: boolean;
6091
6490
  }>;
@@ -6291,7 +6690,10 @@ declare const _default: {
6291
6690
  authorName?: string;
6292
6691
  authorEmail?: string;
6293
6692
  authorAvatar?: string;
6294
- authorUser?: string;
6693
+ authorUser?: string | {
6694
+ id?: number;
6695
+ email?: string;
6696
+ };
6295
6697
  locale?: string;
6296
6698
  gotThread?: boolean;
6297
6699
  threadFirstItemId?: number;
@@ -6325,7 +6727,10 @@ declare const _default: {
6325
6727
  authorName?: string;
6326
6728
  authorEmail?: string;
6327
6729
  authorAvatar?: string;
6328
- authorUser?: string;
6730
+ authorUser?: string | {
6731
+ id?: number;
6732
+ email?: string;
6733
+ };
6329
6734
  locale?: string;
6330
6735
  gotThread?: boolean;
6331
6736
  threadFirstItemId?: number;
@@ -6361,7 +6766,10 @@ declare const _default: {
6361
6766
  authorName?: string;
6362
6767
  authorEmail?: string;
6363
6768
  authorAvatar?: string;
6364
- authorUser?: string;
6769
+ authorUser?: string | {
6770
+ id?: number;
6771
+ email?: string;
6772
+ };
6365
6773
  locale?: string;
6366
6774
  gotThread?: boolean;
6367
6775
  threadFirstItemId?: number;
@@ -6395,7 +6803,10 @@ declare const _default: {
6395
6803
  authorName?: string;
6396
6804
  authorEmail?: string;
6397
6805
  authorAvatar?: string;
6398
- authorUser?: string;
6806
+ authorUser?: string | {
6807
+ id?: number;
6808
+ email?: string;
6809
+ };
6399
6810
  locale?: string;
6400
6811
  gotThread?: boolean;
6401
6812
  threadFirstItemId?: number;
@@ -6431,7 +6842,10 @@ declare const _default: {
6431
6842
  authorName?: string;
6432
6843
  authorEmail?: string;
6433
6844
  authorAvatar?: string;
6434
- authorUser?: string;
6845
+ authorUser?: string | {
6846
+ id?: number;
6847
+ email?: string;
6848
+ };
6435
6849
  locale?: string;
6436
6850
  gotThread?: boolean;
6437
6851
  threadFirstItemId?: number;
@@ -6465,7 +6879,10 @@ declare const _default: {
6465
6879
  authorName?: string;
6466
6880
  authorEmail?: string;
6467
6881
  authorAvatar?: string;
6468
- authorUser?: string;
6882
+ authorUser?: string | {
6883
+ id?: number;
6884
+ email?: string;
6885
+ };
6469
6886
  locale?: string;
6470
6887
  gotThread?: boolean;
6471
6888
  threadFirstItemId?: number;
@@ -6501,7 +6918,10 @@ declare const _default: {
6501
6918
  authorName?: string;
6502
6919
  authorEmail?: string;
6503
6920
  authorAvatar?: string;
6504
- authorUser?: string;
6921
+ authorUser?: string | {
6922
+ id?: number;
6923
+ email?: string;
6924
+ };
6505
6925
  locale?: string;
6506
6926
  gotThread?: boolean;
6507
6927
  threadFirstItemId?: number;
@@ -6535,7 +6955,10 @@ declare const _default: {
6535
6955
  authorName?: string;
6536
6956
  authorEmail?: string;
6537
6957
  authorAvatar?: string;
6538
- authorUser?: string;
6958
+ authorUser?: string | {
6959
+ id?: number;
6960
+ email?: string;
6961
+ };
6539
6962
  locale?: string;
6540
6963
  gotThread?: boolean;
6541
6964
  threadFirstItemId?: number;
@@ -6570,7 +6993,10 @@ declare const _default: {
6570
6993
  authorName?: string;
6571
6994
  authorEmail?: string;
6572
6995
  authorAvatar?: string;
6573
- authorUser?: string;
6996
+ authorUser?: string | {
6997
+ id?: number;
6998
+ email?: string;
6999
+ };
6574
7000
  locale?: string;
6575
7001
  gotThread?: boolean;
6576
7002
  threadFirstItemId?: number;
@@ -6604,7 +7030,10 @@ declare const _default: {
6604
7030
  authorName?: string;
6605
7031
  authorEmail?: string;
6606
7032
  authorAvatar?: string;
6607
- authorUser?: string;
7033
+ authorUser?: string | {
7034
+ id?: number;
7035
+ email?: string;
7036
+ };
6608
7037
  locale?: string;
6609
7038
  gotThread?: boolean;
6610
7039
  threadFirstItemId?: number;
@@ -6836,7 +7265,10 @@ declare const _default: {
6836
7265
  authorName?: string;
6837
7266
  authorEmail?: string;
6838
7267
  authorAvatar?: string;
6839
- authorUser?: string;
7268
+ authorUser?: string | {
7269
+ id?: number;
7270
+ email?: string;
7271
+ };
6840
7272
  locale?: string;
6841
7273
  gotThread?: boolean;
6842
7274
  threadFirstItemId?: number;
@@ -6869,7 +7301,10 @@ declare const _default: {
6869
7301
  authorName?: string;
6870
7302
  authorEmail?: string;
6871
7303
  authorAvatar?: string;
6872
- authorUser?: string;
7304
+ authorUser?: string | {
7305
+ id?: number;
7306
+ email?: string;
7307
+ };
6873
7308
  locale?: string;
6874
7309
  gotThread?: boolean;
6875
7310
  threadFirstItemId?: number;
@@ -6910,7 +7345,10 @@ declare const _default: {
6910
7345
  authorName?: string;
6911
7346
  authorEmail?: string;
6912
7347
  authorAvatar?: string;
6913
- authorUser?: string;
7348
+ authorUser?: string | {
7349
+ id?: number;
7350
+ email?: string;
7351
+ };
6914
7352
  locale?: string;
6915
7353
  gotThread?: boolean;
6916
7354
  threadFirstItemId?: number;
@@ -6943,7 +7381,10 @@ declare const _default: {
6943
7381
  authorName?: string;
6944
7382
  authorEmail?: string;
6945
7383
  authorAvatar?: string;
6946
- authorUser?: string;
7384
+ authorUser?: string | {
7385
+ id?: number;
7386
+ email?: string;
7387
+ };
6947
7388
  locale?: string;
6948
7389
  gotThread?: boolean;
6949
7390
  threadFirstItemId?: number;
@@ -6986,7 +7427,10 @@ declare const _default: {
6986
7427
  authorName?: string;
6987
7428
  authorEmail?: string;
6988
7429
  authorAvatar?: string;
6989
- authorUser?: string;
7430
+ authorUser?: string | {
7431
+ id?: number;
7432
+ email?: string;
7433
+ };
6990
7434
  locale?: string;
6991
7435
  gotThread?: boolean;
6992
7436
  threadFirstItemId?: number;
@@ -7020,7 +7464,10 @@ declare const _default: {
7020
7464
  authorName?: string;
7021
7465
  authorEmail?: string;
7022
7466
  authorAvatar?: string;
7023
- authorUser?: string;
7467
+ authorUser?: string | {
7468
+ id?: number;
7469
+ email?: string;
7470
+ };
7024
7471
  locale?: string;
7025
7472
  gotThread?: boolean;
7026
7473
  threadFirstItemId?: number;
@@ -7062,7 +7509,10 @@ declare const _default: {
7062
7509
  authorName?: string;
7063
7510
  authorEmail?: string;
7064
7511
  authorAvatar?: string;
7065
- authorUser?: string;
7512
+ authorUser?: string | {
7513
+ id?: number;
7514
+ email?: string;
7515
+ };
7066
7516
  locale?: string;
7067
7517
  gotThread?: boolean;
7068
7518
  threadFirstItemId?: number;
@@ -7096,7 +7546,10 @@ declare const _default: {
7096
7546
  authorName?: string;
7097
7547
  authorEmail?: string;
7098
7548
  authorAvatar?: string;
7099
- authorUser?: string;
7549
+ authorUser?: string | {
7550
+ id?: number;
7551
+ email?: string;
7552
+ };
7100
7553
  locale?: string;
7101
7554
  gotThread?: boolean;
7102
7555
  threadFirstItemId?: number;
@@ -7143,7 +7596,10 @@ declare const _default: {
7143
7596
  authorName?: string;
7144
7597
  authorEmail?: string;
7145
7598
  authorAvatar?: string;
7146
- authorUser?: string;
7599
+ authorUser?: string | {
7600
+ id?: number;
7601
+ email?: string;
7602
+ };
7147
7603
  locale?: string;
7148
7604
  gotThread?: boolean;
7149
7605
  threadFirstItemId?: number;
@@ -7177,7 +7633,10 @@ declare const _default: {
7177
7633
  authorName?: string;
7178
7634
  authorEmail?: string;
7179
7635
  authorAvatar?: string;
7180
- authorUser?: string;
7636
+ authorUser?: string | {
7637
+ id?: number;
7638
+ email?: string;
7639
+ };
7181
7640
  locale?: string;
7182
7641
  gotThread?: boolean;
7183
7642
  threadFirstItemId?: number;
@@ -7195,7 +7654,7 @@ declare const _default: {
7195
7654
  author?: any;
7196
7655
  };
7197
7656
  };
7198
- 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-v5").Id, fieldName: T_5, value: {
7657
+ 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: {
7199
7658
  id?: number;
7200
7659
  documentId?: string;
7201
7660
  content?: string;
@@ -7213,7 +7672,10 @@ declare const _default: {
7213
7672
  authorName?: string;
7214
7673
  authorEmail?: string;
7215
7674
  authorAvatar?: string;
7216
- authorUser?: string;
7675
+ authorUser?: string | {
7676
+ id?: number;
7677
+ email?: string;
7678
+ };
7217
7679
  locale?: string;
7218
7680
  gotThread?: boolean;
7219
7681
  threadFirstItemId?: number;
@@ -7247,7 +7709,10 @@ declare const _default: {
7247
7709
  authorName?: string;
7248
7710
  authorEmail?: string;
7249
7711
  authorAvatar?: string;
7250
- authorUser?: string;
7712
+ authorUser?: string | {
7713
+ id?: number;
7714
+ email?: string;
7715
+ };
7251
7716
  locale?: string;
7252
7717
  gotThread?: boolean;
7253
7718
  threadFirstItemId?: number;
@@ -7264,7 +7729,7 @@ declare const _default: {
7264
7729
  }[];
7265
7730
  author?: any;
7266
7731
  };
7267
- }[T_5]): Promise<boolean>;
7732
+ }[T_5], deepLimit?: number): Promise<boolean>;
7268
7733
  checkBadWords(content: string): Promise<string>;
7269
7734
  registerLifecycleHook(): void;
7270
7735
  runLifecycleHook(): Promise<void>;
@@ -7279,9 +7744,9 @@ declare const _default: {
7279
7744
  email?: string;
7280
7745
  avatar?: string;
7281
7746
  };
7282
- threadOf?: number;
7283
- relation?: `{${string}::${string}.${string}}`;
7284
- }, user?: import("./@types-v5").AdminUser): Promise<{
7747
+ threadOf?: string;
7748
+ relation?: `${string}::${string}.${string}`;
7749
+ }, user?: import("./@types").AdminUser): Promise<{
7285
7750
  id?: number;
7286
7751
  documentId?: string;
7287
7752
  content?: string;
@@ -7299,7 +7764,10 @@ declare const _default: {
7299
7764
  authorName?: string;
7300
7765
  authorEmail?: string;
7301
7766
  authorAvatar?: string;
7302
- authorUser?: string;
7767
+ authorUser?: string | {
7768
+ id?: number;
7769
+ email?: string;
7770
+ };
7303
7771
  locale?: string;
7304
7772
  gotThread?: boolean;
7305
7773
  threadFirstItemId?: number;
@@ -7333,7 +7801,10 @@ declare const _default: {
7333
7801
  authorName?: string;
7334
7802
  authorEmail?: string;
7335
7803
  authorAvatar?: string;
7336
- authorUser?: string;
7804
+ authorUser?: string | {
7805
+ id?: number;
7806
+ email?: string;
7807
+ };
7337
7808
  locale?: string;
7338
7809
  gotThread?: boolean;
7339
7810
  threadFirstItemId?: number;
@@ -7351,11 +7822,17 @@ declare const _default: {
7351
7822
  author?: any;
7352
7823
  };
7353
7824
  }>;
7354
- update({ commentId, content }: {
7825
+ update({ commentId, content, author, relation }: {
7355
7826
  content?: string;
7356
- relation?: `{${string}::${string}.${string}}`;
7827
+ author?: {
7828
+ name?: string;
7829
+ id?: number;
7830
+ email?: string;
7831
+ avatar?: string;
7832
+ };
7833
+ relation?: `${string}::${string}.${string}`;
7357
7834
  commentId?: number;
7358
- }, user?: import("./@types-v5").AdminUser): Promise<{
7835
+ }, user?: import("./@types").AdminUser): Promise<{
7359
7836
  id?: number;
7360
7837
  documentId?: string;
7361
7838
  content?: string;
@@ -7373,7 +7850,10 @@ declare const _default: {
7373
7850
  authorName?: string;
7374
7851
  authorEmail?: string;
7375
7852
  authorAvatar?: string;
7376
- authorUser?: string;
7853
+ authorUser?: string | {
7854
+ id?: number;
7855
+ email?: string;
7856
+ };
7377
7857
  locale?: string;
7378
7858
  gotThread?: boolean;
7379
7859
  threadFirstItemId?: number;
@@ -7407,7 +7887,10 @@ declare const _default: {
7407
7887
  authorName?: string;
7408
7888
  authorEmail?: string;
7409
7889
  authorAvatar?: string;
7410
- authorUser?: string;
7890
+ authorUser?: string | {
7891
+ id?: number;
7892
+ email?: string;
7893
+ };
7411
7894
  locale?: string;
7412
7895
  gotThread?: boolean;
7413
7896
  threadFirstItemId?: number;
@@ -7427,10 +7910,10 @@ declare const _default: {
7427
7910
  }>;
7428
7911
  reportAbuse({ commentId, relation, ...payload }: {
7429
7912
  content?: string;
7430
- reason?: string;
7431
- relation?: `{${string}::${string}.${string}}`;
7913
+ reason?: import("./const").REPORT_REASON;
7914
+ relation?: `${string}::${string}.${string}`;
7432
7915
  commentId?: number;
7433
- }, user?: import("./@types-v5").AdminUser): Promise<{
7916
+ }, user?: import("./@types").AdminUser): Promise<{
7434
7917
  related: {
7435
7918
  id?: number;
7436
7919
  documentId?: string;
@@ -7449,7 +7932,10 @@ declare const _default: {
7449
7932
  authorName?: string;
7450
7933
  authorEmail?: string;
7451
7934
  authorAvatar?: string;
7452
- authorUser?: string;
7935
+ authorUser?: string | {
7936
+ id?: number;
7937
+ email?: string;
7938
+ };
7453
7939
  locale?: string;
7454
7940
  gotThread?: boolean;
7455
7941
  threadFirstItemId?: number;
@@ -7483,7 +7969,10 @@ declare const _default: {
7483
7969
  authorName?: string;
7484
7970
  authorEmail?: string;
7485
7971
  authorAvatar?: string;
7486
- authorUser?: string;
7972
+ authorUser?: string | {
7973
+ id?: number;
7974
+ email?: string;
7975
+ };
7487
7976
  locale?: string;
7488
7977
  gotThread?: boolean;
7489
7978
  threadFirstItemId?: number;
@@ -7513,9 +8002,9 @@ declare const _default: {
7513
8002
  }>;
7514
8003
  markAsRemoved({ commentId, relation, authorId }: {
7515
8004
  authorId?: string | number;
7516
- relation?: `{${string}::${string}.${string}}`;
8005
+ relation?: `${string}::${string}.${string}`;
7517
8006
  commentId?: number;
7518
- }, user: import("./@types-v5").AdminUser): Promise<{
8007
+ }, user: import("./@types").AdminUser): Promise<{
7519
8008
  id?: number;
7520
8009
  documentId?: string;
7521
8010
  content?: string;
@@ -7533,7 +8022,10 @@ declare const _default: {
7533
8022
  authorName?: string;
7534
8023
  authorEmail?: string;
7535
8024
  authorAvatar?: string;
7536
- authorUser?: string;
8025
+ authorUser?: string | {
8026
+ id?: number;
8027
+ email?: string;
8028
+ };
7537
8029
  locale?: string;
7538
8030
  gotThread?: boolean;
7539
8031
  threadFirstItemId?: number;
@@ -7567,7 +8059,10 @@ declare const _default: {
7567
8059
  authorName?: string;
7568
8060
  authorEmail?: string;
7569
8061
  authorAvatar?: string;
7570
- authorUser?: string;
8062
+ authorUser?: string | {
8063
+ id?: number;
8064
+ email?: string;
8065
+ };
7571
8066
  locale?: string;
7572
8067
  gotThread?: boolean;
7573
8068
  threadFirstItemId?: number;
@@ -7586,8 +8081,8 @@ declare const _default: {
7586
8081
  };
7587
8082
  }>;
7588
8083
  sendAbuseReportEmail(reason: string, content: string): Promise<void>;
7589
- markAsRemovedNested(commentId: string | number, status: boolean): Promise<void>;
7590
- sendResponseNotification(_entry: {
8084
+ markAsRemovedNested(commentId: string | number, status: boolean): Promise<boolean>;
8085
+ sendResponseNotification(entity: {
7591
8086
  id?: number;
7592
8087
  documentId?: string;
7593
8088
  content?: string;
@@ -7605,7 +8100,10 @@ declare const _default: {
7605
8100
  authorName?: string;
7606
8101
  authorEmail?: string;
7607
8102
  authorAvatar?: string;
7608
- authorUser?: string;
8103
+ authorUser?: string | {
8104
+ id?: number;
8105
+ email?: string;
8106
+ };
7609
8107
  locale?: string;
7610
8108
  gotThread?: boolean;
7611
8109
  threadFirstItemId?: number;
@@ -7639,7 +8137,10 @@ declare const _default: {
7639
8137
  authorName?: string;
7640
8138
  authorEmail?: string;
7641
8139
  authorAvatar?: string;
7642
- authorUser?: string;
8140
+ authorUser?: string | {
8141
+ id?: number;
8142
+ email?: string;
8143
+ };
7643
8144
  locale?: string;
7644
8145
  gotThread?: boolean;
7645
8146
  threadFirstItemId?: number;
@@ -7658,8 +8159,8 @@ declare const _default: {
7658
8159
  };
7659
8160
  }): Promise<void>;
7660
8161
  };
7661
- common: ({ strapi }: import("./@types-v5").StrapiContext) => {
7662
- getConfig<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T_3, defaultValue?: {
8162
+ common: ({ strapi }: import("./@types").StrapiContext) => {
8163
+ getConfig<T_3 extends string>(prop?: T_3, defaultValue?: import("./@types").PathValue<{
7663
8164
  enabledCollections?: string[];
7664
8165
  approvalFlow?: string[];
7665
8166
  entryLabel?: Record<string, string[]>;
@@ -7676,24 +8177,11 @@ declare const _default: {
7676
8177
  gql?: {
7677
8178
  auth?: boolean;
7678
8179
  };
7679
- }[T_3], useLocal?: boolean): Promise<T_3 extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql" ? {
7680
- enabledCollections?: string[];
7681
- approvalFlow?: string[];
7682
- entryLabel?: Record<string, string[]>;
7683
- moderatorRoles?: string[];
7684
- badWords?: boolean;
7685
- blockedAuthorProps?: string[];
7686
- isValidationEnabled?: boolean;
7687
- reportReasons?: {
7688
- BAD_LANGUAGE?: import("./const").REPORT_REASON.BAD_LANGUAGE;
7689
- DISCRIMINATION?: import("./const").REPORT_REASON.DISCRIMINATION;
7690
- OTHER?: import("./const").REPORT_REASON.OTHER;
7691
- };
7692
- isGQLPluginEnabled?: boolean;
7693
- gql?: {
7694
- auth?: boolean;
8180
+ client?: {
8181
+ url?: string;
8182
+ contactEmail?: string;
7695
8183
  };
7696
- }[T_3] : {
8184
+ }, T_3>, useLocal?: boolean): Promise<import("./@types").PathValue<{
7697
8185
  enabledCollections?: string[];
7698
8186
  approvalFlow?: string[];
7699
8187
  entryLabel?: Record<string, string[]>;
@@ -7710,7 +8198,11 @@ declare const _default: {
7710
8198
  gql?: {
7711
8199
  auth?: boolean;
7712
8200
  };
7713
- }>;
8201
+ client?: {
8202
+ url?: string;
8203
+ contactEmail?: string;
8204
+ };
8205
+ }, T_3>>;
7714
8206
  parseRelationString(relation: string): {
7715
8207
  uid: import("@strapi/types/dist/uid").ContentType;
7716
8208
  relatedId: string;
@@ -7736,7 +8228,10 @@ declare const _default: {
7736
8228
  authorName?: string;
7737
8229
  authorEmail?: string;
7738
8230
  authorAvatar?: string;
7739
- authorUser?: string;
8231
+ authorUser?: string | {
8232
+ id?: number;
8233
+ email?: string;
8234
+ };
7740
8235
  locale?: string;
7741
8236
  gotThread?: boolean;
7742
8237
  threadFirstItemId?: number;
@@ -7770,7 +8265,10 @@ declare const _default: {
7770
8265
  authorName?: string;
7771
8266
  authorEmail?: string;
7772
8267
  authorAvatar?: string;
7773
- authorUser?: string;
8268
+ authorUser?: string | {
8269
+ id?: number;
8270
+ email?: string;
8271
+ };
7774
8272
  locale?: string;
7775
8273
  gotThread?: boolean;
7776
8274
  threadFirstItemId?: number;
@@ -7811,7 +8309,10 @@ declare const _default: {
7811
8309
  authorName?: string;
7812
8310
  authorEmail?: string;
7813
8311
  authorAvatar?: string;
7814
- authorUser?: string;
8312
+ authorUser?: string | {
8313
+ id?: number;
8314
+ email?: string;
8315
+ };
7815
8316
  locale?: string;
7816
8317
  gotThread?: boolean;
7817
8318
  threadFirstItemId?: number;
@@ -7845,7 +8346,10 @@ declare const _default: {
7845
8346
  authorName?: string;
7846
8347
  authorEmail?: string;
7847
8348
  authorAvatar?: string;
7848
- authorUser?: string;
8349
+ authorUser?: string | {
8350
+ id?: number;
8351
+ email?: string;
8352
+ };
7849
8353
  locale?: string;
7850
8354
  gotThread?: boolean;
7851
8355
  threadFirstItemId?: number;
@@ -7880,7 +8384,10 @@ declare const _default: {
7880
8384
  authorName?: string;
7881
8385
  authorEmail?: string;
7882
8386
  authorAvatar?: string;
7883
- authorUser?: string;
8387
+ authorUser?: string | {
8388
+ id?: number;
8389
+ email?: string;
8390
+ };
7884
8391
  locale?: string;
7885
8392
  gotThread?: boolean;
7886
8393
  threadFirstItemId?: number;
@@ -7914,7 +8421,10 @@ declare const _default: {
7914
8421
  authorName?: string;
7915
8422
  authorEmail?: string;
7916
8423
  authorAvatar?: string;
7917
- authorUser?: string;
8424
+ authorUser?: string | {
8425
+ id?: number;
8426
+ email?: string;
8427
+ };
7918
8428
  locale?: string;
7919
8429
  gotThread?: boolean;
7920
8430
  threadFirstItemId?: number;
@@ -7940,7 +8450,7 @@ declare const _default: {
7940
8450
  pageSize?: number;
7941
8451
  withCount?: boolean;
7942
8452
  };
7943
- relation?: `{${string}::${string}.${string}}`;
8453
+ relation?: `${string}::${string}.${string}`;
7944
8454
  populate?: Record<string, boolean | {
7945
8455
  populate?: boolean;
7946
8456
  }>;
@@ -8145,7 +8655,10 @@ declare const _default: {
8145
8655
  authorName?: string;
8146
8656
  authorEmail?: string;
8147
8657
  authorAvatar?: string;
8148
- authorUser?: string;
8658
+ authorUser?: string | {
8659
+ id?: number;
8660
+ email?: string;
8661
+ };
8149
8662
  locale?: string;
8150
8663
  gotThread?: boolean;
8151
8664
  threadFirstItemId?: number;
@@ -8179,7 +8692,10 @@ declare const _default: {
8179
8692
  authorName?: string;
8180
8693
  authorEmail?: string;
8181
8694
  authorAvatar?: string;
8182
- authorUser?: string;
8695
+ authorUser?: string | {
8696
+ id?: number;
8697
+ email?: string;
8698
+ };
8183
8699
  locale?: string;
8184
8700
  gotThread?: boolean;
8185
8701
  threadFirstItemId?: number;
@@ -8220,7 +8736,10 @@ declare const _default: {
8220
8736
  authorName?: string;
8221
8737
  authorEmail?: string;
8222
8738
  authorAvatar?: string;
8223
- authorUser?: string;
8739
+ authorUser?: string | {
8740
+ id?: number;
8741
+ email?: string;
8742
+ };
8224
8743
  locale?: string;
8225
8744
  gotThread?: boolean;
8226
8745
  threadFirstItemId?: number;
@@ -8254,7 +8773,10 @@ declare const _default: {
8254
8773
  authorName?: string;
8255
8774
  authorEmail?: string;
8256
8775
  authorAvatar?: string;
8257
- authorUser?: string;
8776
+ authorUser?: string | {
8777
+ id?: number;
8778
+ email?: string;
8779
+ };
8258
8780
  locale?: string;
8259
8781
  gotThread?: boolean;
8260
8782
  threadFirstItemId?: number;
@@ -8282,7 +8804,7 @@ declare const _default: {
8282
8804
  findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
8283
8805
  sort?: string;
8284
8806
  locale?: string;
8285
- relation?: `{${string}::${string}.${string}}`;
8807
+ relation?: `${string}::${string}.${string}`;
8286
8808
  populate?: Record<string, boolean | {
8287
8809
  populate?: boolean;
8288
8810
  }>;
@@ -8488,7 +9010,10 @@ declare const _default: {
8488
9010
  authorName?: string;
8489
9011
  authorEmail?: string;
8490
9012
  authorAvatar?: string;
8491
- authorUser?: string;
9013
+ authorUser?: string | {
9014
+ id?: number;
9015
+ email?: string;
9016
+ };
8492
9017
  locale?: string;
8493
9018
  gotThread?: boolean;
8494
9019
  threadFirstItemId?: number;
@@ -8522,7 +9047,10 @@ declare const _default: {
8522
9047
  authorName?: string;
8523
9048
  authorEmail?: string;
8524
9049
  authorAvatar?: string;
8525
- authorUser?: string;
9050
+ authorUser?: string | {
9051
+ id?: number;
9052
+ email?: string;
9053
+ };
8526
9054
  locale?: string;
8527
9055
  gotThread?: boolean;
8528
9056
  threadFirstItemId?: number;
@@ -8558,7 +9086,10 @@ declare const _default: {
8558
9086
  authorName?: string;
8559
9087
  authorEmail?: string;
8560
9088
  authorAvatar?: string;
8561
- authorUser?: string;
9089
+ authorUser?: string | {
9090
+ id?: number;
9091
+ email?: string;
9092
+ };
8562
9093
  locale?: string;
8563
9094
  gotThread?: boolean;
8564
9095
  threadFirstItemId?: number;
@@ -8592,7 +9123,10 @@ declare const _default: {
8592
9123
  authorName?: string;
8593
9124
  authorEmail?: string;
8594
9125
  authorAvatar?: string;
8595
- authorUser?: string;
9126
+ authorUser?: string | {
9127
+ id?: number;
9128
+ email?: string;
9129
+ };
8596
9130
  locale?: string;
8597
9131
  gotThread?: boolean;
8598
9132
  threadFirstItemId?: number;
@@ -8628,7 +9162,10 @@ declare const _default: {
8628
9162
  authorName?: string;
8629
9163
  authorEmail?: string;
8630
9164
  authorAvatar?: string;
8631
- authorUser?: string;
9165
+ authorUser?: string | {
9166
+ id?: number;
9167
+ email?: string;
9168
+ };
8632
9169
  locale?: string;
8633
9170
  gotThread?: boolean;
8634
9171
  threadFirstItemId?: number;
@@ -8662,7 +9199,10 @@ declare const _default: {
8662
9199
  authorName?: string;
8663
9200
  authorEmail?: string;
8664
9201
  authorAvatar?: string;
8665
- authorUser?: string;
9202
+ authorUser?: string | {
9203
+ id?: number;
9204
+ email?: string;
9205
+ };
8666
9206
  locale?: string;
8667
9207
  gotThread?: boolean;
8668
9208
  threadFirstItemId?: number;
@@ -8698,7 +9238,10 @@ declare const _default: {
8698
9238
  authorName?: string;
8699
9239
  authorEmail?: string;
8700
9240
  authorAvatar?: string;
8701
- authorUser?: string;
9241
+ authorUser?: string | {
9242
+ id?: number;
9243
+ email?: string;
9244
+ };
8702
9245
  locale?: string;
8703
9246
  gotThread?: boolean;
8704
9247
  threadFirstItemId?: number;
@@ -8732,7 +9275,10 @@ declare const _default: {
8732
9275
  authorName?: string;
8733
9276
  authorEmail?: string;
8734
9277
  authorAvatar?: string;
8735
- authorUser?: string;
9278
+ authorUser?: string | {
9279
+ id?: number;
9280
+ email?: string;
9281
+ };
8736
9282
  locale?: string;
8737
9283
  gotThread?: boolean;
8738
9284
  threadFirstItemId?: number;
@@ -8767,7 +9313,10 @@ declare const _default: {
8767
9313
  authorName?: string;
8768
9314
  authorEmail?: string;
8769
9315
  authorAvatar?: string;
8770
- authorUser?: string;
9316
+ authorUser?: string | {
9317
+ id?: number;
9318
+ email?: string;
9319
+ };
8771
9320
  locale?: string;
8772
9321
  gotThread?: boolean;
8773
9322
  threadFirstItemId?: number;
@@ -8801,7 +9350,10 @@ declare const _default: {
8801
9350
  authorName?: string;
8802
9351
  authorEmail?: string;
8803
9352
  authorAvatar?: string;
8804
- authorUser?: string;
9353
+ authorUser?: string | {
9354
+ id?: number;
9355
+ email?: string;
9356
+ };
8805
9357
  locale?: string;
8806
9358
  gotThread?: boolean;
8807
9359
  threadFirstItemId?: number;
@@ -9033,7 +9585,10 @@ declare const _default: {
9033
9585
  authorName?: string;
9034
9586
  authorEmail?: string;
9035
9587
  authorAvatar?: string;
9036
- authorUser?: string;
9588
+ authorUser?: string | {
9589
+ id?: number;
9590
+ email?: string;
9591
+ };
9037
9592
  locale?: string;
9038
9593
  gotThread?: boolean;
9039
9594
  threadFirstItemId?: number;
@@ -9066,7 +9621,10 @@ declare const _default: {
9066
9621
  authorName?: string;
9067
9622
  authorEmail?: string;
9068
9623
  authorAvatar?: string;
9069
- authorUser?: string;
9624
+ authorUser?: string | {
9625
+ id?: number;
9626
+ email?: string;
9627
+ };
9070
9628
  locale?: string;
9071
9629
  gotThread?: boolean;
9072
9630
  threadFirstItemId?: number;
@@ -9107,7 +9665,10 @@ declare const _default: {
9107
9665
  authorName?: string;
9108
9666
  authorEmail?: string;
9109
9667
  authorAvatar?: string;
9110
- authorUser?: string;
9668
+ authorUser?: string | {
9669
+ id?: number;
9670
+ email?: string;
9671
+ };
9111
9672
  locale?: string;
9112
9673
  gotThread?: boolean;
9113
9674
  threadFirstItemId?: number;
@@ -9140,7 +9701,10 @@ declare const _default: {
9140
9701
  authorName?: string;
9141
9702
  authorEmail?: string;
9142
9703
  authorAvatar?: string;
9143
- authorUser?: string;
9704
+ authorUser?: string | {
9705
+ id?: number;
9706
+ email?: string;
9707
+ };
9144
9708
  locale?: string;
9145
9709
  gotThread?: boolean;
9146
9710
  threadFirstItemId?: number;
@@ -9183,7 +9747,10 @@ declare const _default: {
9183
9747
  authorName?: string;
9184
9748
  authorEmail?: string;
9185
9749
  authorAvatar?: string;
9186
- authorUser?: string;
9750
+ authorUser?: string | {
9751
+ id?: number;
9752
+ email?: string;
9753
+ };
9187
9754
  locale?: string;
9188
9755
  gotThread?: boolean;
9189
9756
  threadFirstItemId?: number;
@@ -9217,7 +9784,10 @@ declare const _default: {
9217
9784
  authorName?: string;
9218
9785
  authorEmail?: string;
9219
9786
  authorAvatar?: string;
9220
- authorUser?: string;
9787
+ authorUser?: string | {
9788
+ id?: number;
9789
+ email?: string;
9790
+ };
9221
9791
  locale?: string;
9222
9792
  gotThread?: boolean;
9223
9793
  threadFirstItemId?: number;
@@ -9259,7 +9829,10 @@ declare const _default: {
9259
9829
  authorName?: string;
9260
9830
  authorEmail?: string;
9261
9831
  authorAvatar?: string;
9262
- authorUser?: string;
9832
+ authorUser?: string | {
9833
+ id?: number;
9834
+ email?: string;
9835
+ };
9263
9836
  locale?: string;
9264
9837
  gotThread?: boolean;
9265
9838
  threadFirstItemId?: number;
@@ -9293,7 +9866,10 @@ declare const _default: {
9293
9866
  authorName?: string;
9294
9867
  authorEmail?: string;
9295
9868
  authorAvatar?: string;
9296
- authorUser?: string;
9869
+ authorUser?: string | {
9870
+ id?: number;
9871
+ email?: string;
9872
+ };
9297
9873
  locale?: string;
9298
9874
  gotThread?: boolean;
9299
9875
  threadFirstItemId?: number;
@@ -9340,7 +9916,10 @@ declare const _default: {
9340
9916
  authorName?: string;
9341
9917
  authorEmail?: string;
9342
9918
  authorAvatar?: string;
9343
- authorUser?: string;
9919
+ authorUser?: string | {
9920
+ id?: number;
9921
+ email?: string;
9922
+ };
9344
9923
  locale?: string;
9345
9924
  gotThread?: boolean;
9346
9925
  threadFirstItemId?: number;
@@ -9374,7 +9953,10 @@ declare const _default: {
9374
9953
  authorName?: string;
9375
9954
  authorEmail?: string;
9376
9955
  authorAvatar?: string;
9377
- authorUser?: string;
9956
+ authorUser?: string | {
9957
+ id?: number;
9958
+ email?: string;
9959
+ };
9378
9960
  locale?: string;
9379
9961
  gotThread?: boolean;
9380
9962
  threadFirstItemId?: number;
@@ -9392,7 +9974,7 @@ declare const _default: {
9392
9974
  author?: any;
9393
9975
  };
9394
9976
  };
9395
- 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-v5").Id, fieldName: T_5, value: {
9977
+ 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: {
9396
9978
  id?: number;
9397
9979
  documentId?: string;
9398
9980
  content?: string;
@@ -9410,7 +9992,10 @@ declare const _default: {
9410
9992
  authorName?: string;
9411
9993
  authorEmail?: string;
9412
9994
  authorAvatar?: string;
9413
- authorUser?: string;
9995
+ authorUser?: string | {
9996
+ id?: number;
9997
+ email?: string;
9998
+ };
9414
9999
  locale?: string;
9415
10000
  gotThread?: boolean;
9416
10001
  threadFirstItemId?: number;
@@ -9444,7 +10029,10 @@ declare const _default: {
9444
10029
  authorName?: string;
9445
10030
  authorEmail?: string;
9446
10031
  authorAvatar?: string;
9447
- authorUser?: string;
10032
+ authorUser?: string | {
10033
+ id?: number;
10034
+ email?: string;
10035
+ };
9448
10036
  locale?: string;
9449
10037
  gotThread?: boolean;
9450
10038
  threadFirstItemId?: number;
@@ -9461,12 +10049,12 @@ declare const _default: {
9461
10049
  }[];
9462
10050
  author?: any;
9463
10051
  };
9464
- }[T_5]): Promise<boolean>;
10052
+ }[T_5], deepLimit?: number): Promise<boolean>;
9465
10053
  checkBadWords(content: string): Promise<string>;
9466
10054
  registerLifecycleHook(): void;
9467
10055
  runLifecycleHook(): Promise<void>;
9468
10056
  };
9469
- settings: ({ strapi }: import("./@types-v5").StrapiContext) => {
10057
+ settings: ({ strapi }: import("./@types").StrapiContext) => {
9470
10058
  getConfig: (viaSettingsPage?: boolean) => Promise<{
9471
10059
  enabledCollections?: string[];
9472
10060
  approvalFlow?: string[];
@@ -9484,6 +10072,10 @@ declare const _default: {
9484
10072
  gql?: {
9485
10073
  auth?: boolean;
9486
10074
  };
10075
+ client?: {
10076
+ url?: string;
10077
+ contactEmail?: string;
10078
+ };
9487
10079
  } | Omit<{
9488
10080
  enabledCollections?: string[];
9489
10081
  approvalFlow?: string[];
@@ -9501,6 +10093,10 @@ declare const _default: {
9501
10093
  gql?: {
9502
10094
  auth?: boolean;
9503
10095
  };
10096
+ client?: {
10097
+ url?: string;
10098
+ contactEmail?: string;
10099
+ };
9504
10100
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
9505
10101
  update: (config: {
9506
10102
  enabledCollections?: string[];
@@ -9519,6 +10115,10 @@ declare const _default: {
9519
10115
  gql?: {
9520
10116
  auth?: boolean;
9521
10117
  };
10118
+ client?: {
10119
+ url?: string;
10120
+ contactEmail?: string;
10121
+ };
9522
10122
  }) => Promise<{
9523
10123
  enabledCollections?: string[];
9524
10124
  approvalFlow?: string[];
@@ -9536,6 +10136,10 @@ declare const _default: {
9536
10136
  gql?: {
9537
10137
  auth?: boolean;
9538
10138
  };
10139
+ client?: {
10140
+ url?: string;
10141
+ contactEmail?: string;
10142
+ };
9539
10143
  } | Omit<{
9540
10144
  enabledCollections?: string[];
9541
10145
  approvalFlow?: string[];
@@ -9553,6 +10157,10 @@ declare const _default: {
9553
10157
  gql?: {
9554
10158
  auth?: boolean;
9555
10159
  };
10160
+ client?: {
10161
+ url?: string;
10162
+ contactEmail?: string;
10163
+ };
9556
10164
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
9557
10165
  restore: () => Promise<{
9558
10166
  enabledCollections?: string[];
@@ -9571,6 +10179,10 @@ declare const _default: {
9571
10179
  gql?: {
9572
10180
  auth?: boolean;
9573
10181
  };
10182
+ client?: {
10183
+ url?: string;
10184
+ contactEmail?: string;
10185
+ };
9574
10186
  } | Omit<{
9575
10187
  enabledCollections?: string[];
9576
10188
  approvalFlow?: string[];
@@ -9588,10 +10200,14 @@ declare const _default: {
9588
10200
  gql?: {
9589
10201
  auth?: boolean;
9590
10202
  };
10203
+ client?: {
10204
+ url?: string;
10205
+ contactEmail?: string;
10206
+ };
9591
10207
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
9592
10208
  restart: () => void;
9593
10209
  };
9594
- gql: ({ strapi }: import("./@types-v5").StrapiContext) => {
10210
+ gql: ({ strapi }: import("./@types").StrapiContext) => {
9595
10211
  graphQLFiltersToStrapiQuery: (queryFilters: any, contentType?: any) => any;
9596
10212
  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>;
9597
10213
  };