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
package/dist/admin/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("../_chunks/index-
|
|
1
|
+
"use strict";const e=require("../_chunks/index-BL18_3Ha.js");require("react");module.exports=e.index;
|
package/dist/admin/index.mjs
CHANGED
|
@@ -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
|
-
|
|
149
|
-
|
|
150
|
-
|
|
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
|
-
|
|
187
|
-
|
|
188
|
-
|
|
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
|
-
|
|
224
|
-
|
|
225
|
-
|
|
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
|
-
|
|
267
|
-
|
|
268
|
-
id:
|
|
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
|
-
|
|
339
|
-
|
|
340
|
-
id:
|
|
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
|
};
|