strapi-plugin-comments 3.0.8 → 3.0.10

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 (67) hide show
  1. package/README.md +1 -1
  2. package/dist/_chunks/{en-DCsHR-ue.mjs → en-BtJqEJGe.mjs} +2 -0
  3. package/dist/_chunks/en-CNvRvaLL.js +1 -0
  4. package/dist/_chunks/fr-Bh0tVDIQ.js +1 -0
  5. package/dist/_chunks/{fr-DC9DGoT1.mjs → fr-n-k7Rsq9.mjs} +106 -55
  6. package/dist/_chunks/index-3aTvO9o4.js +2221 -0
  7. package/dist/_chunks/{index-Dz0m9-CE.mjs → index-B3sOw8of.mjs} +11781 -11717
  8. package/dist/_chunks/{index-B5PjDM8c.js → index-BkeaCrYD.js} +1 -1
  9. package/dist/_chunks/{index-C9SDOq14.mjs → index-BmZpl8oj.mjs} +8398 -8287
  10. package/dist/_chunks/{index-C06AHjYM.js → index-C1iG6Vvf.js} +44 -44
  11. package/dist/_chunks/index-CdurBq-v.js +18 -0
  12. package/dist/_chunks/{index-BS9J96Lh.mjs → index-CzOGwAt4.mjs} +466 -462
  13. package/dist/_chunks/{index-iv4k-YuD.mjs → index-DG6A3YTl.mjs} +20 -20
  14. package/dist/_chunks/pl-DoXe0BV9.js +1 -0
  15. package/dist/_chunks/{pl-DZiVsGIg.mjs → pl-_wkGtdQj.mjs} +2 -0
  16. package/dist/_chunks/{pt-BR-CW4ugNZj.mjs → pt-BR-Bx1qSZ0Z.mjs} +2 -0
  17. package/dist/_chunks/pt-BR-CLvbSGaH.js +1 -0
  18. package/dist/_chunks/{ru-CfKjYq3M.mjs → ru-BuUj7OWH.mjs} +2 -0
  19. package/dist/_chunks/ru-eLIDfsd3.js +1 -0
  20. package/dist/_chunks/tr-BX-_IBUR.js +1 -0
  21. package/dist/_chunks/{tr-BQR2hK7S.mjs → tr-CloK8CbW.mjs} +2 -0
  22. package/dist/_chunks/zh-Hans-DusBjCtd.js +1 -0
  23. package/dist/_chunks/{zh-Hans-lNqOn5JS.mjs → zh-Hans-Isi-yCnI.mjs} +2 -0
  24. package/dist/admin/index.js +1 -1
  25. package/dist/admin/index.mjs +1 -1
  26. package/dist/admin/src/api/schemas.d.ts +21 -21
  27. package/dist/admin/src/components/ActionButton/index.d.ts +4 -2
  28. package/dist/admin/src/components/CommentStatusFilters/index.d.ts +6 -0
  29. package/dist/admin/src/components/DiscussionThreadItem/DiscussionThreadItemFooter.d.ts +1 -1
  30. package/dist/admin/src/components/DiscussionThreadItem/index.d.ts +2 -2
  31. package/dist/admin/src/components/IconButtonGroup/index.d.ts +5 -2
  32. package/dist/admin/src/components/StatusBadge/index.d.ts +1 -1
  33. package/dist/admin/src/components/Wysiwyg/EditorLayout.d.ts +1 -1
  34. package/dist/admin/src/components/Wysiwyg/WysiwygStyles.d.ts +4 -4
  35. package/dist/admin/src/hooks/useCommentsAll.d.ts +2 -2
  36. package/dist/admin/src/translations/en.d.ts +2 -0
  37. package/dist/admin/src/translations/fr.d.ts +52 -0
  38. package/dist/admin/src/translations/pl.d.ts +2 -0
  39. package/dist/admin/src/translations/pt-BR.d.ts +2 -0
  40. package/dist/admin/src/translations/ru.d.ts +2 -0
  41. package/dist/admin/src/translations/tr.d.ts +2 -0
  42. package/dist/admin/src/translations/zh-Hans.d.ts +2 -0
  43. package/dist/server/index.js +31 -31
  44. package/dist/server/index.mjs +1290 -1264
  45. package/dist/server/src/@types/controllers.d.ts +1 -0
  46. package/dist/server/src/controllers/index.d.ts +66 -0
  47. package/dist/server/src/graphql/getResolversConfig.d.ts +4 -4
  48. package/dist/server/src/index.d.ts +572 -1
  49. package/dist/server/src/services/admin/admin.service.d.ts +68 -1
  50. package/dist/server/src/services/admin/utils.d.ts +1 -8
  51. package/dist/server/src/services/client.service.d.ts +67 -0
  52. package/dist/server/src/services/common.service.d.ts +1 -0
  53. package/dist/server/src/services/index.d.ts +506 -1
  54. package/dist/server/src/validators/api/controllers/admin.controller.validator.d.ts +1504 -6
  55. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +66 -0
  56. package/dist/server/src/validators/repositories/comment.validator.d.ts +57 -57
  57. package/dist/server/src/validators/utils.d.ts +1238 -4
  58. package/package.json +14 -14
  59. package/dist/_chunks/en-CgUbWvmQ.js +0 -1
  60. package/dist/_chunks/fr-BXfxIXq1.js +0 -1
  61. package/dist/_chunks/index-BGCzzYSK.js +0 -2175
  62. package/dist/_chunks/index-Chf4p7eV.js +0 -18
  63. package/dist/_chunks/pl-Bl4yP3sZ.js +0 -1
  64. package/dist/_chunks/pt-BR-D9T5g0JT.js +0 -1
  65. package/dist/_chunks/ru-DIZ4pV4l.js +0 -1
  66. package/dist/_chunks/tr-Dl2hdLCx.js +0 -1
  67. package/dist/_chunks/zh-Hans-BZhnqfei.js +0 -1
@@ -3,6 +3,7 @@ export type AdminUser = {
3
3
  id: string | number;
4
4
  email: string;
5
5
  username: string;
6
+ avatar?: string;
6
7
  };
7
8
  export type RequestContext<Body = object, PathParams = object, QueryParams = object> = Omit<Context, 'body' | 'query' | 'request'> & {
8
9
  body: Body;
@@ -1566,6 +1566,8 @@ declare const controllers: {
1566
1566
  $notContains?: string;
1567
1567
  } | {
1568
1568
  $notContainsi?: string;
1569
+ } | {
1570
+ $null?: string;
1569
1571
  } | {
1570
1572
  $notNull?: boolean;
1571
1573
  };
@@ -1601,6 +1603,8 @@ declare const controllers: {
1601
1603
  $notContains?: string;
1602
1604
  } | {
1603
1605
  $notContainsi?: string;
1606
+ } | {
1607
+ $null?: string;
1604
1608
  } | {
1605
1609
  $notNull?: boolean;
1606
1610
  };
@@ -1636,6 +1640,8 @@ declare const controllers: {
1636
1640
  $notContains?: string;
1637
1641
  } | {
1638
1642
  $notContainsi?: string;
1643
+ } | {
1644
+ $null?: string;
1639
1645
  } | {
1640
1646
  $notNull?: boolean;
1641
1647
  };
@@ -1671,6 +1677,8 @@ declare const controllers: {
1671
1677
  $notContains?: string;
1672
1678
  } | {
1673
1679
  $notContainsi?: string;
1680
+ } | {
1681
+ $null?: string;
1674
1682
  } | {
1675
1683
  $notNull?: boolean;
1676
1684
  };
@@ -1706,6 +1714,8 @@ declare const controllers: {
1706
1714
  $notContains?: string;
1707
1715
  } | {
1708
1716
  $notContainsi?: string;
1717
+ } | {
1718
+ $null?: string;
1709
1719
  } | {
1710
1720
  $notNull?: boolean;
1711
1721
  };
@@ -1741,6 +1751,8 @@ declare const controllers: {
1741
1751
  $notContains?: string;
1742
1752
  } | {
1743
1753
  $notContainsi?: string;
1754
+ } | {
1755
+ $null?: string;
1744
1756
  } | {
1745
1757
  $notNull?: boolean;
1746
1758
  };
@@ -1776,6 +1788,8 @@ declare const controllers: {
1776
1788
  $notContains?: string;
1777
1789
  } | {
1778
1790
  $notContainsi?: string;
1791
+ } | {
1792
+ $null?: string;
1779
1793
  } | {
1780
1794
  $notNull?: boolean;
1781
1795
  };
@@ -1811,6 +1825,8 @@ declare const controllers: {
1811
1825
  $notContains?: string;
1812
1826
  } | {
1813
1827
  $notContainsi?: string;
1828
+ } | {
1829
+ $null?: string;
1814
1830
  } | {
1815
1831
  $notNull?: boolean;
1816
1832
  };
@@ -1846,6 +1862,8 @@ declare const controllers: {
1846
1862
  $notContains?: string;
1847
1863
  } | {
1848
1864
  $notContainsi?: string;
1865
+ } | {
1866
+ $null?: string;
1849
1867
  } | {
1850
1868
  $notNull?: boolean;
1851
1869
  };
@@ -1881,6 +1899,8 @@ declare const controllers: {
1881
1899
  $notContains?: string;
1882
1900
  } | {
1883
1901
  $notContainsi?: string;
1902
+ } | {
1903
+ $null?: string;
1884
1904
  } | {
1885
1905
  $notNull?: boolean;
1886
1906
  };
@@ -1916,6 +1936,8 @@ declare const controllers: {
1916
1936
  $notContains?: string;
1917
1937
  } | {
1918
1938
  $notContainsi?: string;
1939
+ } | {
1940
+ $null?: string;
1919
1941
  } | {
1920
1942
  $notNull?: boolean;
1921
1943
  };
@@ -2130,6 +2152,8 @@ declare const controllers: {
2130
2152
  $notContains?: string;
2131
2153
  } | {
2132
2154
  $notContainsi?: string;
2155
+ } | {
2156
+ $null?: string;
2133
2157
  } | {
2134
2158
  $notNull?: boolean;
2135
2159
  };
@@ -2165,6 +2189,8 @@ declare const controllers: {
2165
2189
  $notContains?: string;
2166
2190
  } | {
2167
2191
  $notContainsi?: string;
2192
+ } | {
2193
+ $null?: string;
2168
2194
  } | {
2169
2195
  $notNull?: boolean;
2170
2196
  };
@@ -2200,6 +2226,8 @@ declare const controllers: {
2200
2226
  $notContains?: string;
2201
2227
  } | {
2202
2228
  $notContainsi?: string;
2229
+ } | {
2230
+ $null?: string;
2203
2231
  } | {
2204
2232
  $notNull?: boolean;
2205
2233
  };
@@ -2235,6 +2263,8 @@ declare const controllers: {
2235
2263
  $notContains?: string;
2236
2264
  } | {
2237
2265
  $notContainsi?: string;
2266
+ } | {
2267
+ $null?: string;
2238
2268
  } | {
2239
2269
  $notNull?: boolean;
2240
2270
  };
@@ -2270,6 +2300,8 @@ declare const controllers: {
2270
2300
  $notContains?: string;
2271
2301
  } | {
2272
2302
  $notContainsi?: string;
2303
+ } | {
2304
+ $null?: string;
2273
2305
  } | {
2274
2306
  $notNull?: boolean;
2275
2307
  };
@@ -2305,6 +2337,8 @@ declare const controllers: {
2305
2337
  $notContains?: string;
2306
2338
  } | {
2307
2339
  $notContainsi?: string;
2340
+ } | {
2341
+ $null?: string;
2308
2342
  } | {
2309
2343
  $notNull?: boolean;
2310
2344
  };
@@ -2340,6 +2374,8 @@ declare const controllers: {
2340
2374
  $notContains?: string;
2341
2375
  } | {
2342
2376
  $notContainsi?: string;
2377
+ } | {
2378
+ $null?: string;
2343
2379
  } | {
2344
2380
  $notNull?: boolean;
2345
2381
  };
@@ -2375,6 +2411,8 @@ declare const controllers: {
2375
2411
  $notContains?: string;
2376
2412
  } | {
2377
2413
  $notContainsi?: string;
2414
+ } | {
2415
+ $null?: string;
2378
2416
  } | {
2379
2417
  $notNull?: boolean;
2380
2418
  };
@@ -2410,6 +2448,8 @@ declare const controllers: {
2410
2448
  $notContains?: string;
2411
2449
  } | {
2412
2450
  $notContainsi?: string;
2451
+ } | {
2452
+ $null?: string;
2413
2453
  } | {
2414
2454
  $notNull?: boolean;
2415
2455
  };
@@ -2445,6 +2485,8 @@ declare const controllers: {
2445
2485
  $notContains?: string;
2446
2486
  } | {
2447
2487
  $notContainsi?: string;
2488
+ } | {
2489
+ $null?: string;
2448
2490
  } | {
2449
2491
  $notNull?: boolean;
2450
2492
  };
@@ -2480,6 +2522,8 @@ declare const controllers: {
2480
2522
  $notContains?: string;
2481
2523
  } | {
2482
2524
  $notContainsi?: string;
2525
+ } | {
2526
+ $null?: string;
2483
2527
  } | {
2484
2528
  $notNull?: boolean;
2485
2529
  };
@@ -2613,6 +2657,8 @@ declare const controllers: {
2613
2657
  $notContains?: string;
2614
2658
  } | {
2615
2659
  $notContainsi?: string;
2660
+ } | {
2661
+ $null?: string;
2616
2662
  } | {
2617
2663
  $notNull?: boolean;
2618
2664
  };
@@ -2648,6 +2694,8 @@ declare const controllers: {
2648
2694
  $notContains?: string;
2649
2695
  } | {
2650
2696
  $notContainsi?: string;
2697
+ } | {
2698
+ $null?: string;
2651
2699
  } | {
2652
2700
  $notNull?: boolean;
2653
2701
  };
@@ -2683,6 +2731,8 @@ declare const controllers: {
2683
2731
  $notContains?: string;
2684
2732
  } | {
2685
2733
  $notContainsi?: string;
2734
+ } | {
2735
+ $null?: string;
2686
2736
  } | {
2687
2737
  $notNull?: boolean;
2688
2738
  };
@@ -2718,6 +2768,8 @@ declare const controllers: {
2718
2768
  $notContains?: string;
2719
2769
  } | {
2720
2770
  $notContainsi?: string;
2771
+ } | {
2772
+ $null?: string;
2721
2773
  } | {
2722
2774
  $notNull?: boolean;
2723
2775
  };
@@ -2753,6 +2805,8 @@ declare const controllers: {
2753
2805
  $notContains?: string;
2754
2806
  } | {
2755
2807
  $notContainsi?: string;
2808
+ } | {
2809
+ $null?: string;
2756
2810
  } | {
2757
2811
  $notNull?: boolean;
2758
2812
  };
@@ -2788,6 +2842,8 @@ declare const controllers: {
2788
2842
  $notContains?: string;
2789
2843
  } | {
2790
2844
  $notContainsi?: string;
2845
+ } | {
2846
+ $null?: string;
2791
2847
  } | {
2792
2848
  $notNull?: boolean;
2793
2849
  };
@@ -2823,6 +2879,8 @@ declare const controllers: {
2823
2879
  $notContains?: string;
2824
2880
  } | {
2825
2881
  $notContainsi?: string;
2882
+ } | {
2883
+ $null?: string;
2826
2884
  } | {
2827
2885
  $notNull?: boolean;
2828
2886
  };
@@ -2858,6 +2916,8 @@ declare const controllers: {
2858
2916
  $notContains?: string;
2859
2917
  } | {
2860
2918
  $notContainsi?: string;
2919
+ } | {
2920
+ $null?: string;
2861
2921
  } | {
2862
2922
  $notNull?: boolean;
2863
2923
  };
@@ -2893,6 +2953,8 @@ declare const controllers: {
2893
2953
  $notContains?: string;
2894
2954
  } | {
2895
2955
  $notContainsi?: string;
2956
+ } | {
2957
+ $null?: string;
2896
2958
  } | {
2897
2959
  $notNull?: boolean;
2898
2960
  };
@@ -2928,6 +2990,8 @@ declare const controllers: {
2928
2990
  $notContains?: string;
2929
2991
  } | {
2930
2992
  $notContainsi?: string;
2993
+ } | {
2994
+ $null?: string;
2931
2995
  } | {
2932
2996
  $notNull?: boolean;
2933
2997
  };
@@ -2963,6 +3027,8 @@ declare const controllers: {
2963
3027
  $notContains?: string;
2964
3028
  } | {
2965
3029
  $notContainsi?: string;
3030
+ } | {
3031
+ $null?: string;
2966
3032
  } | {
2967
3033
  $notNull?: boolean;
2968
3034
  };
@@ -6,16 +6,16 @@ export declare const getResolversConfig: (config: CommentsPluginConfig) => {
6
6
  'Query.findAllInHierarchy': {
7
7
  auth: boolean;
8
8
  };
9
- 'Mutation.createComment': {
9
+ 'Mutation.getCreateComment': {
10
10
  auth: boolean;
11
11
  };
12
- 'Mutation.updateComment': {
12
+ 'Mutation.getUpdateComment': {
13
13
  auth: boolean;
14
14
  };
15
- 'Mutation.removeComment': {
15
+ 'Mutation.getRemoveComment': {
16
16
  auth: boolean;
17
17
  };
18
- 'Mutation.createAbuseReport': {
18
+ 'Mutation.getCreateAbuseReport': {
19
19
  auth: boolean;
20
20
  };
21
21
  };