strapi-plugin-comments 3.0.0-beta.1 → 3.0.0

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 (90) hide show
  1. package/README.md +81 -122
  2. package/dist/_chunks/{index-CY_AVWS-.js → index-B-ygLKrb.js} +417 -242
  3. package/dist/_chunks/{index-D3iNqWZT.mjs → index-BgN4aUMA.mjs} +5 -5
  4. package/dist/_chunks/{index-BBcsmSTs.mjs → index-Bx2boY6h.mjs} +420 -245
  5. package/dist/_chunks/{index-DJ32APz-.mjs → index-CIqMAf50.mjs} +1277 -1152
  6. package/dist/_chunks/{index-BXEk5PWx.js → index-CWfr5ejx.js} +20 -26
  7. package/dist/_chunks/{index-BFPteXuP.js → index-D8uskGzQ.js} +5 -5
  8. package/dist/_chunks/{index-Bcck91A8.js → index-DFAPx7Bl.js} +1290 -1144
  9. package/dist/_chunks/{index-D9MOkoQ2.mjs → index-Db2zwbpe.mjs} +20 -26
  10. package/dist/admin/index.js +1 -1
  11. package/dist/admin/index.mjs +1 -1
  12. package/dist/admin/src/api/client.d.ts +30 -50
  13. package/dist/admin/src/api/schemas.d.ts +432 -756
  14. package/dist/admin/src/components/UserAvatar/index.d.ts +1 -1
  15. package/dist/admin/src/hooks/useAPI.d.ts +30 -50
  16. package/dist/admin/src/hooks/useCommentsAll.d.ts +6 -10
  17. package/dist/admin/src/hooks/useReports.d.ts +6 -10
  18. package/dist/server/index.js +198 -144
  19. package/dist/server/index.mjs +198 -144
  20. package/dist/server/src/{@types-v5 → @types}/utils.d.ts +4 -0
  21. package/dist/server/src/bootstrap.d.ts +1 -1
  22. package/dist/server/src/config/index.d.ts +30 -0
  23. package/dist/server/src/content-types/index.d.ts +1 -1
  24. package/dist/server/src/controllers/admin.controller.d.ts +108 -29
  25. package/dist/server/src/controllers/client.controller.d.ts +117 -23
  26. package/dist/server/src/controllers/index.d.ts +297 -88
  27. package/dist/server/src/controllers/settings.controller.d.ts +33 -1
  28. package/dist/server/src/graphql/index.d.ts +1 -1
  29. package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +10 -4
  30. package/dist/server/src/graphql/mutations/getCreateComment.d.ts +10 -4
  31. package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +10 -4
  32. package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +10 -4
  33. package/dist/server/src/graphql/mutations/index.d.ts +2 -2
  34. package/dist/server/src/graphql/queries/findAllFlat.d.ts +18 -6
  35. package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +10 -4
  36. package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +18 -6
  37. package/dist/server/src/graphql/queries/index.d.ts +2 -2
  38. package/dist/server/src/graphql/types/getComment.d.ts +1 -1
  39. package/dist/server/src/graphql/types/getCommentAuthor.d.ts +1 -1
  40. package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +1 -1
  41. package/dist/server/src/graphql/types/getCommentNested.d.ts +1 -1
  42. package/dist/server/src/graphql/types/getCreateComment.d.ts +1 -1
  43. package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +1 -1
  44. package/dist/server/src/graphql/types/getCreateReport.d.ts +1 -1
  45. package/dist/server/src/graphql/types/getId.d.ts +1 -1
  46. package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +1 -1
  47. package/dist/server/src/graphql/types/getRemoveComment.d.ts +1 -1
  48. package/dist/server/src/graphql/types/getReport.d.ts +1 -1
  49. package/dist/server/src/graphql/types/getReportReason.d.ts +1 -1
  50. package/dist/server/src/graphql/types/getResponseFindAll.d.ts +1 -1
  51. package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +1 -1
  52. package/dist/server/src/graphql/types/getResponseMeta.d.ts +1 -1
  53. package/dist/server/src/graphql/types/getResponsePagination.d.ts +1 -1
  54. package/dist/server/src/graphql/types/getUpdateComment.d.ts +1 -1
  55. package/dist/server/src/graphql/types/index.d.ts +1 -1
  56. package/dist/server/src/index.d.ts +921 -314
  57. package/dist/server/src/register/custom-fields/index.d.ts +1 -1
  58. package/dist/server/src/register/index.d.ts +1 -1
  59. package/dist/server/src/repositories/comment.repository.d.ts +10 -1
  60. package/dist/server/src/repositories/index.d.ts +0 -2
  61. package/dist/server/src/repositories/report.comment.repository.d.ts +38 -1
  62. package/dist/server/src/repositories/store.repository.d.ts +159 -3
  63. package/dist/server/src/repositories/utils.d.ts +1 -3
  64. package/dist/server/src/routes/admin.routes.d.ts +1 -1
  65. package/dist/server/src/routes/client.routes.d.ts +1 -1
  66. package/dist/server/src/routes/index.d.ts +2 -2
  67. package/dist/server/src/services/admin/admin.service.d.ts +232 -78
  68. package/dist/server/src/services/admin/utils.d.ts +1 -1
  69. package/dist/server/src/services/client.service.d.ts +177 -66
  70. package/dist/server/src/services/common.service.d.ts +60 -19
  71. package/dist/server/src/services/gql.service.d.ts +1 -1
  72. package/dist/server/src/services/index.d.ts +608 -222
  73. package/dist/server/src/services/settings.service.d.ts +25 -1
  74. package/dist/server/src/services/utils/functions.d.ts +1 -3
  75. package/dist/server/src/test/utils.d.ts +1 -0
  76. package/dist/server/src/utils/constants.d.ts +1 -1
  77. package/dist/server/src/utils/getConfig.d.ts +2 -2
  78. package/dist/server/src/utils/getPluginService.d.ts +2 -2
  79. package/dist/server/src/utils/throwError.d.ts +1 -1
  80. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +10 -9
  81. package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +4 -0
  82. package/dist/server/src/validators/repositories/comment.schema.d.ts +18 -3
  83. package/dist/server/src/validators/repositories/comment.validator.d.ts +384 -72
  84. package/dist/server/src/validators/repositories/reports.validator.d.ts +60 -18
  85. package/dist/server/src/validators/utils.d.ts +1 -1
  86. package/package.json +18 -12
  87. /package/dist/server/src/{@types-v5 → @types}/controllers.d.ts +0 -0
  88. /package/dist/server/src/{@types-v5 → @types}/index.d.ts +0 -0
  89. /package/dist/server/src/{@types-v5 → @types}/repositories.d.ts +0 -0
  90. /package/dist/server/src/{@types-v5 → @types}/routes.d.ts +0 -0
@@ -1,9 +1,9 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useNotification, Form, Page, Layouts, useTracking, useQueryParams, SearchInput, Pagination } from "@strapi/strapi/admin";
3
3
  import { useNavigate, useParams, Routes, Route, Navigate } from "react-router-dom";
4
- import { S as SubNav, a as SubNavHeader, b as SubNavSections, c as SubNavSection, d as SubNavLink, p as pluginId, B as Box, T as Typography, D as Divider, F as Flex, C as CheckboxImpl, e as Button, I as IconButton, f as ForwardRef$4p, g as ForwardRef$3V, h as Badge, i as IconButtonGroup$1, P as Portal$1, j as FocusTrap, k as ForwardRef$3$, l as ForwardRef$3v, m as Field, n as SingleSelect, o as SingleSelectOption, q as ForwardRef$4P, r as ForwardRef$2v, s as ForwardRef$f, t as ForwardRef$1R, u as Popover, v as ForwardRef$v, w as ForwardRef$4J, x as ForwardRef$1L, y as ForwardRef$45, z as ForwardRef$2l, A as ForwardRef$11, M as Modal, E as Table, G as Thead, H as Tr, J as Th, K as Tbody, L as ForwardRef$1r, N as ForwardRef$j, O as ForwardRef$3r, Q as ForwardRef$1d, R as ForwardRef$R, U as Avatar, V as Loader, W as Link, X as ForwardRef$4V, Y as Grid, Z as Td, _ as SimpleMenu, $ as MenuItem } from "./index-BBcsmSTs.mjs";
4
+ import { S as SubNav, a as SubNavHeader, b as SubNavSections, c as SubNavSection, d as SubNavLink, p as pluginId, B as Box, T as Typography, D as Divider, F as Flex, C as CheckboxImpl, e as Button, I as IconButton, f as ForwardRef$4x, g as ForwardRef$3$, h as Badge, i as IconButtonGroup$1, P as Portal$1, j as FocusTrap, k as ForwardRef$45, l as ForwardRef$3B, m as Field, n as SingleSelect, o as SingleSelectOption, q as ForwardRef$4X, r as ForwardRef$2v, s as ForwardRef$f, t as ForwardRef$1R, u as Popover, v as ForwardRef$v, w as ForwardRef$4R, x as ForwardRef$1L, y as ForwardRef$4d, z as ForwardRef$2l, A as ForwardRef$11, M as Modal, E as Table, G as Thead, H as Tr, J as Th, K as Tbody, L as ForwardRef$1r, N as ForwardRef$j, O as ForwardRef$3x, Q as ForwardRef$1d, R as ForwardRef$R, U as Avatar, V as Loader, W as Link, X as ForwardRef$51, Y as Grid, Z as Td, _ as SimpleMenu, $ as MenuItem } from "./index-Bx2boY6h.mjs";
5
5
  import { useQuery, useQueryClient, useMutation } from "@tanstack/react-query";
6
- import { u as useAPI, l as lodashExports, C as COMMENT_STATUS, R as REPORT_STATUS, g as getMessage, a as usePermissions, U as UserContext, b as getDefaultExportFromCjs, c as useIntl, d as REPORT_REASON, e as ConfirmationDialog, f as CommonProviders } from "./index-DJ32APz-.mjs";
6
+ import { u as useAPI, l as lodashExports, C as COMMENT_STATUS, R as REPORT_STATUS, g as getMessage, a as usePermissions, U as UserContext, b as getDefaultExportFromCjs, c as useIntl, d as REPORT_REASON, e as ConfirmationDialog, f as CommonProviders } from "./index-CIqMAf50.mjs";
7
7
  import { create } from "zustand/react";
8
8
  import * as React from "react";
9
9
  import { useCallback, useMemo, useContext, useState, useRef, Fragment as Fragment$1 } from "react";
@@ -373,7 +373,7 @@ const ApproveFlow = ({ id: id2, canModerate, queryKey }) => {
373
373
  {
374
374
  onClick: handleApproveClick,
375
375
  label: "Approve",
376
- children: /* @__PURE__ */ jsx(ForwardRef$4p, {})
376
+ children: /* @__PURE__ */ jsx(ForwardRef$4x, {})
377
377
  }
378
378
  ),
379
379
  /* @__PURE__ */ jsx(
@@ -381,7 +381,7 @@ const ApproveFlow = ({ id: id2, canModerate, queryKey }) => {
381
381
  {
382
382
  label: "Reject",
383
383
  onClick: handleRejectClick,
384
- children: /* @__PURE__ */ jsx(ForwardRef$3V, {})
384
+ children: /* @__PURE__ */ jsx(ForwardRef$3$, {})
385
385
  }
386
386
  )
387
387
  ] });
@@ -49673,7 +49673,7 @@ const EditorLayout = ({
49673
49673
  id: "components.Wysiwyg.collapse",
49674
49674
  defaultMessage: "Collapse"
49675
49675
  }) }),
49676
- /* @__PURE__ */ jsx(ForwardRef$3$, {})
49676
+ /* @__PURE__ */ jsx(ForwardRef$45, {})
49677
49677
  ] })
49678
49678
  }
49679
49679
  ),
@@ -50001,7 +50001,7 @@ const WysiwygFooter = ({ onToggleExpand }) => {
50001
50001
  id: "components.WysiwygBottomControls.fullscreen",
50002
50002
  defaultMessage: "Expand"
50003
50003
  }) }),
50004
- /* @__PURE__ */ jsx(ForwardRef$3v, {})
50004
+ /* @__PURE__ */ jsx(ForwardRef$3B, {})
50005
50005
  ] }) }) });
50006
50006
  };
50007
50007
  const WysiwygNav = ({
@@ -50050,7 +50050,7 @@ const WysiwygNav = ({
50050
50050
  }
50051
50051
  ) }),
50052
50052
  /* @__PURE__ */ jsxs(MainButtons, { children: [
50053
- /* @__PURE__ */ jsx(IconButton, { disabled: true, label: "Bold", name: "Bold", children: /* @__PURE__ */ jsx(ForwardRef$4P, {}) }),
50053
+ /* @__PURE__ */ jsx(IconButton, { disabled: true, label: "Bold", name: "Bold", children: /* @__PURE__ */ jsx(ForwardRef$4X, {}) }),
50054
50054
  /* @__PURE__ */ jsx(IconButton, { disabled: true, label: "Italic", name: "Italic", children: /* @__PURE__ */ jsx(ForwardRef$2v, {}) }),
50055
50055
  /* @__PURE__ */ jsx(IconButton, { disabled: true, label: "Underline", name: "Underline", children: /* @__PURE__ */ jsx(ForwardRef$f, {}) })
50056
50056
  ] }),
@@ -50091,7 +50091,7 @@ const WysiwygNav = ({
50091
50091
  }
50092
50092
  ) }),
50093
50093
  /* @__PURE__ */ jsxs(MainButtons, { children: [
50094
- /* @__PURE__ */ jsx(IconButton, { onClick: () => onActionClick("Bold", editorRef), label: "Bold", name: "Bold", children: /* @__PURE__ */ jsx(ForwardRef$4P, {}) }),
50094
+ /* @__PURE__ */ jsx(IconButton, { onClick: () => onActionClick("Bold", editorRef), label: "Bold", name: "Bold", children: /* @__PURE__ */ jsx(ForwardRef$4X, {}) }),
50095
50095
  /* @__PURE__ */ jsx(
50096
50096
  IconButton,
50097
50097
  {
@@ -50130,7 +50130,7 @@ const WysiwygNav = ({
50130
50130
  onClick: () => onActionClick("BulletList", editorRef, handleTogglePopover),
50131
50131
  label: "BulletList",
50132
50132
  name: "BulletList",
50133
- children: /* @__PURE__ */ jsx(ForwardRef$4J, {})
50133
+ children: /* @__PURE__ */ jsx(ForwardRef$4R, {})
50134
50134
  }
50135
50135
  ),
50136
50136
  /* @__PURE__ */ jsx(
@@ -50150,7 +50150,7 @@ const WysiwygNav = ({
50150
50150
  onClick: () => onActionClick("Code", editorRef, handleTogglePopover),
50151
50151
  label: "Code",
50152
50152
  name: "Code",
50153
- children: /* @__PURE__ */ jsx(ForwardRef$45, {})
50153
+ children: /* @__PURE__ */ jsx(ForwardRef$4d, {})
50154
50154
  }
50155
50155
  ),
50156
50156
  /* @__PURE__ */ jsx(
@@ -50502,7 +50502,7 @@ const ReportReviewTable = ({
50502
50502
  Button,
50503
50503
  {
50504
50504
  variant: "success",
50505
- startIcon: /* @__PURE__ */ jsx(ForwardRef$4p, {}),
50505
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$4x, {}),
50506
50506
  onClick: onClickResolve(report.id),
50507
50507
  children: getMessage(
50508
50508
  "page.details.panel.discussion.warnings.reports.dialog.actions.resolve",
@@ -50618,7 +50618,7 @@ const ReviewFlow = ({
50618
50618
  {
50619
50619
  onClick: onClickResolveSelected,
50620
50620
  variant: "success",
50621
- startIcon: /* @__PURE__ */ jsx(ForwardRef$4p, {}),
50621
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$4x, {}),
50622
50622
  disabled: blockButtonsDisabled,
50623
50623
  children: getMessage(
50624
50624
  {
@@ -50851,7 +50851,7 @@ const DiscussionThreadItemActions = ({ item, pinned, preview }) => {
50851
50851
  {
50852
50852
  onClick: handleDrillDownClick,
50853
50853
  style: blocked && !blockedThread ? { marginTop: "1px", marginRight: ".5rem" } : {},
50854
- children: /* @__PURE__ */ jsx(ForwardRef$3r, {})
50854
+ children: /* @__PURE__ */ jsx(ForwardRef$3x, {})
50855
50855
  }
50856
50856
  ) }),
50857
50857
  isThreadStartEnabled && /* @__PURE__ */ jsx(IconButtonGroup, { isSingle: true, withMargin: true, children: /* @__PURE__ */ jsx(
@@ -51087,7 +51087,7 @@ const DiscussionThread = ({ isReloading, level, selected }) => {
51087
51087
  Link,
51088
51088
  {
51089
51089
  href: rootThread.id,
51090
- startIcon: /* @__PURE__ */ jsx(ForwardRef$4V, {}),
51090
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$51, {}),
51091
51091
  children: getMessage("page.details.panel.discussion.nav.back", "Go top")
51092
51092
  }
51093
51093
  )
@@ -51256,7 +51256,7 @@ const CommentRow = ({ item }) => {
51256
51256
  {
51257
51257
  onClick: onClickDetails(item.id),
51258
51258
  label: "View",
51259
- children: /* @__PURE__ */ jsx(ForwardRef$3r, {})
51259
+ children: /* @__PURE__ */ jsx(ForwardRef$3x, {})
51260
51260
  }
51261
51261
  )
51262
51262
  ] }) }) })
@@ -51272,10 +51272,7 @@ const useCommentsAll = (queryParams) => {
51272
51272
  ...item,
51273
51273
  reports: lodashExports.orderBy(item.reports, ["resolved", "createdAt"], ["desc", "desc"])
51274
51274
  }))
51275
- })).catch((error2) => {
51276
- console.log("error", error2);
51277
- throw error2;
51278
- }),
51275
+ })),
51279
51276
  initialData: { result: [], pagination: { page: 0, pageSize: 0, pageCount: 0, total: 0 } }
51280
51277
  });
51281
51278
  };
@@ -51345,7 +51342,7 @@ const CommentReviewModal = ({ item }) => {
51345
51342
  Button,
51346
51343
  {
51347
51344
  variant: "tertiary",
51348
- startIcon: /* @__PURE__ */ jsx(ForwardRef$3r, {}),
51345
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$3x, {}),
51349
51346
  children: getMessage(
51350
51347
  {
51351
51348
  id: "page.discover.table.cell.thread",
@@ -51471,7 +51468,7 @@ const ReportsActions = ({ item }) => {
51471
51468
  ActionButton,
51472
51469
  {
51473
51470
  isSingle: true,
51474
- startIcon: /* @__PURE__ */ jsx(ForwardRef$4p, {}),
51471
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$4x, {}),
51475
51472
  onClick: onClickResolve,
51476
51473
  variant: "success",
51477
51474
  children: getMessage(
@@ -51516,10 +51513,7 @@ const useReports = (queryParams) => {
51516
51513
  const api = useAPI();
51517
51514
  return useQuery({
51518
51515
  queryKey: api.reports.findAll.getKey(queryParams),
51519
- queryFn: () => api.reports.findAll.query(queryParams).then((res) => res).catch((error2) => {
51520
- console.log("error", error2);
51521
- throw error2;
51522
- }),
51516
+ queryFn: () => api.reports.findAll.query(queryParams).then((res) => res),
51523
51517
  initialData: { result: [], pagination: { page: 0, pageSize: 0, pageCount: 0, total: 0 } }
51524
51518
  });
51525
51519
  };
@@ -51580,7 +51574,7 @@ const Reports = ({ config: config2 }) => {
51580
51574
  {
51581
51575
  variant: "success",
51582
51576
  onClick: handleClickResolveSelected,
51583
- startIcon: /* @__PURE__ */ jsx(ForwardRef$4p, {}),
51577
+ startIcon: /* @__PURE__ */ jsx(ForwardRef$4x, {}),
51584
51578
  children: getMessage(
51585
51579
  {
51586
51580
  id: `page.details.panel.discussion.warnings.reports.dialog.actions.resolve.selected`,
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-CY_AVWS-.js");
2
+ const index = require("../_chunks/index-B-ygLKrb.js");
3
3
  require("react");
4
4
  module.exports = index.index;
@@ -1,4 +1,4 @@
1
- import { ag } from "../_chunks/index-BBcsmSTs.mjs";
1
+ import { ag } from "../_chunks/index-Bx2boY6h.mjs";
2
2
  import "react";
3
3
  export {
4
4
  ag as default
@@ -152,21 +152,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
152
152
  author: {
153
153
  email: string;
154
154
  id: string | number;
155
- name: string;
156
- avatar: {
157
- url: string | null;
155
+ name?: string | undefined;
156
+ avatar?: {
157
+ url: string;
158
+ } | {
159
+ url: string;
158
160
  formats: {
159
161
  thumbnail: {
160
162
  url: string;
161
163
  } | null;
162
164
  };
163
- } | {
164
- email: string;
165
- url: string | null;
166
- id: string;
167
- name: string;
168
- avatar: string | null;
169
- } | null;
165
+ } | null | undefined;
170
166
  };
171
167
  related: string;
172
168
  reports?: {
@@ -194,21 +190,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
194
190
  author: {
195
191
  email: string;
196
192
  id: string | number;
197
- name: string;
198
- avatar: {
199
- url: string | null;
193
+ name?: string | undefined;
194
+ avatar?: {
195
+ url: string;
196
+ } | {
197
+ url: string;
200
198
  formats: {
201
199
  thumbnail: {
202
200
  url: string;
203
201
  } | null;
204
202
  };
205
- } | {
206
- email: string;
207
- url: string | null;
208
- id: string;
209
- name: string;
210
- avatar: string | null;
211
- } | null;
203
+ } | null | undefined;
212
204
  };
213
205
  related: string;
214
206
  reports?: {
@@ -235,21 +227,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
235
227
  author: {
236
228
  email: string;
237
229
  id: string | number;
238
- name: string;
239
- avatar: {
240
- url: string | null;
230
+ name?: string | undefined;
231
+ avatar?: {
232
+ url: string;
233
+ } | {
234
+ url: string;
241
235
  formats: {
242
236
  thumbnail: {
243
237
  url: string;
244
238
  } | null;
245
239
  };
246
- } | {
247
- email: string;
248
- url: string | null;
249
- id: string;
250
- name: string;
251
- avatar: string | null;
252
- } | null;
240
+ } | null | undefined;
253
241
  };
254
242
  related: string;
255
243
  documentId?: string | undefined;
@@ -282,21 +270,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
282
270
  author: {
283
271
  email: string;
284
272
  id: string | number;
285
- name: string;
286
- avatar: {
287
- url: string | null;
273
+ name?: string | undefined;
274
+ avatar?: {
275
+ url: string;
276
+ } | {
277
+ url: string;
288
278
  formats: {
289
279
  thumbnail: {
290
280
  url: string;
291
281
  } | null;
292
282
  };
293
- } | {
294
- email: string;
295
- url: string | null;
296
- id: string;
297
- name: string;
298
- avatar: string | null;
299
- } | null;
283
+ } | null | undefined;
300
284
  };
301
285
  reports?: {
302
286
  resolved: boolean;
@@ -359,21 +343,17 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
359
343
  author: {
360
344
  email: string;
361
345
  id: string | number;
362
- name: string;
363
- avatar: {
364
- url: string | null;
346
+ name?: string | undefined;
347
+ avatar?: {
348
+ url: string;
349
+ } | {
350
+ url: string;
365
351
  formats: {
366
352
  thumbnail: {
367
353
  url: string;
368
354
  } | null;
369
355
  };
370
- } | {
371
- email: string;
372
- url: string | null;
373
- id: string;
374
- name: string;
375
- avatar: string | null;
376
- } | null;
356
+ } | null | undefined;
377
357
  };
378
358
  reports?: {
379
359
  resolved: boolean;