strapi-plugin-comments 3.2.3 → 3.2.5
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/LICENSE.md +18 -4
- package/README.md +379 -26
- package/dist/_chunks/{en-D_SOYUc-.mjs → en-B_ywmALc.mjs} +7 -0
- package/dist/_chunks/en-CTX-vxI-.js +1 -0
- package/dist/_chunks/fr-CJZ1I0cO.js +1 -0
- package/dist/_chunks/{fr-D-buWSlG.mjs → fr-CzgABcR9.mjs} +7 -0
- package/dist/_chunks/{index-B0yEw22H.mjs → index-2HqVa6_n.mjs} +11304 -12128
- package/dist/_chunks/index-BFzHCJ8V.mjs +5959 -0
- package/dist/_chunks/index-BYQzi_fP.js +44 -0
- package/dist/_chunks/{index-Cw0IIXkV.js → index-Cfy8GjIN.js} +134 -91
- package/dist/_chunks/{index-DKj3j1po.mjs → index-D8SWUMcR.mjs} +45 -23
- package/dist/_chunks/index-DXgb05uJ.js +1 -0
- package/dist/_chunks/{index-BuR0AJ4i.mjs → index-W9svnX5A.mjs} +185 -146
- package/dist/_chunks/index-hBG5i5nT.js +5 -0
- package/dist/_chunks/{pl-a5516Yys.mjs → pl-Ca-o0rE-.mjs} +7 -0
- package/dist/_chunks/pl-clljrMvo.js +1 -0
- package/dist/_chunks/pt-BR-DV48_kX8.js +1 -0
- package/dist/_chunks/{pt-BR-DwEywOda.mjs → pt-BR-XHO5Olrb.mjs} +7 -0
- package/dist/_chunks/ru-BK78F2Vt.js +1 -0
- package/dist/_chunks/{ru-72L1_BWN.mjs → ru-zKH0YOjJ.mjs} +7 -0
- package/dist/_chunks/tr-BMe1cFKp.js +1 -0
- package/dist/_chunks/{tr-Ca93Ai2h.mjs → tr-BaczzuT6.mjs} +7 -0
- package/dist/_chunks/{zh-Hans-DXLzMysj.mjs → zh-Hans-CPSQ76Y3.mjs} +7 -0
- package/dist/_chunks/zh-Hans-xMRxrXVG.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 +67 -58
- package/dist/admin/src/api/schemas.d.ts +169 -2797
- package/dist/admin/src/components/ActionButton/index.d.ts +2 -4
- package/dist/admin/src/components/CommentReactionsSummary/index.d.ts +8 -0
- package/dist/admin/src/components/CommentStatusFilters/index.d.ts +2 -1
- package/dist/admin/src/components/CustomInjectionZone/index.d.ts +6 -0
- package/dist/admin/src/components/CustomInjectionZoneCell/index.d.ts +7 -0
- package/dist/admin/src/components/DiscussionThreadItem/DiscussionThreadItemFooter.d.ts +1 -1
- package/dist/admin/src/components/DiscussionThreadItem/index.d.ts +3 -3
- package/dist/admin/src/components/IconButtonGroup/index.d.ts +2 -5
- package/dist/admin/src/components/LoadingIndicatorOverlay/index.d.ts +2 -1
- package/dist/admin/src/components/PluginIcon/index.d.ts +2 -1
- package/dist/admin/src/components/ReactionCounter/index.d.ts +7 -0
- package/dist/admin/src/components/ReactionCounter/styled.d.ts +16 -0
- package/dist/admin/src/components/SideNav/index.d.ts +2 -1
- package/dist/admin/src/components/StatusBadge/index.d.ts +3 -5
- package/dist/admin/src/components/Wysiwyg/EditorLayout.d.ts +2 -2
- package/dist/admin/src/components/Wysiwyg/PreviewWysiwyg.d.ts +2 -1
- package/dist/admin/src/components/Wysiwyg/WysiwygFooter.d.ts +2 -1
- package/dist/admin/src/components/Wysiwyg/WysiwygNav.d.ts +1 -1
- package/dist/admin/src/components/Wysiwyg/WysiwygStyles.d.ts +4 -4
- package/dist/admin/src/components/icons/comments.d.ts +2 -1
- package/dist/admin/src/components/icons/strapiIcons.d.ts +2 -1
- package/dist/admin/src/contexts/UserContext.d.ts +7 -7
- package/dist/admin/src/hooks/useAPI.d.ts +74 -65
- package/dist/admin/src/hooks/useCommentMutations.d.ts +18 -18
- package/dist/admin/src/hooks/useCommentsAll.d.ts +8 -6
- package/dist/admin/src/hooks/useConfig.d.ts +2 -0
- package/dist/admin/src/hooks/useReactionCounts.d.ts +2 -0
- package/dist/admin/src/hooks/useReactionTypes.d.ts +8 -0
- package/dist/admin/src/hooks/useReports.d.ts +13 -11
- package/dist/admin/src/hooks/useUserContext.d.ts +7 -7
- package/dist/admin/src/pages/AiEvaluations/index.d.ts +2 -0
- package/dist/admin/src/pages/App/index.d.ts +2 -1
- package/dist/admin/src/pages/Details/DetailsEntry.d.ts +2 -1
- package/dist/admin/src/pages/Discover/index.d.ts +2 -1
- package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +9 -7
- package/dist/admin/src/pages/Settings/index.d.ts +2 -1
- package/dist/admin/src/translations/en.d.ts +7 -0
- package/dist/admin/src/translations/fr.d.ts +7 -0
- package/dist/admin/src/translations/pl.d.ts +199 -192
- package/dist/admin/src/translations/pt-BR.d.ts +7 -0
- package/dist/admin/src/translations/ru.d.ts +7 -0
- package/dist/admin/src/translations/tr.d.ts +7 -0
- package/dist/admin/src/translations/zh-Hans.d.ts +7 -0
- package/dist/admin/src/utils/functions.d.ts +3 -0
- package/dist/admin/src/utils/reactionsIntegration.d.ts +24 -0
- package/dist/admin/src/utils/resolveCommentStatusColor.d.ts +1 -1
- package/dist/admin/src/utils/resolveReportStatusColor.d.ts +1 -1
- package/dist/server/index.js +69 -88
- package/dist/server/index.mjs +9714 -7520
- package/dist/server/src/config/index.d.ts +37 -112
- package/dist/server/src/const/REPORT_SOURCE.d.ts +4 -0
- package/dist/server/src/const/index.d.ts +1 -0
- package/dist/server/src/content-types/index.d.ts +7 -0
- package/dist/server/src/content-types/report/index.d.ts +7 -0
- package/dist/server/src/content-types/report/schema.d.ts +8 -1
- package/dist/server/src/controllers/admin.controller.d.ts +920 -888
- package/dist/server/src/controllers/client.controller.d.ts +1595 -709
- package/dist/server/src/controllers/index.d.ts +2784 -6208
- package/dist/server/src/controllers/settings.controller.d.ts +110 -94
- package/dist/server/src/graphql/getResolversConfig.d.ts +33 -0
- package/dist/server/src/graphql/mutations/getApproveComment.d.ts +149 -0
- package/dist/server/src/graphql/mutations/getBlockComment.d.ts +149 -0
- package/dist/server/src/graphql/mutations/getBlockCommentThread.d.ts +149 -0
- package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +81 -78
- package/dist/server/src/graphql/mutations/getCreateComment.d.ts +74 -72
- package/dist/server/src/graphql/mutations/getRejectComment.d.ts +149 -0
- package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +74 -72
- package/dist/server/src/graphql/mutations/getResolveAbuseReport.d.ts +25 -0
- package/dist/server/src/graphql/mutations/getResolveAllAbuseReportsForComment.d.ts +16 -0
- package/dist/server/src/graphql/mutations/getResolveAllAbuseReportsForThread.d.ts +16 -0
- package/dist/server/src/graphql/mutations/getResolveCommentMultipleAbuseReports.d.ts +17 -0
- package/dist/server/src/graphql/mutations/getResolveMultipleAbuseReports.d.ts +16 -0
- package/dist/server/src/graphql/mutations/getUnblockComment.d.ts +149 -0
- package/dist/server/src/graphql/mutations/getUnblockCommentThread.d.ts +149 -0
- package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +74 -72
- package/dist/server/src/graphql/queries/findAllFlat.d.ts +162 -155
- package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +9 -1
- package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +161 -154
- package/dist/server/src/graphql/types/getCommentReactionCount.d.ts +2 -0
- package/dist/server/src/graphql/types/getCommentReactionsMetaEntry.d.ts +2 -0
- package/dist/server/src/graphql/types/getModerateCommentInput.d.ts +2 -0
- package/dist/server/src/graphql/types/getReportsResolveBatch.d.ts +2 -0
- package/dist/server/src/graphql/types/getResolveAbuseReportInput.d.ts +2 -0
- package/dist/server/src/graphql/types/getResolveCommentMultipleAbuseReportsInput.d.ts +2 -0
- package/dist/server/src/graphql/types/getResolveMultipleAbuseReportsInput.d.ts +2 -0
- package/dist/server/src/graphql/types/index.d.ts +1 -1
- package/dist/server/src/index.d.ts +17 -35339
- package/dist/server/src/repositories/report.comment.repository.d.ts +87 -83
- package/dist/server/src/repositories/store.repository.d.ts +144 -124
- package/dist/server/src/services/admin/admin.service.d.ts +14597 -8230
- package/dist/server/src/services/client.service.d.ts +11410 -7681
- package/dist/server/src/services/common.service.d.ts +3546 -469
- package/dist/server/src/services/email.service.d.ts +11 -0
- package/dist/server/src/services/index.d.ts +17 -27339
- package/dist/server/src/services/reactions.service.d.ts +11976 -0
- package/dist/server/src/services/settings.service.d.ts +85 -73
- package/dist/server/src/services/utils/functions.d.ts +2 -2
- package/dist/server/src/services/utils/reactions.d.ts +12 -0
- package/dist/server/src/utils/constants.d.ts +1 -0
- package/dist/server/src/utils/getConfig.d.ts +1 -1
- package/dist/server/src/utils/getPluginService.d.ts +1 -1
- package/dist/server/src/utils/types.d.ts +5 -3
- package/dist/server/src/validators/api/controllers/admin.controller.validator.d.ts +234 -1322
- package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +2051 -2013
- package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +15 -13
- package/dist/server/src/validators/repositories/comment.schema.d.ts +15 -439
- package/dist/server/src/validators/repositories/comment.validator.d.ts +240 -7397
- package/dist/server/src/validators/repositories/reports.validator.d.ts +89 -2940
- package/dist/server/src/validators/repositories/utils.d.ts +5 -13
- package/dist/server/src/validators/utils.d.ts +164 -1875
- package/dist/shared/constants.d.ts +1 -0
- package/package.json +40 -48
- package/dist/_chunks/en-D55DewfG.js +0 -1
- package/dist/_chunks/fr-BJBWOa1O.js +0 -1
- package/dist/_chunks/index-Bi2NGQAJ.mjs +0 -5682
- package/dist/_chunks/index-DQDKR2VV.js +0 -1
- package/dist/_chunks/index-EP5RzAx9.js +0 -44
- package/dist/_chunks/index-k6CsdDOQ.js +0 -5
- package/dist/_chunks/pl-DUaDM2d3.js +0 -1
- package/dist/_chunks/pt-BR-BXuFBSgm.js +0 -1
- package/dist/_chunks/ru-B7jFc-n7.js +0 -1
- package/dist/_chunks/tr-B2Tw9kcB.js +0 -1
- package/dist/_chunks/zh-Hans-Cp3JcN8q.js +0 -1
|
@@ -8,6 +8,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
8
8
|
entryLabel: Record<string, string[]>;
|
|
9
9
|
approvalFlow: string[];
|
|
10
10
|
blockedAuthorProps: string[];
|
|
11
|
+
reactionsEnabled: boolean;
|
|
11
12
|
reportReasons: Record<string, string>;
|
|
12
13
|
regex: {
|
|
13
14
|
uid: string;
|
|
@@ -18,6 +19,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
18
19
|
enabledCollections: string[];
|
|
19
20
|
moderatorRoles: string[];
|
|
20
21
|
isGQLPluginEnabled: boolean;
|
|
22
|
+
isReactionsPluginInstalled: boolean;
|
|
21
23
|
client: {
|
|
22
24
|
url: string | null;
|
|
23
25
|
contactEmail: string | null;
|
|
@@ -32,8 +34,8 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
32
34
|
single: {
|
|
33
35
|
getKey(uid: string, canAccess: boolean): (string | boolean)[];
|
|
34
36
|
query(uid: string): Promise<{
|
|
35
|
-
uid: string;
|
|
36
37
|
apiID: string;
|
|
38
|
+
uid: string;
|
|
37
39
|
schema: {
|
|
38
40
|
attributes: Record<string, {
|
|
39
41
|
type: string;
|
|
@@ -52,8 +54,8 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
52
54
|
all: {
|
|
53
55
|
getKey(): string[];
|
|
54
56
|
query(): Promise<{
|
|
55
|
-
uid: string;
|
|
56
57
|
apiID: string;
|
|
58
|
+
uid: string;
|
|
57
59
|
schema: {
|
|
58
60
|
attributes: Record<string, {
|
|
59
61
|
type: string;
|
|
@@ -73,39 +75,39 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
73
75
|
roles: {
|
|
74
76
|
getKey(): string[];
|
|
75
77
|
query(): Promise<{
|
|
76
|
-
code: string;
|
|
77
78
|
id: number;
|
|
78
79
|
documentId: string;
|
|
80
|
+
name: string;
|
|
81
|
+
code: string;
|
|
82
|
+
description: string;
|
|
79
83
|
createdAt: string | null;
|
|
80
84
|
updatedAt: string | null;
|
|
81
85
|
publishedAt: string | null;
|
|
82
86
|
locale: string | null;
|
|
83
|
-
name: string;
|
|
84
|
-
description: string;
|
|
85
87
|
usersCount: number;
|
|
86
88
|
}[]>;
|
|
87
89
|
};
|
|
88
90
|
user: {
|
|
89
91
|
getKey(): string[];
|
|
90
92
|
query(): Promise<{
|
|
91
|
-
email: string;
|
|
92
93
|
id: number;
|
|
93
94
|
documentId: string;
|
|
94
|
-
createdAt: string | null;
|
|
95
|
-
updatedAt: string | null;
|
|
96
|
-
publishedAt: string | null;
|
|
97
|
-
locale: null;
|
|
98
|
-
blocked: boolean | null;
|
|
99
95
|
firstname: string;
|
|
100
96
|
lastname: string | null;
|
|
101
97
|
username: string | null;
|
|
98
|
+
email: string;
|
|
102
99
|
isActive: boolean;
|
|
100
|
+
blocked: boolean | null;
|
|
103
101
|
preferedLanguage: string | null;
|
|
102
|
+
createdAt: string | null;
|
|
103
|
+
updatedAt: string | null;
|
|
104
|
+
publishedAt: string | null;
|
|
105
|
+
locale: null;
|
|
104
106
|
roles: {
|
|
105
|
-
code: string;
|
|
106
107
|
id: number;
|
|
107
108
|
name: string;
|
|
108
109
|
description: string;
|
|
110
|
+
code: string;
|
|
109
111
|
}[];
|
|
110
112
|
}>;
|
|
111
113
|
};
|
|
@@ -126,8 +128,8 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
126
128
|
getKey(id?: number | string, filters?: any): string[];
|
|
127
129
|
query(id: number | string, filters: any): Promise<{
|
|
128
130
|
entity: {
|
|
129
|
-
uid: string;
|
|
130
131
|
id: number;
|
|
132
|
+
uid: string;
|
|
131
133
|
documentId: string;
|
|
132
134
|
createdAt: string;
|
|
133
135
|
updatedAt: string;
|
|
@@ -136,8 +138,6 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
136
138
|
} & Record<string, unknown>;
|
|
137
139
|
selected: {
|
|
138
140
|
id: number;
|
|
139
|
-
createdAt: string;
|
|
140
|
-
updatedAt: string;
|
|
141
141
|
content: string;
|
|
142
142
|
blocked: boolean | null;
|
|
143
143
|
blockedThread: boolean | null;
|
|
@@ -145,19 +145,23 @@ 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
|
+
createdAt: string;
|
|
149
|
+
updatedAt: string;
|
|
150
|
+
documentId: string;
|
|
148
151
|
related: string;
|
|
149
152
|
reports?: {
|
|
150
|
-
resolved: boolean;
|
|
151
153
|
id: number;
|
|
154
|
+
content: string;
|
|
155
|
+
resolved: boolean;
|
|
152
156
|
createdAt: string;
|
|
153
157
|
updatedAt: string | null;
|
|
154
|
-
content: string;
|
|
155
158
|
reason?: string | null | undefined;
|
|
159
|
+
source?: "USER" | "AI" | null | undefined;
|
|
156
160
|
}[] | null | undefined;
|
|
157
161
|
author?: {
|
|
158
|
-
email?: string | null | undefined;
|
|
159
162
|
id?: string | number | null | undefined;
|
|
160
163
|
name?: string | null | undefined;
|
|
164
|
+
email?: string | null | undefined;
|
|
161
165
|
avatar?: string | {
|
|
162
166
|
url: string;
|
|
163
167
|
} | {
|
|
@@ -185,17 +189,18 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
185
189
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
186
190
|
related: string;
|
|
187
191
|
reports?: {
|
|
188
|
-
resolved: boolean;
|
|
189
192
|
id: number;
|
|
193
|
+
content: string;
|
|
194
|
+
resolved: boolean;
|
|
190
195
|
createdAt: string;
|
|
191
196
|
updatedAt: string | null;
|
|
192
|
-
content: string;
|
|
193
197
|
reason?: string | null | undefined;
|
|
198
|
+
source?: "USER" | "AI" | null | undefined;
|
|
194
199
|
}[] | null | undefined;
|
|
195
200
|
author?: {
|
|
196
|
-
email?: string | null | undefined;
|
|
197
201
|
id?: string | number | null | undefined;
|
|
198
202
|
name?: string | null | undefined;
|
|
203
|
+
email?: string | null | undefined;
|
|
199
204
|
avatar?: string | {
|
|
200
205
|
url: string;
|
|
201
206
|
} | {
|
|
@@ -211,8 +216,6 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
211
216
|
threadFirstItemId?: number | null | undefined;
|
|
212
217
|
threadOf?: {
|
|
213
218
|
id: number;
|
|
214
|
-
createdAt: string;
|
|
215
|
-
updatedAt: string;
|
|
216
219
|
content: string;
|
|
217
220
|
blocked: boolean | null;
|
|
218
221
|
blockedThread: boolean | null;
|
|
@@ -220,20 +223,22 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
220
223
|
isAdminComment: boolean | null;
|
|
221
224
|
removed: boolean | null;
|
|
222
225
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
226
|
+
createdAt: string;
|
|
227
|
+
updatedAt: string;
|
|
223
228
|
related: string;
|
|
224
|
-
documentId?: string | undefined;
|
|
225
229
|
reports?: {
|
|
226
|
-
resolved: boolean;
|
|
227
230
|
id: number;
|
|
231
|
+
content: string;
|
|
232
|
+
resolved: boolean;
|
|
228
233
|
createdAt: string;
|
|
229
234
|
updatedAt: string | null;
|
|
230
|
-
content: string;
|
|
231
235
|
reason?: string | null | undefined;
|
|
236
|
+
source?: "USER" | "AI" | null | undefined;
|
|
232
237
|
}[] | null | undefined;
|
|
233
238
|
author?: {
|
|
234
|
-
email?: string | null | undefined;
|
|
235
239
|
id?: string | number | null | undefined;
|
|
236
240
|
name?: string | null | undefined;
|
|
241
|
+
email?: string | null | undefined;
|
|
237
242
|
avatar?: string | {
|
|
238
243
|
url: string;
|
|
239
244
|
} | {
|
|
@@ -248,6 +253,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
248
253
|
gotThread?: boolean | null | undefined;
|
|
249
254
|
threadFirstItemId?: number | null | undefined;
|
|
250
255
|
threadOf?: import("./schemas").Comment | null | undefined;
|
|
256
|
+
documentId?: string | undefined;
|
|
251
257
|
} | null | undefined;
|
|
252
258
|
} | null | undefined;
|
|
253
259
|
} | null;
|
|
@@ -264,17 +270,18 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
264
270
|
removed: boolean | null;
|
|
265
271
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
266
272
|
reports?: {
|
|
267
|
-
resolved: boolean;
|
|
268
273
|
id: number;
|
|
274
|
+
content: string;
|
|
275
|
+
resolved: boolean;
|
|
269
276
|
createdAt: string;
|
|
270
277
|
updatedAt: string | null;
|
|
271
|
-
content: string;
|
|
272
278
|
reason?: string | null | undefined;
|
|
279
|
+
source?: "USER" | "AI" | null | undefined;
|
|
273
280
|
}[] | null | undefined;
|
|
274
281
|
author?: {
|
|
275
|
-
email?: string | null | undefined;
|
|
276
282
|
id?: string | number | null | undefined;
|
|
277
283
|
name?: string | null | undefined;
|
|
284
|
+
email?: string | null | undefined;
|
|
278
285
|
avatar?: string | {
|
|
279
286
|
url: string;
|
|
280
287
|
} | {
|
|
@@ -291,22 +298,22 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
291
298
|
}[];
|
|
292
299
|
}>;
|
|
293
300
|
};
|
|
294
|
-
approve(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
295
|
-
reject(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
296
|
-
block(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
297
|
-
unblock(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
298
|
-
blockThread(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
299
|
-
unBlockThread(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
300
|
-
delete(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
301
|
+
approve(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
302
|
+
reject(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
303
|
+
block(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
304
|
+
unblock(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
305
|
+
blockThread(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
306
|
+
unBlockThread(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
307
|
+
delete(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
301
308
|
postComment({ id, content, author }: {
|
|
302
309
|
id: number | string;
|
|
303
310
|
content: string;
|
|
304
311
|
author: User;
|
|
305
|
-
}): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
312
|
+
}): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
306
313
|
updateComment({ id, content }: {
|
|
307
314
|
id: number | string;
|
|
308
315
|
content: string;
|
|
309
|
-
}): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
316
|
+
}): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
310
317
|
};
|
|
311
318
|
reports: {
|
|
312
319
|
findAll: {
|
|
@@ -319,15 +326,14 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
319
326
|
total: number;
|
|
320
327
|
};
|
|
321
328
|
result: {
|
|
322
|
-
|
|
323
|
-
createdAt: string;
|
|
324
|
-
updatedAt: string | null;
|
|
329
|
+
author: unknown;
|
|
325
330
|
content: string;
|
|
331
|
+
id: number;
|
|
326
332
|
reports: unknown[];
|
|
333
|
+
updatedAt: string | null;
|
|
334
|
+
createdAt: string;
|
|
327
335
|
related: {
|
|
328
336
|
id: number;
|
|
329
|
-
createdAt: string;
|
|
330
|
-
updatedAt: string;
|
|
331
337
|
content: string;
|
|
332
338
|
blocked: boolean | null;
|
|
333
339
|
blockedThread: boolean | null;
|
|
@@ -335,18 +341,21 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
335
341
|
isAdminComment: boolean | null;
|
|
336
342
|
removed: boolean | null;
|
|
337
343
|
approvalStatus: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null;
|
|
344
|
+
createdAt: string;
|
|
345
|
+
updatedAt: string;
|
|
338
346
|
reports?: {
|
|
339
|
-
resolved: boolean;
|
|
340
347
|
id: number;
|
|
348
|
+
content: string;
|
|
349
|
+
resolved: boolean;
|
|
341
350
|
createdAt: string;
|
|
342
351
|
updatedAt: string | null;
|
|
343
|
-
content: string;
|
|
344
352
|
reason?: string | null | undefined;
|
|
353
|
+
source?: "USER" | "AI" | null | undefined;
|
|
345
354
|
}[] | null | undefined;
|
|
346
355
|
author?: {
|
|
347
|
-
email?: string | null | undefined;
|
|
348
356
|
id?: string | number | null | undefined;
|
|
349
357
|
name?: string | null | undefined;
|
|
358
|
+
email?: string | null | undefined;
|
|
350
359
|
avatar?: string | {
|
|
351
360
|
url: string;
|
|
352
361
|
} | {
|
|
@@ -361,30 +370,30 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
|
|
|
361
370
|
gotThread?: boolean | null | undefined;
|
|
362
371
|
threadFirstItemId?: number | null | undefined;
|
|
363
372
|
};
|
|
364
|
-
resolved?: boolean | undefined;
|
|
365
|
-
reason?: string | null | undefined;
|
|
366
373
|
approvalStatus?: "PENDING" | "APPROVED" | "REJECTED" | "BLOCKED" | "OPEN" | "REMOVED" | "TO_REVIEW" | "UNKNOWN" | null | undefined;
|
|
367
|
-
|
|
374
|
+
reason?: string | null | undefined;
|
|
375
|
+
resolved?: boolean | undefined;
|
|
376
|
+
source?: "USER" | "AI" | null | undefined;
|
|
368
377
|
}[];
|
|
369
378
|
}>;
|
|
370
379
|
};
|
|
371
380
|
resolve({ id, reportId }: {
|
|
372
381
|
id: number;
|
|
373
382
|
reportId: number;
|
|
374
|
-
}): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
383
|
+
}): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
375
384
|
resolveMultipleReports({ reportIds }: {
|
|
376
385
|
reportIds: number[];
|
|
377
|
-
}): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
386
|
+
}): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
378
387
|
resolveCommentMultipleReports({ id, reportIds }: {
|
|
379
388
|
id: number;
|
|
380
389
|
reportIds: number[];
|
|
381
|
-
}): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
382
|
-
resolveAllAbuseReportsForComment(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
383
|
-
resolveAllAbuseReportsForThread(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
390
|
+
}): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
391
|
+
resolveAllAbuseReportsForComment(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
392
|
+
resolveAllAbuseReportsForThread(id: number): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
384
393
|
};
|
|
385
394
|
settings: {
|
|
386
|
-
update(body: any): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
387
|
-
restore(): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
388
|
-
restart(): Promise<import("@strapi/strapi/admin").FetchResponse<
|
|
395
|
+
update(body: any): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
396
|
+
restore(): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
397
|
+
restart(): Promise<import("@strapi/strapi/admin").FetchResponse<unknown>>;
|
|
389
398
|
};
|
|
390
399
|
};
|