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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/README.md +81 -122
  2. package/dist/_chunks/{index-CY_AVWS-.js → index-B-ygLKrb.js} +417 -242
  3. package/dist/_chunks/{index-D3iNqWZT.mjs → index-BgN4aUMA.mjs} +5 -5
  4. package/dist/_chunks/{index-BBcsmSTs.mjs → index-Bx2boY6h.mjs} +420 -245
  5. package/dist/_chunks/{index-DJ32APz-.mjs → index-CIqMAf50.mjs} +1277 -1152
  6. package/dist/_chunks/{index-BXEk5PWx.js → index-CWfr5ejx.js} +20 -26
  7. package/dist/_chunks/{index-BFPteXuP.js → index-D8uskGzQ.js} +5 -5
  8. package/dist/_chunks/{index-Bcck91A8.js → index-DFAPx7Bl.js} +1290 -1144
  9. package/dist/_chunks/{index-D9MOkoQ2.mjs → index-Db2zwbpe.mjs} +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 +198 -144
  19. package/dist/server/index.mjs +198 -144
  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 +117 -23
  26. package/dist/server/src/controllers/index.d.ts +297 -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 +921 -314
  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 +177 -66
  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 +608 -222
  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 +10 -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,4 +1,4 @@
1
- import { CoreStrapi, DBQuery, Where } from '../../@types-v5';
1
+ import { CoreStrapi, DBQuery, Where } from '../../@types';
2
2
  import { admin as adminValidator } from '../../validators/api';
3
3
  export declare const getAdminServiceUtils: (strapi: CoreStrapi) => {
4
4
  findAll: {
@@ -1,4 +1,4 @@
1
- import { AdminUser, StrapiContext } from '../@types-v5';
1
+ import { AdminUser, StrapiContext } from '../@types';
2
2
  import { client } from '../validators/api';
3
3
  import { Comment } from '../validators/repositories';
4
4
  /**
@@ -6,7 +6,7 @@ import { Comment } from '../validators/repositories';
6
6
  */
7
7
  export declare const clientService: ({ strapi }: StrapiContext) => {
8
8
  getCommonService(): {
9
- getConfig<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T, defaultValue?: {
9
+ getConfig<T extends string>(prop?: T, defaultValue?: import("../@types").PathValue<{
10
10
  enabledCollections?: string[];
11
11
  approvalFlow?: string[];
12
12
  entryLabel?: Record<string, string[]>;
@@ -23,24 +23,11 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
23
23
  gql?: {
24
24
  auth?: boolean;
25
25
  };
26
- }[T], useLocal?: boolean): Promise<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql" ? {
27
- enabledCollections?: string[];
28
- approvalFlow?: string[];
29
- entryLabel?: Record<string, string[]>;
30
- moderatorRoles?: string[];
31
- badWords?: boolean;
32
- blockedAuthorProps?: string[];
33
- isValidationEnabled?: boolean;
34
- reportReasons?: {
35
- BAD_LANGUAGE?: import("../const").REPORT_REASON.BAD_LANGUAGE;
36
- DISCRIMINATION?: import("../const").REPORT_REASON.DISCRIMINATION;
37
- OTHER?: import("../const").REPORT_REASON.OTHER;
38
- };
39
- isGQLPluginEnabled?: boolean;
40
- gql?: {
41
- auth?: boolean;
26
+ client?: {
27
+ url?: string;
28
+ contactEmail?: string;
42
29
  };
43
- }[T] : {
30
+ }, T>, useLocal?: boolean): Promise<import("../@types").PathValue<{
44
31
  enabledCollections?: string[];
45
32
  approvalFlow?: string[];
46
33
  entryLabel?: Record<string, string[]>;
@@ -57,7 +44,11 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
57
44
  gql?: {
58
45
  auth?: boolean;
59
46
  };
60
- }>;
47
+ client?: {
48
+ url?: string;
49
+ contactEmail?: string;
50
+ };
51
+ }, T>>;
61
52
  parseRelationString(relation: string): {
62
53
  uid: import("@strapi/types/dist/uid").ContentType;
63
54
  relatedId: string;
@@ -83,7 +74,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
83
74
  authorName?: string;
84
75
  authorEmail?: string;
85
76
  authorAvatar?: string;
86
- authorUser?: string;
77
+ authorUser?: string | {
78
+ id?: number;
79
+ email?: string;
80
+ };
87
81
  locale?: string;
88
82
  gotThread?: boolean;
89
83
  threadFirstItemId?: number;
@@ -117,7 +111,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
117
111
  authorName?: string;
118
112
  authorEmail?: string;
119
113
  authorAvatar?: string;
120
- authorUser?: string;
114
+ authorUser?: string | {
115
+ id?: number;
116
+ email?: string;
117
+ };
121
118
  locale?: string;
122
119
  gotThread?: boolean;
123
120
  threadFirstItemId?: number;
@@ -158,7 +155,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
158
155
  authorName?: string;
159
156
  authorEmail?: string;
160
157
  authorAvatar?: string;
161
- authorUser?: string;
158
+ authorUser?: string | {
159
+ id?: number;
160
+ email?: string;
161
+ };
162
162
  locale?: string;
163
163
  gotThread?: boolean;
164
164
  threadFirstItemId?: number;
@@ -192,7 +192,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
192
192
  authorName?: string;
193
193
  authorEmail?: string;
194
194
  authorAvatar?: string;
195
- authorUser?: string;
195
+ authorUser?: string | {
196
+ id?: number;
197
+ email?: string;
198
+ };
196
199
  locale?: string;
197
200
  gotThread?: boolean;
198
201
  threadFirstItemId?: number;
@@ -227,7 +230,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
227
230
  authorName?: string;
228
231
  authorEmail?: string;
229
232
  authorAvatar?: string;
230
- authorUser?: string;
233
+ authorUser?: string | {
234
+ id?: number;
235
+ email?: string;
236
+ };
231
237
  locale?: string;
232
238
  gotThread?: boolean;
233
239
  threadFirstItemId?: number;
@@ -261,7 +267,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
261
267
  authorName?: string;
262
268
  authorEmail?: string;
263
269
  authorAvatar?: string;
264
- authorUser?: string;
270
+ authorUser?: string | {
271
+ id?: number;
272
+ email?: string;
273
+ };
265
274
  locale?: string;
266
275
  gotThread?: boolean;
267
276
  threadFirstItemId?: number;
@@ -287,7 +296,7 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
287
296
  pageSize?: number;
288
297
  withCount?: boolean;
289
298
  };
290
- relation?: `{${string}::${string}.${string}}`;
299
+ relation?: `${string}::${string}.${string}`;
291
300
  populate?: Record<string, boolean | {
292
301
  populate?: boolean;
293
302
  }>;
@@ -492,7 +501,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
492
501
  authorName?: string;
493
502
  authorEmail?: string;
494
503
  authorAvatar?: string;
495
- authorUser?: string;
504
+ authorUser?: string | {
505
+ id?: number;
506
+ email?: string;
507
+ };
496
508
  locale?: string;
497
509
  gotThread?: boolean;
498
510
  threadFirstItemId?: number;
@@ -526,7 +538,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
526
538
  authorName?: string;
527
539
  authorEmail?: string;
528
540
  authorAvatar?: string;
529
- authorUser?: string;
541
+ authorUser?: string | {
542
+ id?: number;
543
+ email?: string;
544
+ };
530
545
  locale?: string;
531
546
  gotThread?: boolean;
532
547
  threadFirstItemId?: number;
@@ -567,7 +582,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
567
582
  authorName?: string;
568
583
  authorEmail?: string;
569
584
  authorAvatar?: string;
570
- authorUser?: string;
585
+ authorUser?: string | {
586
+ id?: number;
587
+ email?: string;
588
+ };
571
589
  locale?: string;
572
590
  gotThread?: boolean;
573
591
  threadFirstItemId?: number;
@@ -601,7 +619,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
601
619
  authorName?: string;
602
620
  authorEmail?: string;
603
621
  authorAvatar?: string;
604
- authorUser?: string;
622
+ authorUser?: string | {
623
+ id?: number;
624
+ email?: string;
625
+ };
605
626
  locale?: string;
606
627
  gotThread?: boolean;
607
628
  threadFirstItemId?: number;
@@ -629,7 +650,7 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
629
650
  findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
630
651
  sort?: string;
631
652
  locale?: string;
632
- relation?: `{${string}::${string}.${string}}`;
653
+ relation?: `${string}::${string}.${string}`;
633
654
  populate?: Record<string, boolean | {
634
655
  populate?: boolean;
635
656
  }>;
@@ -835,7 +856,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
835
856
  authorName?: string;
836
857
  authorEmail?: string;
837
858
  authorAvatar?: string;
838
- authorUser?: string;
859
+ authorUser?: string | {
860
+ id?: number;
861
+ email?: string;
862
+ };
839
863
  locale?: string;
840
864
  gotThread?: boolean;
841
865
  threadFirstItemId?: number;
@@ -869,7 +893,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
869
893
  authorName?: string;
870
894
  authorEmail?: string;
871
895
  authorAvatar?: string;
872
- authorUser?: string;
896
+ authorUser?: string | {
897
+ id?: number;
898
+ email?: string;
899
+ };
873
900
  locale?: string;
874
901
  gotThread?: boolean;
875
902
  threadFirstItemId?: number;
@@ -905,7 +932,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
905
932
  authorName?: string;
906
933
  authorEmail?: string;
907
934
  authorAvatar?: string;
908
- authorUser?: string;
935
+ authorUser?: string | {
936
+ id?: number;
937
+ email?: string;
938
+ };
909
939
  locale?: string;
910
940
  gotThread?: boolean;
911
941
  threadFirstItemId?: number;
@@ -939,7 +969,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
939
969
  authorName?: string;
940
970
  authorEmail?: string;
941
971
  authorAvatar?: string;
942
- authorUser?: string;
972
+ authorUser?: string | {
973
+ id?: number;
974
+ email?: string;
975
+ };
943
976
  locale?: string;
944
977
  gotThread?: boolean;
945
978
  threadFirstItemId?: number;
@@ -975,7 +1008,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
975
1008
  authorName?: string;
976
1009
  authorEmail?: string;
977
1010
  authorAvatar?: string;
978
- authorUser?: string;
1011
+ authorUser?: string | {
1012
+ id?: number;
1013
+ email?: string;
1014
+ };
979
1015
  locale?: string;
980
1016
  gotThread?: boolean;
981
1017
  threadFirstItemId?: number;
@@ -1009,7 +1045,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1009
1045
  authorName?: string;
1010
1046
  authorEmail?: string;
1011
1047
  authorAvatar?: string;
1012
- authorUser?: string;
1048
+ authorUser?: string | {
1049
+ id?: number;
1050
+ email?: string;
1051
+ };
1013
1052
  locale?: string;
1014
1053
  gotThread?: boolean;
1015
1054
  threadFirstItemId?: number;
@@ -1045,7 +1084,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1045
1084
  authorName?: string;
1046
1085
  authorEmail?: string;
1047
1086
  authorAvatar?: string;
1048
- authorUser?: string;
1087
+ authorUser?: string | {
1088
+ id?: number;
1089
+ email?: string;
1090
+ };
1049
1091
  locale?: string;
1050
1092
  gotThread?: boolean;
1051
1093
  threadFirstItemId?: number;
@@ -1079,7 +1121,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1079
1121
  authorName?: string;
1080
1122
  authorEmail?: string;
1081
1123
  authorAvatar?: string;
1082
- authorUser?: string;
1124
+ authorUser?: string | {
1125
+ id?: number;
1126
+ email?: string;
1127
+ };
1083
1128
  locale?: string;
1084
1129
  gotThread?: boolean;
1085
1130
  threadFirstItemId?: number;
@@ -1114,7 +1159,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1114
1159
  authorName?: string;
1115
1160
  authorEmail?: string;
1116
1161
  authorAvatar?: string;
1117
- authorUser?: string;
1162
+ authorUser?: string | {
1163
+ id?: number;
1164
+ email?: string;
1165
+ };
1118
1166
  locale?: string;
1119
1167
  gotThread?: boolean;
1120
1168
  threadFirstItemId?: number;
@@ -1148,7 +1196,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1148
1196
  authorName?: string;
1149
1197
  authorEmail?: string;
1150
1198
  authorAvatar?: string;
1151
- authorUser?: string;
1199
+ authorUser?: string | {
1200
+ id?: number;
1201
+ email?: string;
1202
+ };
1152
1203
  locale?: string;
1153
1204
  gotThread?: boolean;
1154
1205
  threadFirstItemId?: number;
@@ -1380,7 +1431,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1380
1431
  authorName?: string;
1381
1432
  authorEmail?: string;
1382
1433
  authorAvatar?: string;
1383
- authorUser?: string;
1434
+ authorUser?: string | {
1435
+ id?: number;
1436
+ email?: string;
1437
+ };
1384
1438
  locale?: string;
1385
1439
  gotThread?: boolean;
1386
1440
  threadFirstItemId?: number;
@@ -1413,7 +1467,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1413
1467
  authorName?: string;
1414
1468
  authorEmail?: string;
1415
1469
  authorAvatar?: string;
1416
- authorUser?: string;
1470
+ authorUser?: string | {
1471
+ id?: number;
1472
+ email?: string;
1473
+ };
1417
1474
  locale?: string;
1418
1475
  gotThread?: boolean;
1419
1476
  threadFirstItemId?: number;
@@ -1454,7 +1511,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1454
1511
  authorName?: string;
1455
1512
  authorEmail?: string;
1456
1513
  authorAvatar?: string;
1457
- authorUser?: string;
1514
+ authorUser?: string | {
1515
+ id?: number;
1516
+ email?: string;
1517
+ };
1458
1518
  locale?: string;
1459
1519
  gotThread?: boolean;
1460
1520
  threadFirstItemId?: number;
@@ -1487,7 +1547,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1487
1547
  authorName?: string;
1488
1548
  authorEmail?: string;
1489
1549
  authorAvatar?: string;
1490
- authorUser?: string;
1550
+ authorUser?: string | {
1551
+ id?: number;
1552
+ email?: string;
1553
+ };
1491
1554
  locale?: string;
1492
1555
  gotThread?: boolean;
1493
1556
  threadFirstItemId?: number;
@@ -1530,7 +1593,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1530
1593
  authorName?: string;
1531
1594
  authorEmail?: string;
1532
1595
  authorAvatar?: string;
1533
- authorUser?: string;
1596
+ authorUser?: string | {
1597
+ id?: number;
1598
+ email?: string;
1599
+ };
1534
1600
  locale?: string;
1535
1601
  gotThread?: boolean;
1536
1602
  threadFirstItemId?: number;
@@ -1564,7 +1630,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1564
1630
  authorName?: string;
1565
1631
  authorEmail?: string;
1566
1632
  authorAvatar?: string;
1567
- authorUser?: string;
1633
+ authorUser?: string | {
1634
+ id?: number;
1635
+ email?: string;
1636
+ };
1568
1637
  locale?: string;
1569
1638
  gotThread?: boolean;
1570
1639
  threadFirstItemId?: number;
@@ -1606,7 +1675,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1606
1675
  authorName?: string;
1607
1676
  authorEmail?: string;
1608
1677
  authorAvatar?: string;
1609
- authorUser?: string;
1678
+ authorUser?: string | {
1679
+ id?: number;
1680
+ email?: string;
1681
+ };
1610
1682
  locale?: string;
1611
1683
  gotThread?: boolean;
1612
1684
  threadFirstItemId?: number;
@@ -1640,7 +1712,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1640
1712
  authorName?: string;
1641
1713
  authorEmail?: string;
1642
1714
  authorAvatar?: string;
1643
- authorUser?: string;
1715
+ authorUser?: string | {
1716
+ id?: number;
1717
+ email?: string;
1718
+ };
1644
1719
  locale?: string;
1645
1720
  gotThread?: boolean;
1646
1721
  threadFirstItemId?: number;
@@ -1687,7 +1762,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1687
1762
  authorName?: string;
1688
1763
  authorEmail?: string;
1689
1764
  authorAvatar?: string;
1690
- authorUser?: string;
1765
+ authorUser?: string | {
1766
+ id?: number;
1767
+ email?: string;
1768
+ };
1691
1769
  locale?: string;
1692
1770
  gotThread?: boolean;
1693
1771
  threadFirstItemId?: number;
@@ -1721,7 +1799,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1721
1799
  authorName?: string;
1722
1800
  authorEmail?: string;
1723
1801
  authorAvatar?: string;
1724
- authorUser?: string;
1802
+ authorUser?: string | {
1803
+ id?: number;
1804
+ email?: string;
1805
+ };
1725
1806
  locale?: string;
1726
1807
  gotThread?: boolean;
1727
1808
  threadFirstItemId?: number;
@@ -1739,7 +1820,7 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1739
1820
  author?: any;
1740
1821
  };
1741
1822
  };
1742
- modifiedNestedNestedComments<T_2 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("../@types-v5").Id, fieldName: T_2, value: {
1823
+ modifiedNestedNestedComments<T_2 extends "id" | "documentId" | "content" | "blocked" | "blockedThread" | "blockReason" | "isAdminComment" | "removed" | "approvalStatus" | "related" | "createdAt" | "updatedAt" | "publishedAt" | "authorId" | "authorName" | "authorEmail" | "authorAvatar" | "authorUser" | "locale" | "gotThread" | "threadFirstItemId" | "reports" | "author" | "threadOf">(id: import("../@types").Id, fieldName: T_2, value: {
1743
1824
  id?: number;
1744
1825
  documentId?: string;
1745
1826
  content?: string;
@@ -1757,7 +1838,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1757
1838
  authorName?: string;
1758
1839
  authorEmail?: string;
1759
1840
  authorAvatar?: string;
1760
- authorUser?: string;
1841
+ authorUser?: string | {
1842
+ id?: number;
1843
+ email?: string;
1844
+ };
1761
1845
  locale?: string;
1762
1846
  gotThread?: boolean;
1763
1847
  threadFirstItemId?: number;
@@ -1791,7 +1875,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1791
1875
  authorName?: string;
1792
1876
  authorEmail?: string;
1793
1877
  authorAvatar?: string;
1794
- authorUser?: string;
1878
+ authorUser?: string | {
1879
+ id?: number;
1880
+ email?: string;
1881
+ };
1795
1882
  locale?: string;
1796
1883
  gotThread?: boolean;
1797
1884
  threadFirstItemId?: number;
@@ -1808,7 +1895,7 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1808
1895
  }[];
1809
1896
  author?: any;
1810
1897
  };
1811
- }[T_2]): Promise<boolean>;
1898
+ }[T_2], deepLimit?: number): Promise<boolean>;
1812
1899
  checkBadWords(content: string): Promise<string>;
1813
1900
  registerLifecycleHook(): void;
1814
1901
  runLifecycleHook(): Promise<void>;
@@ -1831,7 +1918,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1831
1918
  authorName?: string;
1832
1919
  authorEmail?: string;
1833
1920
  authorAvatar?: string;
1834
- authorUser?: string;
1921
+ authorUser?: string | {
1922
+ id?: number;
1923
+ email?: string;
1924
+ };
1835
1925
  locale?: string;
1836
1926
  gotThread?: boolean;
1837
1927
  threadFirstItemId?: number;
@@ -1865,7 +1955,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1865
1955
  authorName?: string;
1866
1956
  authorEmail?: string;
1867
1957
  authorAvatar?: string;
1868
- authorUser?: string;
1958
+ authorUser?: string | {
1959
+ id?: number;
1960
+ email?: string;
1961
+ };
1869
1962
  locale?: string;
1870
1963
  gotThread?: boolean;
1871
1964
  threadFirstItemId?: number;
@@ -1901,7 +1994,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1901
1994
  authorName?: string;
1902
1995
  authorEmail?: string;
1903
1996
  authorAvatar?: string;
1904
- authorUser?: string;
1997
+ authorUser?: string | {
1998
+ id?: number;
1999
+ email?: string;
2000
+ };
1905
2001
  locale?: string;
1906
2002
  gotThread?: boolean;
1907
2003
  threadFirstItemId?: number;
@@ -1935,7 +2031,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1935
2031
  authorName?: string;
1936
2032
  authorEmail?: string;
1937
2033
  authorAvatar?: string;
1938
- authorUser?: string;
2034
+ authorUser?: string | {
2035
+ id?: number;
2036
+ email?: string;
2037
+ };
1939
2038
  locale?: string;
1940
2039
  gotThread?: boolean;
1941
2040
  threadFirstItemId?: number;
@@ -1972,7 +2071,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1972
2071
  authorName?: string;
1973
2072
  authorEmail?: string;
1974
2073
  authorAvatar?: string;
1975
- authorUser?: string;
2074
+ authorUser?: string | {
2075
+ id?: number;
2076
+ email?: string;
2077
+ };
1976
2078
  locale?: string;
1977
2079
  gotThread?: boolean;
1978
2080
  threadFirstItemId?: number;
@@ -2006,7 +2108,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
2006
2108
  authorName?: string;
2007
2109
  authorEmail?: string;
2008
2110
  authorAvatar?: string;
2009
- authorUser?: string;
2111
+ authorUser?: string | {
2112
+ id?: number;
2113
+ email?: string;
2114
+ };
2010
2115
  locale?: string;
2011
2116
  gotThread?: boolean;
2012
2117
  threadFirstItemId?: number;
@@ -2052,7 +2157,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
2052
2157
  authorName?: string;
2053
2158
  authorEmail?: string;
2054
2159
  authorAvatar?: string;
2055
- authorUser?: string;
2160
+ authorUser?: string | {
2161
+ id?: number;
2162
+ email?: string;
2163
+ };
2056
2164
  locale?: string;
2057
2165
  gotThread?: boolean;
2058
2166
  threadFirstItemId?: number;
@@ -2086,7 +2194,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
2086
2194
  authorName?: string;
2087
2195
  authorEmail?: string;
2088
2196
  authorAvatar?: string;
2089
- authorUser?: string;
2197
+ authorUser?: string | {
2198
+ id?: number;
2199
+ email?: string;
2200
+ };
2090
2201
  locale?: string;
2091
2202
  gotThread?: boolean;
2092
2203
  threadFirstItemId?: number;
@@ -2105,7 +2216,7 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
2105
2216
  };
2106
2217
  }>;
2107
2218
  sendAbuseReportEmail(reason: string, content: string): Promise<void>;
2108
- markAsRemovedNested(commentId: string | number, status: boolean): Promise<void>;
2109
- sendResponseNotification(_entry: Comment): Promise<void>;
2219
+ markAsRemovedNested(commentId: string | number, status: boolean): Promise<boolean>;
2220
+ sendResponseNotification(entity: Comment): Promise<void>;
2110
2221
  };
2111
2222
  export default clientService;