strapi-plugin-comments 3.0.3 → 3.0.4

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 (27) hide show
  1. package/dist/_chunks/{index-BMbvyf7_.js → index-BMAhFLKR.js} +2 -2
  2. package/dist/_chunks/{index-CZsqxJsf.mjs → index-CK1XCSqz.mjs} +2 -2
  3. package/dist/_chunks/{index-D_Yjpru0.js → index-DCKroyap.js} +5 -5
  4. package/dist/_chunks/{index-BUVqbcoe.js → index-DHhRVslt.js} +2 -2
  5. package/dist/_chunks/{index-BAKREpmX.mjs → index-DUWJDJLu.mjs} +2 -2
  6. package/dist/_chunks/{index-CaFBMp1z.mjs → index-PCqyAKE7.mjs} +8 -3
  7. package/dist/_chunks/{index-DkFRVIkq.js → index-_4jTpBrc.js} +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 +34 -19
  18. package/dist/server/index.mjs +34 -19
  19. package/dist/server/src/controllers/index.d.ts +526 -1
  20. package/dist/server/src/index.d.ts +2281 -181
  21. package/dist/server/src/services/admin/admin.service.d.ts +526 -1
  22. package/dist/server/src/services/admin/utils.d.ts +9 -1
  23. package/dist/server/src/services/client.service.d.ts +526 -1
  24. package/dist/server/src/services/common.service.d.ts +1 -1
  25. package/dist/server/src/services/index.d.ts +1800 -225
  26. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +527 -2
  27. package/package.json +1 -1
@@ -11,7 +11,7 @@ export declare const newCommentValidator: (enabledCollections: string[], relatio
11
11
  email?: string;
12
12
  avatar?: string;
13
13
  };
14
- threadOf?: string;
14
+ threadOf?: string | number;
15
15
  relation?: `${string}::${string}.${string}`;
16
16
  }>;
17
17
  export type NewCommentValidatorSchema = ExtractRightEither<ReturnType<typeof newCommentValidator>>;
@@ -110,6 +110,111 @@ export declare const findAllFlatValidator: (enabledCollections: string[], relati
110
110
  } | {
111
111
  $notNull?: boolean;
112
112
  };
113
+ blocked?: string | number | {
114
+ $eq?: string;
115
+ } | {
116
+ $eqi?: string;
117
+ } | {
118
+ $ne?: string;
119
+ } | {
120
+ $nei?: string;
121
+ } | {
122
+ $gt?: string;
123
+ } | {
124
+ $gte?: string;
125
+ } | {
126
+ $lt?: string;
127
+ } | {
128
+ $lte?: string;
129
+ } | {
130
+ $startsWith?: string;
131
+ } | {
132
+ $startsWithi?: string;
133
+ } | {
134
+ $endsWith?: string;
135
+ } | {
136
+ $endsWithi?: string;
137
+ } | {
138
+ $contains?: string;
139
+ } | {
140
+ $containsi?: string;
141
+ } | {
142
+ $notContains?: string;
143
+ } | {
144
+ $notContainsi?: string;
145
+ } | {
146
+ $notNull?: boolean;
147
+ };
148
+ blockedThread?: string | number | {
149
+ $eq?: string;
150
+ } | {
151
+ $eqi?: string;
152
+ } | {
153
+ $ne?: string;
154
+ } | {
155
+ $nei?: string;
156
+ } | {
157
+ $gt?: string;
158
+ } | {
159
+ $gte?: string;
160
+ } | {
161
+ $lt?: string;
162
+ } | {
163
+ $lte?: string;
164
+ } | {
165
+ $startsWith?: string;
166
+ } | {
167
+ $startsWithi?: string;
168
+ } | {
169
+ $endsWith?: string;
170
+ } | {
171
+ $endsWithi?: string;
172
+ } | {
173
+ $contains?: string;
174
+ } | {
175
+ $containsi?: string;
176
+ } | {
177
+ $notContains?: string;
178
+ } | {
179
+ $notContainsi?: string;
180
+ } | {
181
+ $notNull?: boolean;
182
+ };
183
+ removed?: string | number | {
184
+ $eq?: string;
185
+ } | {
186
+ $eqi?: string;
187
+ } | {
188
+ $ne?: string;
189
+ } | {
190
+ $nei?: string;
191
+ } | {
192
+ $gt?: string;
193
+ } | {
194
+ $gte?: string;
195
+ } | {
196
+ $lt?: string;
197
+ } | {
198
+ $lte?: string;
199
+ } | {
200
+ $startsWith?: string;
201
+ } | {
202
+ $startsWithi?: string;
203
+ } | {
204
+ $endsWith?: string;
205
+ } | {
206
+ $endsWithi?: string;
207
+ } | {
208
+ $contains?: string;
209
+ } | {
210
+ $containsi?: string;
211
+ } | {
212
+ $notContains?: string;
213
+ } | {
214
+ $notContainsi?: string;
215
+ } | {
216
+ $notNull?: boolean;
217
+ };
113
218
  createdAt?: string | number | {
114
219
  $eq?: string;
115
220
  } | {
@@ -180,6 +285,41 @@ export declare const findAllFlatValidator: (enabledCollections: string[], relati
180
285
  } | {
181
286
  $notNull?: boolean;
182
287
  };
288
+ authorId?: string | number | {
289
+ $eq?: string;
290
+ } | {
291
+ $eqi?: string;
292
+ } | {
293
+ $ne?: string;
294
+ } | {
295
+ $nei?: string;
296
+ } | {
297
+ $gt?: string;
298
+ } | {
299
+ $gte?: string;
300
+ } | {
301
+ $lt?: string;
302
+ } | {
303
+ $lte?: string;
304
+ } | {
305
+ $startsWith?: string;
306
+ } | {
307
+ $startsWithi?: string;
308
+ } | {
309
+ $endsWith?: string;
310
+ } | {
311
+ $endsWithi?: string;
312
+ } | {
313
+ $contains?: string;
314
+ } | {
315
+ $containsi?: string;
316
+ } | {
317
+ $notContains?: string;
318
+ } | {
319
+ $notContainsi?: string;
320
+ } | {
321
+ $notNull?: boolean;
322
+ };
183
323
  authorName?: string | number | {
184
324
  $eq?: string;
185
325
  } | {
@@ -215,6 +355,41 @@ export declare const findAllFlatValidator: (enabledCollections: string[], relati
215
355
  } | {
216
356
  $notNull?: boolean;
217
357
  };
358
+ authorEmail?: string | number | {
359
+ $eq?: string;
360
+ } | {
361
+ $eqi?: string;
362
+ } | {
363
+ $ne?: string;
364
+ } | {
365
+ $nei?: string;
366
+ } | {
367
+ $gt?: string;
368
+ } | {
369
+ $gte?: string;
370
+ } | {
371
+ $lt?: string;
372
+ } | {
373
+ $lte?: string;
374
+ } | {
375
+ $startsWith?: string;
376
+ } | {
377
+ $startsWithi?: string;
378
+ } | {
379
+ $endsWith?: string;
380
+ } | {
381
+ $endsWithi?: string;
382
+ } | {
383
+ $contains?: string;
384
+ } | {
385
+ $containsi?: string;
386
+ } | {
387
+ $notContains?: string;
388
+ } | {
389
+ $notContainsi?: string;
390
+ } | {
391
+ $notNull?: boolean;
392
+ };
218
393
  };
219
394
  limit?: number;
220
395
  fields?: string[];
@@ -301,6 +476,111 @@ export declare const findAllInHierarchyValidator: (enabledCollections: string[],
301
476
  } | {
302
477
  $notNull?: boolean;
303
478
  };
479
+ blocked?: string | number | {
480
+ $eq?: string;
481
+ } | {
482
+ $eqi?: string;
483
+ } | {
484
+ $ne?: string;
485
+ } | {
486
+ $nei?: string;
487
+ } | {
488
+ $gt?: string;
489
+ } | {
490
+ $gte?: string;
491
+ } | {
492
+ $lt?: string;
493
+ } | {
494
+ $lte?: string;
495
+ } | {
496
+ $startsWith?: string;
497
+ } | {
498
+ $startsWithi?: string;
499
+ } | {
500
+ $endsWith?: string;
501
+ } | {
502
+ $endsWithi?: string;
503
+ } | {
504
+ $contains?: string;
505
+ } | {
506
+ $containsi?: string;
507
+ } | {
508
+ $notContains?: string;
509
+ } | {
510
+ $notContainsi?: string;
511
+ } | {
512
+ $notNull?: boolean;
513
+ };
514
+ blockedThread?: string | number | {
515
+ $eq?: string;
516
+ } | {
517
+ $eqi?: string;
518
+ } | {
519
+ $ne?: string;
520
+ } | {
521
+ $nei?: string;
522
+ } | {
523
+ $gt?: string;
524
+ } | {
525
+ $gte?: string;
526
+ } | {
527
+ $lt?: string;
528
+ } | {
529
+ $lte?: string;
530
+ } | {
531
+ $startsWith?: string;
532
+ } | {
533
+ $startsWithi?: string;
534
+ } | {
535
+ $endsWith?: string;
536
+ } | {
537
+ $endsWithi?: string;
538
+ } | {
539
+ $contains?: string;
540
+ } | {
541
+ $containsi?: string;
542
+ } | {
543
+ $notContains?: string;
544
+ } | {
545
+ $notContainsi?: string;
546
+ } | {
547
+ $notNull?: boolean;
548
+ };
549
+ removed?: 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
+ };
304
584
  createdAt?: string | number | {
305
585
  $eq?: string;
306
586
  } | {
@@ -371,6 +651,41 @@ export declare const findAllInHierarchyValidator: (enabledCollections: string[],
371
651
  } | {
372
652
  $notNull?: boolean;
373
653
  };
654
+ authorId?: 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
+ };
374
689
  authorName?: string | number | {
375
690
  $eq?: string;
376
691
  } | {
@@ -406,6 +721,41 @@ export declare const findAllInHierarchyValidator: (enabledCollections: string[],
406
721
  } | {
407
722
  $notNull?: boolean;
408
723
  };
724
+ authorEmail?: string | number | {
725
+ $eq?: string;
726
+ } | {
727
+ $eqi?: string;
728
+ } | {
729
+ $ne?: string;
730
+ } | {
731
+ $nei?: string;
732
+ } | {
733
+ $gt?: string;
734
+ } | {
735
+ $gte?: string;
736
+ } | {
737
+ $lt?: string;
738
+ } | {
739
+ $lte?: string;
740
+ } | {
741
+ $startsWith?: string;
742
+ } | {
743
+ $startsWithi?: string;
744
+ } | {
745
+ $endsWith?: string;
746
+ } | {
747
+ $endsWithi?: string;
748
+ } | {
749
+ $contains?: string;
750
+ } | {
751
+ $containsi?: string;
752
+ } | {
753
+ $notContains?: string;
754
+ } | {
755
+ $notContainsi?: string;
756
+ } | {
757
+ $notNull?: boolean;
758
+ };
409
759
  };
410
760
  limit?: number;
411
761
  fields?: string[];
@@ -500,6 +850,111 @@ export declare const findAllPerAuthorValidator: (params: object, payload: object
500
850
  } | {
501
851
  $notNull?: boolean;
502
852
  };
853
+ blocked?: string | number | {
854
+ $eq?: string;
855
+ } | {
856
+ $eqi?: string;
857
+ } | {
858
+ $ne?: string;
859
+ } | {
860
+ $nei?: string;
861
+ } | {
862
+ $gt?: string;
863
+ } | {
864
+ $gte?: string;
865
+ } | {
866
+ $lt?: string;
867
+ } | {
868
+ $lte?: string;
869
+ } | {
870
+ $startsWith?: string;
871
+ } | {
872
+ $startsWithi?: string;
873
+ } | {
874
+ $endsWith?: string;
875
+ } | {
876
+ $endsWithi?: string;
877
+ } | {
878
+ $contains?: string;
879
+ } | {
880
+ $containsi?: string;
881
+ } | {
882
+ $notContains?: string;
883
+ } | {
884
+ $notContainsi?: string;
885
+ } | {
886
+ $notNull?: boolean;
887
+ };
888
+ blockedThread?: string | number | {
889
+ $eq?: string;
890
+ } | {
891
+ $eqi?: string;
892
+ } | {
893
+ $ne?: string;
894
+ } | {
895
+ $nei?: string;
896
+ } | {
897
+ $gt?: string;
898
+ } | {
899
+ $gte?: string;
900
+ } | {
901
+ $lt?: string;
902
+ } | {
903
+ $lte?: string;
904
+ } | {
905
+ $startsWith?: string;
906
+ } | {
907
+ $startsWithi?: string;
908
+ } | {
909
+ $endsWith?: string;
910
+ } | {
911
+ $endsWithi?: string;
912
+ } | {
913
+ $contains?: string;
914
+ } | {
915
+ $containsi?: string;
916
+ } | {
917
+ $notContains?: string;
918
+ } | {
919
+ $notContainsi?: string;
920
+ } | {
921
+ $notNull?: boolean;
922
+ };
923
+ removed?: string | number | {
924
+ $eq?: string;
925
+ } | {
926
+ $eqi?: string;
927
+ } | {
928
+ $ne?: string;
929
+ } | {
930
+ $nei?: string;
931
+ } | {
932
+ $gt?: string;
933
+ } | {
934
+ $gte?: string;
935
+ } | {
936
+ $lt?: string;
937
+ } | {
938
+ $lte?: string;
939
+ } | {
940
+ $startsWith?: string;
941
+ } | {
942
+ $startsWithi?: string;
943
+ } | {
944
+ $endsWith?: string;
945
+ } | {
946
+ $endsWithi?: string;
947
+ } | {
948
+ $contains?: string;
949
+ } | {
950
+ $containsi?: string;
951
+ } | {
952
+ $notContains?: string;
953
+ } | {
954
+ $notContainsi?: string;
955
+ } | {
956
+ $notNull?: boolean;
957
+ };
503
958
  createdAt?: string | number | {
504
959
  $eq?: string;
505
960
  } | {
@@ -570,6 +1025,41 @@ export declare const findAllPerAuthorValidator: (params: object, payload: object
570
1025
  } | {
571
1026
  $notNull?: boolean;
572
1027
  };
1028
+ authorId?: string | number | {
1029
+ $eq?: string;
1030
+ } | {
1031
+ $eqi?: string;
1032
+ } | {
1033
+ $ne?: string;
1034
+ } | {
1035
+ $nei?: string;
1036
+ } | {
1037
+ $gt?: string;
1038
+ } | {
1039
+ $gte?: string;
1040
+ } | {
1041
+ $lt?: string;
1042
+ } | {
1043
+ $lte?: string;
1044
+ } | {
1045
+ $startsWith?: string;
1046
+ } | {
1047
+ $startsWithi?: string;
1048
+ } | {
1049
+ $endsWith?: string;
1050
+ } | {
1051
+ $endsWithi?: string;
1052
+ } | {
1053
+ $contains?: string;
1054
+ } | {
1055
+ $containsi?: string;
1056
+ } | {
1057
+ $notContains?: string;
1058
+ } | {
1059
+ $notContainsi?: string;
1060
+ } | {
1061
+ $notNull?: boolean;
1062
+ };
573
1063
  authorName?: string | number | {
574
1064
  $eq?: string;
575
1065
  } | {
@@ -605,6 +1095,41 @@ export declare const findAllPerAuthorValidator: (params: object, payload: object
605
1095
  } | {
606
1096
  $notNull?: boolean;
607
1097
  };
1098
+ authorEmail?: string | number | {
1099
+ $eq?: string;
1100
+ } | {
1101
+ $eqi?: string;
1102
+ } | {
1103
+ $ne?: string;
1104
+ } | {
1105
+ $nei?: string;
1106
+ } | {
1107
+ $gt?: string;
1108
+ } | {
1109
+ $gte?: string;
1110
+ } | {
1111
+ $lt?: string;
1112
+ } | {
1113
+ $lte?: string;
1114
+ } | {
1115
+ $startsWith?: string;
1116
+ } | {
1117
+ $startsWithi?: string;
1118
+ } | {
1119
+ $endsWith?: string;
1120
+ } | {
1121
+ $endsWithi?: string;
1122
+ } | {
1123
+ $contains?: string;
1124
+ } | {
1125
+ $containsi?: string;
1126
+ } | {
1127
+ $notContains?: string;
1128
+ } | {
1129
+ $notContainsi?: string;
1130
+ } | {
1131
+ $notNull?: boolean;
1132
+ };
608
1133
  };
609
1134
  limit?: number;
610
1135
  fields?: string[];
@@ -623,6 +1148,6 @@ export type ReportAbuseValidatorSchema = ExtractRightEither<ReturnType<typeof re
623
1148
  export declare const removeCommentValidator: (enabledCollections: string[], payload: object) => import("../../../utils/Either").Left<import("../../../utils/PluginError").default> | import("../../../utils/Either").Right<{
624
1149
  authorId?: string | number;
625
1150
  relation?: `${string}::${string}.${string}`;
626
- commentId?: number;
1151
+ commentId?: string | number;
627
1152
  }>;
628
1153
  export type RemoveCommentValidatorSchema = ExtractRightEither<ReturnType<typeof removeCommentValidator>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "strapi-plugin-comments",
3
- "version": "3.0.3",
3
+ "version": "3.0.4",
4
4
  "description": "Strapi - Comments plugin",
5
5
  "strapi": {
6
6
  "name": "comments",