strapi-plugin-comments 3.0.0-beta.0 → 3.0.0-beta.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 (72) hide show
  1. package/README.md +6 -5
  2. package/dist/_chunks/{index-h-TB6Qu2.mjs → index-BBcsmSTs.mjs} +6976 -6733
  3. package/dist/_chunks/{index-CTjupB9v.js → index-BFPteXuP.js} +2 -2
  4. package/dist/_chunks/{index-B6Q4U8YQ.js → index-BXEk5PWx.js} +9 -5
  5. package/dist/_chunks/{index-BVj8EXjI.js → index-Bcck91A8.js} +5 -10
  6. package/dist/_chunks/{index-fAgatqD0.js → index-CY_AVWS-.js} +6987 -6744
  7. package/dist/_chunks/{index-fSb-gYwg.mjs → index-D3iNqWZT.mjs} +2 -2
  8. package/dist/_chunks/{index-Bpbf7RON.mjs → index-D9MOkoQ2.mjs} +9 -5
  9. package/dist/_chunks/{index-BQERo8pN.mjs → index-DJ32APz-.mjs} +5 -10
  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 +3 -2
  13. package/dist/admin/src/api/schemas.d.ts +22 -8
  14. package/dist/admin/src/contexts/UserContext.d.ts +1 -1
  15. package/dist/admin/src/hooks/useAPI.d.ts +4 -3
  16. package/dist/admin/src/hooks/useCommentMutations.d.ts +1 -1
  17. package/dist/admin/src/hooks/useCommentsAll.d.ts +1 -0
  18. package/dist/admin/src/hooks/useUserContext.d.ts +1 -1
  19. package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +1 -1
  20. package/dist/server/index.js +9245 -2459
  21. package/dist/server/index.mjs +9245 -2459
  22. package/dist/server/src/config/index.d.ts +22 -0
  23. package/dist/server/src/controllers/admin.controller.d.ts +3 -1
  24. package/dist/server/src/controllers/client.controller.d.ts +36 -2
  25. package/dist/server/src/controllers/index.d.ts +213 -115
  26. package/dist/server/src/controllers/settings.controller.d.ts +25 -1
  27. package/dist/server/src/controllers/utils/parsers.d.ts +4 -1
  28. package/dist/server/src/graphql/getResolversConfig.d.ts +21 -0
  29. package/dist/server/src/graphql/index.d.ts +2 -0
  30. package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +89 -0
  31. package/dist/server/src/graphql/mutations/getCreateComment.d.ts +78 -0
  32. package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +78 -0
  33. package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +78 -0
  34. package/dist/server/src/graphql/mutations/index.d.ts +3 -0
  35. package/dist/server/src/graphql/queries/findAllFlat.d.ts +165 -0
  36. package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +81 -0
  37. package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +164 -0
  38. package/dist/server/src/graphql/queries/index.d.ts +3 -0
  39. package/dist/server/src/graphql/types/getComment.d.ts +2 -0
  40. package/dist/server/src/graphql/types/getCommentAuthor.d.ts +2 -0
  41. package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +2 -0
  42. package/dist/server/src/graphql/types/getCommentNested.d.ts +2 -0
  43. package/dist/server/src/graphql/types/getCreateComment.d.ts +2 -0
  44. package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +2 -0
  45. package/dist/server/src/graphql/types/getCreateReport.d.ts +2 -0
  46. package/dist/server/src/graphql/types/getId.d.ts +2 -0
  47. package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +2 -0
  48. package/dist/server/src/graphql/types/getRemoveComment.d.ts +2 -0
  49. package/dist/server/src/graphql/types/getReport.d.ts +2 -0
  50. package/dist/server/src/graphql/types/getReportReason.d.ts +3 -0
  51. package/dist/server/src/graphql/types/getResponseFindAll.d.ts +2 -0
  52. package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +2 -0
  53. package/dist/server/src/graphql/types/getResponseMeta.d.ts +2 -0
  54. package/dist/server/src/graphql/types/getResponsePagination.d.ts +2 -0
  55. package/dist/server/src/graphql/types/getUpdateComment.d.ts +2 -0
  56. package/dist/server/src/graphql/types/index.d.ts +3 -0
  57. package/dist/server/src/index.d.ts +771 -471
  58. package/dist/server/src/repositories/store.repository.d.ts +17 -2
  59. package/dist/server/src/services/admin/admin.service.d.ts +174 -117
  60. package/dist/server/src/services/client.service.d.ts +173 -118
  61. package/dist/server/src/services/common.service.d.ts +8 -5
  62. package/dist/server/src/services/gql.service.d.ts +7 -0
  63. package/dist/server/src/services/index.d.ts +549 -356
  64. package/dist/server/src/services/settings.service.d.ts +19 -1
  65. package/dist/server/src/services/utils/functions.d.ts +9 -3
  66. package/dist/server/src/utils/getConfig.d.ts +1 -1
  67. package/dist/server/src/utils/getPluginService.d.ts +1 -1
  68. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +112 -77
  69. package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +3 -3
  70. package/dist/server/src/validators/repositories/comment.validator.d.ts +16 -0
  71. package/dist/server/src/validators/utils.d.ts +1 -1
  72. package/package.json +7 -6
@@ -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">(prop?: T, defaultValue?: {
9
+ getConfig<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T, defaultValue?: {
10
10
  enabledCollections?: string[];
11
11
  approvalFlow?: string[];
12
12
  entryLabel?: Record<string, string[]>;
@@ -20,7 +20,10 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
20
20
  OTHER?: import("../const").REPORT_REASON.OTHER;
21
21
  };
22
22
  isGQLPluginEnabled?: boolean;
23
- }[T], useLocal?: boolean): Promise<T extends string ? {
23
+ gql?: {
24
+ auth?: boolean;
25
+ };
26
+ }[T], useLocal?: boolean): Promise<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql" ? {
24
27
  enabledCollections?: string[];
25
28
  approvalFlow?: string[];
26
29
  entryLabel?: Record<string, string[]>;
@@ -34,6 +37,9 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
34
37
  OTHER?: import("../const").REPORT_REASON.OTHER;
35
38
  };
36
39
  isGQLPluginEnabled?: boolean;
40
+ gql?: {
41
+ auth?: boolean;
42
+ };
37
43
  }[T] : {
38
44
  enabledCollections?: string[];
39
45
  approvalFlow?: string[];
@@ -48,10 +54,13 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
48
54
  OTHER?: import("../const").REPORT_REASON.OTHER;
49
55
  };
50
56
  isGQLPluginEnabled?: boolean;
57
+ gql?: {
58
+ auth?: boolean;
59
+ };
51
60
  }>;
52
61
  parseRelationString(relation: string): {
53
62
  uid: import("@strapi/types/dist/uid").ContentType;
54
- relatedId: string | number;
63
+ relatedId: string;
55
64
  };
56
65
  isValidUserContext<T_1 extends {
57
66
  id?: string | number;
@@ -137,6 +146,8 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
137
146
  approvalStatus?: string;
138
147
  related?: {
139
148
  id?: number;
149
+ documentId?: string;
150
+ locale?: string;
140
151
  uid?: string;
141
152
  requireCommentsApproval?: boolean;
142
153
  };
@@ -268,44 +279,20 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
268
279
  author?: any;
269
280
  };
270
281
  };
271
- findAllFlat({ fields, limit, skip, sort, filter, populate, omit: baseOmit, isAdmin, pagination, query, }: {
272
- query?: {
273
- $and?: Record<string, string | number | {
274
- $eq?: string;
275
- } | {
276
- $eqi?: string;
277
- } | {
278
- $ne?: string;
279
- } | {
280
- $nei?: string;
281
- } | {
282
- $gt?: string;
283
- } | {
284
- $gte?: string;
285
- } | {
286
- $lt?: string;
287
- } | {
288
- $lte?: string;
289
- } | {
290
- $startsWith?: string;
291
- } | {
292
- $startsWithi?: string;
293
- } | {
294
- $endsWith?: string;
295
- } | {
296
- $endsWithi?: string;
297
- } | {
298
- $contains?: string;
299
- } | {
300
- $containsi?: string;
301
- } | {
302
- $notContains?: string;
303
- } | {
304
- $notContainsi?: string;
305
- } | {
306
- $notNull?: boolean;
307
- }>[];
308
- $or?: Record<string, string | number | {
282
+ findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
283
+ sort?: string;
284
+ locale?: string;
285
+ pagination?: {
286
+ page?: number;
287
+ pageSize?: number;
288
+ withCount?: boolean;
289
+ };
290
+ relation?: `{${string}::${string}.${string}}`;
291
+ populate?: Record<string, boolean | {
292
+ populate?: boolean;
293
+ }>;
294
+ filters?: {
295
+ id?: string | number | {
309
296
  $eq?: string;
310
297
  } | {
311
298
  $eqi?: string;
@@ -339,10 +326,7 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
339
326
  $notContainsi?: string;
340
327
  } | {
341
328
  $notNull?: boolean;
342
- }>[];
343
- } | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
344
- sort?: string;
345
- filter?: {
329
+ };
346
330
  content?: string | number | {
347
331
  $eq?: string;
348
332
  } | {
@@ -484,15 +468,6 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
484
468
  $notNull?: boolean;
485
469
  };
486
470
  };
487
- pagination?: {
488
- page?: number;
489
- pageSize?: number;
490
- withCount?: boolean;
491
- };
492
- relation?: `{${string}::${string}.${number}}`;
493
- populate?: Record<string, boolean | {
494
- populate?: boolean;
495
- }>;
496
471
  limit?: number;
497
472
  fields?: string[];
498
473
  omit?: string[];
@@ -580,6 +555,8 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
580
555
  approvalStatus?: string;
581
556
  related?: {
582
557
  id?: number;
558
+ documentId?: string;
559
+ locale?: string;
583
560
  uid?: string;
584
561
  requireCommentsApproval?: boolean;
585
562
  };
@@ -649,44 +626,15 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
649
626
  total?: number;
650
627
  };
651
628
  }>;
652
- findAllInHierarchy({ query, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, }: {
653
- query?: {
654
- $and?: Record<string, string | number | {
655
- $eq?: string;
656
- } | {
657
- $eqi?: string;
658
- } | {
659
- $ne?: string;
660
- } | {
661
- $nei?: string;
662
- } | {
663
- $gt?: string;
664
- } | {
665
- $gte?: string;
666
- } | {
667
- $lt?: string;
668
- } | {
669
- $lte?: string;
670
- } | {
671
- $startsWith?: string;
672
- } | {
673
- $startsWithi?: string;
674
- } | {
675
- $endsWith?: string;
676
- } | {
677
- $endsWithi?: string;
678
- } | {
679
- $contains?: string;
680
- } | {
681
- $containsi?: string;
682
- } | {
683
- $notContains?: string;
684
- } | {
685
- $notContainsi?: string;
686
- } | {
687
- $notNull?: boolean;
688
- }>[];
689
- $or?: Record<string, string | number | {
629
+ findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
630
+ sort?: string;
631
+ locale?: string;
632
+ relation?: `{${string}::${string}.${string}}`;
633
+ populate?: Record<string, boolean | {
634
+ populate?: boolean;
635
+ }>;
636
+ filters?: {
637
+ id?: string | number | {
690
638
  $eq?: string;
691
639
  } | {
692
640
  $eqi?: string;
@@ -720,10 +668,7 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
720
668
  $notContainsi?: string;
721
669
  } | {
722
670
  $notNull?: boolean;
723
- }>[];
724
- } | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
725
- sort?: string;
726
- filter?: {
671
+ };
727
672
  content?: string | number | {
728
673
  $eq?: string;
729
674
  } | {
@@ -865,10 +810,6 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
865
810
  $notNull?: boolean;
866
811
  };
867
812
  };
868
- relation?: `{${string}::${string}.${number}}`;
869
- populate?: Record<string, boolean | {
870
- populate?: boolean;
871
- }>;
872
813
  limit?: number;
873
814
  fields?: string[];
874
815
  omit?: string[];
@@ -1225,9 +1166,21 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1225
1166
  author?: any;
1226
1167
  };
1227
1168
  }>;
1228
- findAllPerAuthor({ query, populate, pagination, sort, fields, isAdmin, authorId, }: {
1229
- query?: {
1230
- $and?: Record<string, string | number | {
1169
+ findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
1170
+ type?: string;
1171
+ sort?: string;
1172
+ authorId?: string | number;
1173
+ locale?: string;
1174
+ pagination?: {
1175
+ page?: number;
1176
+ pageSize?: number;
1177
+ withCount?: boolean;
1178
+ };
1179
+ populate?: Record<string, boolean | {
1180
+ populate?: boolean;
1181
+ }>;
1182
+ filters?: {
1183
+ id?: string | number | {
1231
1184
  $eq?: string;
1232
1185
  } | {
1233
1186
  $eqi?: string;
@@ -1261,8 +1214,8 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1261
1214
  $notContainsi?: string;
1262
1215
  } | {
1263
1216
  $notNull?: boolean;
1264
- }>[];
1265
- $or?: Record<string, string | number | {
1217
+ };
1218
+ content?: string | number | {
1266
1219
  $eq?: string;
1267
1220
  } | {
1268
1221
  $eqi?: string;
@@ -1296,19 +1249,113 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1296
1249
  $notContainsi?: string;
1297
1250
  } | {
1298
1251
  $notNull?: boolean;
1299
- }>[];
1300
- } | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
1301
- type?: string;
1302
- sort?: string;
1303
- authorId?: string | number;
1304
- pagination?: {
1305
- page?: number;
1306
- pageSize?: number;
1307
- withCount?: boolean;
1252
+ };
1253
+ createdAt?: string | number | {
1254
+ $eq?: string;
1255
+ } | {
1256
+ $eqi?: string;
1257
+ } | {
1258
+ $ne?: string;
1259
+ } | {
1260
+ $nei?: string;
1261
+ } | {
1262
+ $gt?: string;
1263
+ } | {
1264
+ $gte?: string;
1265
+ } | {
1266
+ $lt?: string;
1267
+ } | {
1268
+ $lte?: string;
1269
+ } | {
1270
+ $startsWith?: string;
1271
+ } | {
1272
+ $startsWithi?: string;
1273
+ } | {
1274
+ $endsWith?: string;
1275
+ } | {
1276
+ $endsWithi?: string;
1277
+ } | {
1278
+ $contains?: string;
1279
+ } | {
1280
+ $containsi?: string;
1281
+ } | {
1282
+ $notContains?: string;
1283
+ } | {
1284
+ $notContainsi?: string;
1285
+ } | {
1286
+ $notNull?: boolean;
1287
+ };
1288
+ updatedAt?: string | number | {
1289
+ $eq?: string;
1290
+ } | {
1291
+ $eqi?: string;
1292
+ } | {
1293
+ $ne?: string;
1294
+ } | {
1295
+ $nei?: string;
1296
+ } | {
1297
+ $gt?: string;
1298
+ } | {
1299
+ $gte?: string;
1300
+ } | {
1301
+ $lt?: string;
1302
+ } | {
1303
+ $lte?: string;
1304
+ } | {
1305
+ $startsWith?: string;
1306
+ } | {
1307
+ $startsWithi?: string;
1308
+ } | {
1309
+ $endsWith?: string;
1310
+ } | {
1311
+ $endsWithi?: string;
1312
+ } | {
1313
+ $contains?: string;
1314
+ } | {
1315
+ $containsi?: string;
1316
+ } | {
1317
+ $notContains?: string;
1318
+ } | {
1319
+ $notContainsi?: string;
1320
+ } | {
1321
+ $notNull?: boolean;
1322
+ };
1323
+ authorName?: string | number | {
1324
+ $eq?: string;
1325
+ } | {
1326
+ $eqi?: string;
1327
+ } | {
1328
+ $ne?: string;
1329
+ } | {
1330
+ $nei?: string;
1331
+ } | {
1332
+ $gt?: string;
1333
+ } | {
1334
+ $gte?: string;
1335
+ } | {
1336
+ $lt?: string;
1337
+ } | {
1338
+ $lte?: string;
1339
+ } | {
1340
+ $startsWith?: string;
1341
+ } | {
1342
+ $startsWithi?: string;
1343
+ } | {
1344
+ $endsWith?: string;
1345
+ } | {
1346
+ $endsWithi?: string;
1347
+ } | {
1348
+ $contains?: string;
1349
+ } | {
1350
+ $containsi?: string;
1351
+ } | {
1352
+ $notContains?: string;
1353
+ } | {
1354
+ $notContainsi?: string;
1355
+ } | {
1356
+ $notNull?: boolean;
1357
+ };
1308
1358
  };
1309
- populate?: Record<string, boolean | {
1310
- populate?: boolean;
1311
- }>;
1312
1359
  limit?: number;
1313
1360
  fields?: string[];
1314
1361
  omit?: string[];
@@ -1395,6 +1442,8 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1395
1442
  approvalStatus?: string;
1396
1443
  related?: {
1397
1444
  id?: number;
1445
+ documentId?: string;
1446
+ locale?: string;
1398
1447
  uid?: string;
1399
1448
  requireCommentsApproval?: boolean;
1400
1449
  };
@@ -1534,6 +1583,8 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1534
1583
  };
1535
1584
  }[]): Promise<{
1536
1585
  id?: number;
1586
+ documentId?: string;
1587
+ locale?: string;
1537
1588
  uid?: string;
1538
1589
  requireCommentsApproval?: boolean;
1539
1590
  }[]>;
@@ -1608,6 +1659,8 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1608
1659
  };
1609
1660
  }, relatedEntities?: {
1610
1661
  id?: number;
1662
+ documentId?: string;
1663
+ locale?: string;
1611
1664
  uid?: string;
1612
1665
  requireCommentsApproval?: boolean;
1613
1666
  }[]): {
@@ -1622,6 +1675,8 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1622
1675
  approvalStatus?: string;
1623
1676
  related?: {
1624
1677
  id?: number;
1678
+ documentId?: string;
1679
+ locale?: string;
1625
1680
  uid?: string;
1626
1681
  requireCommentsApproval?: boolean;
1627
1682
  };
@@ -1758,7 +1813,7 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1758
1813
  registerLifecycleHook(): void;
1759
1814
  runLifecycleHook(): Promise<void>;
1760
1815
  };
1761
- create({ relation, content, threadOf, author, approvalStatus }: client.NewCommentValidatorSchema, user?: AdminUser): Promise<{
1816
+ create({ relation, content, threadOf, author, approvalStatus, locale }: client.NewCommentValidatorSchema, user?: AdminUser): Promise<{
1762
1817
  id?: number;
1763
1818
  documentId?: string;
1764
1819
  content?: string;
@@ -7,20 +7,21 @@ import { Comment, CommentRelated, CommentWithRelated } from '../validators/repos
7
7
  import { Pagination } from '../validators/repositories/utils';
8
8
  type ParsedRelation = {
9
9
  uid: UID.ContentType;
10
- relatedId: string | number;
10
+ relatedId: string;
11
11
  };
12
+ type ConfigResult<T extends keyof CommentsPluginConfig> = T extends keyof CommentsPluginConfig ? CommentsPluginConfig[T] : CommentsPluginConfig;
12
13
  declare const commonService: ({ strapi }: StrapiContext) => {
13
- getConfig<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled">(prop?: T, defaultValue?: CommentsPluginConfig[T], useLocal?: boolean): Promise<T extends string ? CommentsPluginConfig[T] : CommentsPluginConfig>;
14
+ getConfig<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T, defaultValue?: CommentsPluginConfig[T], useLocal?: boolean): Promise<ConfigResult<T>>;
14
15
  parseRelationString(relation: `${string}::${string}` | string): ParsedRelation;
15
16
  isValidUserContext<T_1 extends {
16
17
  id?: string | number;
17
18
  }>(user?: T_1): boolean;
18
19
  sanitizeCommentEntity(entity: Comment | CommentWithRelated, blockedAuthors: string[], omitProps?: Array<keyof Comment>, populate?: any): Comment;
19
- findAllFlat({ fields, limit, skip, sort, filter, populate, omit: baseOmit, isAdmin, pagination, query, }: clientValidator.FindAllFlatSchema, relatedEntity?: any): Promise<{
20
+ findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: clientValidator.FindAllFlatSchema, relatedEntity?: any): Promise<{
20
21
  data: Array<CommentWithRelated | Comment>;
21
22
  pagination?: Pagination;
22
23
  }>;
23
- findAllInHierarchy({ query, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, }: clientValidator.FindAllInHierarchyValidatorSchema, relatedEntity?: any): Promise<{
24
+ findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: clientValidator.FindAllInHierarchyValidatorSchema, relatedEntity?: any): Promise<{
24
25
  id?: number;
25
26
  documentId?: string;
26
27
  content?: string;
@@ -300,7 +301,7 @@ declare const commonService: ({ strapi }: StrapiContext) => {
300
301
  author?: any;
301
302
  };
302
303
  }>;
303
- findAllPerAuthor({ query, populate, pagination, sort, fields, isAdmin, authorId, }: clientValidator.FindAllPerAuthorValidatorSchema, isStrapiAuthor?: boolean): Promise<{
304
+ findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: clientValidator.FindAllPerAuthorValidatorSchema, isStrapiAuthor?: boolean): Promise<{
304
305
  data: ({
305
306
  id?: number;
306
307
  documentId?: string;
@@ -381,6 +382,8 @@ declare const commonService: ({ strapi }: StrapiContext) => {
381
382
  approvalStatus?: string;
382
383
  related?: {
383
384
  id?: number;
385
+ documentId?: string;
386
+ locale?: string;
384
387
  uid?: string;
385
388
  requireCommentsApproval?: boolean;
386
389
  };
@@ -0,0 +1,7 @@
1
+ import { Schema, UID } from '@strapi/strapi';
2
+ import { StrapiContext, ToBeFixed } from '../@types-v5';
3
+ declare const gqlService: ({ strapi }: StrapiContext) => {
4
+ graphQLFiltersToStrapiQuery: (queryFilters: ToBeFixed, contentType?: ToBeFixed) => any;
5
+ buildContentTypeFilters<T extends UID.ContentType>(contentType: Schema.ContentType<T>): import("nexus/dist/core").NexusInputObjectTypeDef<any>;
6
+ };
7
+ export default gqlService;