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.
- package/dist/_chunks/{index-BUVqbcoe.js → index-BAXZ3d__.js} +2 -2
- package/dist/_chunks/{index-BMbvyf7_.js → index-BTWJ00Fw.js} +2 -2
- package/dist/_chunks/{index-DkFRVIkq.js → index-CJVLjLWX.js} +103 -119
- package/dist/_chunks/{index-CZsqxJsf.mjs → index-CK1XCSqz.mjs} +2 -2
- package/dist/_chunks/{index-BAKREpmX.mjs → index-DUWJDJLu.mjs} +2 -2
- package/dist/_chunks/{index-D_Yjpru0.js → index-DidQUJKN.js} +5 -5
- package/dist/_chunks/{index-CaFBMp1z.mjs → index-PCqyAKE7.mjs} +8 -3
- package/dist/_chunks/{index-BIcU6CkW.mjs → index-yhf78avJ.mjs} +5 -5
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +5 -5
- package/dist/admin/src/api/schemas.d.ts +63 -63
- package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
- package/dist/admin/src/hooks/useAPI.d.ts +5 -5
- package/dist/admin/src/hooks/useCommentsAll.d.ts +1 -1
- package/dist/admin/src/hooks/useReports.d.ts +1 -1
- package/dist/server/index.js +60 -20
- package/dist/server/index.mjs +60 -20
- package/dist/server/src/controllers/index.d.ts +526 -1
- package/dist/server/src/index.d.ts +2284 -181
- package/dist/server/src/repositories/comment.repository.d.ts +2 -0
- package/dist/server/src/services/admin/admin.service.d.ts +527 -1
- package/dist/server/src/services/admin/utils.d.ts +9 -1
- package/dist/server/src/services/client.service.d.ts +527 -1
- package/dist/server/src/services/common.service.d.ts +2 -1
- package/dist/server/src/services/index.d.ts +1803 -225
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +527 -2
- package/package.json +1 -1
|
@@ -134,7 +134,7 @@ declare const relatedSchema: z.ZodIntersection<z.ZodObject<{
|
|
|
134
134
|
}>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
135
135
|
declare const authorSchema: z.ZodObject<{
|
|
136
136
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
137
|
-
name: z.ZodOptional<z.ZodString
|
|
137
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
138
138
|
email: z.ZodString;
|
|
139
139
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
140
140
|
url: z.ZodString;
|
|
@@ -179,7 +179,7 @@ declare const authorSchema: z.ZodObject<{
|
|
|
179
179
|
}, "strip", z.ZodTypeAny, {
|
|
180
180
|
email: string;
|
|
181
181
|
id: string | number;
|
|
182
|
-
name?: string | undefined;
|
|
182
|
+
name?: string | null | undefined;
|
|
183
183
|
avatar?: string | {
|
|
184
184
|
url: string;
|
|
185
185
|
} | {
|
|
@@ -193,7 +193,7 @@ declare const authorSchema: z.ZodObject<{
|
|
|
193
193
|
}, {
|
|
194
194
|
email: string;
|
|
195
195
|
id: string | number;
|
|
196
|
-
name?: string | undefined;
|
|
196
|
+
name?: string | null | undefined;
|
|
197
197
|
avatar?: string | {
|
|
198
198
|
url: string;
|
|
199
199
|
} | {
|
|
@@ -263,7 +263,7 @@ declare const baseCommentSchema: z.ZodObject<{
|
|
|
263
263
|
}>, "many">>>;
|
|
264
264
|
author: z.ZodObject<{
|
|
265
265
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
266
|
-
name: z.ZodOptional<z.ZodString
|
|
266
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
267
267
|
email: z.ZodString;
|
|
268
268
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
269
269
|
url: z.ZodString;
|
|
@@ -308,7 +308,7 @@ declare const baseCommentSchema: z.ZodObject<{
|
|
|
308
308
|
}, "strip", z.ZodTypeAny, {
|
|
309
309
|
email: string;
|
|
310
310
|
id: string | number;
|
|
311
|
-
name?: string | undefined;
|
|
311
|
+
name?: string | null | undefined;
|
|
312
312
|
avatar?: string | {
|
|
313
313
|
url: string;
|
|
314
314
|
} | {
|
|
@@ -322,7 +322,7 @@ declare const baseCommentSchema: z.ZodObject<{
|
|
|
322
322
|
}, {
|
|
323
323
|
email: string;
|
|
324
324
|
id: string | number;
|
|
325
|
-
name?: string | undefined;
|
|
325
|
+
name?: string | null | undefined;
|
|
326
326
|
avatar?: string | {
|
|
327
327
|
url: string;
|
|
328
328
|
} | {
|
|
@@ -350,7 +350,7 @@ declare const baseCommentSchema: z.ZodObject<{
|
|
|
350
350
|
author: {
|
|
351
351
|
email: string;
|
|
352
352
|
id: string | number;
|
|
353
|
-
name?: string | undefined;
|
|
353
|
+
name?: string | null | undefined;
|
|
354
354
|
avatar?: string | {
|
|
355
355
|
url: string;
|
|
356
356
|
} | {
|
|
@@ -386,7 +386,7 @@ declare const baseCommentSchema: z.ZodObject<{
|
|
|
386
386
|
author: {
|
|
387
387
|
email: string;
|
|
388
388
|
id: string | number;
|
|
389
|
-
name?: string | undefined;
|
|
389
|
+
name?: string | null | undefined;
|
|
390
390
|
avatar?: string | {
|
|
391
391
|
url: string;
|
|
392
392
|
} | {
|
|
@@ -512,7 +512,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
512
512
|
}>, "many">>>;
|
|
513
513
|
author: z.ZodObject<{
|
|
514
514
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
515
|
-
name: z.ZodOptional<z.ZodString
|
|
515
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
516
516
|
email: z.ZodString;
|
|
517
517
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
518
518
|
url: z.ZodString;
|
|
@@ -557,7 +557,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
557
557
|
}, "strip", z.ZodTypeAny, {
|
|
558
558
|
email: string;
|
|
559
559
|
id: string | number;
|
|
560
|
-
name?: string | undefined;
|
|
560
|
+
name?: string | null | undefined;
|
|
561
561
|
avatar?: string | {
|
|
562
562
|
url: string;
|
|
563
563
|
} | {
|
|
@@ -571,7 +571,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
571
571
|
}, {
|
|
572
572
|
email: string;
|
|
573
573
|
id: string | number;
|
|
574
|
-
name?: string | undefined;
|
|
574
|
+
name?: string | null | undefined;
|
|
575
575
|
avatar?: string | {
|
|
576
576
|
url: string;
|
|
577
577
|
} | {
|
|
@@ -622,7 +622,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
622
622
|
}>, "many">>>;
|
|
623
623
|
author: z.ZodObject<{
|
|
624
624
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
625
|
-
name: z.ZodOptional<z.ZodString
|
|
625
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
626
626
|
email: z.ZodString;
|
|
627
627
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
628
628
|
url: z.ZodString;
|
|
@@ -667,7 +667,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
667
667
|
}, "strip", z.ZodTypeAny, {
|
|
668
668
|
email: string;
|
|
669
669
|
id: string | number;
|
|
670
|
-
name?: string | undefined;
|
|
670
|
+
name?: string | null | undefined;
|
|
671
671
|
avatar?: string | {
|
|
672
672
|
url: string;
|
|
673
673
|
} | {
|
|
@@ -681,7 +681,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
681
681
|
}, {
|
|
682
682
|
email: string;
|
|
683
683
|
id: string | number;
|
|
684
|
-
name?: string | undefined;
|
|
684
|
+
name?: string | null | undefined;
|
|
685
685
|
avatar?: string | {
|
|
686
686
|
url: string;
|
|
687
687
|
} | {
|
|
@@ -757,7 +757,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
757
757
|
}>, "many">>>;
|
|
758
758
|
author: z.ZodObject<{
|
|
759
759
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
760
|
-
name: z.ZodOptional<z.ZodString
|
|
760
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
761
761
|
email: z.ZodString;
|
|
762
762
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
763
763
|
url: z.ZodString;
|
|
@@ -802,7 +802,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
802
802
|
}, "strip", z.ZodTypeAny, {
|
|
803
803
|
email: string;
|
|
804
804
|
id: string | number;
|
|
805
|
-
name?: string | undefined;
|
|
805
|
+
name?: string | null | undefined;
|
|
806
806
|
avatar?: string | {
|
|
807
807
|
url: string;
|
|
808
808
|
} | {
|
|
@@ -816,7 +816,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
816
816
|
}, {
|
|
817
817
|
email: string;
|
|
818
818
|
id: string | number;
|
|
819
|
-
name?: string | undefined;
|
|
819
|
+
name?: string | null | undefined;
|
|
820
820
|
avatar?: string | {
|
|
821
821
|
url: string;
|
|
822
822
|
} | {
|
|
@@ -848,7 +848,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
848
848
|
author: {
|
|
849
849
|
email: string;
|
|
850
850
|
id: string | number;
|
|
851
|
-
name?: string | undefined;
|
|
851
|
+
name?: string | null | undefined;
|
|
852
852
|
avatar?: string | {
|
|
853
853
|
url: string;
|
|
854
854
|
} | {
|
|
@@ -887,7 +887,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
887
887
|
author: {
|
|
888
888
|
email: string;
|
|
889
889
|
id: string | number;
|
|
890
|
-
name?: string | undefined;
|
|
890
|
+
name?: string | null | undefined;
|
|
891
891
|
avatar?: string | {
|
|
892
892
|
url: string;
|
|
893
893
|
} | {
|
|
@@ -930,7 +930,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
930
930
|
author: {
|
|
931
931
|
email: string;
|
|
932
932
|
id: string | number;
|
|
933
|
-
name?: string | undefined;
|
|
933
|
+
name?: string | null | undefined;
|
|
934
934
|
avatar?: string | {
|
|
935
935
|
url: string;
|
|
936
936
|
} | {
|
|
@@ -967,7 +967,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
967
967
|
author: {
|
|
968
968
|
email: string;
|
|
969
969
|
id: string | number;
|
|
970
|
-
name?: string | undefined;
|
|
970
|
+
name?: string | null | undefined;
|
|
971
971
|
avatar?: string | {
|
|
972
972
|
url: string;
|
|
973
973
|
} | {
|
|
@@ -1008,7 +1008,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1008
1008
|
author: {
|
|
1009
1009
|
email: string;
|
|
1010
1010
|
id: string | number;
|
|
1011
|
-
name?: string | undefined;
|
|
1011
|
+
name?: string | null | undefined;
|
|
1012
1012
|
avatar?: string | {
|
|
1013
1013
|
url: string;
|
|
1014
1014
|
} | {
|
|
@@ -1045,7 +1045,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1045
1045
|
author: {
|
|
1046
1046
|
email: string;
|
|
1047
1047
|
id: string | number;
|
|
1048
|
-
name?: string | undefined;
|
|
1048
|
+
name?: string | null | undefined;
|
|
1049
1049
|
avatar?: string | {
|
|
1050
1050
|
url: string;
|
|
1051
1051
|
} | {
|
|
@@ -1086,7 +1086,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1086
1086
|
author: {
|
|
1087
1087
|
email: string;
|
|
1088
1088
|
id: string | number;
|
|
1089
|
-
name?: string | undefined;
|
|
1089
|
+
name?: string | null | undefined;
|
|
1090
1090
|
avatar?: string | {
|
|
1091
1091
|
url: string;
|
|
1092
1092
|
} | {
|
|
@@ -1124,7 +1124,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1124
1124
|
author: {
|
|
1125
1125
|
email: string;
|
|
1126
1126
|
id: string | number;
|
|
1127
|
-
name?: string | undefined;
|
|
1127
|
+
name?: string | null | undefined;
|
|
1128
1128
|
avatar?: string | {
|
|
1129
1129
|
url: string;
|
|
1130
1130
|
} | {
|
|
@@ -1161,7 +1161,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1161
1161
|
author: {
|
|
1162
1162
|
email: string;
|
|
1163
1163
|
id: string | number;
|
|
1164
|
-
name?: string | undefined;
|
|
1164
|
+
name?: string | null | undefined;
|
|
1165
1165
|
avatar?: string | {
|
|
1166
1166
|
url: string;
|
|
1167
1167
|
} | {
|
|
@@ -1202,7 +1202,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1202
1202
|
author: {
|
|
1203
1203
|
email: string;
|
|
1204
1204
|
id: string | number;
|
|
1205
|
-
name?: string | undefined;
|
|
1205
|
+
name?: string | null | undefined;
|
|
1206
1206
|
avatar?: string | {
|
|
1207
1207
|
url: string;
|
|
1208
1208
|
} | {
|
|
@@ -1240,7 +1240,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1240
1240
|
author: {
|
|
1241
1241
|
email: string;
|
|
1242
1242
|
id: string | number;
|
|
1243
|
-
name?: string | undefined;
|
|
1243
|
+
name?: string | null | undefined;
|
|
1244
1244
|
avatar?: string | {
|
|
1245
1245
|
url: string;
|
|
1246
1246
|
} | {
|
|
@@ -1277,7 +1277,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1277
1277
|
author: {
|
|
1278
1278
|
email: string;
|
|
1279
1279
|
id: string | number;
|
|
1280
|
-
name?: string | undefined;
|
|
1280
|
+
name?: string | null | undefined;
|
|
1281
1281
|
avatar?: string | {
|
|
1282
1282
|
url: string;
|
|
1283
1283
|
} | {
|
|
@@ -1340,7 +1340,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1340
1340
|
}>, "many">>>;
|
|
1341
1341
|
author: z.ZodObject<{
|
|
1342
1342
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1343
|
-
name: z.ZodOptional<z.ZodString
|
|
1343
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1344
1344
|
email: z.ZodString;
|
|
1345
1345
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
1346
1346
|
url: z.ZodString;
|
|
@@ -1385,7 +1385,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1385
1385
|
}, "strip", z.ZodTypeAny, {
|
|
1386
1386
|
email: string;
|
|
1387
1387
|
id: string | number;
|
|
1388
|
-
name?: string | undefined;
|
|
1388
|
+
name?: string | null | undefined;
|
|
1389
1389
|
avatar?: string | {
|
|
1390
1390
|
url: string;
|
|
1391
1391
|
} | {
|
|
@@ -1399,7 +1399,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1399
1399
|
}, {
|
|
1400
1400
|
email: string;
|
|
1401
1401
|
id: string | number;
|
|
1402
|
-
name?: string | undefined;
|
|
1402
|
+
name?: string | null | undefined;
|
|
1403
1403
|
avatar?: string | {
|
|
1404
1404
|
url: string;
|
|
1405
1405
|
} | {
|
|
@@ -1475,7 +1475,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1475
1475
|
}>, "many">>>;
|
|
1476
1476
|
author: z.ZodObject<{
|
|
1477
1477
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
1478
|
-
name: z.ZodOptional<z.ZodString
|
|
1478
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1479
1479
|
email: z.ZodString;
|
|
1480
1480
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
1481
1481
|
url: z.ZodString;
|
|
@@ -1520,7 +1520,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1520
1520
|
}, "strip", z.ZodTypeAny, {
|
|
1521
1521
|
email: string;
|
|
1522
1522
|
id: string | number;
|
|
1523
|
-
name?: string | undefined;
|
|
1523
|
+
name?: string | null | undefined;
|
|
1524
1524
|
avatar?: string | {
|
|
1525
1525
|
url: string;
|
|
1526
1526
|
} | {
|
|
@@ -1534,7 +1534,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1534
1534
|
}, {
|
|
1535
1535
|
email: string;
|
|
1536
1536
|
id: string | number;
|
|
1537
|
-
name?: string | undefined;
|
|
1537
|
+
name?: string | null | undefined;
|
|
1538
1538
|
avatar?: string | {
|
|
1539
1539
|
url: string;
|
|
1540
1540
|
} | {
|
|
@@ -1566,7 +1566,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1566
1566
|
author: {
|
|
1567
1567
|
email: string;
|
|
1568
1568
|
id: string | number;
|
|
1569
|
-
name?: string | undefined;
|
|
1569
|
+
name?: string | null | undefined;
|
|
1570
1570
|
avatar?: string | {
|
|
1571
1571
|
url: string;
|
|
1572
1572
|
} | {
|
|
@@ -1605,7 +1605,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1605
1605
|
author: {
|
|
1606
1606
|
email: string;
|
|
1607
1607
|
id: string | number;
|
|
1608
|
-
name?: string | undefined;
|
|
1608
|
+
name?: string | null | undefined;
|
|
1609
1609
|
avatar?: string | {
|
|
1610
1610
|
url: string;
|
|
1611
1611
|
} | {
|
|
@@ -1646,7 +1646,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1646
1646
|
author: {
|
|
1647
1647
|
email: string;
|
|
1648
1648
|
id: string | number;
|
|
1649
|
-
name?: string | undefined;
|
|
1649
|
+
name?: string | null | undefined;
|
|
1650
1650
|
avatar?: string | {
|
|
1651
1651
|
url: string;
|
|
1652
1652
|
} | {
|
|
@@ -1683,7 +1683,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1683
1683
|
author: {
|
|
1684
1684
|
email: string;
|
|
1685
1685
|
id: string | number;
|
|
1686
|
-
name?: string | undefined;
|
|
1686
|
+
name?: string | null | undefined;
|
|
1687
1687
|
avatar?: string | {
|
|
1688
1688
|
url: string;
|
|
1689
1689
|
} | {
|
|
@@ -1730,7 +1730,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1730
1730
|
author: {
|
|
1731
1731
|
email: string;
|
|
1732
1732
|
id: string | number;
|
|
1733
|
-
name?: string | undefined;
|
|
1733
|
+
name?: string | null | undefined;
|
|
1734
1734
|
avatar?: string | {
|
|
1735
1735
|
url: string;
|
|
1736
1736
|
} | {
|
|
@@ -1768,7 +1768,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1768
1768
|
author: {
|
|
1769
1769
|
email: string;
|
|
1770
1770
|
id: string | number;
|
|
1771
|
-
name?: string | undefined;
|
|
1771
|
+
name?: string | null | undefined;
|
|
1772
1772
|
avatar?: string | {
|
|
1773
1773
|
url: string;
|
|
1774
1774
|
} | {
|
|
@@ -1805,7 +1805,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1805
1805
|
author: {
|
|
1806
1806
|
email: string;
|
|
1807
1807
|
id: string | number;
|
|
1808
|
-
name?: string | undefined;
|
|
1808
|
+
name?: string | null | undefined;
|
|
1809
1809
|
avatar?: string | {
|
|
1810
1810
|
url: string;
|
|
1811
1811
|
} | {
|
|
@@ -1848,7 +1848,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1848
1848
|
author: {
|
|
1849
1849
|
email: string;
|
|
1850
1850
|
id: string | number;
|
|
1851
|
-
name?: string | undefined;
|
|
1851
|
+
name?: string | null | undefined;
|
|
1852
1852
|
avatar?: string | {
|
|
1853
1853
|
url: string;
|
|
1854
1854
|
} | {
|
|
@@ -1895,7 +1895,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1895
1895
|
author: {
|
|
1896
1896
|
email: string;
|
|
1897
1897
|
id: string | number;
|
|
1898
|
-
name?: string | undefined;
|
|
1898
|
+
name?: string | null | undefined;
|
|
1899
1899
|
avatar?: string | {
|
|
1900
1900
|
url: string;
|
|
1901
1901
|
} | {
|
|
@@ -1933,7 +1933,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1933
1933
|
author: {
|
|
1934
1934
|
email: string;
|
|
1935
1935
|
id: string | number;
|
|
1936
|
-
name?: string | undefined;
|
|
1936
|
+
name?: string | null | undefined;
|
|
1937
1937
|
avatar?: string | {
|
|
1938
1938
|
url: string;
|
|
1939
1939
|
} | {
|
|
@@ -1970,7 +1970,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
1970
1970
|
author: {
|
|
1971
1971
|
email: string;
|
|
1972
1972
|
id: string | number;
|
|
1973
|
-
name?: string | undefined;
|
|
1973
|
+
name?: string | null | undefined;
|
|
1974
1974
|
avatar?: string | {
|
|
1975
1975
|
url: string;
|
|
1976
1976
|
} | {
|
|
@@ -2013,7 +2013,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
|
|
|
2013
2013
|
author: {
|
|
2014
2014
|
email: string;
|
|
2015
2015
|
id: string | number;
|
|
2016
|
-
name?: string | undefined;
|
|
2016
|
+
name?: string | null | undefined;
|
|
2017
2017
|
avatar?: string | {
|
|
2018
2018
|
url: string;
|
|
2019
2019
|
} | {
|
|
@@ -2314,7 +2314,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2314
2314
|
}>, "many">>>;
|
|
2315
2315
|
author: z.ZodObject<{
|
|
2316
2316
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2317
|
-
name: z.ZodOptional<z.ZodString
|
|
2317
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2318
2318
|
email: z.ZodString;
|
|
2319
2319
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
2320
2320
|
url: z.ZodString;
|
|
@@ -2359,7 +2359,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2359
2359
|
}, "strip", z.ZodTypeAny, {
|
|
2360
2360
|
email: string;
|
|
2361
2361
|
id: string | number;
|
|
2362
|
-
name?: string | undefined;
|
|
2362
|
+
name?: string | null | undefined;
|
|
2363
2363
|
avatar?: string | {
|
|
2364
2364
|
url: string;
|
|
2365
2365
|
} | {
|
|
@@ -2373,7 +2373,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2373
2373
|
}, {
|
|
2374
2374
|
email: string;
|
|
2375
2375
|
id: string | number;
|
|
2376
|
-
name?: string | undefined;
|
|
2376
|
+
name?: string | null | undefined;
|
|
2377
2377
|
avatar?: string | {
|
|
2378
2378
|
url: string;
|
|
2379
2379
|
} | {
|
|
@@ -2401,7 +2401,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2401
2401
|
author: {
|
|
2402
2402
|
email: string;
|
|
2403
2403
|
id: string | number;
|
|
2404
|
-
name?: string | undefined;
|
|
2404
|
+
name?: string | null | undefined;
|
|
2405
2405
|
avatar?: string | {
|
|
2406
2406
|
url: string;
|
|
2407
2407
|
} | {
|
|
@@ -2437,7 +2437,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2437
2437
|
author: {
|
|
2438
2438
|
email: string;
|
|
2439
2439
|
id: string | number;
|
|
2440
|
-
name?: string | undefined;
|
|
2440
|
+
name?: string | null | undefined;
|
|
2441
2441
|
avatar?: string | {
|
|
2442
2442
|
url: string;
|
|
2443
2443
|
} | {
|
|
@@ -2481,7 +2481,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2481
2481
|
author: {
|
|
2482
2482
|
email: string;
|
|
2483
2483
|
id: string | number;
|
|
2484
|
-
name?: string | undefined;
|
|
2484
|
+
name?: string | null | undefined;
|
|
2485
2485
|
avatar?: string | {
|
|
2486
2486
|
url: string;
|
|
2487
2487
|
} | {
|
|
@@ -2528,7 +2528,7 @@ export declare const reportSchema: z.ZodObject<{
|
|
|
2528
2528
|
author: {
|
|
2529
2529
|
email: string;
|
|
2530
2530
|
id: string | number;
|
|
2531
|
-
name?: string | undefined;
|
|
2531
|
+
name?: string | null | undefined;
|
|
2532
2532
|
avatar?: string | {
|
|
2533
2533
|
url: string;
|
|
2534
2534
|
} | {
|
|
@@ -2618,7 +2618,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2618
2618
|
}>, "many">>>;
|
|
2619
2619
|
author: z.ZodObject<{
|
|
2620
2620
|
id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
|
|
2621
|
-
name: z.ZodOptional<z.ZodString
|
|
2621
|
+
name: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2622
2622
|
email: z.ZodString;
|
|
2623
2623
|
avatar: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodObject<{
|
|
2624
2624
|
url: z.ZodString;
|
|
@@ -2663,7 +2663,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2663
2663
|
}, "strip", z.ZodTypeAny, {
|
|
2664
2664
|
email: string;
|
|
2665
2665
|
id: string | number;
|
|
2666
|
-
name?: string | undefined;
|
|
2666
|
+
name?: string | null | undefined;
|
|
2667
2667
|
avatar?: string | {
|
|
2668
2668
|
url: string;
|
|
2669
2669
|
} | {
|
|
@@ -2677,7 +2677,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2677
2677
|
}, {
|
|
2678
2678
|
email: string;
|
|
2679
2679
|
id: string | number;
|
|
2680
|
-
name?: string | undefined;
|
|
2680
|
+
name?: string | null | undefined;
|
|
2681
2681
|
avatar?: string | {
|
|
2682
2682
|
url: string;
|
|
2683
2683
|
} | {
|
|
@@ -2705,7 +2705,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2705
2705
|
author: {
|
|
2706
2706
|
email: string;
|
|
2707
2707
|
id: string | number;
|
|
2708
|
-
name?: string | undefined;
|
|
2708
|
+
name?: string | null | undefined;
|
|
2709
2709
|
avatar?: string | {
|
|
2710
2710
|
url: string;
|
|
2711
2711
|
} | {
|
|
@@ -2741,7 +2741,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2741
2741
|
author: {
|
|
2742
2742
|
email: string;
|
|
2743
2743
|
id: string | number;
|
|
2744
|
-
name?: string | undefined;
|
|
2744
|
+
name?: string | null | undefined;
|
|
2745
2745
|
avatar?: string | {
|
|
2746
2746
|
url: string;
|
|
2747
2747
|
} | {
|
|
@@ -2785,7 +2785,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2785
2785
|
author: {
|
|
2786
2786
|
email: string;
|
|
2787
2787
|
id: string | number;
|
|
2788
|
-
name?: string | undefined;
|
|
2788
|
+
name?: string | null | undefined;
|
|
2789
2789
|
avatar?: string | {
|
|
2790
2790
|
url: string;
|
|
2791
2791
|
} | {
|
|
@@ -2832,7 +2832,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2832
2832
|
author: {
|
|
2833
2833
|
email: string;
|
|
2834
2834
|
id: string | number;
|
|
2835
|
-
name?: string | undefined;
|
|
2835
|
+
name?: string | null | undefined;
|
|
2836
2836
|
avatar?: string | {
|
|
2837
2837
|
url: string;
|
|
2838
2838
|
} | {
|
|
@@ -2887,7 +2887,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2887
2887
|
author: {
|
|
2888
2888
|
email: string;
|
|
2889
2889
|
id: string | number;
|
|
2890
|
-
name?: string | undefined;
|
|
2890
|
+
name?: string | null | undefined;
|
|
2891
2891
|
avatar?: string | {
|
|
2892
2892
|
url: string;
|
|
2893
2893
|
} | {
|
|
@@ -2942,7 +2942,7 @@ export declare const reportsSchema: z.ZodObject<{
|
|
|
2942
2942
|
author: {
|
|
2943
2943
|
email: string;
|
|
2944
2944
|
id: string | number;
|
|
2945
|
-
name?: string | undefined;
|
|
2945
|
+
name?: string | null | undefined;
|
|
2946
2946
|
avatar?: string | {
|
|
2947
2947
|
url: string;
|
|
2948
2948
|
} | {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { Author } from '../../api/schemas';
|
|
3
3
|
type Props = Readonly<Pick<Author, 'avatar'> & {
|
|
4
|
-
readonly name?: string;
|
|
4
|
+
readonly name?: string | null;
|
|
5
5
|
readonly isAdminComment: boolean | null;
|
|
6
6
|
}>;
|
|
7
7
|
export declare const UserAvatar: FC<Props>;
|
|
@@ -149,7 +149,7 @@ export declare const useAPI: () => {
|
|
|
149
149
|
author: {
|
|
150
150
|
email: string;
|
|
151
151
|
id: string | number;
|
|
152
|
-
name?: string | undefined;
|
|
152
|
+
name?: string | null | undefined;
|
|
153
153
|
avatar?: string | {
|
|
154
154
|
url: string;
|
|
155
155
|
} | {
|
|
@@ -187,7 +187,7 @@ export declare const useAPI: () => {
|
|
|
187
187
|
author: {
|
|
188
188
|
email: string;
|
|
189
189
|
id: string | number;
|
|
190
|
-
name?: string | undefined;
|
|
190
|
+
name?: string | null | undefined;
|
|
191
191
|
avatar?: string | {
|
|
192
192
|
url: string;
|
|
193
193
|
} | {
|
|
@@ -224,7 +224,7 @@ export declare const useAPI: () => {
|
|
|
224
224
|
author: {
|
|
225
225
|
email: string;
|
|
226
226
|
id: string | number;
|
|
227
|
-
name?: string | undefined;
|
|
227
|
+
name?: string | null | undefined;
|
|
228
228
|
avatar?: string | {
|
|
229
229
|
url: string;
|
|
230
230
|
} | {
|
|
@@ -267,7 +267,7 @@ export declare const useAPI: () => {
|
|
|
267
267
|
author: {
|
|
268
268
|
email: string;
|
|
269
269
|
id: string | number;
|
|
270
|
-
name?: string | undefined;
|
|
270
|
+
name?: string | null | undefined;
|
|
271
271
|
avatar?: string | {
|
|
272
272
|
url: string;
|
|
273
273
|
} | {
|
|
@@ -360,7 +360,7 @@ export declare const useAPI: () => {
|
|
|
360
360
|
author: {
|
|
361
361
|
email: string;
|
|
362
362
|
id: string | number;
|
|
363
|
-
name?: string | undefined;
|
|
363
|
+
name?: string | null | undefined;
|
|
364
364
|
avatar?: string | {
|
|
365
365
|
url: string;
|
|
366
366
|
} | {
|