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.
Files changed (26) hide show
  1. package/dist/_chunks/{index-BUbb2WGh.js → index-BL18_3Ha.js} +1 -1
  2. package/dist/_chunks/{index-s3cDVDHP.mjs → index-BUf3iTvC.mjs} +2 -2
  3. package/dist/_chunks/index-BmKmka7n.js +18 -0
  4. package/dist/_chunks/{index-ZS4k_B_E.js → index-CN6R_-01.js} +1 -1
  5. package/dist/_chunks/{index-CoArx2AB.mjs → index-Cd0Ba7aa.mjs} +45 -45
  6. package/dist/_chunks/{index-Cpp_f9wq.js → index-DLzwPdb9.js} +1 -1
  7. package/dist/_chunks/{index-D7OmqK1F.mjs → index-DNqB_KDi.mjs} +2 -2
  8. package/dist/_chunks/{index-B7COUj1E.mjs → index-EseY88Mr.mjs} +708 -726
  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 +65 -65
  12. package/dist/admin/src/api/schemas.d.ts +537 -537
  13. package/dist/admin/src/contexts/UserContext.d.ts +1 -1
  14. package/dist/admin/src/hooks/useAPI.d.ts +66 -66
  15. package/dist/admin/src/hooks/useCommentMutations.d.ts +1 -1
  16. package/dist/admin/src/hooks/useCommentsAll.d.ts +4 -4
  17. package/dist/admin/src/hooks/useReports.d.ts +12 -12
  18. package/dist/admin/src/hooks/useUserContext.d.ts +1 -1
  19. package/dist/server/index.js +30 -30
  20. package/dist/server/index.mjs +281 -266
  21. package/dist/server/src/repositories/report.comment.repository.d.ts +66 -0
  22. package/dist/server/src/validators/repositories/comment.schema.d.ts +156 -0
  23. package/dist/server/src/validators/repositories/comment.validator.d.ts +16 -16
  24. package/dist/server/src/validators/repositories/reports.validator.d.ts +2709 -1149
  25. package/package.json +1 -1
  26. package/dist/_chunks/index-CL3ZQ5c8.js +0 -18
@@ -1 +1 @@
1
- "use strict";const e=require("../_chunks/index-BUbb2WGh.js");require("react");module.exports=e.index;
1
+ "use strict";const e=require("../_chunks/index-BL18_3Ha.js");require("react");module.exports=e.index;
@@ -1,4 +1,4 @@
1
- import { an as t } from "../_chunks/index-s3cDVDHP.mjs";
1
+ import { an as t } from "../_chunks/index-BUf3iTvC.mjs";
2
2
  import "react";
3
3
  export {
4
4
  t as default
@@ -97,7 +97,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
97
97
  locale: null;
98
98
  blocked: boolean;
99
99
  firstname: string;
100
- lastname: string;
100
+ lastname: string | null;
101
101
  username: string | null;
102
102
  isActive: boolean;
103
103
  preferedLanguage: string | null;
@@ -145,9 +145,18 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
145
145
  isAdminComment: boolean | null;
146
146
  removed: boolean | null;
147
147
  approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
148
- author: {
149
- email: string | null;
150
- id: string | number;
148
+ related: string;
149
+ reports?: {
150
+ resolved: boolean;
151
+ id: number;
152
+ createdAt: string;
153
+ updatedAt: string | null;
154
+ content: string;
155
+ reason?: string | null | undefined;
156
+ }[] | null | undefined;
157
+ author?: {
158
+ email?: string | null | undefined;
159
+ id?: string | number | null | undefined;
151
160
  name?: string | null | undefined;
152
161
  avatar?: string | {
153
162
  url: string;
@@ -159,16 +168,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
159
168
  } | null;
160
169
  };
161
170
  } | null | undefined;
162
- };
163
- related: string;
164
- reports?: {
165
- resolved: boolean;
166
- id: number;
167
- createdAt: string;
168
- updatedAt: string | null;
169
- content: string;
170
- reason?: string | null | undefined;
171
- }[] | null | undefined;
171
+ } | null | undefined;
172
172
  gotThread?: boolean | null | undefined;
173
173
  threadFirstItemId?: number | null | undefined;
174
174
  threadOf?: {
@@ -183,9 +183,18 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
183
183
  isAdminComment: boolean | null;
184
184
  removed: boolean | null;
185
185
  approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
186
- author: {
187
- email: string | null;
188
- id: string | number;
186
+ related: string;
187
+ reports?: {
188
+ resolved: boolean;
189
+ id: number;
190
+ createdAt: string;
191
+ updatedAt: string | null;
192
+ content: string;
193
+ reason?: string | null | undefined;
194
+ }[] | null | undefined;
195
+ author?: {
196
+ email?: string | null | undefined;
197
+ id?: string | number | null | undefined;
189
198
  name?: string | null | undefined;
190
199
  avatar?: string | {
191
200
  url: string;
@@ -197,16 +206,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
197
206
  } | null;
198
207
  };
199
208
  } | null | undefined;
200
- };
201
- related: string;
202
- reports?: {
203
- resolved: boolean;
204
- id: number;
205
- createdAt: string;
206
- updatedAt: string | null;
207
- content: string;
208
- reason?: string | null | undefined;
209
- }[] | null | undefined;
209
+ } | null | undefined;
210
210
  gotThread?: boolean | null | undefined;
211
211
  threadFirstItemId?: number | null | undefined;
212
212
  threadOf?: {
@@ -220,9 +220,19 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
220
220
  isAdminComment: boolean | null;
221
221
  removed: boolean | null;
222
222
  approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
223
- author: {
224
- email: string | null;
225
- id: string | number;
223
+ related: string;
224
+ documentId?: string | undefined;
225
+ reports?: {
226
+ resolved: boolean;
227
+ id: number;
228
+ createdAt: string;
229
+ updatedAt: string | null;
230
+ content: string;
231
+ reason?: string | null | undefined;
232
+ }[] | null | undefined;
233
+ author?: {
234
+ email?: string | null | undefined;
235
+ id?: string | number | null | undefined;
226
236
  name?: string | null | undefined;
227
237
  avatar?: string | {
228
238
  url: string;
@@ -234,17 +244,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
234
244
  } | null;
235
245
  };
236
246
  } | null | undefined;
237
- };
238
- related: string;
239
- documentId?: string | undefined;
240
- reports?: {
241
- resolved: boolean;
242
- id: number;
243
- createdAt: string;
244
- updatedAt: string | null;
245
- content: string;
246
- reason?: string | null | undefined;
247
- }[] | null | undefined;
247
+ } | null | undefined;
248
248
  gotThread?: boolean | null | undefined;
249
249
  threadFirstItemId?: number | null | undefined;
250
250
  threadOf?: import("./schemas").Comment | null | undefined;
@@ -263,9 +263,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
263
263
  isAdminComment: boolean | null;
264
264
  removed: boolean | null;
265
265
  approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
266
- author: {
267
- email: string | null;
268
- id: string | number;
266
+ reports?: {
267
+ resolved: boolean;
268
+ id: number;
269
+ createdAt: string;
270
+ updatedAt: string | null;
271
+ content: string;
272
+ reason?: string | null | undefined;
273
+ }[] | null | undefined;
274
+ author?: {
275
+ email?: string | null | undefined;
276
+ id?: string | number | null | undefined;
269
277
  name?: string | null | undefined;
270
278
  avatar?: string | {
271
279
  url: string;
@@ -277,15 +285,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
277
285
  } | null;
278
286
  };
279
287
  } | null | undefined;
280
- };
281
- reports?: {
282
- resolved: boolean;
283
- id: number;
284
- createdAt: string;
285
- updatedAt: string | null;
286
- content: string;
287
- reason?: string | null | undefined;
288
- }[] | null | undefined;
288
+ } | null | undefined;
289
289
  gotThread?: boolean | null | undefined;
290
290
  threadFirstItemId?: number | null | undefined;
291
291
  }[];
@@ -335,9 +335,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
335
335
  isAdminComment: boolean | null;
336
336
  removed: boolean | null;
337
337
  approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
338
- author: {
339
- email: string | null;
340
- id: string | number;
338
+ reports?: {
339
+ resolved: boolean;
340
+ id: number;
341
+ createdAt: string;
342
+ updatedAt: string | null;
343
+ content: string;
344
+ reason?: string | null | undefined;
345
+ }[] | null | undefined;
346
+ author?: {
347
+ email?: string | null | undefined;
348
+ id?: string | number | null | undefined;
341
349
  name?: string | null | undefined;
342
350
  avatar?: string | {
343
351
  url: string;
@@ -349,15 +357,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
349
357
  } | null;
350
358
  };
351
359
  } | null | undefined;
352
- };
353
- reports?: {
354
- resolved: boolean;
355
- id: number;
356
- createdAt: string;
357
- updatedAt: string | null;
358
- content: string;
359
- reason?: string | null | undefined;
360
- }[] | null | undefined;
360
+ } | null | undefined;
361
361
  gotThread?: boolean | null | undefined;
362
362
  threadFirstItemId?: number | null | undefined;
363
363
  };