strapi-plugin-comments 3.1.1 → 3.1.3
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-BUbb2WGh.js → index-BL18_3Ha.js} +1 -1
- package/dist/_chunks/{index-s3cDVDHP.mjs → index-BUf3iTvC.mjs} +2 -2
- package/dist/_chunks/index-BmKmka7n.js +18 -0
- package/dist/_chunks/{index-ZS4k_B_E.js → index-CN6R_-01.js} +1 -1
- package/dist/_chunks/{index-CoArx2AB.mjs → index-Cd0Ba7aa.mjs} +45 -45
- package/dist/_chunks/{index-Cpp_f9wq.js → index-DLzwPdb9.js} +1 -1
- package/dist/_chunks/{index-D7OmqK1F.mjs → index-DNqB_KDi.mjs} +2 -2
- package/dist/_chunks/{index-B7COUj1E.mjs → index-EseY88Mr.mjs} +708 -726
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +65 -65
- package/dist/admin/src/api/schemas.d.ts +537 -537
- package/dist/admin/src/contexts/UserContext.d.ts +1 -1
- package/dist/admin/src/hooks/useAPI.d.ts +66 -66
- package/dist/admin/src/hooks/useCommentMutations.d.ts +1 -1
- package/dist/admin/src/hooks/useCommentsAll.d.ts +4 -4
- package/dist/admin/src/hooks/useReports.d.ts +12 -12
- package/dist/admin/src/hooks/useUserContext.d.ts +1 -1
- package/dist/server/index.js +30 -30
- package/dist/server/index.mjs +281 -266
- package/dist/server/src/repositories/report.comment.repository.d.ts +66 -0
- package/dist/server/src/validators/repositories/comment.schema.d.ts +156 -0
- package/dist/server/src/validators/repositories/comment.validator.d.ts +16 -16
- package/dist/server/src/validators/repositories/reports.validator.d.ts +2709 -1149
- package/package.json +1 -1
- package/dist/_chunks/index-CL3ZQ5c8.js +0 -18
|
@@ -28,6 +28,39 @@ export declare const getReportCommentRepositorySource: (strapi: CoreStrapi) => {
|
|
|
28
28
|
authorName?: string;
|
|
29
29
|
authorEmail?: string;
|
|
30
30
|
authorAvatar?: string;
|
|
31
|
+
authorUser?: string | {
|
|
32
|
+
id?: number;
|
|
33
|
+
username?: string;
|
|
34
|
+
email?: string;
|
|
35
|
+
avatar?: {
|
|
36
|
+
url?: string;
|
|
37
|
+
name?: string;
|
|
38
|
+
hash?: string;
|
|
39
|
+
id?: number;
|
|
40
|
+
formats?: {
|
|
41
|
+
small?: {
|
|
42
|
+
url?: string;
|
|
43
|
+
name?: string;
|
|
44
|
+
hash?: string;
|
|
45
|
+
};
|
|
46
|
+
thumbnail?: {
|
|
47
|
+
url?: string;
|
|
48
|
+
name?: string;
|
|
49
|
+
hash?: string;
|
|
50
|
+
};
|
|
51
|
+
medium?: {
|
|
52
|
+
url?: string;
|
|
53
|
+
name?: string;
|
|
54
|
+
hash?: string;
|
|
55
|
+
};
|
|
56
|
+
large?: {
|
|
57
|
+
url?: string;
|
|
58
|
+
name?: string;
|
|
59
|
+
hash?: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
31
64
|
locale?: string;
|
|
32
65
|
};
|
|
33
66
|
createdAt?: string;
|
|
@@ -65,6 +98,39 @@ export declare const getReportCommentRepository: (strapi: CoreStrapi) => {
|
|
|
65
98
|
authorName?: string;
|
|
66
99
|
authorEmail?: string;
|
|
67
100
|
authorAvatar?: string;
|
|
101
|
+
authorUser?: string | {
|
|
102
|
+
id?: number;
|
|
103
|
+
username?: string;
|
|
104
|
+
email?: string;
|
|
105
|
+
avatar?: {
|
|
106
|
+
url?: string;
|
|
107
|
+
name?: string;
|
|
108
|
+
hash?: string;
|
|
109
|
+
id?: number;
|
|
110
|
+
formats?: {
|
|
111
|
+
small?: {
|
|
112
|
+
url?: string;
|
|
113
|
+
name?: string;
|
|
114
|
+
hash?: string;
|
|
115
|
+
};
|
|
116
|
+
thumbnail?: {
|
|
117
|
+
url?: string;
|
|
118
|
+
name?: string;
|
|
119
|
+
hash?: string;
|
|
120
|
+
};
|
|
121
|
+
medium?: {
|
|
122
|
+
url?: string;
|
|
123
|
+
name?: string;
|
|
124
|
+
hash?: string;
|
|
125
|
+
};
|
|
126
|
+
large?: {
|
|
127
|
+
url?: string;
|
|
128
|
+
name?: string;
|
|
129
|
+
hash?: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
68
134
|
locale?: string;
|
|
69
135
|
};
|
|
70
136
|
createdAt?: string;
|
|
@@ -1,4 +1,160 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
export declare const avatarSchema: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
3
|
+
formats: z.ZodOptional<z.ZodObject<{
|
|
4
|
+
thumbnail: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
url: z.ZodString;
|
|
6
|
+
name: z.ZodString;
|
|
7
|
+
hash: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
url?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
hash?: string;
|
|
12
|
+
}, {
|
|
13
|
+
url?: string;
|
|
14
|
+
name?: string;
|
|
15
|
+
hash?: string;
|
|
16
|
+
}>>;
|
|
17
|
+
small: z.ZodOptional<z.ZodObject<{
|
|
18
|
+
url: z.ZodString;
|
|
19
|
+
name: z.ZodString;
|
|
20
|
+
hash: z.ZodString;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
url?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
hash?: string;
|
|
25
|
+
}, {
|
|
26
|
+
url?: string;
|
|
27
|
+
name?: string;
|
|
28
|
+
hash?: string;
|
|
29
|
+
}>>;
|
|
30
|
+
medium: z.ZodOptional<z.ZodObject<{
|
|
31
|
+
url: z.ZodString;
|
|
32
|
+
name: z.ZodString;
|
|
33
|
+
hash: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
url?: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
hash?: string;
|
|
38
|
+
}, {
|
|
39
|
+
url?: string;
|
|
40
|
+
name?: string;
|
|
41
|
+
hash?: string;
|
|
42
|
+
}>>;
|
|
43
|
+
large: z.ZodOptional<z.ZodObject<{
|
|
44
|
+
url: z.ZodString;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
hash: z.ZodString;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
url?: string;
|
|
49
|
+
name?: string;
|
|
50
|
+
hash?: string;
|
|
51
|
+
}, {
|
|
52
|
+
url?: string;
|
|
53
|
+
name?: string;
|
|
54
|
+
hash?: string;
|
|
55
|
+
}>>;
|
|
56
|
+
}, "strip", z.ZodTypeAny, {
|
|
57
|
+
small?: {
|
|
58
|
+
url?: string;
|
|
59
|
+
name?: string;
|
|
60
|
+
hash?: string;
|
|
61
|
+
};
|
|
62
|
+
thumbnail?: {
|
|
63
|
+
url?: string;
|
|
64
|
+
name?: string;
|
|
65
|
+
hash?: string;
|
|
66
|
+
};
|
|
67
|
+
medium?: {
|
|
68
|
+
url?: string;
|
|
69
|
+
name?: string;
|
|
70
|
+
hash?: string;
|
|
71
|
+
};
|
|
72
|
+
large?: {
|
|
73
|
+
url?: string;
|
|
74
|
+
name?: string;
|
|
75
|
+
hash?: string;
|
|
76
|
+
};
|
|
77
|
+
}, {
|
|
78
|
+
small?: {
|
|
79
|
+
url?: string;
|
|
80
|
+
name?: string;
|
|
81
|
+
hash?: string;
|
|
82
|
+
};
|
|
83
|
+
thumbnail?: {
|
|
84
|
+
url?: string;
|
|
85
|
+
name?: string;
|
|
86
|
+
hash?: string;
|
|
87
|
+
};
|
|
88
|
+
medium?: {
|
|
89
|
+
url?: string;
|
|
90
|
+
name?: string;
|
|
91
|
+
hash?: string;
|
|
92
|
+
};
|
|
93
|
+
large?: {
|
|
94
|
+
url?: string;
|
|
95
|
+
name?: string;
|
|
96
|
+
hash?: string;
|
|
97
|
+
};
|
|
98
|
+
}>>;
|
|
99
|
+
url: z.ZodString;
|
|
100
|
+
name: z.ZodString;
|
|
101
|
+
hash: z.ZodString;
|
|
102
|
+
id: z.ZodNumber;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
url?: string;
|
|
105
|
+
name?: string;
|
|
106
|
+
hash?: string;
|
|
107
|
+
id?: number;
|
|
108
|
+
formats?: {
|
|
109
|
+
small?: {
|
|
110
|
+
url?: string;
|
|
111
|
+
name?: string;
|
|
112
|
+
hash?: string;
|
|
113
|
+
};
|
|
114
|
+
thumbnail?: {
|
|
115
|
+
url?: string;
|
|
116
|
+
name?: string;
|
|
117
|
+
hash?: string;
|
|
118
|
+
};
|
|
119
|
+
medium?: {
|
|
120
|
+
url?: string;
|
|
121
|
+
name?: string;
|
|
122
|
+
hash?: string;
|
|
123
|
+
};
|
|
124
|
+
large?: {
|
|
125
|
+
url?: string;
|
|
126
|
+
name?: string;
|
|
127
|
+
hash?: string;
|
|
128
|
+
};
|
|
129
|
+
};
|
|
130
|
+
}, {
|
|
131
|
+
url?: string;
|
|
132
|
+
name?: string;
|
|
133
|
+
hash?: string;
|
|
134
|
+
id?: number;
|
|
135
|
+
formats?: {
|
|
136
|
+
small?: {
|
|
137
|
+
url?: string;
|
|
138
|
+
name?: string;
|
|
139
|
+
hash?: string;
|
|
140
|
+
};
|
|
141
|
+
thumbnail?: {
|
|
142
|
+
url?: string;
|
|
143
|
+
name?: string;
|
|
144
|
+
hash?: string;
|
|
145
|
+
};
|
|
146
|
+
medium?: {
|
|
147
|
+
url?: string;
|
|
148
|
+
name?: string;
|
|
149
|
+
hash?: string;
|
|
150
|
+
};
|
|
151
|
+
large?: {
|
|
152
|
+
url?: string;
|
|
153
|
+
name?: string;
|
|
154
|
+
hash?: string;
|
|
155
|
+
};
|
|
156
|
+
};
|
|
157
|
+
}>>>;
|
|
2
158
|
export declare const dbBaseCommentSchema: z.ZodObject<{
|
|
3
159
|
id: z.ZodNumber;
|
|
4
160
|
documentId: z.ZodNullable<z.ZodString>;
|
|
@@ -277,7 +277,7 @@ declare const commentSchema: z.ZodObject<{
|
|
|
277
277
|
reason?: string;
|
|
278
278
|
resolved?: boolean;
|
|
279
279
|
}>, "many">>;
|
|
280
|
-
author: z.ZodAny
|
|
280
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
281
281
|
} & {
|
|
282
282
|
threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
283
283
|
id: z.ZodNumber;
|
|
@@ -557,7 +557,7 @@ declare const commentSchema: z.ZodObject<{
|
|
|
557
557
|
reason?: string;
|
|
558
558
|
resolved?: boolean;
|
|
559
559
|
}>, "many">>;
|
|
560
|
-
author: z.ZodAny
|
|
560
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
561
561
|
}, "strip", z.ZodTypeAny, {
|
|
562
562
|
id?: number;
|
|
563
563
|
documentId?: string;
|
|
@@ -1256,7 +1256,7 @@ declare const commentWithRelatedSchema: z.ZodObject<Omit<{
|
|
|
1256
1256
|
reason?: string;
|
|
1257
1257
|
resolved?: boolean;
|
|
1258
1258
|
}>, "many">>;
|
|
1259
|
-
author: z.ZodAny
|
|
1259
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1260
1260
|
} & {
|
|
1261
1261
|
threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
1262
1262
|
id: z.ZodNumber;
|
|
@@ -1536,7 +1536,7 @@ declare const commentWithRelatedSchema: z.ZodObject<Omit<{
|
|
|
1536
1536
|
reason?: string;
|
|
1537
1537
|
resolved?: boolean;
|
|
1538
1538
|
}>, "many">>;
|
|
1539
|
-
author: z.ZodAny
|
|
1539
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
1540
1540
|
}, "strip", z.ZodTypeAny, {
|
|
1541
1541
|
id?: number;
|
|
1542
1542
|
documentId?: string;
|
|
@@ -2248,7 +2248,7 @@ export declare const findManySchema: z.ZodArray<z.ZodObject<{
|
|
|
2248
2248
|
reason?: string;
|
|
2249
2249
|
resolved?: boolean;
|
|
2250
2250
|
}>, "many">>;
|
|
2251
|
-
author: z.ZodAny
|
|
2251
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2252
2252
|
} & {
|
|
2253
2253
|
threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
2254
2254
|
id: z.ZodNumber;
|
|
@@ -2528,7 +2528,7 @@ export declare const findManySchema: z.ZodArray<z.ZodObject<{
|
|
|
2528
2528
|
reason?: string;
|
|
2529
2529
|
resolved?: boolean;
|
|
2530
2530
|
}>, "many">>;
|
|
2531
|
-
author: z.ZodAny
|
|
2531
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
2532
2532
|
}, "strip", z.ZodTypeAny, {
|
|
2533
2533
|
id?: number;
|
|
2534
2534
|
documentId?: string;
|
|
@@ -3224,7 +3224,7 @@ export declare const findWithCountSchema: z.ZodObject<{
|
|
|
3224
3224
|
reason?: string;
|
|
3225
3225
|
resolved?: boolean;
|
|
3226
3226
|
}>, "many">>;
|
|
3227
|
-
author: z.ZodAny
|
|
3227
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
3228
3228
|
} & {
|
|
3229
3229
|
threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
3230
3230
|
id: z.ZodNumber;
|
|
@@ -3504,7 +3504,7 @@ export declare const findWithCountSchema: z.ZodObject<{
|
|
|
3504
3504
|
reason?: string;
|
|
3505
3505
|
resolved?: boolean;
|
|
3506
3506
|
}>, "many">>;
|
|
3507
|
-
author: z.ZodAny
|
|
3507
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
3508
3508
|
}, "strip", z.ZodTypeAny, {
|
|
3509
3509
|
id?: number;
|
|
3510
3510
|
documentId?: string;
|
|
@@ -4474,7 +4474,7 @@ export declare const commentResultValidator: {
|
|
|
4474
4474
|
reason?: string;
|
|
4475
4475
|
resolved?: boolean;
|
|
4476
4476
|
}>, "many">>;
|
|
4477
|
-
author: z.ZodAny
|
|
4477
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
4478
4478
|
} & {
|
|
4479
4479
|
threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
4480
4480
|
id: z.ZodNumber;
|
|
@@ -4754,7 +4754,7 @@ export declare const commentResultValidator: {
|
|
|
4754
4754
|
reason?: string;
|
|
4755
4755
|
resolved?: boolean;
|
|
4756
4756
|
}>, "many">>;
|
|
4757
|
-
author: z.ZodAny
|
|
4757
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
4758
4758
|
}, "strip", z.ZodTypeAny, {
|
|
4759
4759
|
id?: number;
|
|
4760
4760
|
documentId?: string;
|
|
@@ -5450,7 +5450,7 @@ export declare const commentResultValidator: {
|
|
|
5450
5450
|
reason?: string;
|
|
5451
5451
|
resolved?: boolean;
|
|
5452
5452
|
}>, "many">>;
|
|
5453
|
-
author: z.ZodAny
|
|
5453
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
5454
5454
|
} & {
|
|
5455
5455
|
threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
5456
5456
|
id: z.ZodNumber;
|
|
@@ -5730,7 +5730,7 @@ export declare const commentResultValidator: {
|
|
|
5730
5730
|
reason?: string;
|
|
5731
5731
|
resolved?: boolean;
|
|
5732
5732
|
}>, "many">>;
|
|
5733
|
-
author: z.ZodAny
|
|
5733
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
5734
5734
|
}, "strip", z.ZodTypeAny, {
|
|
5735
5735
|
id?: number;
|
|
5736
5736
|
documentId?: string;
|
|
@@ -6692,7 +6692,7 @@ export declare const commentResultValidator: {
|
|
|
6692
6692
|
reason?: string;
|
|
6693
6693
|
resolved?: boolean;
|
|
6694
6694
|
}>, "many">>;
|
|
6695
|
-
author: z.ZodAny
|
|
6695
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
6696
6696
|
} & {
|
|
6697
6697
|
threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
6698
6698
|
id: z.ZodNumber;
|
|
@@ -6972,7 +6972,7 @@ export declare const commentResultValidator: {
|
|
|
6972
6972
|
reason?: string;
|
|
6973
6973
|
resolved?: boolean;
|
|
6974
6974
|
}>, "many">>;
|
|
6975
|
-
author: z.ZodAny
|
|
6975
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
6976
6976
|
}, "strip", z.ZodTypeAny, {
|
|
6977
6977
|
id?: number;
|
|
6978
6978
|
documentId?: string;
|
|
@@ -7651,7 +7651,7 @@ export declare const commentResultValidator: {
|
|
|
7651
7651
|
reason?: string;
|
|
7652
7652
|
resolved?: boolean;
|
|
7653
7653
|
}>, "many">>;
|
|
7654
|
-
author: z.ZodAny
|
|
7654
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
7655
7655
|
} & {
|
|
7656
7656
|
threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodUnion<[z.ZodNumber, z.ZodObject<{
|
|
7657
7657
|
id: z.ZodNumber;
|
|
@@ -7931,7 +7931,7 @@ export declare const commentResultValidator: {
|
|
|
7931
7931
|
reason?: string;
|
|
7932
7932
|
resolved?: boolean;
|
|
7933
7933
|
}>, "many">>;
|
|
7934
|
-
author: z.ZodAny
|
|
7934
|
+
author: z.ZodOptional<z.ZodNullable<z.ZodAny>>;
|
|
7935
7935
|
}, "strip", z.ZodTypeAny, {
|
|
7936
7936
|
id?: number;
|
|
7937
7937
|
documentId?: string;
|