strapi-plugin-comments 3.1.1-beta.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/{en-DeZtLd2b.mjs → en-Cbt6CXo1.mjs} +1 -0
- package/dist/_chunks/{en-Ca05D1aN.js → en-DalOPLjA.js} +1 -1
- package/dist/_chunks/fr-C4_v32Lz.js +1 -0
- package/dist/_chunks/{fr-xcXYnLl6.mjs → fr-CztE_B7U.mjs} +1 -0
- package/dist/_chunks/{index-BvE3I2WB.mjs → index-111xj66k.mjs} +28 -28
- package/dist/_chunks/index-BYom1Ujm.js +18 -0
- package/dist/_chunks/{index-DcdRh9F7.mjs → index-C4yRw0kg.mjs} +7428 -7281
- package/dist/_chunks/{index-C9YD28U_.mjs → index-C6r-CX-i.mjs} +4 -4
- package/dist/_chunks/{index-CtUXr7rK.js → index-CQcJlyLz.js} +264 -264
- package/dist/_chunks/{index-BzZk45CE.js → index-DFSVVbXk.js} +3 -3
- package/dist/_chunks/{index-DHYGkXW6.js → index-Ddsb0ILo.js} +1 -1
- package/dist/_chunks/{index-Bd1INOJR.mjs → index-dty11bFS.mjs} +83 -83
- package/dist/_chunks/pl-D2JXVqZi.js +1 -0
- package/dist/_chunks/{pl-B2Il0b0-.mjs → pl-DBv6tBP6.mjs} +1 -0
- package/dist/_chunks/pt-BR-CCBBpLDV.js +1 -0
- package/dist/_chunks/{pt-BR-KCmyuDgJ.mjs → pt-BR-VqNYQ17j.mjs} +1 -0
- package/dist/_chunks/{ru-Bykkb95a.mjs → ru-DHi8VpMQ.mjs} +1 -0
- package/dist/_chunks/ru-DUiPYaBn.js +1 -0
- package/dist/_chunks/{tr-Cv3hH0Rh.js → tr-D_0EQ9aV.js} +1 -1
- package/dist/_chunks/{tr-BW_iq8S7.mjs → tr-ZRzw4I-8.mjs} +1 -0
- package/dist/_chunks/{zh-Hans-DixVuF8_.mjs → zh-Hans-Bz2wrwoC.mjs} +1 -0
- package/dist/_chunks/zh-Hans-D1xXhhCe.js +1 -0
- 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/admin/src/translations/en.d.ts +1 -0
- package/dist/admin/src/translations/fr.d.ts +1 -0
- package/dist/admin/src/translations/pl.d.ts +1 -0
- package/dist/admin/src/translations/pt-BR.d.ts +1 -0
- package/dist/admin/src/translations/ru.d.ts +1 -0
- package/dist/admin/src/translations/tr.d.ts +1 -0
- package/dist/admin/src/translations/zh-Hans.d.ts +1 -0
- package/dist/server/index.js +34 -34
- package/dist/server/index.mjs +430 -400
- package/dist/server/src/repositories/report.comment.repository.d.ts +66 -0
- package/dist/server/src/validators/api/controllers/admin.controller.validator.d.ts +36 -36
- 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/dist/server/src/validators/utils.d.ts +60 -60
- package/package.json +1 -1
- package/dist/_chunks/fr-DvC8Kjh_.js +0 -1
- package/dist/_chunks/index-C5ADhjCF.js +0 -18
- package/dist/_chunks/pl-DthJf26N.js +0 -1
- package/dist/_chunks/pt-BR-ByULlOKU.js +0 -1
- package/dist/_chunks/ru-DOajpZMF.js +0 -1
- package/dist/_chunks/zh-Hans-P1iGqMnb.js +0 -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
|
};
|
|
@@ -27,6 +27,7 @@ declare const en: {
|
|
|
27
27
|
'page.discover.header.count': string;
|
|
28
28
|
'page.discover.table.header.id': string;
|
|
29
29
|
'page.discover.table.header.author': string;
|
|
30
|
+
'page.discover.table.header.author.email': string;
|
|
30
31
|
'page.discover.table.header.message': string;
|
|
31
32
|
'page.discover.table.header.thread': string;
|
|
32
33
|
'page.discover.table.header.entry': string;
|
|
@@ -27,6 +27,7 @@ declare const _default: {
|
|
|
27
27
|
'page.discover.header.count': string;
|
|
28
28
|
'page.discover.table.header.id': string;
|
|
29
29
|
'page.discover.table.header.author': string;
|
|
30
|
+
'page.discover.table.header.author.email': string;
|
|
30
31
|
'page.discover.table.header.message': string;
|
|
31
32
|
'page.discover.table.header.thread': string;
|
|
32
33
|
'page.discover.table.header.entry': string;
|
|
@@ -25,6 +25,7 @@ declare const _default: {
|
|
|
25
25
|
"page.discover.header.count": string;
|
|
26
26
|
"page.discover.table.header.id": string;
|
|
27
27
|
"page.discover.table.header.author": string;
|
|
28
|
+
'page.discover.table.header.author.email': string;
|
|
28
29
|
"page.discover.table.header.message": string;
|
|
29
30
|
"page.discover.table.header.thread": string;
|
|
30
31
|
"page.discover.table.header.entry": string;
|
|
@@ -22,6 +22,7 @@ declare const _default: {
|
|
|
22
22
|
'page.discover.header.count': string;
|
|
23
23
|
'page.discover.table.header.id': string;
|
|
24
24
|
'page.discover.table.header.author': string;
|
|
25
|
+
'page.discover.table.header.author.email': string;
|
|
25
26
|
'page.discover.table.header.message': string;
|
|
26
27
|
'page.discover.table.header.thread': string;
|
|
27
28
|
'page.discover.table.header.entry': string;
|
|
@@ -25,6 +25,7 @@ declare const _default: {
|
|
|
25
25
|
'page.discover.header.count': string;
|
|
26
26
|
'page.discover.table.header.id': string;
|
|
27
27
|
'page.discover.table.header.author': string;
|
|
28
|
+
'page.discover.table.header.author.email': string;
|
|
28
29
|
'page.discover.table.header.message': string;
|
|
29
30
|
'page.discover.table.header.thread': string;
|
|
30
31
|
'page.discover.table.header.entry': string;
|
|
@@ -25,6 +25,7 @@ declare const _default: {
|
|
|
25
25
|
'page.discover.header.count': string;
|
|
26
26
|
'page.discover.table.header.id': string;
|
|
27
27
|
'page.discover.table.header.author': string;
|
|
28
|
+
'page.discover.table.header.author.email': string;
|
|
28
29
|
'page.discover.table.header.message': string;
|
|
29
30
|
'page.discover.table.header.thread': string;
|
|
30
31
|
'page.discover.table.header.entry': string;
|
|
@@ -25,6 +25,7 @@ declare const _default: {
|
|
|
25
25
|
'page.discover.header.count': string;
|
|
26
26
|
'page.discover.table.header.id': string;
|
|
27
27
|
'page.discover.table.header.author': string;
|
|
28
|
+
'page.discover.table.header.author.email': string;
|
|
28
29
|
'page.discover.table.header.message': string;
|
|
29
30
|
'page.discover.table.header.thread': string;
|
|
30
31
|
'page.discover.table.header.entry': string;
|