strapi-plugin-comments 3.0.3 → 3.0.5

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 (28) hide show
  1. package/dist/_chunks/{index-BUVqbcoe.js → index-BAXZ3d__.js} +2 -2
  2. package/dist/_chunks/{index-BMbvyf7_.js → index-BTWJ00Fw.js} +2 -2
  3. package/dist/_chunks/{index-DkFRVIkq.js → index-CJVLjLWX.js} +103 -119
  4. package/dist/_chunks/{index-CZsqxJsf.mjs → index-CK1XCSqz.mjs} +2 -2
  5. package/dist/_chunks/{index-BAKREpmX.mjs → index-DUWJDJLu.mjs} +2 -2
  6. package/dist/_chunks/{index-D_Yjpru0.js → index-DidQUJKN.js} +5 -5
  7. package/dist/_chunks/{index-CaFBMp1z.mjs → index-PCqyAKE7.mjs} +8 -3
  8. package/dist/_chunks/{index-BIcU6CkW.mjs → index-yhf78avJ.mjs} +5 -5
  9. package/dist/admin/index.js +1 -1
  10. package/dist/admin/index.mjs +1 -1
  11. package/dist/admin/src/api/client.d.ts +5 -5
  12. package/dist/admin/src/api/schemas.d.ts +63 -63
  13. package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
  14. package/dist/admin/src/hooks/useAPI.d.ts +5 -5
  15. package/dist/admin/src/hooks/useCommentsAll.d.ts +1 -1
  16. package/dist/admin/src/hooks/useReports.d.ts +1 -1
  17. package/dist/server/index.js +60 -20
  18. package/dist/server/index.mjs +60 -20
  19. package/dist/server/src/controllers/index.d.ts +526 -1
  20. package/dist/server/src/index.d.ts +2284 -181
  21. package/dist/server/src/repositories/comment.repository.d.ts +2 -0
  22. package/dist/server/src/services/admin/admin.service.d.ts +527 -1
  23. package/dist/server/src/services/admin/utils.d.ts +9 -1
  24. package/dist/server/src/services/client.service.d.ts +527 -1
  25. package/dist/server/src/services/common.service.d.ts +2 -1
  26. package/dist/server/src/services/index.d.ts +1803 -225
  27. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +527 -2
  28. package/package.json +1 -1
@@ -371,6 +371,111 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
371
371
  } | {
372
372
  $notNull?: boolean;
373
373
  };
374
+ blocked?: string | number | {
375
+ $eq?: string;
376
+ } | {
377
+ $eqi?: string;
378
+ } | {
379
+ $ne?: string;
380
+ } | {
381
+ $nei?: string;
382
+ } | {
383
+ $gt?: string;
384
+ } | {
385
+ $gte?: string;
386
+ } | {
387
+ $lt?: string;
388
+ } | {
389
+ $lte?: string;
390
+ } | {
391
+ $startsWith?: string;
392
+ } | {
393
+ $startsWithi?: string;
394
+ } | {
395
+ $endsWith?: string;
396
+ } | {
397
+ $endsWithi?: string;
398
+ } | {
399
+ $contains?: string;
400
+ } | {
401
+ $containsi?: string;
402
+ } | {
403
+ $notContains?: string;
404
+ } | {
405
+ $notContainsi?: string;
406
+ } | {
407
+ $notNull?: boolean;
408
+ };
409
+ blockedThread?: string | number | {
410
+ $eq?: string;
411
+ } | {
412
+ $eqi?: string;
413
+ } | {
414
+ $ne?: string;
415
+ } | {
416
+ $nei?: string;
417
+ } | {
418
+ $gt?: string;
419
+ } | {
420
+ $gte?: string;
421
+ } | {
422
+ $lt?: string;
423
+ } | {
424
+ $lte?: string;
425
+ } | {
426
+ $startsWith?: string;
427
+ } | {
428
+ $startsWithi?: string;
429
+ } | {
430
+ $endsWith?: string;
431
+ } | {
432
+ $endsWithi?: string;
433
+ } | {
434
+ $contains?: string;
435
+ } | {
436
+ $containsi?: string;
437
+ } | {
438
+ $notContains?: string;
439
+ } | {
440
+ $notContainsi?: string;
441
+ } | {
442
+ $notNull?: boolean;
443
+ };
444
+ removed?: string | number | {
445
+ $eq?: string;
446
+ } | {
447
+ $eqi?: string;
448
+ } | {
449
+ $ne?: string;
450
+ } | {
451
+ $nei?: string;
452
+ } | {
453
+ $gt?: string;
454
+ } | {
455
+ $gte?: string;
456
+ } | {
457
+ $lt?: string;
458
+ } | {
459
+ $lte?: string;
460
+ } | {
461
+ $startsWith?: string;
462
+ } | {
463
+ $startsWithi?: string;
464
+ } | {
465
+ $endsWith?: string;
466
+ } | {
467
+ $endsWithi?: string;
468
+ } | {
469
+ $contains?: string;
470
+ } | {
471
+ $containsi?: string;
472
+ } | {
473
+ $notContains?: string;
474
+ } | {
475
+ $notContainsi?: string;
476
+ } | {
477
+ $notNull?: boolean;
478
+ };
374
479
  createdAt?: string | number | {
375
480
  $eq?: string;
376
481
  } | {
@@ -441,6 +546,41 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
441
546
  } | {
442
547
  $notNull?: boolean;
443
548
  };
549
+ authorId?: string | number | {
550
+ $eq?: string;
551
+ } | {
552
+ $eqi?: string;
553
+ } | {
554
+ $ne?: string;
555
+ } | {
556
+ $nei?: string;
557
+ } | {
558
+ $gt?: string;
559
+ } | {
560
+ $gte?: string;
561
+ } | {
562
+ $lt?: string;
563
+ } | {
564
+ $lte?: string;
565
+ } | {
566
+ $startsWith?: string;
567
+ } | {
568
+ $startsWithi?: string;
569
+ } | {
570
+ $endsWith?: string;
571
+ } | {
572
+ $endsWithi?: string;
573
+ } | {
574
+ $contains?: string;
575
+ } | {
576
+ $containsi?: string;
577
+ } | {
578
+ $notContains?: string;
579
+ } | {
580
+ $notContainsi?: string;
581
+ } | {
582
+ $notNull?: boolean;
583
+ };
444
584
  authorName?: string | number | {
445
585
  $eq?: string;
446
586
  } | {
@@ -476,6 +616,41 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
476
616
  } | {
477
617
  $notNull?: boolean;
478
618
  };
619
+ authorEmail?: string | number | {
620
+ $eq?: string;
621
+ } | {
622
+ $eqi?: string;
623
+ } | {
624
+ $ne?: string;
625
+ } | {
626
+ $nei?: string;
627
+ } | {
628
+ $gt?: string;
629
+ } | {
630
+ $gte?: string;
631
+ } | {
632
+ $lt?: string;
633
+ } | {
634
+ $lte?: string;
635
+ } | {
636
+ $startsWith?: string;
637
+ } | {
638
+ $startsWithi?: string;
639
+ } | {
640
+ $endsWith?: string;
641
+ } | {
642
+ $endsWithi?: string;
643
+ } | {
644
+ $contains?: string;
645
+ } | {
646
+ $containsi?: string;
647
+ } | {
648
+ $notContains?: string;
649
+ } | {
650
+ $notContainsi?: string;
651
+ } | {
652
+ $notNull?: boolean;
653
+ };
479
654
  };
480
655
  limit?: number;
481
656
  fields?: string[];
@@ -647,7 +822,7 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
647
822
  total?: number;
648
823
  };
649
824
  }>;
650
- findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: {
825
+ findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, limit, }: {
651
826
  sort?: string;
652
827
  locale?: string;
653
828
  relation?: `${string}::${string}.${string}`;
@@ -725,6 +900,111 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
725
900
  } | {
726
901
  $notNull?: boolean;
727
902
  };
903
+ blocked?: string | number | {
904
+ $eq?: string;
905
+ } | {
906
+ $eqi?: string;
907
+ } | {
908
+ $ne?: string;
909
+ } | {
910
+ $nei?: string;
911
+ } | {
912
+ $gt?: string;
913
+ } | {
914
+ $gte?: string;
915
+ } | {
916
+ $lt?: string;
917
+ } | {
918
+ $lte?: string;
919
+ } | {
920
+ $startsWith?: string;
921
+ } | {
922
+ $startsWithi?: string;
923
+ } | {
924
+ $endsWith?: string;
925
+ } | {
926
+ $endsWithi?: string;
927
+ } | {
928
+ $contains?: string;
929
+ } | {
930
+ $containsi?: string;
931
+ } | {
932
+ $notContains?: string;
933
+ } | {
934
+ $notContainsi?: string;
935
+ } | {
936
+ $notNull?: boolean;
937
+ };
938
+ blockedThread?: string | number | {
939
+ $eq?: string;
940
+ } | {
941
+ $eqi?: string;
942
+ } | {
943
+ $ne?: string;
944
+ } | {
945
+ $nei?: string;
946
+ } | {
947
+ $gt?: string;
948
+ } | {
949
+ $gte?: string;
950
+ } | {
951
+ $lt?: string;
952
+ } | {
953
+ $lte?: string;
954
+ } | {
955
+ $startsWith?: string;
956
+ } | {
957
+ $startsWithi?: string;
958
+ } | {
959
+ $endsWith?: string;
960
+ } | {
961
+ $endsWithi?: string;
962
+ } | {
963
+ $contains?: string;
964
+ } | {
965
+ $containsi?: string;
966
+ } | {
967
+ $notContains?: string;
968
+ } | {
969
+ $notContainsi?: string;
970
+ } | {
971
+ $notNull?: boolean;
972
+ };
973
+ removed?: string | number | {
974
+ $eq?: string;
975
+ } | {
976
+ $eqi?: string;
977
+ } | {
978
+ $ne?: string;
979
+ } | {
980
+ $nei?: string;
981
+ } | {
982
+ $gt?: string;
983
+ } | {
984
+ $gte?: string;
985
+ } | {
986
+ $lt?: string;
987
+ } | {
988
+ $lte?: string;
989
+ } | {
990
+ $startsWith?: string;
991
+ } | {
992
+ $startsWithi?: string;
993
+ } | {
994
+ $endsWith?: string;
995
+ } | {
996
+ $endsWithi?: string;
997
+ } | {
998
+ $contains?: string;
999
+ } | {
1000
+ $containsi?: string;
1001
+ } | {
1002
+ $notContains?: string;
1003
+ } | {
1004
+ $notContainsi?: string;
1005
+ } | {
1006
+ $notNull?: boolean;
1007
+ };
728
1008
  createdAt?: string | number | {
729
1009
  $eq?: string;
730
1010
  } | {
@@ -795,6 +1075,41 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
795
1075
  } | {
796
1076
  $notNull?: boolean;
797
1077
  };
1078
+ authorId?: string | number | {
1079
+ $eq?: string;
1080
+ } | {
1081
+ $eqi?: string;
1082
+ } | {
1083
+ $ne?: string;
1084
+ } | {
1085
+ $nei?: string;
1086
+ } | {
1087
+ $gt?: string;
1088
+ } | {
1089
+ $gte?: string;
1090
+ } | {
1091
+ $lt?: string;
1092
+ } | {
1093
+ $lte?: string;
1094
+ } | {
1095
+ $startsWith?: string;
1096
+ } | {
1097
+ $startsWithi?: string;
1098
+ } | {
1099
+ $endsWith?: string;
1100
+ } | {
1101
+ $endsWithi?: string;
1102
+ } | {
1103
+ $contains?: string;
1104
+ } | {
1105
+ $containsi?: string;
1106
+ } | {
1107
+ $notContains?: string;
1108
+ } | {
1109
+ $notContainsi?: string;
1110
+ } | {
1111
+ $notNull?: boolean;
1112
+ };
798
1113
  authorName?: string | number | {
799
1114
  $eq?: string;
800
1115
  } | {
@@ -830,6 +1145,41 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
830
1145
  } | {
831
1146
  $notNull?: boolean;
832
1147
  };
1148
+ authorEmail?: string | number | {
1149
+ $eq?: string;
1150
+ } | {
1151
+ $eqi?: string;
1152
+ } | {
1153
+ $ne?: string;
1154
+ } | {
1155
+ $nei?: string;
1156
+ } | {
1157
+ $gt?: string;
1158
+ } | {
1159
+ $gte?: string;
1160
+ } | {
1161
+ $lt?: string;
1162
+ } | {
1163
+ $lte?: string;
1164
+ } | {
1165
+ $startsWith?: string;
1166
+ } | {
1167
+ $startsWithi?: string;
1168
+ } | {
1169
+ $endsWith?: string;
1170
+ } | {
1171
+ $endsWithi?: string;
1172
+ } | {
1173
+ $contains?: string;
1174
+ } | {
1175
+ $containsi?: string;
1176
+ } | {
1177
+ $notContains?: string;
1178
+ } | {
1179
+ $notContainsi?: string;
1180
+ } | {
1181
+ $notNull?: boolean;
1182
+ };
833
1183
  };
834
1184
  limit?: number;
835
1185
  fields?: string[];
@@ -1301,6 +1651,111 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1301
1651
  } | {
1302
1652
  $notNull?: boolean;
1303
1653
  };
1654
+ blocked?: string | number | {
1655
+ $eq?: string;
1656
+ } | {
1657
+ $eqi?: string;
1658
+ } | {
1659
+ $ne?: string;
1660
+ } | {
1661
+ $nei?: string;
1662
+ } | {
1663
+ $gt?: string;
1664
+ } | {
1665
+ $gte?: string;
1666
+ } | {
1667
+ $lt?: string;
1668
+ } | {
1669
+ $lte?: string;
1670
+ } | {
1671
+ $startsWith?: string;
1672
+ } | {
1673
+ $startsWithi?: string;
1674
+ } | {
1675
+ $endsWith?: string;
1676
+ } | {
1677
+ $endsWithi?: string;
1678
+ } | {
1679
+ $contains?: string;
1680
+ } | {
1681
+ $containsi?: string;
1682
+ } | {
1683
+ $notContains?: string;
1684
+ } | {
1685
+ $notContainsi?: string;
1686
+ } | {
1687
+ $notNull?: boolean;
1688
+ };
1689
+ blockedThread?: string | number | {
1690
+ $eq?: string;
1691
+ } | {
1692
+ $eqi?: string;
1693
+ } | {
1694
+ $ne?: string;
1695
+ } | {
1696
+ $nei?: string;
1697
+ } | {
1698
+ $gt?: string;
1699
+ } | {
1700
+ $gte?: string;
1701
+ } | {
1702
+ $lt?: string;
1703
+ } | {
1704
+ $lte?: string;
1705
+ } | {
1706
+ $startsWith?: string;
1707
+ } | {
1708
+ $startsWithi?: string;
1709
+ } | {
1710
+ $endsWith?: string;
1711
+ } | {
1712
+ $endsWithi?: string;
1713
+ } | {
1714
+ $contains?: string;
1715
+ } | {
1716
+ $containsi?: string;
1717
+ } | {
1718
+ $notContains?: string;
1719
+ } | {
1720
+ $notContainsi?: string;
1721
+ } | {
1722
+ $notNull?: boolean;
1723
+ };
1724
+ removed?: string | number | {
1725
+ $eq?: string;
1726
+ } | {
1727
+ $eqi?: string;
1728
+ } | {
1729
+ $ne?: string;
1730
+ } | {
1731
+ $nei?: string;
1732
+ } | {
1733
+ $gt?: string;
1734
+ } | {
1735
+ $gte?: string;
1736
+ } | {
1737
+ $lt?: string;
1738
+ } | {
1739
+ $lte?: string;
1740
+ } | {
1741
+ $startsWith?: string;
1742
+ } | {
1743
+ $startsWithi?: string;
1744
+ } | {
1745
+ $endsWith?: string;
1746
+ } | {
1747
+ $endsWithi?: string;
1748
+ } | {
1749
+ $contains?: string;
1750
+ } | {
1751
+ $containsi?: string;
1752
+ } | {
1753
+ $notContains?: string;
1754
+ } | {
1755
+ $notContainsi?: string;
1756
+ } | {
1757
+ $notNull?: boolean;
1758
+ };
1304
1759
  createdAt?: string | number | {
1305
1760
  $eq?: string;
1306
1761
  } | {
@@ -1371,6 +1826,41 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1371
1826
  } | {
1372
1827
  $notNull?: boolean;
1373
1828
  };
1829
+ authorId?: string | number | {
1830
+ $eq?: string;
1831
+ } | {
1832
+ $eqi?: string;
1833
+ } | {
1834
+ $ne?: string;
1835
+ } | {
1836
+ $nei?: string;
1837
+ } | {
1838
+ $gt?: string;
1839
+ } | {
1840
+ $gte?: string;
1841
+ } | {
1842
+ $lt?: string;
1843
+ } | {
1844
+ $lte?: string;
1845
+ } | {
1846
+ $startsWith?: string;
1847
+ } | {
1848
+ $startsWithi?: string;
1849
+ } | {
1850
+ $endsWith?: string;
1851
+ } | {
1852
+ $endsWithi?: string;
1853
+ } | {
1854
+ $contains?: string;
1855
+ } | {
1856
+ $containsi?: string;
1857
+ } | {
1858
+ $notContains?: string;
1859
+ } | {
1860
+ $notContainsi?: string;
1861
+ } | {
1862
+ $notNull?: boolean;
1863
+ };
1374
1864
  authorName?: string | number | {
1375
1865
  $eq?: string;
1376
1866
  } | {
@@ -1406,6 +1896,41 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1406
1896
  } | {
1407
1897
  $notNull?: boolean;
1408
1898
  };
1899
+ authorEmail?: string | number | {
1900
+ $eq?: string;
1901
+ } | {
1902
+ $eqi?: string;
1903
+ } | {
1904
+ $ne?: string;
1905
+ } | {
1906
+ $nei?: string;
1907
+ } | {
1908
+ $gt?: string;
1909
+ } | {
1910
+ $gte?: string;
1911
+ } | {
1912
+ $lt?: string;
1913
+ } | {
1914
+ $lte?: string;
1915
+ } | {
1916
+ $startsWith?: string;
1917
+ } | {
1918
+ $startsWithi?: string;
1919
+ } | {
1920
+ $endsWith?: string;
1921
+ } | {
1922
+ $endsWithi?: string;
1923
+ } | {
1924
+ $contains?: string;
1925
+ } | {
1926
+ $containsi?: string;
1927
+ } | {
1928
+ $notContains?: string;
1929
+ } | {
1930
+ $notContainsi?: string;
1931
+ } | {
1932
+ $notNull?: boolean;
1933
+ };
1409
1934
  };
1410
1935
  limit?: number;
1411
1936
  fields?: string[];
@@ -1897,6 +2422,7 @@ export declare const clientService: ({ strapi }: StrapiContext) => {
1897
2422
  };
1898
2423
  }[T_2], deepLimit?: number): Promise<boolean>;
1899
2424
  checkBadWords(content: string): Promise<string>;
2425
+ perRemove(related: string, locale?: string): Promise<import("@strapi/database/dist/types").CountResult>;
1900
2426
  registerLifecycleHook(): void;
1901
2427
  runLifecycleHook(): Promise<void>;
1902
2428
  };
@@ -20,7 +20,7 @@ declare const commonService: ({ strapi }: StrapiContext) => {
20
20
  data: Array<CommentWithRelated | Comment>;
21
21
  pagination?: Pagination;
22
22
  }>;
23
- findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, }: clientValidator.FindAllInHierarchyValidatorSchema, relatedEntity?: any): Promise<{
23
+ findAllInHierarchy({ filters, populate, sort, fields, startingFromId, dropBlockedThreads, isAdmin, omit, locale, limit, }: clientValidator.FindAllInHierarchyValidatorSchema, relatedEntity?: any): Promise<{
24
24
  id?: number;
25
25
  documentId?: string;
26
26
  content?: string;
@@ -561,6 +561,7 @@ declare const commonService: ({ strapi }: StrapiContext) => {
561
561
  };
562
562
  }[T_2], deepLimit?: number): Promise<boolean>;
563
563
  checkBadWords(content: string): Promise<string>;
564
+ perRemove(related: string, locale?: string): Promise<import("@strapi/database/dist/types").CountResult>;
564
565
  registerLifecycleHook(): void;
565
566
  runLifecycleHook(): Promise<void>;
566
567
  };