strapi-plugin-comments 3.2.3-beta.1 → 3.2.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/en-D55DewfG.js +1 -0
- package/dist/_chunks/{en-Y06L5Ws_.mjs → en-D_SOYUc-.mjs} +1 -0
- package/dist/_chunks/fr-BJBWOa1O.js +1 -0
- package/dist/_chunks/{fr-Cv2agoba.mjs → fr-D-buWSlG.mjs} +3 -2
- package/dist/_chunks/{index-BXQcm9IU.mjs → index-B0yEw22H.mjs} +6055 -6049
- package/dist/_chunks/{index-CWULkNp0.mjs → index-Bi2NGQAJ.mjs} +2069 -2087
- package/dist/_chunks/index-BuR0AJ4i.mjs +417 -0
- package/dist/_chunks/{index-D_8HT5__.js → index-Cw0IIXkV.js} +18 -18
- package/dist/_chunks/{index-BFK8nlhm.mjs → index-DKj3j1po.mjs} +9 -8
- package/dist/_chunks/index-DQDKR2VV.js +1 -0
- package/dist/_chunks/{index-BqopobY7.js → index-EP5RzAx9.js} +2 -2
- package/dist/_chunks/index-k6CsdDOQ.js +5 -0
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/api/client.d.ts +7 -7
- package/dist/admin/src/api/schemas.d.ts +35 -35
- package/dist/admin/src/contexts/UserContext.d.ts +4 -4
- package/dist/admin/src/hooks/useAPI.d.ts +11 -11
- package/dist/admin/src/hooks/useCommentMutations.d.ts +4 -4
- package/dist/admin/src/hooks/useUserContext.d.ts +4 -4
- package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +3 -3
- package/dist/admin/src/translations/en.d.ts +1 -0
- package/dist/admin/src/translations/fr.d.ts +1 -0
- package/dist/server/index.js +52 -52
- package/dist/server/index.mjs +2437 -2449
- package/dist/server/src/controllers/admin.controller.d.ts +1 -1
- package/dist/server/src/controllers/index.d.ts +1 -1
- package/dist/server/src/index.d.ts +673 -8967
- package/dist/server/src/services/admin/admin.service.d.ts +9 -144
- package/dist/server/src/services/index.d.ts +672 -8966
- package/package.json +3 -3
- package/dist/_chunks/en-nurIIakL.js +0 -1
- package/dist/_chunks/fr-JAoXWyAN.js +0 -1
- package/dist/_chunks/index-BIcDaXS9.js +0 -5
- package/dist/_chunks/index-C4g76XDn.js +0 -1
- package/dist/_chunks/index-CzeSZ5qw.mjs +0 -340
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Id, StrapiContext } from '../../@types';
|
|
2
|
-
import { type CommentRepository } from '../../repositories';
|
|
3
2
|
import { admin as adminValidator } from '../../validators/api';
|
|
4
3
|
declare const _default: ({ strapi }: StrapiContext) => {
|
|
5
4
|
getCommonService(): {
|
|
@@ -8248,7 +8247,7 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
8248
8247
|
registerLifecycleHook(): void;
|
|
8249
8248
|
runLifecycleHook(): Promise<void>;
|
|
8250
8249
|
};
|
|
8251
|
-
findAll({ _q, orderBy, page, pageSize, filters }: adminValidator.CommentFindAllSchema
|
|
8250
|
+
findAll({ _q, orderBy, page, pageSize, filters }: adminValidator.CommentFindAllSchema): Promise<{
|
|
8252
8251
|
pagination: {
|
|
8253
8252
|
page?: number;
|
|
8254
8253
|
pageSize?: number;
|
|
@@ -8396,7 +8395,7 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
8396
8395
|
};
|
|
8397
8396
|
}[];
|
|
8398
8397
|
}>;
|
|
8399
|
-
findReports({ _q, orderBy, page, pageSize }: adminValidator.ReportFindReportsValidator
|
|
8398
|
+
findReports({ _q, orderBy, page, pageSize }: adminValidator.ReportFindReportsValidator): Promise<{
|
|
8400
8399
|
result: {
|
|
8401
8400
|
id?: number;
|
|
8402
8401
|
documentId?: string;
|
|
@@ -8538,7 +8537,7 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
8538
8537
|
total?: number;
|
|
8539
8538
|
};
|
|
8540
8539
|
}>;
|
|
8541
|
-
findOneAndThread({ id, removed, ...query }: adminValidator.FindOneValidatorSchema
|
|
8540
|
+
findOneAndThread({ id, removed, ...query }: adminValidator.FindOneValidatorSchema): Promise<{
|
|
8542
8541
|
entity: {
|
|
8543
8542
|
uid: import("@strapi/types/dist/uid").ContentType;
|
|
8544
8543
|
documentId: string;
|
|
@@ -8814,7 +8813,7 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
8814
8813
|
author?: any;
|
|
8815
8814
|
};
|
|
8816
8815
|
}>;
|
|
8817
|
-
deleteComment(id: Id
|
|
8816
|
+
deleteComment(id: Id): Promise<{
|
|
8818
8817
|
id?: number;
|
|
8819
8818
|
documentId?: string;
|
|
8820
8819
|
content?: string;
|
|
@@ -9082,7 +9081,7 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
9082
9081
|
author?: any;
|
|
9083
9082
|
};
|
|
9084
9083
|
}>;
|
|
9085
|
-
approveComment(id: Id
|
|
9084
|
+
approveComment(id: Id): Promise<{
|
|
9086
9085
|
id?: number;
|
|
9087
9086
|
documentId?: string;
|
|
9088
9087
|
content?: string;
|
|
@@ -9216,7 +9215,7 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
9216
9215
|
author?: any;
|
|
9217
9216
|
};
|
|
9218
9217
|
}>;
|
|
9219
|
-
rejectComment(id: Id
|
|
9218
|
+
rejectComment(id: Id): Promise<{
|
|
9220
9219
|
id?: number;
|
|
9221
9220
|
documentId?: string;
|
|
9222
9221
|
content?: string;
|
|
@@ -9364,9 +9363,9 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
9364
9363
|
}>;
|
|
9365
9364
|
resolveCommentMultipleAbuseReports({ id: commentId, reportIds: ids, }: adminValidator.CommentResolveMultipleAbuseReportsValidatorSchema): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
9366
9365
|
resolveAllAbuseReportsForComment(id: Id): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
9367
|
-
resolveAllAbuseReportsForThread(commentId: number
|
|
9366
|
+
resolveAllAbuseReportsForThread(commentId: number): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
9368
9367
|
resolveMultipleAbuseReports({ reportIds, }: adminValidator.ReportsMultipleAbuseValidator): Promise<import("@strapi/database/dist/types").CountResult>;
|
|
9369
|
-
postComment({ id, author, content }: adminValidator.CommentPostValidatorSchema
|
|
9368
|
+
postComment({ id, author, content }: adminValidator.CommentPostValidatorSchema): Promise<{
|
|
9370
9369
|
id?: number;
|
|
9371
9370
|
documentId?: string;
|
|
9372
9371
|
content?: string;
|
|
@@ -9500,141 +9499,7 @@ declare const _default: ({ strapi }: StrapiContext) => {
|
|
|
9500
9499
|
author?: any;
|
|
9501
9500
|
};
|
|
9502
9501
|
}>;
|
|
9503
|
-
|
|
9504
|
-
id?: number;
|
|
9505
|
-
documentId?: string;
|
|
9506
|
-
content?: string;
|
|
9507
|
-
blocked?: boolean;
|
|
9508
|
-
blockedThread?: boolean;
|
|
9509
|
-
blockReason?: string;
|
|
9510
|
-
isAdminComment?: boolean;
|
|
9511
|
-
removed?: boolean;
|
|
9512
|
-
approvalStatus?: string;
|
|
9513
|
-
related?: string;
|
|
9514
|
-
createdAt?: string;
|
|
9515
|
-
updatedAt?: string;
|
|
9516
|
-
publishedAt?: string;
|
|
9517
|
-
authorId?: string;
|
|
9518
|
-
authorName?: string;
|
|
9519
|
-
authorEmail?: string;
|
|
9520
|
-
authorAvatar?: string;
|
|
9521
|
-
authorUser?: string | {
|
|
9522
|
-
id?: number;
|
|
9523
|
-
username?: string;
|
|
9524
|
-
email?: string;
|
|
9525
|
-
avatar?: {
|
|
9526
|
-
url?: string;
|
|
9527
|
-
name?: string;
|
|
9528
|
-
hash?: string;
|
|
9529
|
-
id?: number;
|
|
9530
|
-
formats?: {
|
|
9531
|
-
small?: {
|
|
9532
|
-
url?: string;
|
|
9533
|
-
name?: string;
|
|
9534
|
-
hash?: string;
|
|
9535
|
-
};
|
|
9536
|
-
thumbnail?: {
|
|
9537
|
-
url?: string;
|
|
9538
|
-
name?: string;
|
|
9539
|
-
hash?: string;
|
|
9540
|
-
};
|
|
9541
|
-
medium?: {
|
|
9542
|
-
url?: string;
|
|
9543
|
-
name?: string;
|
|
9544
|
-
hash?: string;
|
|
9545
|
-
};
|
|
9546
|
-
large?: {
|
|
9547
|
-
url?: string;
|
|
9548
|
-
name?: string;
|
|
9549
|
-
hash?: string;
|
|
9550
|
-
};
|
|
9551
|
-
};
|
|
9552
|
-
};
|
|
9553
|
-
};
|
|
9554
|
-
locale?: string;
|
|
9555
|
-
gotThread?: boolean;
|
|
9556
|
-
threadFirstItemId?: number;
|
|
9557
|
-
reports?: {
|
|
9558
|
-
id?: number;
|
|
9559
|
-
documentId?: string;
|
|
9560
|
-
content?: string;
|
|
9561
|
-
createdAt?: string;
|
|
9562
|
-
updatedAt?: string;
|
|
9563
|
-
publishedAt?: string;
|
|
9564
|
-
locale?: string;
|
|
9565
|
-
reason?: string;
|
|
9566
|
-
resolved?: boolean;
|
|
9567
|
-
}[];
|
|
9568
|
-
author?: any;
|
|
9569
|
-
threadOf?: number | {
|
|
9570
|
-
id?: number;
|
|
9571
|
-
documentId?: string;
|
|
9572
|
-
content?: string;
|
|
9573
|
-
blocked?: boolean;
|
|
9574
|
-
blockedThread?: boolean;
|
|
9575
|
-
blockReason?: string;
|
|
9576
|
-
isAdminComment?: boolean;
|
|
9577
|
-
removed?: boolean;
|
|
9578
|
-
approvalStatus?: string;
|
|
9579
|
-
related?: string;
|
|
9580
|
-
createdAt?: string;
|
|
9581
|
-
updatedAt?: string;
|
|
9582
|
-
publishedAt?: string;
|
|
9583
|
-
authorId?: string;
|
|
9584
|
-
authorName?: string;
|
|
9585
|
-
authorEmail?: string;
|
|
9586
|
-
authorAvatar?: string;
|
|
9587
|
-
authorUser?: string | {
|
|
9588
|
-
id?: number;
|
|
9589
|
-
username?: string;
|
|
9590
|
-
email?: string;
|
|
9591
|
-
avatar?: {
|
|
9592
|
-
url?: string;
|
|
9593
|
-
name?: string;
|
|
9594
|
-
hash?: string;
|
|
9595
|
-
id?: number;
|
|
9596
|
-
formats?: {
|
|
9597
|
-
small?: {
|
|
9598
|
-
url?: string;
|
|
9599
|
-
name?: string;
|
|
9600
|
-
hash?: string;
|
|
9601
|
-
};
|
|
9602
|
-
thumbnail?: {
|
|
9603
|
-
url?: string;
|
|
9604
|
-
name?: string;
|
|
9605
|
-
hash?: string;
|
|
9606
|
-
};
|
|
9607
|
-
medium?: {
|
|
9608
|
-
url?: string;
|
|
9609
|
-
name?: string;
|
|
9610
|
-
hash?: string;
|
|
9611
|
-
};
|
|
9612
|
-
large?: {
|
|
9613
|
-
url?: string;
|
|
9614
|
-
name?: string;
|
|
9615
|
-
hash?: string;
|
|
9616
|
-
};
|
|
9617
|
-
};
|
|
9618
|
-
};
|
|
9619
|
-
};
|
|
9620
|
-
locale?: string;
|
|
9621
|
-
gotThread?: boolean;
|
|
9622
|
-
threadFirstItemId?: number;
|
|
9623
|
-
reports?: {
|
|
9624
|
-
id?: number;
|
|
9625
|
-
documentId?: string;
|
|
9626
|
-
content?: string;
|
|
9627
|
-
createdAt?: string;
|
|
9628
|
-
updatedAt?: string;
|
|
9629
|
-
publishedAt?: string;
|
|
9630
|
-
locale?: string;
|
|
9631
|
-
reason?: string;
|
|
9632
|
-
resolved?: boolean;
|
|
9633
|
-
}[];
|
|
9634
|
-
author?: any;
|
|
9635
|
-
};
|
|
9636
|
-
}>;
|
|
9637
|
-
updateComment({ id, content }: adminValidator.UpdateCommentValidatorSchema, commentRepository: CommentRepository): Promise<{
|
|
9502
|
+
updateComment({ id, content }: adminValidator.UpdateCommentValidatorSchema): Promise<{
|
|
9638
9503
|
id?: number;
|
|
9639
9504
|
documentId?: string;
|
|
9640
9505
|
content?: string;
|