@strapi/i18n 0.0.0 → 5.0.0-beta.7

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 (163) hide show
  1. package/README.md +17 -1
  2. package/dist/_chunks/SettingsPage-BvzzUueI.js +584 -0
  3. package/dist/_chunks/SettingsPage-BvzzUueI.js.map +1 -0
  4. package/dist/_chunks/SettingsPage-CB5yd4O3.mjs +564 -0
  5. package/dist/_chunks/SettingsPage-CB5yd4O3.mjs.map +1 -0
  6. package/dist/_chunks/de-9eCAqqrB.mjs +66 -0
  7. package/dist/_chunks/de-9eCAqqrB.mjs.map +1 -0
  8. package/dist/_chunks/de-DtWiGdHl.js +66 -0
  9. package/dist/_chunks/de-DtWiGdHl.js.map +1 -0
  10. package/dist/_chunks/dk-2qBjxt-P.mjs +66 -0
  11. package/dist/_chunks/dk-2qBjxt-P.mjs.map +1 -0
  12. package/dist/_chunks/dk-D8C-casx.js +66 -0
  13. package/dist/_chunks/dk-D8C-casx.js.map +1 -0
  14. package/dist/_chunks/en-BuBc6LKZ.js +69 -0
  15. package/dist/_chunks/en-BuBc6LKZ.js.map +1 -0
  16. package/dist/_chunks/en-CnrTsjWS.mjs +69 -0
  17. package/dist/_chunks/en-CnrTsjWS.mjs.map +1 -0
  18. package/dist/_chunks/es-DS-XFGSw.js +66 -0
  19. package/dist/_chunks/es-DS-XFGSw.js.map +1 -0
  20. package/dist/_chunks/es-DlmMVaBG.mjs +66 -0
  21. package/dist/_chunks/es-DlmMVaBG.mjs.map +1 -0
  22. package/dist/_chunks/fr-3S6ke71d.mjs +66 -0
  23. package/dist/_chunks/fr-3S6ke71d.mjs.map +1 -0
  24. package/dist/_chunks/fr-BTjekDpq.js +66 -0
  25. package/dist/_chunks/fr-BTjekDpq.js.map +1 -0
  26. package/dist/_chunks/index-DRjoX_5r.js +1084 -0
  27. package/dist/_chunks/index-DRjoX_5r.js.map +1 -0
  28. package/dist/_chunks/index-aiqKWFfV.mjs +1061 -0
  29. package/dist/_chunks/index-aiqKWFfV.mjs.map +1 -0
  30. package/dist/_chunks/ko-DmcGUBQ3.js +65 -0
  31. package/dist/_chunks/ko-DmcGUBQ3.js.map +1 -0
  32. package/dist/_chunks/ko-qTjQ8IMw.mjs +65 -0
  33. package/dist/_chunks/ko-qTjQ8IMw.mjs.map +1 -0
  34. package/dist/_chunks/pl-B67TSHqT.mjs +66 -0
  35. package/dist/_chunks/pl-B67TSHqT.mjs.map +1 -0
  36. package/dist/_chunks/pl-Cn5RYonZ.js +66 -0
  37. package/dist/_chunks/pl-Cn5RYonZ.js.map +1 -0
  38. package/dist/_chunks/ru-BMBgVL3s.js +68 -0
  39. package/dist/_chunks/ru-BMBgVL3s.js.map +1 -0
  40. package/dist/_chunks/ru-hagMa57T.mjs +68 -0
  41. package/dist/_chunks/ru-hagMa57T.mjs.map +1 -0
  42. package/dist/_chunks/tr-CarUU76c.js +66 -0
  43. package/dist/_chunks/tr-CarUU76c.js.map +1 -0
  44. package/dist/_chunks/tr-Dw_jmkG-.mjs +66 -0
  45. package/dist/_chunks/tr-Dw_jmkG-.mjs.map +1 -0
  46. package/dist/_chunks/zh-57YM4amO.mjs +66 -0
  47. package/dist/_chunks/zh-57YM4amO.mjs.map +1 -0
  48. package/dist/_chunks/zh-CukOviB0.js +66 -0
  49. package/dist/_chunks/zh-CukOviB0.js.map +1 -0
  50. package/dist/_chunks/zh-Hans-DSHIXAa3.js +57 -0
  51. package/dist/_chunks/zh-Hans-DSHIXAa3.js.map +1 -0
  52. package/dist/_chunks/zh-Hans-Dyc-aR-h.mjs +57 -0
  53. package/dist/_chunks/zh-Hans-Dyc-aR-h.mjs.map +1 -0
  54. package/dist/admin/index.js +6 -0
  55. package/dist/admin/index.js.map +1 -0
  56. package/dist/admin/index.mjs +7 -0
  57. package/dist/admin/index.mjs.map +1 -0
  58. package/dist/admin/src/components/CMHeaderActions.d.ts +4 -0
  59. package/dist/admin/src/components/CMListViewModalsAdditionalInformation.d.ts +4 -0
  60. package/dist/admin/src/components/CheckboxConfirmation.d.ts +20 -0
  61. package/dist/admin/src/components/CreateLocale.d.ts +29 -0
  62. package/dist/admin/src/components/DeleteLocale.d.ts +5 -0
  63. package/dist/admin/src/components/EditLocale.d.ts +13 -0
  64. package/dist/admin/src/components/Initializer.d.ts +5 -0
  65. package/dist/admin/src/components/LocaleListCell.d.ts +9 -0
  66. package/dist/admin/src/components/LocalePicker.d.ts +2 -0
  67. package/dist/admin/src/components/LocaleTable.d.ts +11 -0
  68. package/dist/admin/src/constants.d.ts +22 -0
  69. package/dist/admin/src/contentManagerHooks/editView.d.ts +6 -0
  70. package/dist/admin/src/contentManagerHooks/listView.d.ts +22 -0
  71. package/dist/admin/src/contentReleasesHooks/releaseDetailsView.d.ts +36 -0
  72. package/dist/admin/src/hooks/useI18n.d.ts +16 -0
  73. package/dist/admin/src/index.d.ts +16 -0
  74. package/dist/admin/src/middlewares/extendCTBAttributeInitialData.d.ts +4 -0
  75. package/dist/admin/src/middlewares/extendCTBInitialData.d.ts +4 -0
  76. package/dist/admin/src/middlewares/rbac-middleware.d.ts +3 -0
  77. package/dist/admin/src/pages/SettingsPage.d.ts +3 -0
  78. package/dist/admin/src/pluginId.d.ts +1 -0
  79. package/dist/admin/src/services/api.d.ts +3 -0
  80. package/dist/admin/src/services/locales.d.ts +4 -0
  81. package/dist/admin/src/types.d.ts +9 -0
  82. package/dist/admin/src/utils/baseQuery.d.ts +19 -0
  83. package/dist/admin/src/utils/fields.d.ts +7 -0
  84. package/dist/admin/src/utils/getTranslation.d.ts +2 -0
  85. package/dist/admin/src/utils/prefixPluginTranslations.d.ts +3 -0
  86. package/dist/admin/src/utils/schemas.d.ts +24 -0
  87. package/dist/admin/src/utils/strings.d.ts +2 -0
  88. package/dist/server/index.js +3522 -0
  89. package/dist/server/index.js.map +1 -0
  90. package/dist/server/index.mjs +3503 -0
  91. package/dist/server/index.mjs.map +1 -0
  92. package/dist/server/src/bootstrap.d.ts +6 -0
  93. package/dist/server/src/bootstrap.d.ts.map +1 -0
  94. package/dist/server/src/constants/index.d.ts +15 -0
  95. package/dist/server/src/constants/index.d.ts.map +1 -0
  96. package/dist/server/src/content-types/index.d.ts +37 -0
  97. package/dist/server/src/content-types/index.d.ts.map +1 -0
  98. package/dist/server/src/content-types/locale/index.d.ts +35 -0
  99. package/dist/server/src/content-types/locale/index.d.ts.map +1 -0
  100. package/dist/server/src/controllers/content-types.d.ts +6 -0
  101. package/dist/server/src/controllers/content-types.d.ts.map +1 -0
  102. package/dist/server/src/controllers/index.d.ts +10 -0
  103. package/dist/server/src/controllers/index.d.ts.map +1 -0
  104. package/dist/server/src/controllers/iso-locales.d.ts +4 -0
  105. package/dist/server/src/controllers/iso-locales.d.ts.map +1 -0
  106. package/dist/server/src/controllers/locales.d.ts +4 -0
  107. package/dist/server/src/controllers/locales.d.ts.map +1 -0
  108. package/dist/server/src/controllers/validate-locale-creation.d.ts +4 -0
  109. package/dist/server/src/controllers/validate-locale-creation.d.ts.map +1 -0
  110. package/dist/server/src/domain/locale.d.ts +11 -0
  111. package/dist/server/src/domain/locale.d.ts.map +1 -0
  112. package/dist/server/src/graphql.d.ts +8 -0
  113. package/dist/server/src/graphql.d.ts.map +1 -0
  114. package/dist/server/src/index.d.ts +148 -0
  115. package/dist/server/src/index.d.ts.map +1 -0
  116. package/dist/server/src/migrations/content-type/disable/index.d.ts +3 -0
  117. package/dist/server/src/migrations/content-type/disable/index.d.ts.map +1 -0
  118. package/dist/server/src/migrations/content-type/enable/index.d.ts +3 -0
  119. package/dist/server/src/migrations/content-type/enable/index.d.ts.map +1 -0
  120. package/dist/server/src/register.d.ts +6 -0
  121. package/dist/server/src/register.d.ts.map +1 -0
  122. package/dist/server/src/routes/admin.d.ts +18 -0
  123. package/dist/server/src/routes/admin.d.ts.map +1 -0
  124. package/dist/server/src/routes/content-api.d.ts +10 -0
  125. package/dist/server/src/routes/content-api.d.ts.map +1 -0
  126. package/dist/server/src/routes/index.d.ts +28 -0
  127. package/dist/server/src/routes/index.d.ts.map +1 -0
  128. package/dist/server/src/services/content-types.d.ts +13 -0
  129. package/dist/server/src/services/content-types.d.ts.map +1 -0
  130. package/dist/server/src/services/entity-service-decorator.d.ts +29 -0
  131. package/dist/server/src/services/entity-service-decorator.d.ts.map +1 -0
  132. package/dist/server/src/services/index.d.ts +71 -0
  133. package/dist/server/src/services/index.d.ts.map +1 -0
  134. package/dist/server/src/services/iso-locales.d.ts +10 -0
  135. package/dist/server/src/services/iso-locales.d.ts.map +1 -0
  136. package/dist/server/src/services/locales.d.ts +17 -0
  137. package/dist/server/src/services/locales.d.ts.map +1 -0
  138. package/dist/server/src/services/localizations.d.ts +8 -0
  139. package/dist/server/src/services/localizations.d.ts.map +1 -0
  140. package/dist/server/src/services/metrics.d.ts +8 -0
  141. package/dist/server/src/services/metrics.d.ts.map +1 -0
  142. package/dist/server/src/services/permissions/actions.d.ts +16 -0
  143. package/dist/server/src/services/permissions/actions.d.ts.map +1 -0
  144. package/dist/server/src/services/permissions/conditions.d.ts +15 -0
  145. package/dist/server/src/services/permissions/conditions.d.ts.map +1 -0
  146. package/dist/server/src/services/permissions/engine.d.ts +6 -0
  147. package/dist/server/src/services/permissions/engine.d.ts.map +1 -0
  148. package/dist/server/src/services/permissions/sections-builder.d.ts +6 -0
  149. package/dist/server/src/services/permissions/sections-builder.d.ts.map +1 -0
  150. package/dist/server/src/services/permissions.d.ts +28 -0
  151. package/dist/server/src/services/permissions.d.ts.map +1 -0
  152. package/dist/server/src/utils/index.d.ts +43 -0
  153. package/dist/server/src/utils/index.d.ts.map +1 -0
  154. package/dist/server/src/validation/content-types.d.ts +3 -0
  155. package/dist/server/src/validation/content-types.d.ts.map +1 -0
  156. package/dist/server/src/validation/locales.d.ts +12 -0
  157. package/dist/server/src/validation/locales.d.ts.map +1 -0
  158. package/dist/shared/contracts/content-manager.d.ts +27 -0
  159. package/dist/shared/contracts/iso-locales.d.ts +21 -0
  160. package/dist/shared/contracts/locales.d.ts +77 -0
  161. package/dist/shared/contracts/shared.d.ts +6 -0
  162. package/package.json +82 -4
  163. package/strapi-server.js +3 -0
@@ -0,0 +1,9 @@
1
+ interface LocaleListCellProps {
2
+ documentId: string;
3
+ collectionType: string;
4
+ locale: string;
5
+ model: string;
6
+ }
7
+ declare const LocaleListCell: ({ documentId, locale: currentLocale, collectionType, model, }: LocaleListCellProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ export { LocaleListCell };
9
+ export type { LocaleListCellProps };
@@ -0,0 +1,2 @@
1
+ declare const LocalePicker: () => import("react/jsx-runtime").JSX.Element | null;
2
+ export { LocalePicker };
@@ -0,0 +1,11 @@
1
+ import type { Locale } from '../../../shared/contracts/locales';
2
+ type LocaleTableProps = {
3
+ locales?: Locale[];
4
+ canDelete?: boolean;
5
+ canUpdate?: boolean;
6
+ onDeleteLocale?: (locale: Locale) => void;
7
+ onEditLocale?: (locale: Locale) => void;
8
+ };
9
+ declare const LocaleTable: ({ locales, canDelete, canUpdate }: LocaleTableProps) => import("react/jsx-runtime").JSX.Element;
10
+ export { LocaleTable };
11
+ export type { LocaleTableProps };
@@ -0,0 +1,22 @@
1
+ export declare const PERMISSIONS: {
2
+ accessMain: {
3
+ action: string;
4
+ subject: null;
5
+ }[];
6
+ create: {
7
+ action: string;
8
+ subject: null;
9
+ }[];
10
+ delete: {
11
+ action: string;
12
+ subject: null;
13
+ }[];
14
+ update: {
15
+ action: string;
16
+ subject: null;
17
+ }[];
18
+ read: {
19
+ action: string;
20
+ subject: null;
21
+ }[];
22
+ };
@@ -0,0 +1,6 @@
1
+ import type { EditLayout } from '@strapi/content-manager/strapi-admin';
2
+ interface MutateEditViewArgs {
3
+ layout: EditLayout;
4
+ }
5
+ declare const mutateEditViewHook: ({ layout }: MutateEditViewArgs) => MutateEditViewArgs;
6
+ export { mutateEditViewHook };
@@ -0,0 +1,22 @@
1
+ import type { ListFieldLayout, ListLayout } from '@strapi/content-manager/strapi-admin';
2
+ interface AddColumnToTableHookArgs {
3
+ layout: ListLayout;
4
+ displayedHeaders: ListFieldLayout[];
5
+ }
6
+ declare const addColumnToTableHook: ({ displayedHeaders, layout }: AddColumnToTableHookArgs) => {
7
+ displayedHeaders: (ListFieldLayout | {
8
+ attribute: {
9
+ type: string;
10
+ };
11
+ label: {
12
+ id: string;
13
+ defaultMessage: string;
14
+ };
15
+ searchable: boolean;
16
+ sortable: boolean;
17
+ name: string;
18
+ cellFormatter: (props: any, _header: any, meta: any) => import("react/jsx-runtime").JSX.Element;
19
+ })[];
20
+ layout: ListLayout;
21
+ };
22
+ export { addColumnToTableHook };
@@ -0,0 +1,36 @@
1
+ import { Schema } from '@strapi/types';
2
+ interface AddLocaleToReleasesHookArgs {
3
+ displayedHeaders: {
4
+ key: string;
5
+ fieldSchema: Schema.Attribute.Kind | 'custom';
6
+ metadatas: {
7
+ label: {
8
+ id: string;
9
+ defaultMessage: string;
10
+ };
11
+ searchable: boolean;
12
+ sortable: boolean;
13
+ };
14
+ name: string;
15
+ }[];
16
+ hasI18nEnabled: boolean;
17
+ }
18
+ declare const addLocaleToReleasesHook: ({ displayedHeaders }: AddLocaleToReleasesHookArgs) => {
19
+ displayedHeaders: {
20
+ key: string;
21
+ fieldSchema: {
22
+ type: string;
23
+ };
24
+ metadatas: {
25
+ label: {
26
+ id: string;
27
+ defaultMessage: string;
28
+ };
29
+ searchable: boolean;
30
+ sortable: boolean;
31
+ };
32
+ name: string;
33
+ }[];
34
+ hasI18nEnabled: boolean;
35
+ };
36
+ export { addLocaleToReleasesHook };
@@ -0,0 +1,16 @@
1
+ type UseI18n = () => {
2
+ hasI18n: boolean;
3
+ canCreate: string[];
4
+ canRead: string[];
5
+ canUpdate: string[];
6
+ canDelete: string[];
7
+ canPublish: string[];
8
+ };
9
+ /**
10
+ * @alpha
11
+ * @description This hook is used to get the i18n status of a content type.
12
+ * Also returns the CRUDP permission locale properties for the content type
13
+ * so we know which locales the user can perform actions on.
14
+ */
15
+ declare const useI18n: UseI18n;
16
+ export { useI18n };
@@ -0,0 +1,16 @@
1
+ declare const _default: {
2
+ register(app: any): void;
3
+ bootstrap(app: any): void;
4
+ registerTrads({ locales }: {
5
+ locales: string[];
6
+ }): Promise<({
7
+ data: {
8
+ [x: string]: string;
9
+ };
10
+ locale: string;
11
+ } | {
12
+ data: {};
13
+ locale: string;
14
+ })[]>;
15
+ };
16
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import type { Middleware } from '@reduxjs/toolkit';
2
+ import type { Store } from '@strapi/admin/strapi-admin';
3
+ declare const extendCTBAttributeInitialDataMiddleware: () => Middleware<object, ReturnType<Store['getState']>>;
4
+ export { extendCTBAttributeInitialDataMiddleware };
@@ -0,0 +1,4 @@
1
+ import type { Middleware } from '@reduxjs/toolkit';
2
+ import type { Store } from '@strapi/admin/strapi-admin';
3
+ declare const extendCTBInitialDataMiddleware: () => Middleware<object, ReturnType<Store['getState']>>;
4
+ export { extendCTBInitialDataMiddleware };
@@ -0,0 +1,3 @@
1
+ import type { RBACMiddleware } from '@strapi/admin/strapi-admin';
2
+ declare const localeMiddleware: RBACMiddleware;
3
+ export { localeMiddleware };
@@ -0,0 +1,3 @@
1
+ declare const SettingsPage: () => import("react/jsx-runtime").JSX.Element;
2
+ declare const ProtectedSettingsPage: () => import("react/jsx-runtime").JSX.Element;
3
+ export { ProtectedSettingsPage, SettingsPage };
@@ -0,0 +1 @@
1
+ export declare const pluginId = "i18n";
@@ -0,0 +1,3 @@
1
+ import { type UnknownApiError } from '../utils/baseQuery';
2
+ declare const i18nApi: import("@reduxjs/toolkit/query/react").Api<import("@reduxjs/toolkit/query/react").BaseQueryFn<string | import("../utils/baseQuery").QueryArguments, unknown, import("../utils/baseQuery").BaseQueryError>, {}, "i18nApi", "Locale", typeof import("@reduxjs/toolkit/query/react").coreModuleName | typeof import("@reduxjs/toolkit/query/react").reactHooksModuleName>;
3
+ export { i18nApi, type UnknownApiError };
@@ -0,0 +1,4 @@
1
+ import type { GetISOLocales } from '../../../shared/contracts/iso-locales';
2
+ import type { GetLocales, CreateLocale, DeleteLocale, UpdateLocale } from '../../../shared/contracts/locales';
3
+ declare const useCreateLocaleMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<Omit<import("../../../shared/contracts/locales").Locale, keyof import("../../../shared/contracts/shared").Entity>, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("../utils/baseQuery").QueryArguments, unknown, import("../utils/baseQuery").BaseQueryError>, "Locale", CreateLocale.Response, "i18nApi">>, useDeleteLocaleMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<import("@strapi/types/dist/data").ID, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("../utils/baseQuery").QueryArguments, unknown, import("../utils/baseQuery").BaseQueryError>, "Locale", DeleteLocale.Response, "i18nApi">>, useGetLocalesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("../utils/baseQuery").QueryArguments, unknown, import("../utils/baseQuery").BaseQueryError>, "Locale", GetLocales.Response, "i18nApi">>, useGetDefaultLocalesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("../utils/baseQuery").QueryArguments, unknown, import("../utils/baseQuery").BaseQueryError>, "Locale", GetISOLocales.Response, "i18nApi">>, useUpdateLocaleMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<Pick<import("../../../shared/contracts/locales").Locale, "name" | "isDefault"> & UpdateLocale.Params, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("../utils/baseQuery").QueryArguments, unknown, import("../utils/baseQuery").BaseQueryError>, "Locale", UpdateLocale.Response, "i18nApi">>;
4
+ export { useCreateLocaleMutation, useDeleteLocaleMutation, useGetLocalesQuery, useGetDefaultLocalesQuery, useUpdateLocaleMutation, };
@@ -0,0 +1,9 @@
1
+ import type { Modules } from '@strapi/types';
2
+ export interface I18nBaseQuery {
3
+ plugins?: {
4
+ i18n?: {
5
+ locale?: string;
6
+ relatedEntityId?: Modules.Documents.ID;
7
+ };
8
+ };
9
+ }
@@ -0,0 +1,19 @@
1
+ import { SerializedError } from '@reduxjs/toolkit';
2
+ import { BaseQueryFn } from '@reduxjs/toolkit/query';
3
+ import { type ApiError, type FetchOptions } from '@strapi/admin/strapi-admin';
4
+ export interface QueryArguments {
5
+ url: string;
6
+ method?: string;
7
+ data?: unknown;
8
+ config?: FetchOptions;
9
+ }
10
+ export interface UnknownApiError {
11
+ name: 'UnknownError';
12
+ message: string;
13
+ details?: unknown;
14
+ status?: number;
15
+ }
16
+ export type BaseQueryError = ApiError | UnknownApiError | SerializedError;
17
+ declare const fetchBaseQuery: () => BaseQueryFn<string | QueryArguments, unknown, BaseQueryError>;
18
+ declare const isBaseQueryError: (error: BaseQueryError) => error is ApiError | UnknownApiError;
19
+ export { fetchBaseQuery, isBaseQueryError };
@@ -0,0 +1,7 @@
1
+ declare const LOCALIZED_FIELDS: string[];
2
+ declare const doesPluginOptionsHaveI18nLocalized: (opts?: object) => opts is {
3
+ i18n: {
4
+ localized: boolean;
5
+ };
6
+ };
7
+ export { LOCALIZED_FIELDS, doesPluginOptionsHaveI18nLocalized };
@@ -0,0 +1,2 @@
1
+ declare const getTranslation: (id: string) => string;
2
+ export { getTranslation };
@@ -0,0 +1,3 @@
1
+ type TradOptions = Record<string, string>;
2
+ declare const prefixPluginTranslations: (trad: TradOptions, pluginId: string) => TradOptions;
3
+ export { prefixPluginTranslations };
@@ -0,0 +1,24 @@
1
+ import type { Schema } from '@strapi/types';
2
+ declare const mutateCTBContentTypeSchema: (nextSchema: Schema.ContentType, prevSchema?: {
3
+ apiID?: string;
4
+ schema?: Schema.ContentType;
5
+ uid?: string;
6
+ }) => import("@strapi/types/dist/struct").ContentTypeSchema | {
7
+ pluginOptions: Pick<{
8
+ i18n: {
9
+ localized: boolean;
10
+ };
11
+ }, never>;
12
+ attributes: Record<string, OmitByPath<Schema.Attribute.AnyAttribute, ["pluginOptions", "i18n"]>>;
13
+ modelType: "contentType";
14
+ uid: import("@strapi/types/dist/uid").ContentType;
15
+ kind: import("@strapi/types/dist/struct").ContentTypeKind;
16
+ info: import("@strapi/types/dist/struct").ContentTypeSchemaInfo;
17
+ indexes?: unknown[] | undefined;
18
+ modelName: string;
19
+ globalId: string;
20
+ options?: import("@strapi/types/dist/struct").SchemaOptions | undefined;
21
+ collectionName?: string | undefined;
22
+ };
23
+ type OmitByPath<T extends object, K extends string[]> = Pick<T, Exclude<keyof T, K[number]>>;
24
+ export { mutateCTBContentTypeSchema };
@@ -0,0 +1,2 @@
1
+ declare const capitalize: (str: string) => string;
2
+ export { capitalize };