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
@@ -1,7 +1,7 @@
1
1
  declare const pluginServices: {
2
2
  admin: ({ strapi }: import("../@types-v5").StrapiContext) => {
3
3
  getCommonService(): {
4
- getConfig<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled">(prop?: T, defaultValue?: {
4
+ getConfig<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T, defaultValue?: {
5
5
  enabledCollections?: string[];
6
6
  approvalFlow?: string[];
7
7
  entryLabel?: Record<string, string[]>;
@@ -15,7 +15,10 @@ declare const pluginServices: {
15
15
  OTHER?: import("../const").REPORT_REASON.OTHER;
16
16
  };
17
17
  isGQLPluginEnabled?: boolean;
18
- }[T], useLocal?: boolean): Promise<T extends string ? {
18
+ gql?: {
19
+ auth?: boolean;
20
+ };
21
+ }[T], useLocal?: boolean): Promise<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql" ? {
19
22
  enabledCollections?: string[];
20
23
  approvalFlow?: string[];
21
24
  entryLabel?: Record<string, string[]>;
@@ -29,6 +32,9 @@ declare const pluginServices: {
29
32
  OTHER?: import("../const").REPORT_REASON.OTHER;
30
33
  };
31
34
  isGQLPluginEnabled?: boolean;
35
+ gql?: {
36
+ auth?: boolean;
37
+ };
32
38
  }[T] : {
33
39
  enabledCollections?: string[];
34
40
  approvalFlow?: string[];
@@ -43,10 +49,13 @@ declare const pluginServices: {
43
49
  OTHER?: import("../const").REPORT_REASON.OTHER;
44
50
  };
45
51
  isGQLPluginEnabled?: boolean;
52
+ gql?: {
53
+ auth?: boolean;
54
+ };
46
55
  }>;
47
56
  parseRelationString(relation: string): {
48
57
  uid: import("@strapi/types/dist/uid").ContentType;
49
- relatedId: string | number;
58
+ relatedId: string;
50
59
  };
51
60
  isValidUserContext<T_1 extends {
52
61
  id?: string | number;
@@ -132,6 +141,8 @@ declare const pluginServices: {
132
141
  approvalStatus?: string;
133
142
  related?: {
134
143
  id?: number;
144
+ documentId?: string;
145
+ locale?: string;
135
146
  uid?: string;
136
147
  requireCommentsApproval?: boolean;
137
148
  };
@@ -263,44 +274,20 @@ declare const pluginServices: {
263
274
  author?: any;
264
275
  };
265
276
  };
266
- findAllFlat({ fields, limit, skip, sort, filter, populate, omit: baseOmit, isAdmin, pagination, query, }: {
267
- query?: {
268
- $and?: Record<string, string | number | {
269
- $eq?: string;
270
- } | {
271
- $eqi?: string;
272
- } | {
273
- $ne?: string;
274
- } | {
275
- $nei?: string;
276
- } | {
277
- $gt?: string;
278
- } | {
279
- $gte?: string;
280
- } | {
281
- $lt?: string;
282
- } | {
283
- $lte?: string;
284
- } | {
285
- $startsWith?: string;
286
- } | {
287
- $startsWithi?: string;
288
- } | {
289
- $endsWith?: string;
290
- } | {
291
- $endsWithi?: string;
292
- } | {
293
- $contains?: string;
294
- } | {
295
- $containsi?: string;
296
- } | {
297
- $notContains?: string;
298
- } | {
299
- $notContainsi?: string;
300
- } | {
301
- $notNull?: boolean;
302
- }>[];
303
- $or?: Record<string, string | number | {
277
+ findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
278
+ sort?: string;
279
+ locale?: string;
280
+ pagination?: {
281
+ page?: number;
282
+ pageSize?: number;
283
+ withCount?: boolean;
284
+ };
285
+ relation?: `{${string}::${string}.${string}}`;
286
+ populate?: Record<string, boolean | {
287
+ populate?: boolean;
288
+ }>;
289
+ filters?: {
290
+ id?: string | number | {
304
291
  $eq?: string;
305
292
  } | {
306
293
  $eqi?: string;
@@ -334,10 +321,7 @@ declare const pluginServices: {
334
321
  $notContainsi?: string;
335
322
  } | {
336
323
  $notNull?: boolean;
337
- }>[];
338
- } | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
339
- sort?: string;
340
- filter?: {
324
+ };
341
325
  content?: string | number | {
342
326
  $eq?: string;
343
327
  } | {
@@ -479,15 +463,6 @@ declare const pluginServices: {
479
463
  $notNull?: boolean;
480
464
  };
481
465
  };
482
- pagination?: {
483
- page?: number;
484
- pageSize?: number;
485
- withCount?: boolean;
486
- };
487
- relation?: `{${string}::${string}.${number}}`;
488
- populate?: Record<string, boolean | {
489
- populate?: boolean;
490
- }>;
491
466
  limit?: number;
492
467
  fields?: string[];
493
468
  omit?: string[];
@@ -575,6 +550,8 @@ declare const pluginServices: {
575
550
  approvalStatus?: string;
576
551
  related?: {
577
552
  id?: number;
553
+ documentId?: string;
554
+ locale?: string;
578
555
  uid?: string;
579
556
  requireCommentsApproval?: boolean;
580
557
  };
@@ -644,44 +621,15 @@ declare const pluginServices: {
644
621
  total?: number;
645
622
  };
646
623
  }>;
647
- findAllInHierarchy({ query, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, }: {
648
- query?: {
649
- $and?: Record<string, string | number | {
650
- $eq?: string;
651
- } | {
652
- $eqi?: string;
653
- } | {
654
- $ne?: string;
655
- } | {
656
- $nei?: string;
657
- } | {
658
- $gt?: string;
659
- } | {
660
- $gte?: string;
661
- } | {
662
- $lt?: string;
663
- } | {
664
- $lte?: string;
665
- } | {
666
- $startsWith?: string;
667
- } | {
668
- $startsWithi?: string;
669
- } | {
670
- $endsWith?: string;
671
- } | {
672
- $endsWithi?: string;
673
- } | {
674
- $contains?: string;
675
- } | {
676
- $containsi?: string;
677
- } | {
678
- $notContains?: string;
679
- } | {
680
- $notContainsi?: string;
681
- } | {
682
- $notNull?: boolean;
683
- }>[];
684
- $or?: Record<string, string | number | {
624
+ findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
625
+ sort?: string;
626
+ locale?: string;
627
+ relation?: `{${string}::${string}.${string}}`;
628
+ populate?: Record<string, boolean | {
629
+ populate?: boolean;
630
+ }>;
631
+ filters?: {
632
+ id?: string | number | {
685
633
  $eq?: string;
686
634
  } | {
687
635
  $eqi?: string;
@@ -715,10 +663,7 @@ declare const pluginServices: {
715
663
  $notContainsi?: string;
716
664
  } | {
717
665
  $notNull?: boolean;
718
- }>[];
719
- } | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
720
- sort?: string;
721
- filter?: {
666
+ };
722
667
  content?: string | number | {
723
668
  $eq?: string;
724
669
  } | {
@@ -860,10 +805,6 @@ declare const pluginServices: {
860
805
  $notNull?: boolean;
861
806
  };
862
807
  };
863
- relation?: `{${string}::${string}.${number}}`;
864
- populate?: Record<string, boolean | {
865
- populate?: boolean;
866
- }>;
867
808
  limit?: number;
868
809
  fields?: string[];
869
810
  omit?: string[];
@@ -1220,9 +1161,21 @@ declare const pluginServices: {
1220
1161
  author?: any;
1221
1162
  };
1222
1163
  }>;
1223
- findAllPerAuthor({ query, populate, pagination, sort, fields, isAdmin, authorId, }: {
1224
- query?: {
1225
- $and?: Record<string, string | number | {
1164
+ findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
1165
+ type?: string;
1166
+ sort?: string;
1167
+ authorId?: string | number;
1168
+ locale?: string;
1169
+ pagination?: {
1170
+ page?: number;
1171
+ pageSize?: number;
1172
+ withCount?: boolean;
1173
+ };
1174
+ populate?: Record<string, boolean | {
1175
+ populate?: boolean;
1176
+ }>;
1177
+ filters?: {
1178
+ id?: string | number | {
1226
1179
  $eq?: string;
1227
1180
  } | {
1228
1181
  $eqi?: string;
@@ -1256,8 +1209,8 @@ declare const pluginServices: {
1256
1209
  $notContainsi?: string;
1257
1210
  } | {
1258
1211
  $notNull?: boolean;
1259
- }>[];
1260
- $or?: Record<string, string | number | {
1212
+ };
1213
+ content?: string | number | {
1261
1214
  $eq?: string;
1262
1215
  } | {
1263
1216
  $eqi?: string;
@@ -1291,19 +1244,113 @@ declare const pluginServices: {
1291
1244
  $notContainsi?: string;
1292
1245
  } | {
1293
1246
  $notNull?: boolean;
1294
- }>[];
1295
- } | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
1296
- type?: string;
1297
- sort?: string;
1298
- authorId?: string | number;
1299
- pagination?: {
1300
- page?: number;
1301
- pageSize?: number;
1302
- withCount?: boolean;
1247
+ };
1248
+ createdAt?: string | number | {
1249
+ $eq?: string;
1250
+ } | {
1251
+ $eqi?: string;
1252
+ } | {
1253
+ $ne?: string;
1254
+ } | {
1255
+ $nei?: string;
1256
+ } | {
1257
+ $gt?: string;
1258
+ } | {
1259
+ $gte?: string;
1260
+ } | {
1261
+ $lt?: string;
1262
+ } | {
1263
+ $lte?: string;
1264
+ } | {
1265
+ $startsWith?: string;
1266
+ } | {
1267
+ $startsWithi?: string;
1268
+ } | {
1269
+ $endsWith?: string;
1270
+ } | {
1271
+ $endsWithi?: string;
1272
+ } | {
1273
+ $contains?: string;
1274
+ } | {
1275
+ $containsi?: string;
1276
+ } | {
1277
+ $notContains?: string;
1278
+ } | {
1279
+ $notContainsi?: string;
1280
+ } | {
1281
+ $notNull?: boolean;
1282
+ };
1283
+ updatedAt?: string | number | {
1284
+ $eq?: string;
1285
+ } | {
1286
+ $eqi?: string;
1287
+ } | {
1288
+ $ne?: string;
1289
+ } | {
1290
+ $nei?: string;
1291
+ } | {
1292
+ $gt?: string;
1293
+ } | {
1294
+ $gte?: string;
1295
+ } | {
1296
+ $lt?: string;
1297
+ } | {
1298
+ $lte?: string;
1299
+ } | {
1300
+ $startsWith?: string;
1301
+ } | {
1302
+ $startsWithi?: string;
1303
+ } | {
1304
+ $endsWith?: string;
1305
+ } | {
1306
+ $endsWithi?: string;
1307
+ } | {
1308
+ $contains?: string;
1309
+ } | {
1310
+ $containsi?: string;
1311
+ } | {
1312
+ $notContains?: string;
1313
+ } | {
1314
+ $notContainsi?: string;
1315
+ } | {
1316
+ $notNull?: boolean;
1317
+ };
1318
+ authorName?: string | number | {
1319
+ $eq?: string;
1320
+ } | {
1321
+ $eqi?: string;
1322
+ } | {
1323
+ $ne?: string;
1324
+ } | {
1325
+ $nei?: string;
1326
+ } | {
1327
+ $gt?: string;
1328
+ } | {
1329
+ $gte?: string;
1330
+ } | {
1331
+ $lt?: string;
1332
+ } | {
1333
+ $lte?: string;
1334
+ } | {
1335
+ $startsWith?: string;
1336
+ } | {
1337
+ $startsWithi?: string;
1338
+ } | {
1339
+ $endsWith?: string;
1340
+ } | {
1341
+ $endsWithi?: string;
1342
+ } | {
1343
+ $contains?: string;
1344
+ } | {
1345
+ $containsi?: string;
1346
+ } | {
1347
+ $notContains?: string;
1348
+ } | {
1349
+ $notContainsi?: string;
1350
+ } | {
1351
+ $notNull?: boolean;
1352
+ };
1303
1353
  };
1304
- populate?: Record<string, boolean | {
1305
- populate?: boolean;
1306
- }>;
1307
1354
  limit?: number;
1308
1355
  fields?: string[];
1309
1356
  omit?: string[];
@@ -1390,6 +1437,8 @@ declare const pluginServices: {
1390
1437
  approvalStatus?: string;
1391
1438
  related?: {
1392
1439
  id?: number;
1440
+ documentId?: string;
1441
+ locale?: string;
1393
1442
  uid?: string;
1394
1443
  requireCommentsApproval?: boolean;
1395
1444
  };
@@ -1529,6 +1578,8 @@ declare const pluginServices: {
1529
1578
  };
1530
1579
  }[]): Promise<{
1531
1580
  id?: number;
1581
+ documentId?: string;
1582
+ locale?: string;
1532
1583
  uid?: string;
1533
1584
  requireCommentsApproval?: boolean;
1534
1585
  }[]>;
@@ -1603,6 +1654,8 @@ declare const pluginServices: {
1603
1654
  };
1604
1655
  }, relatedEntities?: {
1605
1656
  id?: number;
1657
+ documentId?: string;
1658
+ locale?: string;
1606
1659
  uid?: string;
1607
1660
  requireCommentsApproval?: boolean;
1608
1661
  }[]): {
@@ -1617,6 +1670,8 @@ declare const pluginServices: {
1617
1670
  approvalStatus?: string;
1618
1671
  related?: {
1619
1672
  id?: number;
1673
+ documentId?: string;
1674
+ locale?: string;
1620
1675
  uid?: string;
1621
1676
  requireCommentsApproval?: boolean;
1622
1677
  };
@@ -1777,6 +1832,8 @@ declare const pluginServices: {
1777
1832
  approvalStatus?: string;
1778
1833
  related?: {
1779
1834
  id?: number;
1835
+ documentId?: string;
1836
+ locale?: string;
1780
1837
  uid?: string;
1781
1838
  requireCommentsApproval?: boolean;
1782
1839
  };
@@ -2602,7 +2659,7 @@ declare const pluginServices: {
2602
2659
  };
2603
2660
  client: ({ strapi }: import("../@types-v5").StrapiContext) => {
2604
2661
  getCommonService(): {
2605
- getConfig<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled">(prop?: T, defaultValue?: {
2662
+ getConfig<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T, defaultValue?: {
2606
2663
  enabledCollections?: string[];
2607
2664
  approvalFlow?: string[];
2608
2665
  entryLabel?: Record<string, string[]>;
@@ -2616,7 +2673,10 @@ declare const pluginServices: {
2616
2673
  OTHER?: import("../const").REPORT_REASON.OTHER;
2617
2674
  };
2618
2675
  isGQLPluginEnabled?: boolean;
2619
- }[T], useLocal?: boolean): Promise<T extends string ? {
2676
+ gql?: {
2677
+ auth?: boolean;
2678
+ };
2679
+ }[T], useLocal?: boolean): Promise<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql" ? {
2620
2680
  enabledCollections?: string[];
2621
2681
  approvalFlow?: string[];
2622
2682
  entryLabel?: Record<string, string[]>;
@@ -2630,6 +2690,9 @@ declare const pluginServices: {
2630
2690
  OTHER?: import("../const").REPORT_REASON.OTHER;
2631
2691
  };
2632
2692
  isGQLPluginEnabled?: boolean;
2693
+ gql?: {
2694
+ auth?: boolean;
2695
+ };
2633
2696
  }[T] : {
2634
2697
  enabledCollections?: string[];
2635
2698
  approvalFlow?: string[];
@@ -2644,10 +2707,13 @@ declare const pluginServices: {
2644
2707
  OTHER?: import("../const").REPORT_REASON.OTHER;
2645
2708
  };
2646
2709
  isGQLPluginEnabled?: boolean;
2710
+ gql?: {
2711
+ auth?: boolean;
2712
+ };
2647
2713
  }>;
2648
2714
  parseRelationString(relation: string): {
2649
2715
  uid: import("@strapi/types/dist/uid").ContentType;
2650
- relatedId: string | number;
2716
+ relatedId: string;
2651
2717
  };
2652
2718
  isValidUserContext<T_1 extends {
2653
2719
  id?: string | number;
@@ -2733,6 +2799,8 @@ declare const pluginServices: {
2733
2799
  approvalStatus?: string;
2734
2800
  related?: {
2735
2801
  id?: number;
2802
+ documentId?: string;
2803
+ locale?: string;
2736
2804
  uid?: string;
2737
2805
  requireCommentsApproval?: boolean;
2738
2806
  };
@@ -2864,44 +2932,20 @@ declare const pluginServices: {
2864
2932
  author?: any;
2865
2933
  };
2866
2934
  };
2867
- findAllFlat({ fields, limit, skip, sort, filter, populate, omit: baseOmit, isAdmin, pagination, query, }: {
2868
- query?: {
2869
- $and?: Record<string, string | number | {
2870
- $eq?: string;
2871
- } | {
2872
- $eqi?: string;
2873
- } | {
2874
- $ne?: string;
2875
- } | {
2876
- $nei?: string;
2877
- } | {
2878
- $gt?: string;
2879
- } | {
2880
- $gte?: string;
2881
- } | {
2882
- $lt?: string;
2883
- } | {
2884
- $lte?: string;
2885
- } | {
2886
- $startsWith?: string;
2887
- } | {
2888
- $startsWithi?: string;
2889
- } | {
2890
- $endsWith?: string;
2891
- } | {
2892
- $endsWithi?: string;
2893
- } | {
2894
- $contains?: string;
2895
- } | {
2896
- $containsi?: string;
2897
- } | {
2898
- $notContains?: string;
2899
- } | {
2900
- $notContainsi?: string;
2901
- } | {
2902
- $notNull?: boolean;
2903
- }>[];
2904
- $or?: Record<string, string | number | {
2935
+ findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
2936
+ sort?: string;
2937
+ locale?: string;
2938
+ pagination?: {
2939
+ page?: number;
2940
+ pageSize?: number;
2941
+ withCount?: boolean;
2942
+ };
2943
+ relation?: `{${string}::${string}.${string}}`;
2944
+ populate?: Record<string, boolean | {
2945
+ populate?: boolean;
2946
+ }>;
2947
+ filters?: {
2948
+ id?: string | number | {
2905
2949
  $eq?: string;
2906
2950
  } | {
2907
2951
  $eqi?: string;
@@ -2935,10 +2979,7 @@ declare const pluginServices: {
2935
2979
  $notContainsi?: string;
2936
2980
  } | {
2937
2981
  $notNull?: boolean;
2938
- }>[];
2939
- } | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
2940
- sort?: string;
2941
- filter?: {
2982
+ };
2942
2983
  content?: string | number | {
2943
2984
  $eq?: string;
2944
2985
  } | {
@@ -3080,15 +3121,6 @@ declare const pluginServices: {
3080
3121
  $notNull?: boolean;
3081
3122
  };
3082
3123
  };
3083
- pagination?: {
3084
- page?: number;
3085
- pageSize?: number;
3086
- withCount?: boolean;
3087
- };
3088
- relation?: `{${string}::${string}.${number}}`;
3089
- populate?: Record<string, boolean | {
3090
- populate?: boolean;
3091
- }>;
3092
3124
  limit?: number;
3093
3125
  fields?: string[];
3094
3126
  omit?: string[];
@@ -3176,6 +3208,8 @@ declare const pluginServices: {
3176
3208
  approvalStatus?: string;
3177
3209
  related?: {
3178
3210
  id?: number;
3211
+ documentId?: string;
3212
+ locale?: string;
3179
3213
  uid?: string;
3180
3214
  requireCommentsApproval?: boolean;
3181
3215
  };
@@ -3245,44 +3279,15 @@ declare const pluginServices: {
3245
3279
  total?: number;
3246
3280
  };
3247
3281
  }>;
3248
- findAllInHierarchy({ query, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, }: {
3249
- query?: {
3250
- $and?: Record<string, string | number | {
3251
- $eq?: string;
3252
- } | {
3253
- $eqi?: string;
3254
- } | {
3255
- $ne?: string;
3256
- } | {
3257
- $nei?: string;
3258
- } | {
3259
- $gt?: string;
3260
- } | {
3261
- $gte?: string;
3262
- } | {
3263
- $lt?: string;
3264
- } | {
3265
- $lte?: string;
3266
- } | {
3267
- $startsWith?: string;
3268
- } | {
3269
- $startsWithi?: string;
3270
- } | {
3271
- $endsWith?: string;
3272
- } | {
3273
- $endsWithi?: string;
3274
- } | {
3275
- $contains?: string;
3276
- } | {
3277
- $containsi?: string;
3278
- } | {
3279
- $notContains?: string;
3280
- } | {
3281
- $notContainsi?: string;
3282
- } | {
3283
- $notNull?: boolean;
3284
- }>[];
3285
- $or?: Record<string, string | number | {
3282
+ findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
3283
+ sort?: string;
3284
+ locale?: string;
3285
+ relation?: `{${string}::${string}.${string}}`;
3286
+ populate?: Record<string, boolean | {
3287
+ populate?: boolean;
3288
+ }>;
3289
+ filters?: {
3290
+ id?: string | number | {
3286
3291
  $eq?: string;
3287
3292
  } | {
3288
3293
  $eqi?: string;
@@ -3316,10 +3321,7 @@ declare const pluginServices: {
3316
3321
  $notContainsi?: string;
3317
3322
  } | {
3318
3323
  $notNull?: boolean;
3319
- }>[];
3320
- } | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
3321
- sort?: string;
3322
- filter?: {
3324
+ };
3323
3325
  content?: string | number | {
3324
3326
  $eq?: string;
3325
3327
  } | {
@@ -3461,10 +3463,6 @@ declare const pluginServices: {
3461
3463
  $notNull?: boolean;
3462
3464
  };
3463
3465
  };
3464
- relation?: `{${string}::${string}.${number}}`;
3465
- populate?: Record<string, boolean | {
3466
- populate?: boolean;
3467
- }>;
3468
3466
  limit?: number;
3469
3467
  fields?: string[];
3470
3468
  omit?: string[];
@@ -3821,9 +3819,21 @@ declare const pluginServices: {
3821
3819
  author?: any;
3822
3820
  };
3823
3821
  }>;
3824
- findAllPerAuthor({ query, populate, pagination, sort, fields, isAdmin, authorId, }: {
3825
- query?: {
3826
- $and?: Record<string, string | number | {
3822
+ findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
3823
+ type?: string;
3824
+ sort?: string;
3825
+ authorId?: string | number;
3826
+ locale?: string;
3827
+ pagination?: {
3828
+ page?: number;
3829
+ pageSize?: number;
3830
+ withCount?: boolean;
3831
+ };
3832
+ populate?: Record<string, boolean | {
3833
+ populate?: boolean;
3834
+ }>;
3835
+ filters?: {
3836
+ id?: string | number | {
3827
3837
  $eq?: string;
3828
3838
  } | {
3829
3839
  $eqi?: string;
@@ -3857,8 +3867,8 @@ declare const pluginServices: {
3857
3867
  $notContainsi?: string;
3858
3868
  } | {
3859
3869
  $notNull?: boolean;
3860
- }>[];
3861
- $or?: Record<string, string | number | {
3870
+ };
3871
+ content?: string | number | {
3862
3872
  $eq?: string;
3863
3873
  } | {
3864
3874
  $eqi?: string;
@@ -3892,19 +3902,113 @@ declare const pluginServices: {
3892
3902
  $notContainsi?: string;
3893
3903
  } | {
3894
3904
  $notNull?: boolean;
3895
- }>[];
3896
- } | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
3897
- type?: string;
3898
- sort?: string;
3899
- authorId?: string | number;
3900
- pagination?: {
3901
- page?: number;
3902
- pageSize?: number;
3903
- withCount?: boolean;
3905
+ };
3906
+ createdAt?: string | number | {
3907
+ $eq?: string;
3908
+ } | {
3909
+ $eqi?: string;
3910
+ } | {
3911
+ $ne?: string;
3912
+ } | {
3913
+ $nei?: string;
3914
+ } | {
3915
+ $gt?: string;
3916
+ } | {
3917
+ $gte?: string;
3918
+ } | {
3919
+ $lt?: string;
3920
+ } | {
3921
+ $lte?: string;
3922
+ } | {
3923
+ $startsWith?: string;
3924
+ } | {
3925
+ $startsWithi?: string;
3926
+ } | {
3927
+ $endsWith?: string;
3928
+ } | {
3929
+ $endsWithi?: string;
3930
+ } | {
3931
+ $contains?: string;
3932
+ } | {
3933
+ $containsi?: string;
3934
+ } | {
3935
+ $notContains?: string;
3936
+ } | {
3937
+ $notContainsi?: string;
3938
+ } | {
3939
+ $notNull?: boolean;
3940
+ };
3941
+ updatedAt?: string | number | {
3942
+ $eq?: string;
3943
+ } | {
3944
+ $eqi?: string;
3945
+ } | {
3946
+ $ne?: string;
3947
+ } | {
3948
+ $nei?: string;
3949
+ } | {
3950
+ $gt?: string;
3951
+ } | {
3952
+ $gte?: string;
3953
+ } | {
3954
+ $lt?: string;
3955
+ } | {
3956
+ $lte?: string;
3957
+ } | {
3958
+ $startsWith?: string;
3959
+ } | {
3960
+ $startsWithi?: string;
3961
+ } | {
3962
+ $endsWith?: string;
3963
+ } | {
3964
+ $endsWithi?: string;
3965
+ } | {
3966
+ $contains?: string;
3967
+ } | {
3968
+ $containsi?: string;
3969
+ } | {
3970
+ $notContains?: string;
3971
+ } | {
3972
+ $notContainsi?: string;
3973
+ } | {
3974
+ $notNull?: boolean;
3975
+ };
3976
+ authorName?: string | number | {
3977
+ $eq?: string;
3978
+ } | {
3979
+ $eqi?: string;
3980
+ } | {
3981
+ $ne?: string;
3982
+ } | {
3983
+ $nei?: string;
3984
+ } | {
3985
+ $gt?: string;
3986
+ } | {
3987
+ $gte?: string;
3988
+ } | {
3989
+ $lt?: string;
3990
+ } | {
3991
+ $lte?: string;
3992
+ } | {
3993
+ $startsWith?: string;
3994
+ } | {
3995
+ $startsWithi?: string;
3996
+ } | {
3997
+ $endsWith?: string;
3998
+ } | {
3999
+ $endsWithi?: string;
4000
+ } | {
4001
+ $contains?: string;
4002
+ } | {
4003
+ $containsi?: string;
4004
+ } | {
4005
+ $notContains?: string;
4006
+ } | {
4007
+ $notContainsi?: string;
4008
+ } | {
4009
+ $notNull?: boolean;
4010
+ };
3904
4011
  };
3905
- populate?: Record<string, boolean | {
3906
- populate?: boolean;
3907
- }>;
3908
4012
  limit?: number;
3909
4013
  fields?: string[];
3910
4014
  omit?: string[];
@@ -3991,6 +4095,8 @@ declare const pluginServices: {
3991
4095
  approvalStatus?: string;
3992
4096
  related?: {
3993
4097
  id?: number;
4098
+ documentId?: string;
4099
+ locale?: string;
3994
4100
  uid?: string;
3995
4101
  requireCommentsApproval?: boolean;
3996
4102
  };
@@ -4130,6 +4236,8 @@ declare const pluginServices: {
4130
4236
  };
4131
4237
  }[]): Promise<{
4132
4238
  id?: number;
4239
+ documentId?: string;
4240
+ locale?: string;
4133
4241
  uid?: string;
4134
4242
  requireCommentsApproval?: boolean;
4135
4243
  }[]>;
@@ -4204,6 +4312,8 @@ declare const pluginServices: {
4204
4312
  };
4205
4313
  }, relatedEntities?: {
4206
4314
  id?: number;
4315
+ documentId?: string;
4316
+ locale?: string;
4207
4317
  uid?: string;
4208
4318
  requireCommentsApproval?: boolean;
4209
4319
  }[]): {
@@ -4218,6 +4328,8 @@ declare const pluginServices: {
4218
4328
  approvalStatus?: string;
4219
4329
  related?: {
4220
4330
  id?: number;
4331
+ documentId?: string;
4332
+ locale?: string;
4221
4333
  uid?: string;
4222
4334
  requireCommentsApproval?: boolean;
4223
4335
  };
@@ -4354,9 +4466,10 @@ declare const pluginServices: {
4354
4466
  registerLifecycleHook(): void;
4355
4467
  runLifecycleHook(): Promise<void>;
4356
4468
  };
4357
- create({ relation, content, threadOf, author, approvalStatus }: {
4469
+ create({ relation, content, threadOf, author, approvalStatus, locale }: {
4358
4470
  content?: string;
4359
4471
  approvalStatus?: import("../const").APPROVAL_STATUS;
4472
+ locale?: string;
4360
4473
  author?: {
4361
4474
  name?: string;
4362
4475
  id?: number;
@@ -4364,7 +4477,7 @@ declare const pluginServices: {
4364
4477
  avatar?: string;
4365
4478
  };
4366
4479
  threadOf?: number;
4367
- relation?: `{${string}::${string}.${number}}`;
4480
+ relation?: `{${string}::${string}.${string}}`;
4368
4481
  }, user?: import("../@types-v5").AdminUser): Promise<{
4369
4482
  id?: number;
4370
4483
  documentId?: string;
@@ -4437,7 +4550,7 @@ declare const pluginServices: {
4437
4550
  }>;
4438
4551
  update({ commentId, content }: {
4439
4552
  content?: string;
4440
- relation?: `{${string}::${string}.${number}}`;
4553
+ relation?: `{${string}::${string}.${string}}`;
4441
4554
  commentId?: number;
4442
4555
  }, user?: import("../@types-v5").AdminUser): Promise<{
4443
4556
  id?: number;
@@ -4512,7 +4625,7 @@ declare const pluginServices: {
4512
4625
  reportAbuse({ commentId, relation, ...payload }: {
4513
4626
  content?: string;
4514
4627
  reason?: string;
4515
- relation?: `{${string}::${string}.${number}}`;
4628
+ relation?: `{${string}::${string}.${string}}`;
4516
4629
  commentId?: number;
4517
4630
  }, user?: import("../@types-v5").AdminUser): Promise<{
4518
4631
  related: {
@@ -4597,7 +4710,7 @@ declare const pluginServices: {
4597
4710
  }>;
4598
4711
  markAsRemoved({ commentId, relation, authorId }: {
4599
4712
  authorId?: string | number;
4600
- relation?: `{${string}::${string}.${number}}`;
4713
+ relation?: `{${string}::${string}.${string}}`;
4601
4714
  commentId?: number;
4602
4715
  }, user: import("../@types-v5").AdminUser): Promise<{
4603
4716
  id?: number;
@@ -4743,7 +4856,7 @@ declare const pluginServices: {
4743
4856
  }): Promise<void>;
4744
4857
  };
4745
4858
  common: ({ strapi }: import("../@types-v5").StrapiContext) => {
4746
- getConfig<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled">(prop?: T, defaultValue?: {
4859
+ getConfig<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql">(prop?: T, defaultValue?: {
4747
4860
  enabledCollections?: string[];
4748
4861
  approvalFlow?: string[];
4749
4862
  entryLabel?: Record<string, string[]>;
@@ -4757,7 +4870,10 @@ declare const pluginServices: {
4757
4870
  OTHER?: import("../const").REPORT_REASON.OTHER;
4758
4871
  };
4759
4872
  isGQLPluginEnabled?: boolean;
4760
- }[T], useLocal?: boolean): Promise<T extends string ? {
4873
+ gql?: {
4874
+ auth?: boolean;
4875
+ };
4876
+ }[T], useLocal?: boolean): Promise<T extends "enabledCollections" | "approvalFlow" | "entryLabel" | "moderatorRoles" | "badWords" | "blockedAuthorProps" | "isValidationEnabled" | "reportReasons" | "isGQLPluginEnabled" | "gql" ? {
4761
4877
  enabledCollections?: string[];
4762
4878
  approvalFlow?: string[];
4763
4879
  entryLabel?: Record<string, string[]>;
@@ -4771,6 +4887,9 @@ declare const pluginServices: {
4771
4887
  OTHER?: import("../const").REPORT_REASON.OTHER;
4772
4888
  };
4773
4889
  isGQLPluginEnabled?: boolean;
4890
+ gql?: {
4891
+ auth?: boolean;
4892
+ };
4774
4893
  }[T] : {
4775
4894
  enabledCollections?: string[];
4776
4895
  approvalFlow?: string[];
@@ -4785,10 +4904,13 @@ declare const pluginServices: {
4785
4904
  OTHER?: import("../const").REPORT_REASON.OTHER;
4786
4905
  };
4787
4906
  isGQLPluginEnabled?: boolean;
4907
+ gql?: {
4908
+ auth?: boolean;
4909
+ };
4788
4910
  }>;
4789
4911
  parseRelationString(relation: string): {
4790
4912
  uid: import("@strapi/types/dist/uid").ContentType;
4791
- relatedId: string | number;
4913
+ relatedId: string;
4792
4914
  };
4793
4915
  isValidUserContext<T_1 extends {
4794
4916
  id?: string | number;
@@ -4874,6 +4996,8 @@ declare const pluginServices: {
4874
4996
  approvalStatus?: string;
4875
4997
  related?: {
4876
4998
  id?: number;
4999
+ documentId?: string;
5000
+ locale?: string;
4877
5001
  uid?: string;
4878
5002
  requireCommentsApproval?: boolean;
4879
5003
  };
@@ -5005,44 +5129,20 @@ declare const pluginServices: {
5005
5129
  author?: any;
5006
5130
  };
5007
5131
  };
5008
- findAllFlat({ fields, limit, skip, sort, filter, populate, omit: baseOmit, isAdmin, pagination, query, }: {
5009
- query?: {
5010
- $and?: Record<string, string | number | {
5011
- $eq?: string;
5012
- } | {
5013
- $eqi?: string;
5014
- } | {
5015
- $ne?: string;
5016
- } | {
5017
- $nei?: string;
5018
- } | {
5019
- $gt?: string;
5020
- } | {
5021
- $gte?: string;
5022
- } | {
5023
- $lt?: string;
5024
- } | {
5025
- $lte?: string;
5026
- } | {
5027
- $startsWith?: string;
5028
- } | {
5029
- $startsWithi?: string;
5030
- } | {
5031
- $endsWith?: string;
5032
- } | {
5033
- $endsWithi?: string;
5034
- } | {
5035
- $contains?: string;
5036
- } | {
5037
- $containsi?: string;
5038
- } | {
5039
- $notContains?: string;
5040
- } | {
5041
- $notContainsi?: string;
5042
- } | {
5043
- $notNull?: boolean;
5044
- }>[];
5045
- $or?: Record<string, string | number | {
5132
+ findAllFlat({ fields, limit, skip, sort, populate, omit: baseOmit, isAdmin, pagination, filters, locale, }: {
5133
+ sort?: string;
5134
+ locale?: string;
5135
+ pagination?: {
5136
+ page?: number;
5137
+ pageSize?: number;
5138
+ withCount?: boolean;
5139
+ };
5140
+ relation?: `{${string}::${string}.${string}}`;
5141
+ populate?: Record<string, boolean | {
5142
+ populate?: boolean;
5143
+ }>;
5144
+ filters?: {
5145
+ id?: string | number | {
5046
5146
  $eq?: string;
5047
5147
  } | {
5048
5148
  $eqi?: string;
@@ -5076,10 +5176,7 @@ declare const pluginServices: {
5076
5176
  $notContainsi?: string;
5077
5177
  } | {
5078
5178
  $notNull?: boolean;
5079
- }>[];
5080
- } | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
5081
- sort?: string;
5082
- filter?: {
5179
+ };
5083
5180
  content?: string | number | {
5084
5181
  $eq?: string;
5085
5182
  } | {
@@ -5221,15 +5318,6 @@ declare const pluginServices: {
5221
5318
  $notNull?: boolean;
5222
5319
  };
5223
5320
  };
5224
- pagination?: {
5225
- page?: number;
5226
- pageSize?: number;
5227
- withCount?: boolean;
5228
- };
5229
- relation?: `{${string}::${string}.${number}}`;
5230
- populate?: Record<string, boolean | {
5231
- populate?: boolean;
5232
- }>;
5233
5321
  limit?: number;
5234
5322
  fields?: string[];
5235
5323
  omit?: string[];
@@ -5317,6 +5405,8 @@ declare const pluginServices: {
5317
5405
  approvalStatus?: string;
5318
5406
  related?: {
5319
5407
  id?: number;
5408
+ documentId?: string;
5409
+ locale?: string;
5320
5410
  uid?: string;
5321
5411
  requireCommentsApproval?: boolean;
5322
5412
  };
@@ -5386,44 +5476,15 @@ declare const pluginServices: {
5386
5476
  total?: number;
5387
5477
  };
5388
5478
  }>;
5389
- findAllInHierarchy({ query, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, }: {
5390
- query?: {
5391
- $and?: Record<string, string | number | {
5392
- $eq?: string;
5393
- } | {
5394
- $eqi?: string;
5395
- } | {
5396
- $ne?: string;
5397
- } | {
5398
- $nei?: string;
5399
- } | {
5400
- $gt?: string;
5401
- } | {
5402
- $gte?: string;
5403
- } | {
5404
- $lt?: string;
5405
- } | {
5406
- $lte?: string;
5407
- } | {
5408
- $startsWith?: string;
5409
- } | {
5410
- $startsWithi?: string;
5411
- } | {
5412
- $endsWith?: string;
5413
- } | {
5414
- $endsWithi?: string;
5415
- } | {
5416
- $contains?: string;
5417
- } | {
5418
- $containsi?: string;
5419
- } | {
5420
- $notContains?: string;
5421
- } | {
5422
- $notContainsi?: string;
5423
- } | {
5424
- $notNull?: boolean;
5425
- }>[];
5426
- $or?: Record<string, string | number | {
5479
+ findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
5480
+ sort?: string;
5481
+ locale?: string;
5482
+ relation?: `{${string}::${string}.${string}}`;
5483
+ populate?: Record<string, boolean | {
5484
+ populate?: boolean;
5485
+ }>;
5486
+ filters?: {
5487
+ id?: string | number | {
5427
5488
  $eq?: string;
5428
5489
  } | {
5429
5490
  $eqi?: string;
@@ -5457,10 +5518,7 @@ declare const pluginServices: {
5457
5518
  $notContainsi?: string;
5458
5519
  } | {
5459
5520
  $notNull?: boolean;
5460
- }>[];
5461
- } | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
5462
- sort?: string;
5463
- filter?: {
5521
+ };
5464
5522
  content?: string | number | {
5465
5523
  $eq?: string;
5466
5524
  } | {
@@ -5602,10 +5660,6 @@ declare const pluginServices: {
5602
5660
  $notNull?: boolean;
5603
5661
  };
5604
5662
  };
5605
- relation?: `{${string}::${string}.${number}}`;
5606
- populate?: Record<string, boolean | {
5607
- populate?: boolean;
5608
- }>;
5609
5663
  limit?: number;
5610
5664
  fields?: string[];
5611
5665
  omit?: string[];
@@ -5962,9 +6016,21 @@ declare const pluginServices: {
5962
6016
  author?: any;
5963
6017
  };
5964
6018
  }>;
5965
- findAllPerAuthor({ query, populate, pagination, sort, fields, isAdmin, authorId, }: {
5966
- query?: {
5967
- $and?: Record<string, string | number | {
6019
+ findAllPerAuthor({ filters, populate, pagination, sort, fields, isAdmin, authorId, }: {
6020
+ type?: string;
6021
+ sort?: string;
6022
+ authorId?: string | number;
6023
+ locale?: string;
6024
+ pagination?: {
6025
+ page?: number;
6026
+ pageSize?: number;
6027
+ withCount?: boolean;
6028
+ };
6029
+ populate?: Record<string, boolean | {
6030
+ populate?: boolean;
6031
+ }>;
6032
+ filters?: {
6033
+ id?: string | number | {
5968
6034
  $eq?: string;
5969
6035
  } | {
5970
6036
  $eqi?: string;
@@ -5998,8 +6064,8 @@ declare const pluginServices: {
5998
6064
  $notContainsi?: string;
5999
6065
  } | {
6000
6066
  $notNull?: boolean;
6001
- }>[];
6002
- $or?: Record<string, string | number | {
6067
+ };
6068
+ content?: string | number | {
6003
6069
  $eq?: string;
6004
6070
  } | {
6005
6071
  $eqi?: string;
@@ -6033,19 +6099,113 @@ declare const pluginServices: {
6033
6099
  $notContainsi?: string;
6034
6100
  } | {
6035
6101
  $notNull?: boolean;
6036
- }>[];
6037
- } | Record<string, string | number | boolean | Record<string, string | number | boolean>>;
6038
- type?: string;
6039
- sort?: string;
6040
- authorId?: string | number;
6041
- pagination?: {
6042
- page?: number;
6043
- pageSize?: number;
6044
- withCount?: boolean;
6102
+ };
6103
+ createdAt?: string | number | {
6104
+ $eq?: string;
6105
+ } | {
6106
+ $eqi?: string;
6107
+ } | {
6108
+ $ne?: string;
6109
+ } | {
6110
+ $nei?: string;
6111
+ } | {
6112
+ $gt?: string;
6113
+ } | {
6114
+ $gte?: string;
6115
+ } | {
6116
+ $lt?: string;
6117
+ } | {
6118
+ $lte?: string;
6119
+ } | {
6120
+ $startsWith?: string;
6121
+ } | {
6122
+ $startsWithi?: string;
6123
+ } | {
6124
+ $endsWith?: string;
6125
+ } | {
6126
+ $endsWithi?: string;
6127
+ } | {
6128
+ $contains?: string;
6129
+ } | {
6130
+ $containsi?: string;
6131
+ } | {
6132
+ $notContains?: string;
6133
+ } | {
6134
+ $notContainsi?: string;
6135
+ } | {
6136
+ $notNull?: boolean;
6137
+ };
6138
+ updatedAt?: string | number | {
6139
+ $eq?: string;
6140
+ } | {
6141
+ $eqi?: string;
6142
+ } | {
6143
+ $ne?: string;
6144
+ } | {
6145
+ $nei?: string;
6146
+ } | {
6147
+ $gt?: string;
6148
+ } | {
6149
+ $gte?: string;
6150
+ } | {
6151
+ $lt?: string;
6152
+ } | {
6153
+ $lte?: string;
6154
+ } | {
6155
+ $startsWith?: string;
6156
+ } | {
6157
+ $startsWithi?: string;
6158
+ } | {
6159
+ $endsWith?: string;
6160
+ } | {
6161
+ $endsWithi?: string;
6162
+ } | {
6163
+ $contains?: string;
6164
+ } | {
6165
+ $containsi?: string;
6166
+ } | {
6167
+ $notContains?: string;
6168
+ } | {
6169
+ $notContainsi?: string;
6170
+ } | {
6171
+ $notNull?: boolean;
6172
+ };
6173
+ authorName?: string | number | {
6174
+ $eq?: string;
6175
+ } | {
6176
+ $eqi?: string;
6177
+ } | {
6178
+ $ne?: string;
6179
+ } | {
6180
+ $nei?: string;
6181
+ } | {
6182
+ $gt?: string;
6183
+ } | {
6184
+ $gte?: string;
6185
+ } | {
6186
+ $lt?: string;
6187
+ } | {
6188
+ $lte?: string;
6189
+ } | {
6190
+ $startsWith?: string;
6191
+ } | {
6192
+ $startsWithi?: string;
6193
+ } | {
6194
+ $endsWith?: string;
6195
+ } | {
6196
+ $endsWithi?: string;
6197
+ } | {
6198
+ $contains?: string;
6199
+ } | {
6200
+ $containsi?: string;
6201
+ } | {
6202
+ $notContains?: string;
6203
+ } | {
6204
+ $notContainsi?: string;
6205
+ } | {
6206
+ $notNull?: boolean;
6207
+ };
6045
6208
  };
6046
- populate?: Record<string, boolean | {
6047
- populate?: boolean;
6048
- }>;
6049
6209
  limit?: number;
6050
6210
  fields?: string[];
6051
6211
  omit?: string[];
@@ -6132,6 +6292,8 @@ declare const pluginServices: {
6132
6292
  approvalStatus?: string;
6133
6293
  related?: {
6134
6294
  id?: number;
6295
+ documentId?: string;
6296
+ locale?: string;
6135
6297
  uid?: string;
6136
6298
  requireCommentsApproval?: boolean;
6137
6299
  };
@@ -6271,6 +6433,8 @@ declare const pluginServices: {
6271
6433
  };
6272
6434
  }[]): Promise<{
6273
6435
  id?: number;
6436
+ documentId?: string;
6437
+ locale?: string;
6274
6438
  uid?: string;
6275
6439
  requireCommentsApproval?: boolean;
6276
6440
  }[]>;
@@ -6345,6 +6509,8 @@ declare const pluginServices: {
6345
6509
  };
6346
6510
  }, relatedEntities?: {
6347
6511
  id?: number;
6512
+ documentId?: string;
6513
+ locale?: string;
6348
6514
  uid?: string;
6349
6515
  requireCommentsApproval?: boolean;
6350
6516
  }[]): {
@@ -6359,6 +6525,8 @@ declare const pluginServices: {
6359
6525
  approvalStatus?: string;
6360
6526
  related?: {
6361
6527
  id?: number;
6528
+ documentId?: string;
6529
+ locale?: string;
6362
6530
  uid?: string;
6363
6531
  requireCommentsApproval?: boolean;
6364
6532
  };
@@ -6510,6 +6678,9 @@ declare const pluginServices: {
6510
6678
  OTHER?: import("../const").REPORT_REASON.OTHER;
6511
6679
  };
6512
6680
  isGQLPluginEnabled?: boolean;
6681
+ gql?: {
6682
+ auth?: boolean;
6683
+ };
6513
6684
  } | Omit<{
6514
6685
  enabledCollections?: string[];
6515
6686
  approvalFlow?: string[];
@@ -6524,6 +6695,9 @@ declare const pluginServices: {
6524
6695
  OTHER?: import("../const").REPORT_REASON.OTHER;
6525
6696
  };
6526
6697
  isGQLPluginEnabled?: boolean;
6698
+ gql?: {
6699
+ auth?: boolean;
6700
+ };
6527
6701
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
6528
6702
  update: (config: {
6529
6703
  enabledCollections?: string[];
@@ -6539,6 +6713,9 @@ declare const pluginServices: {
6539
6713
  OTHER?: import("../const").REPORT_REASON.OTHER;
6540
6714
  };
6541
6715
  isGQLPluginEnabled?: boolean;
6716
+ gql?: {
6717
+ auth?: boolean;
6718
+ };
6542
6719
  }) => Promise<{
6543
6720
  enabledCollections?: string[];
6544
6721
  approvalFlow?: string[];
@@ -6553,6 +6730,9 @@ declare const pluginServices: {
6553
6730
  OTHER?: import("../const").REPORT_REASON.OTHER;
6554
6731
  };
6555
6732
  isGQLPluginEnabled?: boolean;
6733
+ gql?: {
6734
+ auth?: boolean;
6735
+ };
6556
6736
  } | Omit<{
6557
6737
  enabledCollections?: string[];
6558
6738
  approvalFlow?: string[];
@@ -6567,6 +6747,9 @@ declare const pluginServices: {
6567
6747
  OTHER?: import("../const").REPORT_REASON.OTHER;
6568
6748
  };
6569
6749
  isGQLPluginEnabled?: boolean;
6750
+ gql?: {
6751
+ auth?: boolean;
6752
+ };
6570
6753
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
6571
6754
  restore: () => Promise<{
6572
6755
  enabledCollections?: string[];
@@ -6582,6 +6765,9 @@ declare const pluginServices: {
6582
6765
  OTHER?: import("../const").REPORT_REASON.OTHER;
6583
6766
  };
6584
6767
  isGQLPluginEnabled?: boolean;
6768
+ gql?: {
6769
+ auth?: boolean;
6770
+ };
6585
6771
  } | Omit<{
6586
6772
  enabledCollections?: string[];
6587
6773
  approvalFlow?: string[];
@@ -6596,9 +6782,16 @@ declare const pluginServices: {
6596
6782
  OTHER?: import("../const").REPORT_REASON.OTHER;
6597
6783
  };
6598
6784
  isGQLPluginEnabled?: boolean;
6785
+ gql?: {
6786
+ auth?: boolean;
6787
+ };
6599
6788
  }, "enabledCollections" | "moderatorRoles" | "isGQLPluginEnabled">>;
6600
6789
  restart: () => void;
6601
6790
  };
6791
+ gql: ({ strapi }: import("../@types-v5").StrapiContext) => {
6792
+ graphQLFiltersToStrapiQuery: (queryFilters: any, contentType?: any) => any;
6793
+ buildContentTypeFilters<T_3 extends import("@strapi/types/dist/uid").ContentType>(contentType: import("@strapi/types/dist/schema").ContentType<T_3>): import("nexus/dist/core").NexusInputObjectTypeDef<any>;
6794
+ };
6602
6795
  };
6603
6796
  export type PluginServices = {
6604
6797
  [key in keyof typeof pluginServices]: ReturnType<typeof pluginServices[key]>;