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

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 (72) hide show
  1. package/README.md +6 -5
  2. package/dist/_chunks/{index-h-TB6Qu2.mjs → index-BBcsmSTs.mjs} +6976 -6733
  3. package/dist/_chunks/{index-CTjupB9v.js → index-BFPteXuP.js} +2 -2
  4. package/dist/_chunks/{index-B6Q4U8YQ.js → index-BXEk5PWx.js} +9 -5
  5. package/dist/_chunks/{index-BVj8EXjI.js → index-Bcck91A8.js} +5 -10
  6. package/dist/_chunks/{index-fAgatqD0.js → index-CY_AVWS-.js} +6987 -6744
  7. package/dist/_chunks/{index-fSb-gYwg.mjs → index-D3iNqWZT.mjs} +2 -2
  8. package/dist/_chunks/{index-Bpbf7RON.mjs → index-D9MOkoQ2.mjs} +9 -5
  9. package/dist/_chunks/{index-BQERo8pN.mjs → index-DJ32APz-.mjs} +5 -10
  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 +3 -2
  13. package/dist/admin/src/api/schemas.d.ts +22 -8
  14. package/dist/admin/src/contexts/UserContext.d.ts +1 -1
  15. package/dist/admin/src/hooks/useAPI.d.ts +4 -3
  16. package/dist/admin/src/hooks/useCommentMutations.d.ts +1 -1
  17. package/dist/admin/src/hooks/useCommentsAll.d.ts +1 -0
  18. package/dist/admin/src/hooks/useUserContext.d.ts +1 -1
  19. package/dist/admin/src/pages/Settings/hooks/useSettingsAPI.d.ts +1 -1
  20. package/dist/server/index.js +9245 -2459
  21. package/dist/server/index.mjs +9245 -2459
  22. package/dist/server/src/config/index.d.ts +22 -0
  23. package/dist/server/src/controllers/admin.controller.d.ts +3 -1
  24. package/dist/server/src/controllers/client.controller.d.ts +36 -2
  25. package/dist/server/src/controllers/index.d.ts +213 -115
  26. package/dist/server/src/controllers/settings.controller.d.ts +25 -1
  27. package/dist/server/src/controllers/utils/parsers.d.ts +4 -1
  28. package/dist/server/src/graphql/getResolversConfig.d.ts +21 -0
  29. package/dist/server/src/graphql/index.d.ts +2 -0
  30. package/dist/server/src/graphql/mutations/getCreateAbuseReport.d.ts +89 -0
  31. package/dist/server/src/graphql/mutations/getCreateComment.d.ts +78 -0
  32. package/dist/server/src/graphql/mutations/getRemoveComment.d.ts +78 -0
  33. package/dist/server/src/graphql/mutations/getUpdateComment.d.ts +78 -0
  34. package/dist/server/src/graphql/mutations/index.d.ts +3 -0
  35. package/dist/server/src/graphql/queries/findAllFlat.d.ts +165 -0
  36. package/dist/server/src/graphql/queries/findAllInHierarchy.d.ts +81 -0
  37. package/dist/server/src/graphql/queries/findAllPerAuthor.d.ts +164 -0
  38. package/dist/server/src/graphql/queries/index.d.ts +3 -0
  39. package/dist/server/src/graphql/types/getComment.d.ts +2 -0
  40. package/dist/server/src/graphql/types/getCommentAuthor.d.ts +2 -0
  41. package/dist/server/src/graphql/types/getCommentAuthorType.d.ts +2 -0
  42. package/dist/server/src/graphql/types/getCommentNested.d.ts +2 -0
  43. package/dist/server/src/graphql/types/getCreateComment.d.ts +2 -0
  44. package/dist/server/src/graphql/types/getCreateCommentAuthor.d.ts +2 -0
  45. package/dist/server/src/graphql/types/getCreateReport.d.ts +2 -0
  46. package/dist/server/src/graphql/types/getId.d.ts +2 -0
  47. package/dist/server/src/graphql/types/getIdentityAuthor.d.ts +2 -0
  48. package/dist/server/src/graphql/types/getRemoveComment.d.ts +2 -0
  49. package/dist/server/src/graphql/types/getReport.d.ts +2 -0
  50. package/dist/server/src/graphql/types/getReportReason.d.ts +3 -0
  51. package/dist/server/src/graphql/types/getResponseFindAll.d.ts +2 -0
  52. package/dist/server/src/graphql/types/getResponseFindAllPerAuthor.d.ts +2 -0
  53. package/dist/server/src/graphql/types/getResponseMeta.d.ts +2 -0
  54. package/dist/server/src/graphql/types/getResponsePagination.d.ts +2 -0
  55. package/dist/server/src/graphql/types/getUpdateComment.d.ts +2 -0
  56. package/dist/server/src/graphql/types/index.d.ts +3 -0
  57. package/dist/server/src/index.d.ts +771 -471
  58. package/dist/server/src/repositories/store.repository.d.ts +17 -2
  59. package/dist/server/src/services/admin/admin.service.d.ts +174 -117
  60. package/dist/server/src/services/client.service.d.ts +173 -118
  61. package/dist/server/src/services/common.service.d.ts +8 -5
  62. package/dist/server/src/services/gql.service.d.ts +7 -0
  63. package/dist/server/src/services/index.d.ts +549 -356
  64. package/dist/server/src/services/settings.service.d.ts +19 -1
  65. package/dist/server/src/services/utils/functions.d.ts +9 -3
  66. package/dist/server/src/utils/getConfig.d.ts +1 -1
  67. package/dist/server/src/utils/getPluginService.d.ts +1 -1
  68. package/dist/server/src/validators/api/controllers/client.controller.validator.d.ts +112 -77
  69. package/dist/server/src/validators/api/controllers/settings.controller.validator.d.ts +3 -3
  70. package/dist/server/src/validators/repositories/comment.validator.d.ts +16 -0
  71. package/dist/server/src/validators/utils.d.ts +1 -1
  72. package/package.json +7 -6
@@ -1,8 +1,8 @@
1
1
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
- import { a0 as Alert, e as Button, f as ForwardRef$4p, B as Box, a1 as ForwardRef$1f, F as Flex, T as Typography, Y as Grid, m as Field, a2 as MultiSelect, a3 as MultiSelectOption, a4 as Accordion, a5 as SwitchImpl, a6 as Toggle, a7 as ForwardRef$51 } from "./index-h-TB6Qu2.mjs";
2
+ import { a0 as Alert, e as Button, f as ForwardRef$4p, B as Box, a1 as ForwardRef$1f, F as Flex, T as Typography, Y as Grid, m as Field, a2 as MultiSelect, a3 as MultiSelectOption, a4 as Accordion, a5 as SwitchImpl, a6 as Toggle, a7 as ForwardRef$51 } from "./index-BBcsmSTs.mjs";
3
3
  import { useTracking, useNotification, Page, Layouts, Form } from "@strapi/strapi/admin";
4
4
  import { useMutation, useQuery, useQueryClient, QueryClient } from "@tanstack/react-query";
5
- import { u as useAPI, f as CommonProviders, a as usePermissions, g as getMessage, l as lodashExports, e as ConfirmationDialog } from "./index-BQERo8pN.mjs";
5
+ import { u as useAPI, f as CommonProviders, a as usePermissions, g as getMessage, l as lodashExports, e as ConfirmationDialog } from "./index-DJ32APz-.mjs";
6
6
  import { useMemo, useRef, useState, useCallback } from "react";
7
7
  import styled from "styled-components";
8
8
  const RenderIf = ({
@@ -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-h-TB6Qu2.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$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";
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-BQERo8pN.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-DJ32APz-.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";
@@ -51197,7 +51197,6 @@ const CommentRow = ({ item }) => {
51197
51197
  const {
51198
51198
  canAccessReports,
51199
51199
  canModerate,
51200
- // TODO
51201
51200
  canReviewReports
51202
51201
  } = usePermissions();
51203
51202
  const api = useAPI();
@@ -51212,6 +51211,12 @@ const CommentRow = ({ item }) => {
51212
51211
  evt.stopPropagation();
51213
51212
  navigate(id2.toString());
51214
51213
  };
51214
+ const contentTypeLink = useMemo(() => {
51215
+ const related = item.related;
51216
+ if (typeof related === "string") return null;
51217
+ const localeParam = related.locale ? `?plugins[i18n][locale]=${related.locale}` : "";
51218
+ return /* @__PURE__ */ jsx(Link, { href: `/admin/content-manager/collection-types/${related.uid}/${related.documentId}${localeParam}`, children: related.title });
51219
+ }, [item.related]);
51215
51220
  return /* @__PURE__ */ jsxs(Tr, { children: [
51216
51221
  /* @__PURE__ */ jsx(Td, { children: item.id }),
51217
51222
  /* @__PURE__ */ jsx(Td, { children: item.author.name }),
@@ -51223,7 +51228,7 @@ const CommentRow = ({ item }) => {
51223
51228
  },
51224
51229
  "#" + item.threadOf.id
51225
51230
  ) }) : "-" }),
51226
- /* @__PURE__ */ jsx(Td, { children: typeof item.related !== "string" && /* @__PURE__ */ jsx(Link, { href: `/admin/content-manager/collection-types/${item.related.uid}/${item.related.documentId}`, children: item.related.title }) }),
51231
+ /* @__PURE__ */ jsx(Td, { children: contentTypeLink }),
51227
51232
  /* @__PURE__ */ jsx(Td, { children: formatDate(item.updatedAt || item.createdAt, {
51228
51233
  dateStyle: "long",
51229
51234
  timeStyle: "short"
@@ -51490,7 +51495,6 @@ const ReportsTableRow = ({ item, isChecked, onSelectionChange }) => {
51490
51495
  const onCheckedChange = () => {
51491
51496
  onSelectionChange(item.id);
51492
51497
  };
51493
- console.log("isChecked", isChecked);
51494
51498
  return /* @__PURE__ */ jsxs(Tr, { children: [
51495
51499
  /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsx(CheckboxImpl, { checked: isChecked, onCheckedChange }) }),
51496
51500
  /* @__PURE__ */ jsx(Td, { children: /* @__PURE__ */ jsxs(Typography, { textColor: "neutral800", fontWeight: "bold", children: [
@@ -1,5 +1,5 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
- import { a8 as darkTheme, a9 as lightTheme, aa as DesignSystemProvider, ab as pluginPermissions, ac as __assign, ad as __rest, p as pluginId, ae as Dialog, F as Flex, af as ForwardRef$3, T as Typography, e as Button } from "./index-h-TB6Qu2.mjs";
2
+ import { a8 as darkTheme, a9 as lightTheme, aa as DesignSystemProvider, ab as pluginPermissions, ac as __assign, ad as __rest, p as pluginId, ae as Dialog, F as Flex, af as ForwardRef$3, T as Typography, e as Button } from "./index-BBcsmSTs.mjs";
3
3
  import { useQuery, QueryClient, QueryClientProvider } from "@tanstack/react-query";
4
4
  import * as React from "react";
5
5
  import { useMemo, createContext, useState } from "react";
@@ -7503,7 +7503,8 @@ const relatedSchema = z.intersection(
7503
7503
  documentId: z.string(),
7504
7504
  createdAt: z.string(),
7505
7505
  updatedAt: z.string(),
7506
- publishedAt: z.string().nullable()
7506
+ publishedAt: z.string().nullable(),
7507
+ locale: z.string().nullable().optional()
7507
7508
  }),
7508
7509
  z.record(z.unknown())
7509
7510
  );
@@ -7738,10 +7739,7 @@ const getApiClient = lodashExports.once((fetch) => ({
7738
7739
  async query(id, filters) {
7739
7740
  const queryFilters = !lodashExports.isEmpty(filters) ? `?${lib.stringify(filters, { encode: false })}` : "";
7740
7741
  const response = await fetch.get(`/${URL_PREFIX}/moderate/single/${id}${queryFilters}`);
7741
- return commentDetailsSchema.parseAsync(response.data).catch((error) => {
7742
- console.log("error", error);
7743
- throw error;
7744
- });
7742
+ return commentDetailsSchema.parseAsync(response.data);
7745
7743
  }
7746
7744
  },
7747
7745
  approve(id) {
@@ -7779,10 +7777,7 @@ const getApiClient = lodashExports.once((fetch) => ({
7779
7777
  },
7780
7778
  async query(queryParams) {
7781
7779
  const response = await fetch.get(`/${URL_PREFIX}/moderate/reports${queryParams ? `?${lib.stringify(queryParams, { encode: false })}` : ""}`);
7782
- return reportsSchema.parseAsync(response.data).catch((error) => {
7783
- console.log("error", error);
7784
- throw error;
7785
- });
7780
+ return reportsSchema.parseAsync(response.data);
7786
7781
  }
7787
7782
  },
7788
7783
  resolve({ id, reportId }) {
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
- const index = require("../_chunks/index-fAgatqD0.js");
2
+ const index = require("../_chunks/index-CY_AVWS-.js");
3
3
  require("react");
4
4
  module.exports = index.index;
@@ -1,4 +1,4 @@
1
- import { ag } from "../_chunks/index-h-TB6Qu2.mjs";
1
+ import { ag } from "../_chunks/index-BBcsmSTs.mjs";
2
2
  import "react";
3
3
  export {
4
4
  ag as default
@@ -83,9 +83,9 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
83
83
  createdAt: string;
84
84
  updatedAt: string;
85
85
  publishedAt: string;
86
+ locale: string | null;
86
87
  name: string;
87
88
  description: string;
88
- locale: string | null;
89
89
  usersCount: number;
90
90
  }[]>;
91
91
  };
@@ -98,8 +98,8 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
98
98
  createdAt: string;
99
99
  updatedAt: string;
100
100
  publishedAt: string;
101
- blocked: boolean;
102
101
  locale: null;
102
+ blocked: boolean;
103
103
  firstname: string;
104
104
  lastname: string;
105
105
  username: string | null;
@@ -136,6 +136,7 @@ export declare const getApiClient: (fetch: ReturnType<typeof getFetchClient>) =>
136
136
  createdAt: string;
137
137
  updatedAt: string;
138
138
  publishedAt: string | null;
139
+ locale?: string | null | undefined;
139
140
  } & Record<string, unknown>;
140
141
  selected: {
141
142
  id: number;
@@ -114,6 +114,7 @@ declare const relatedSchema: z.ZodIntersection<z.ZodObject<{
114
114
  createdAt: z.ZodString;
115
115
  updatedAt: z.ZodString;
116
116
  publishedAt: z.ZodNullable<z.ZodString>;
117
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
117
118
  }, "strip", z.ZodTypeAny, {
118
119
  uid: string;
119
120
  id: number;
@@ -121,6 +122,7 @@ declare const relatedSchema: z.ZodIntersection<z.ZodObject<{
121
122
  createdAt: string;
122
123
  updatedAt: string;
123
124
  publishedAt: string | null;
125
+ locale?: string | null | undefined;
124
126
  }, {
125
127
  uid: string;
126
128
  id: number;
@@ -128,6 +130,7 @@ declare const relatedSchema: z.ZodIntersection<z.ZodObject<{
128
130
  createdAt: string;
129
131
  updatedAt: string;
130
132
  publishedAt: string | null;
133
+ locale?: string | null | undefined;
131
134
  }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
132
135
  declare const authorSchema: z.ZodObject<{
133
136
  id: z.ZodUnion<[z.ZodNumber, z.ZodString]>;
@@ -504,6 +507,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
504
507
  createdAt: z.ZodString;
505
508
  updatedAt: z.ZodString;
506
509
  publishedAt: z.ZodNullable<z.ZodString>;
510
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
507
511
  }, "strip", z.ZodTypeAny, {
508
512
  uid: string;
509
513
  id: number;
@@ -511,6 +515,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
511
515
  createdAt: string;
512
516
  updatedAt: string;
513
517
  publishedAt: string | null;
518
+ locale?: string | null | undefined;
514
519
  }, {
515
520
  uid: string;
516
521
  id: number;
@@ -518,6 +523,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
518
523
  createdAt: string;
519
524
  updatedAt: string;
520
525
  publishedAt: string | null;
526
+ locale?: string | null | undefined;
521
527
  }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
522
528
  selected: z.ZodNullable<z.ZodObject<z.objectUtil.extendShape<{
523
529
  id: z.ZodNumber;
@@ -785,6 +791,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
785
791
  createdAt: z.ZodString;
786
792
  updatedAt: z.ZodString;
787
793
  publishedAt: z.ZodNullable<z.ZodString>;
794
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
788
795
  }, "strip", z.ZodTypeAny, {
789
796
  uid: string;
790
797
  id: number;
@@ -792,6 +799,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
792
799
  createdAt: string;
793
800
  updatedAt: string;
794
801
  publishedAt: string | null;
802
+ locale?: string | null | undefined;
795
803
  }, {
796
804
  uid: string;
797
805
  id: number;
@@ -799,6 +807,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
799
807
  createdAt: string;
800
808
  updatedAt: string;
801
809
  publishedAt: string | null;
810
+ locale?: string | null | undefined;
802
811
  }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
803
812
  documentId: z.ZodString;
804
813
  threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
@@ -1588,6 +1597,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
1588
1597
  createdAt: z.ZodString;
1589
1598
  updatedAt: z.ZodString;
1590
1599
  publishedAt: z.ZodNullable<z.ZodString>;
1600
+ locale: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1591
1601
  }, "strip", z.ZodTypeAny, {
1592
1602
  uid: string;
1593
1603
  id: number;
@@ -1595,6 +1605,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
1595
1605
  createdAt: string;
1596
1606
  updatedAt: string;
1597
1607
  publishedAt: string | null;
1608
+ locale?: string | null | undefined;
1598
1609
  }, {
1599
1610
  uid: string;
1600
1611
  id: number;
@@ -1602,6 +1613,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
1602
1613
  createdAt: string;
1603
1614
  updatedAt: string;
1604
1615
  publishedAt: string | null;
1616
+ locale?: string | null | undefined;
1605
1617
  }>, z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1606
1618
  documentId: z.ZodString;
1607
1619
  threadOf: z.ZodOptional<z.ZodNullable<z.ZodLazy<z.ZodObject<z.objectUtil.extendShape<{
@@ -1914,6 +1926,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
1914
1926
  createdAt: string;
1915
1927
  updatedAt: string;
1916
1928
  publishedAt: string | null;
1929
+ locale?: string | null | undefined;
1917
1930
  } & Record<string, unknown>;
1918
1931
  selected: {
1919
1932
  id: number;
@@ -2094,6 +2107,7 @@ export declare const commentDetailsSchema: z.ZodObject<{
2094
2107
  createdAt: string;
2095
2108
  updatedAt: string;
2096
2109
  publishedAt: string | null;
2110
+ locale?: string | null | undefined;
2097
2111
  } & Record<string, unknown>;
2098
2112
  selected: {
2099
2113
  id: number;
@@ -3299,9 +3313,9 @@ export declare const rolesListSchema: z.ZodObject<{
3299
3313
  createdAt: string;
3300
3314
  updatedAt: string;
3301
3315
  publishedAt: string;
3316
+ locale: string | null;
3302
3317
  name: string;
3303
3318
  description: string;
3304
- locale: string | null;
3305
3319
  usersCount: number;
3306
3320
  }, {
3307
3321
  code: string;
@@ -3310,9 +3324,9 @@ export declare const rolesListSchema: z.ZodObject<{
3310
3324
  createdAt: string;
3311
3325
  updatedAt: string;
3312
3326
  publishedAt: string;
3327
+ locale: string | null;
3313
3328
  name: string;
3314
3329
  description: string;
3315
- locale: string | null;
3316
3330
  usersCount: number;
3317
3331
  }>, "many">;
3318
3332
  }, "strip", z.ZodTypeAny, {
@@ -3323,9 +3337,9 @@ export declare const rolesListSchema: z.ZodObject<{
3323
3337
  createdAt: string;
3324
3338
  updatedAt: string;
3325
3339
  publishedAt: string;
3340
+ locale: string | null;
3326
3341
  name: string;
3327
3342
  description: string;
3328
- locale: string | null;
3329
3343
  usersCount: number;
3330
3344
  }[];
3331
3345
  }, {
@@ -3336,9 +3350,9 @@ export declare const rolesListSchema: z.ZodObject<{
3336
3350
  createdAt: string;
3337
3351
  updatedAt: string;
3338
3352
  publishedAt: string;
3353
+ locale: string | null;
3339
3354
  name: string;
3340
3355
  description: string;
3341
- locale: string | null;
3342
3356
  usersCount: number;
3343
3357
  }[];
3344
3358
  }>;
@@ -3380,8 +3394,8 @@ export declare const userSchema: z.ZodObject<{
3380
3394
  createdAt: string;
3381
3395
  updatedAt: string;
3382
3396
  publishedAt: string;
3383
- blocked: boolean;
3384
3397
  locale: null;
3398
+ blocked: boolean;
3385
3399
  firstname: string;
3386
3400
  lastname: string;
3387
3401
  username: string | null;
@@ -3400,8 +3414,8 @@ export declare const userSchema: z.ZodObject<{
3400
3414
  createdAt: string;
3401
3415
  updatedAt: string;
3402
3416
  publishedAt: string;
3403
- blocked: boolean;
3404
3417
  locale: null;
3418
+ blocked: boolean;
3405
3419
  firstname: string;
3406
3420
  lastname: string;
3407
3421
  username: string | null;
@@ -3422,8 +3436,8 @@ export declare const userSchema: z.ZodObject<{
3422
3436
  createdAt: string;
3423
3437
  updatedAt: string;
3424
3438
  publishedAt: string;
3425
- blocked: boolean;
3426
3439
  locale: null;
3440
+ blocked: boolean;
3427
3441
  firstname: string;
3428
3442
  lastname: string;
3429
3443
  username: string | null;
@@ -3444,8 +3458,8 @@ export declare const userSchema: z.ZodObject<{
3444
3458
  createdAt: string;
3445
3459
  updatedAt: string;
3446
3460
  publishedAt: string;
3447
- blocked: boolean;
3448
3461
  locale: null;
3462
+ blocked: boolean;
3449
3463
  firstname: string;
3450
3464
  lastname: string;
3451
3465
  username: string | null;
@@ -6,8 +6,8 @@ export declare const UserContext: import("react").Context<{
6
6
  createdAt: string;
7
7
  updatedAt: string;
8
8
  publishedAt: string;
9
- blocked: boolean;
10
9
  locale: null;
10
+ blocked: boolean;
11
11
  firstname: string;
12
12
  lastname: string;
13
13
  username: string | null;
@@ -80,9 +80,9 @@ export declare const useAPI: () => {
80
80
  createdAt: string;
81
81
  updatedAt: string;
82
82
  publishedAt: string;
83
+ locale: string | null;
83
84
  name: string;
84
85
  description: string;
85
- locale: string | null;
86
86
  usersCount: number;
87
87
  }[]>;
88
88
  };
@@ -95,8 +95,8 @@ export declare const useAPI: () => {
95
95
  createdAt: string;
96
96
  updatedAt: string;
97
97
  publishedAt: string;
98
- blocked: boolean;
99
98
  locale: null;
99
+ blocked: boolean;
100
100
  firstname: string;
101
101
  lastname: string;
102
102
  username: string | null;
@@ -133,6 +133,7 @@ export declare const useAPI: () => {
133
133
  createdAt: string;
134
134
  updatedAt: string;
135
135
  publishedAt: string | null;
136
+ locale?: string | null | undefined;
136
137
  } & Record<string, unknown>;
137
138
  selected: {
138
139
  id: number;
@@ -324,8 +325,8 @@ export declare const useAPI: () => {
324
325
  createdAt: string;
325
326
  updatedAt: string;
326
327
  publishedAt: string;
327
- blocked: boolean;
328
328
  locale: null;
329
+ blocked: boolean;
329
330
  firstname: string;
330
331
  lastname: string;
331
332
  username: string | null;
@@ -37,8 +37,8 @@ export declare const useCommentMutations: (callbacksMutation?: CallbacksMutation
37
37
  createdAt: string;
38
38
  updatedAt: string;
39
39
  publishedAt: string;
40
- blocked: boolean;
41
40
  locale: null;
41
+ blocked: boolean;
42
42
  firstname: string;
43
43
  lastname: string;
44
44
  username: string | null;
@@ -47,6 +47,7 @@ export declare const useCommentsAll: (queryParams: Record<string, string>) => im
47
47
  createdAt: string;
48
48
  updatedAt: string;
49
49
  publishedAt: string | null;
50
+ locale?: string | null | undefined;
50
51
  } & Record<string, unknown>);
51
52
  documentId?: string | undefined;
52
53
  }[];
@@ -5,8 +5,8 @@ export declare const useUserContext: () => {
5
5
  createdAt: string;
6
6
  updatedAt: string;
7
7
  publishedAt: string;
8
- blocked: boolean;
9
8
  locale: null;
9
+ blocked: boolean;
10
10
  firstname: string;
11
11
  lastname: string;
12
12
  username: string | null;
@@ -58,9 +58,9 @@ export declare const useSettingsAPI: (callbacksMutation?: CallbacksMutation) =>
58
58
  createdAt: string;
59
59
  updatedAt: string;
60
60
  publishedAt: string;
61
+ locale: string | null;
61
62
  name: string;
62
63
  description: string;
63
- locale: string | null;
64
64
  usersCount: number;
65
65
  }[], Error>;
66
66
  restoreSettingsMutation: import("@tanstack/react-query").UseMutationResult<import("@strapi/admin/strapi-admin").FetchResponse<any>, Error, void, unknown>;