strapi-plugin-comments 3.1.1 → 3.1.2
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-CoArx2AB.mjs → index-111xj66k.mjs} +2 -2
- package/dist/_chunks/{index-CL3ZQ5c8.js → index-BYom1Ujm.js} +2 -2
- package/dist/_chunks/{index-s3cDVDHP.mjs → index-C4yRw0kg.mjs} +2 -2
- package/dist/_chunks/{index-D7OmqK1F.mjs → index-C6r-CX-i.mjs} +2 -2
- package/dist/_chunks/{index-BUbb2WGh.js → index-CQcJlyLz.js} +1 -1
- package/dist/_chunks/{index-Cpp_f9wq.js → index-DFSVVbXk.js} +1 -1
- package/dist/_chunks/{index-ZS4k_B_E.js → index-Ddsb0ILo.js} +1 -1
- package/dist/_chunks/{index-B7COUj1E.mjs → index-dty11bFS.mjs} +83 -83
- 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
|
@@ -94,7 +94,7 @@ export declare const useAPI: () => {
|
|
|
94
94
|
locale: null;
|
|
95
95
|
blocked: boolean;
|
|
96
96
|
firstname: string;
|
|
97
|
-
lastname: string;
|
|
97
|
+
lastname: string | null;
|
|
98
98
|
username: string | null;
|
|
99
99
|
isActive: boolean;
|
|
100
100
|
preferedLanguage: string | null;
|
|
@@ -142,9 +142,18 @@ export declare const useAPI: () => {
|
|
|
142
142
|
isAdminComment: boolean | null;
|
|
143
143
|
removed: boolean | null;
|
|
144
144
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
145
|
+
related: string;
|
|
146
|
+
reports?: {
|
|
147
|
+
resolved: boolean;
|
|
148
|
+
id: number;
|
|
149
|
+
createdAt: string;
|
|
150
|
+
updatedAt: string | null;
|
|
151
|
+
content: string;
|
|
152
|
+
reason?: string | null | undefined;
|
|
153
|
+
}[] | null | undefined;
|
|
154
|
+
author?: {
|
|
155
|
+
email?: string | null | undefined;
|
|
156
|
+
id?: string | number | null | undefined;
|
|
148
157
|
name?: string | null | undefined;
|
|
149
158
|
avatar?: string | {
|
|
150
159
|
url: string;
|
|
@@ -156,16 +165,7 @@ export declare const useAPI: () => {
|
|
|
156
165
|
} | null;
|
|
157
166
|
};
|
|
158
167
|
} | null | undefined;
|
|
159
|
-
};
|
|
160
|
-
related: string;
|
|
161
|
-
reports?: {
|
|
162
|
-
resolved: boolean;
|
|
163
|
-
id: number;
|
|
164
|
-
createdAt: string;
|
|
165
|
-
updatedAt: string | null;
|
|
166
|
-
content: string;
|
|
167
|
-
reason?: string | null | undefined;
|
|
168
|
-
}[] | null | undefined;
|
|
168
|
+
} | null | undefined;
|
|
169
169
|
gotThread?: boolean | null | undefined;
|
|
170
170
|
threadFirstItemId?: number | null | undefined;
|
|
171
171
|
threadOf?: {
|
|
@@ -180,9 +180,18 @@ export declare const useAPI: () => {
|
|
|
180
180
|
isAdminComment: boolean | null;
|
|
181
181
|
removed: boolean | null;
|
|
182
182
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
183
|
+
related: string;
|
|
184
|
+
reports?: {
|
|
185
|
+
resolved: boolean;
|
|
186
|
+
id: number;
|
|
187
|
+
createdAt: string;
|
|
188
|
+
updatedAt: string | null;
|
|
189
|
+
content: string;
|
|
190
|
+
reason?: string | null | undefined;
|
|
191
|
+
}[] | null | undefined;
|
|
192
|
+
author?: {
|
|
193
|
+
email?: string | null | undefined;
|
|
194
|
+
id?: string | number | null | undefined;
|
|
186
195
|
name?: string | null | undefined;
|
|
187
196
|
avatar?: string | {
|
|
188
197
|
url: string;
|
|
@@ -194,16 +203,7 @@ export declare const useAPI: () => {
|
|
|
194
203
|
} | null;
|
|
195
204
|
};
|
|
196
205
|
} | null | undefined;
|
|
197
|
-
};
|
|
198
|
-
related: string;
|
|
199
|
-
reports?: {
|
|
200
|
-
resolved: boolean;
|
|
201
|
-
id: number;
|
|
202
|
-
createdAt: string;
|
|
203
|
-
updatedAt: string | null;
|
|
204
|
-
content: string;
|
|
205
|
-
reason?: string | null | undefined;
|
|
206
|
-
}[] | null | undefined;
|
|
206
|
+
} | null | undefined;
|
|
207
207
|
gotThread?: boolean | null | undefined;
|
|
208
208
|
threadFirstItemId?: number | null | undefined;
|
|
209
209
|
threadOf?: {
|
|
@@ -217,9 +217,19 @@ export declare const useAPI: () => {
|
|
|
217
217
|
isAdminComment: boolean | null;
|
|
218
218
|
removed: boolean | null;
|
|
219
219
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
related: string;
|
|
221
|
+
documentId?: string | undefined;
|
|
222
|
+
reports?: {
|
|
223
|
+
resolved: boolean;
|
|
224
|
+
id: number;
|
|
225
|
+
createdAt: string;
|
|
226
|
+
updatedAt: string | null;
|
|
227
|
+
content: string;
|
|
228
|
+
reason?: string | null | undefined;
|
|
229
|
+
}[] | null | undefined;
|
|
230
|
+
author?: {
|
|
231
|
+
email?: string | null | undefined;
|
|
232
|
+
id?: string | number | null | undefined;
|
|
223
233
|
name?: string | null | undefined;
|
|
224
234
|
avatar?: string | {
|
|
225
235
|
url: string;
|
|
@@ -231,17 +241,7 @@ export declare const useAPI: () => {
|
|
|
231
241
|
} | null;
|
|
232
242
|
};
|
|
233
243
|
} | null | undefined;
|
|
234
|
-
};
|
|
235
|
-
related: string;
|
|
236
|
-
documentId?: string | undefined;
|
|
237
|
-
reports?: {
|
|
238
|
-
resolved: boolean;
|
|
239
|
-
id: number;
|
|
240
|
-
createdAt: string;
|
|
241
|
-
updatedAt: string | null;
|
|
242
|
-
content: string;
|
|
243
|
-
reason?: string | null | undefined;
|
|
244
|
-
}[] | null | undefined;
|
|
244
|
+
} | null | undefined;
|
|
245
245
|
gotThread?: boolean | null | undefined;
|
|
246
246
|
threadFirstItemId?: number | null | undefined;
|
|
247
247
|
threadOf?: import("../api/schemas").Comment | null | undefined;
|
|
@@ -260,9 +260,17 @@ export declare const useAPI: () => {
|
|
|
260
260
|
isAdminComment: boolean | null;
|
|
261
261
|
removed: boolean | null;
|
|
262
262
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
id:
|
|
263
|
+
reports?: {
|
|
264
|
+
resolved: boolean;
|
|
265
|
+
id: number;
|
|
266
|
+
createdAt: string;
|
|
267
|
+
updatedAt: string | null;
|
|
268
|
+
content: string;
|
|
269
|
+
reason?: string | null | undefined;
|
|
270
|
+
}[] | null | undefined;
|
|
271
|
+
author?: {
|
|
272
|
+
email?: string | null | undefined;
|
|
273
|
+
id?: string | number | null | undefined;
|
|
266
274
|
name?: string | null | undefined;
|
|
267
275
|
avatar?: string | {
|
|
268
276
|
url: string;
|
|
@@ -274,15 +282,7 @@ export declare const useAPI: () => {
|
|
|
274
282
|
} | null;
|
|
275
283
|
};
|
|
276
284
|
} | null | undefined;
|
|
277
|
-
};
|
|
278
|
-
reports?: {
|
|
279
|
-
resolved: boolean;
|
|
280
|
-
id: number;
|
|
281
|
-
createdAt: string;
|
|
282
|
-
updatedAt: string | null;
|
|
283
|
-
content: string;
|
|
284
|
-
reason?: string | null | undefined;
|
|
285
|
-
}[] | null | undefined;
|
|
285
|
+
} | null | undefined;
|
|
286
286
|
gotThread?: boolean | null | undefined;
|
|
287
287
|
threadFirstItemId?: number | null | undefined;
|
|
288
288
|
}[];
|
|
@@ -308,7 +308,7 @@ export declare const useAPI: () => {
|
|
|
308
308
|
locale: null;
|
|
309
309
|
blocked: boolean;
|
|
310
310
|
firstname: string;
|
|
311
|
-
lastname: string;
|
|
311
|
+
lastname: string | null;
|
|
312
312
|
username: string | null;
|
|
313
313
|
isActive: boolean;
|
|
314
314
|
preferedLanguage: string | null;
|
|
@@ -352,9 +352,17 @@ export declare const useAPI: () => {
|
|
|
352
352
|
isAdminComment: boolean | null;
|
|
353
353
|
removed: boolean | null;
|
|
354
354
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
id:
|
|
355
|
+
reports?: {
|
|
356
|
+
resolved: boolean;
|
|
357
|
+
id: number;
|
|
358
|
+
createdAt: string;
|
|
359
|
+
updatedAt: string | null;
|
|
360
|
+
content: string;
|
|
361
|
+
reason?: string | null | undefined;
|
|
362
|
+
}[] | null | undefined;
|
|
363
|
+
author?: {
|
|
364
|
+
email?: string | null | undefined;
|
|
365
|
+
id?: string | number | null | undefined;
|
|
358
366
|
name?: string | null | undefined;
|
|
359
367
|
avatar?: string | {
|
|
360
368
|
url: string;
|
|
@@ -366,15 +374,7 @@ export declare const useAPI: () => {
|
|
|
366
374
|
} | null;
|
|
367
375
|
};
|
|
368
376
|
} | null | undefined;
|
|
369
|
-
};
|
|
370
|
-
reports?: {
|
|
371
|
-
resolved: boolean;
|
|
372
|
-
id: number;
|
|
373
|
-
createdAt: string;
|
|
374
|
-
updatedAt: string | null;
|
|
375
|
-
content: string;
|
|
376
|
-
reason?: string | null | undefined;
|
|
377
|
-
}[] | null | undefined;
|
|
377
|
+
} | null | undefined;
|
|
378
378
|
gotThread?: boolean | null | undefined;
|
|
379
379
|
threadFirstItemId?: number | null | undefined;
|
|
380
380
|
};
|
|
@@ -40,7 +40,7 @@ export declare const useCommentMutations: (callbacksMutation?: CallbacksMutation
|
|
|
40
40
|
locale: null;
|
|
41
41
|
blocked: boolean;
|
|
42
42
|
firstname: string;
|
|
43
|
-
lastname: string;
|
|
43
|
+
lastname: string | null;
|
|
44
44
|
username: string | null;
|
|
45
45
|
isActive: boolean;
|
|
46
46
|
preferedLanguage: string | null;
|
|
@@ -18,9 +18,9 @@ export declare const useCommentsAll: (queryParams: Record<string, string>) => im
|
|
|
18
18
|
isAdminComment: boolean | null;
|
|
19
19
|
removed: boolean | null;
|
|
20
20
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
21
|
-
author
|
|
22
|
-
email
|
|
23
|
-
id
|
|
21
|
+
author?: {
|
|
22
|
+
email?: string | null | undefined;
|
|
23
|
+
id?: string | number | null | undefined;
|
|
24
24
|
name?: string | null | undefined;
|
|
25
25
|
avatar?: string | {
|
|
26
26
|
url: string;
|
|
@@ -32,7 +32,7 @@ export declare const useCommentsAll: (queryParams: Record<string, string>) => im
|
|
|
32
32
|
} | null;
|
|
33
33
|
};
|
|
34
34
|
} | null | undefined;
|
|
35
|
-
};
|
|
35
|
+
} | null | undefined;
|
|
36
36
|
gotThread?: boolean | null | undefined;
|
|
37
37
|
threadFirstItemId?: number | null | undefined;
|
|
38
38
|
threadOf?: import("../api/schemas").Comment | null | undefined;
|
|
@@ -22,9 +22,17 @@ export declare const useReports: (queryParams?: Record<string, string>) => impor
|
|
|
22
22
|
isAdminComment: boolean | null;
|
|
23
23
|
removed: boolean | null;
|
|
24
24
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
id:
|
|
25
|
+
reports?: {
|
|
26
|
+
resolved: boolean;
|
|
27
|
+
id: number;
|
|
28
|
+
createdAt: string;
|
|
29
|
+
updatedAt: string | null;
|
|
30
|
+
content: string;
|
|
31
|
+
reason?: string | null | undefined;
|
|
32
|
+
}[] | null | undefined;
|
|
33
|
+
author?: {
|
|
34
|
+
email?: string | null | undefined;
|
|
35
|
+
id?: string | number | null | undefined;
|
|
28
36
|
name?: string | null | undefined;
|
|
29
37
|
avatar?: string | {
|
|
30
38
|
url: string;
|
|
@@ -36,15 +44,7 @@ export declare const useReports: (queryParams?: Record<string, string>) => impor
|
|
|
36
44
|
} | null;
|
|
37
45
|
};
|
|
38
46
|
} | null | undefined;
|
|
39
|
-
};
|
|
40
|
-
reports?: {
|
|
41
|
-
resolved: boolean;
|
|
42
|
-
id: number;
|
|
43
|
-
createdAt: string;
|
|
44
|
-
updatedAt: string | null;
|
|
45
|
-
content: string;
|
|
46
|
-
reason?: string | null | undefined;
|
|
47
|
-
}[] | null | undefined;
|
|
47
|
+
} | null | undefined;
|
|
48
48
|
gotThread?: boolean | null | undefined;
|
|
49
49
|
threadFirstItemId?: number | null | undefined;
|
|
50
50
|
};
|