@strapi/i18n 0.0.0-next.ce5699024a72ea224891438d5bbe39f904ec6774 → 0.0.0-next.d190a700af70e9360d767221b76cd8e815bd01aa

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 (201) hide show
  1. package/dist/admin/components/BulkLocaleActionModal.js.map +1 -1
  2. package/dist/admin/components/BulkLocaleActionModal.mjs.map +1 -1
  3. package/dist/admin/components/CMHeaderActions.js +252 -5
  4. package/dist/admin/components/CMHeaderActions.js.map +1 -1
  5. package/dist/admin/components/CMHeaderActions.mjs +256 -10
  6. package/dist/admin/components/CMHeaderActions.mjs.map +1 -1
  7. package/dist/admin/components/CreateLocale.js +3 -4
  8. package/dist/admin/components/CreateLocale.js.map +1 -1
  9. package/dist/admin/components/CreateLocale.mjs +4 -5
  10. package/dist/admin/components/CreateLocale.mjs.map +1 -1
  11. package/dist/admin/components/EditLocale.js +1 -1
  12. package/dist/admin/components/EditLocale.js.map +1 -1
  13. package/dist/admin/components/EditLocale.mjs +1 -1
  14. package/dist/admin/components/EditLocale.mjs.map +1 -1
  15. package/dist/admin/components/LocaleListCell.js +65 -45
  16. package/dist/admin/components/LocaleListCell.js.map +1 -1
  17. package/dist/admin/components/LocaleListCell.mjs +66 -46
  18. package/dist/admin/components/LocaleListCell.mjs.map +1 -1
  19. package/dist/admin/components/LocalePicker.js +18 -11
  20. package/dist/admin/components/LocalePicker.js.map +1 -1
  21. package/dist/admin/components/LocalePicker.mjs +19 -12
  22. package/dist/admin/components/LocalePicker.mjs.map +1 -1
  23. package/dist/admin/contentManagerHooks/editView.js +6 -3
  24. package/dist/admin/contentManagerHooks/editView.js.map +1 -1
  25. package/dist/admin/contentManagerHooks/editView.mjs +7 -4
  26. package/dist/admin/contentManagerHooks/editView.mjs.map +1 -1
  27. package/dist/admin/contentManagerHooks/listView.js +2 -1
  28. package/dist/admin/contentManagerHooks/listView.js.map +1 -1
  29. package/dist/admin/contentManagerHooks/listView.mjs +2 -1
  30. package/dist/admin/contentManagerHooks/listView.mjs.map +1 -1
  31. package/dist/admin/hooks/useAILocalizationJobsPolling.js +110 -0
  32. package/dist/admin/hooks/useAILocalizationJobsPolling.js.map +1 -0
  33. package/dist/admin/hooks/useAILocalizationJobsPolling.mjs +89 -0
  34. package/dist/admin/hooks/useAILocalizationJobsPolling.mjs.map +1 -0
  35. package/dist/admin/hooks/useI18n.js +4 -4
  36. package/dist/admin/hooks/useI18n.js.map +1 -1
  37. package/dist/admin/hooks/useI18n.mjs +4 -4
  38. package/dist/admin/hooks/useI18n.mjs.map +1 -1
  39. package/dist/admin/index.js +1 -1
  40. package/dist/admin/index.js.map +1 -1
  41. package/dist/admin/index.mjs +2 -2
  42. package/dist/admin/index.mjs.map +1 -1
  43. package/dist/admin/middlewares/extendCTBAttributeInitialData.js +34 -24
  44. package/dist/admin/middlewares/extendCTBAttributeInitialData.js.map +1 -1
  45. package/dist/admin/middlewares/extendCTBAttributeInitialData.mjs +34 -24
  46. package/dist/admin/middlewares/extendCTBAttributeInitialData.mjs.map +1 -1
  47. package/dist/admin/pages/SettingsPage.js +121 -46
  48. package/dist/admin/pages/SettingsPage.js.map +1 -1
  49. package/dist/admin/pages/SettingsPage.mjs +124 -30
  50. package/dist/admin/pages/SettingsPage.mjs.map +1 -1
  51. package/dist/admin/services/aiLocalizationJobs.js +26 -0
  52. package/dist/admin/services/aiLocalizationJobs.js.map +1 -0
  53. package/dist/admin/services/aiLocalizationJobs.mjs +24 -0
  54. package/dist/admin/services/aiLocalizationJobs.mjs.map +1 -0
  55. package/dist/admin/services/api.js +4 -1
  56. package/dist/admin/services/api.js.map +1 -1
  57. package/dist/admin/services/api.mjs +4 -1
  58. package/dist/admin/services/api.mjs.map +1 -1
  59. package/dist/admin/services/locales.js +4 -2
  60. package/dist/admin/services/locales.js.map +1 -1
  61. package/dist/admin/services/locales.mjs +4 -2
  62. package/dist/admin/services/locales.mjs.map +1 -1
  63. package/dist/admin/services/settings.js +30 -0
  64. package/dist/admin/services/settings.js.map +1 -0
  65. package/dist/admin/services/settings.mjs +27 -0
  66. package/dist/admin/services/settings.mjs.map +1 -0
  67. package/dist/admin/src/components/CMHeaderActions.d.ts +17 -4
  68. package/dist/admin/src/components/LocaleListCell.d.ts +2 -1
  69. package/dist/admin/src/hooks/useAILocalizationJobsPolling.d.ts +9 -0
  70. package/dist/admin/src/services/aiLocalizationJobs.d.ts +6 -0
  71. package/dist/admin/src/services/api.d.ts +1 -1
  72. package/dist/admin/src/services/locales.d.ts +1 -1
  73. package/dist/admin/src/services/relations.d.ts +1 -1
  74. package/dist/admin/src/services/settings.d.ts +5 -0
  75. package/dist/admin/src/utils/schemas.d.ts +642 -16
  76. package/dist/admin/translations/en.json.js +10 -0
  77. package/dist/admin/translations/en.json.js.map +1 -1
  78. package/dist/admin/translations/en.json.mjs +10 -0
  79. package/dist/admin/translations/en.json.mjs.map +1 -1
  80. package/dist/admin/utils/clean.js +2 -2
  81. package/dist/admin/utils/clean.js.map +1 -1
  82. package/dist/admin/utils/clean.mjs +2 -2
  83. package/dist/admin/utils/clean.mjs.map +1 -1
  84. package/dist/admin/utils/fields.js +6 -1
  85. package/dist/admin/utils/fields.js.map +1 -1
  86. package/dist/admin/utils/fields.mjs +6 -1
  87. package/dist/admin/utils/fields.mjs.map +1 -1
  88. package/dist/admin/utils/getTranslation.js.map +1 -1
  89. package/dist/admin/utils/getTranslation.mjs.map +1 -1
  90. package/dist/admin/utils/prefixPluginTranslations.js.map +1 -1
  91. package/dist/admin/utils/prefixPluginTranslations.mjs.map +1 -1
  92. package/dist/admin/utils/schemas.js +19 -13
  93. package/dist/admin/utils/schemas.js.map +1 -1
  94. package/dist/admin/utils/schemas.mjs +19 -13
  95. package/dist/admin/utils/schemas.mjs.map +1 -1
  96. package/dist/server/bootstrap.js +2 -0
  97. package/dist/server/bootstrap.js.map +1 -1
  98. package/dist/server/bootstrap.mjs +2 -0
  99. package/dist/server/bootstrap.mjs.map +1 -1
  100. package/dist/server/constants/iso-locales.json.js +4 -0
  101. package/dist/server/constants/iso-locales.json.js.map +1 -1
  102. package/dist/server/constants/iso-locales.json.mjs +4 -0
  103. package/dist/server/constants/iso-locales.json.mjs.map +1 -1
  104. package/dist/server/controllers/ai-localization-jobs.js +47 -0
  105. package/dist/server/controllers/ai-localization-jobs.js.map +1 -0
  106. package/dist/server/controllers/ai-localization-jobs.mjs +45 -0
  107. package/dist/server/controllers/ai-localization-jobs.mjs.map +1 -0
  108. package/dist/server/controllers/index.js +5 -1
  109. package/dist/server/controllers/index.js.map +1 -1
  110. package/dist/server/controllers/index.mjs +5 -1
  111. package/dist/server/controllers/index.mjs.map +1 -1
  112. package/dist/server/controllers/settings.js +24 -0
  113. package/dist/server/controllers/settings.js.map +1 -0
  114. package/dist/server/controllers/settings.mjs +22 -0
  115. package/dist/server/controllers/settings.mjs.map +1 -0
  116. package/dist/server/models/ai-localization-job.js +60 -0
  117. package/dist/server/models/ai-localization-job.js.map +1 -0
  118. package/dist/server/models/ai-localization-job.mjs +57 -0
  119. package/dist/server/models/ai-localization-job.mjs.map +1 -0
  120. package/dist/server/register.js +3 -1
  121. package/dist/server/register.js.map +1 -1
  122. package/dist/server/register.mjs +3 -1
  123. package/dist/server/register.mjs.map +1 -1
  124. package/dist/server/routes/admin.js +40 -0
  125. package/dist/server/routes/admin.js.map +1 -1
  126. package/dist/server/routes/admin.mjs +40 -0
  127. package/dist/server/routes/admin.mjs.map +1 -1
  128. package/dist/server/routes/content-api.js +11 -7
  129. package/dist/server/routes/content-api.js.map +1 -1
  130. package/dist/server/routes/content-api.mjs +11 -7
  131. package/dist/server/routes/content-api.mjs.map +1 -1
  132. package/dist/server/routes/index.mjs +2 -2
  133. package/dist/server/routes/validation/locale.js +57 -0
  134. package/dist/server/routes/validation/locale.js.map +1 -0
  135. package/dist/server/routes/validation/locale.mjs +36 -0
  136. package/dist/server/routes/validation/locale.mjs.map +1 -0
  137. package/dist/server/services/ai-localization-jobs.js +64 -0
  138. package/dist/server/services/ai-localization-jobs.js.map +1 -0
  139. package/dist/server/services/ai-localization-jobs.mjs +62 -0
  140. package/dist/server/services/ai-localization-jobs.mjs.map +1 -0
  141. package/dist/server/services/ai-localizations.js +268 -0
  142. package/dist/server/services/ai-localizations.js.map +1 -0
  143. package/dist/server/services/ai-localizations.mjs +266 -0
  144. package/dist/server/services/ai-localizations.mjs.map +1 -0
  145. package/dist/server/services/content-types.js.map +1 -1
  146. package/dist/server/services/content-types.mjs.map +1 -1
  147. package/dist/server/services/index.js +7 -1
  148. package/dist/server/services/index.js.map +1 -1
  149. package/dist/server/services/index.mjs +7 -1
  150. package/dist/server/services/index.mjs.map +1 -1
  151. package/dist/server/services/settings.js +25 -0
  152. package/dist/server/services/settings.js.map +1 -0
  153. package/dist/server/services/settings.mjs +23 -0
  154. package/dist/server/services/settings.mjs.map +1 -0
  155. package/dist/server/src/bootstrap.d.ts.map +1 -1
  156. package/dist/server/src/controllers/ai-localization-jobs.d.ts +17 -0
  157. package/dist/server/src/controllers/ai-localization-jobs.d.ts.map +1 -0
  158. package/dist/server/src/controllers/index.d.ts +10 -0
  159. package/dist/server/src/controllers/index.d.ts.map +1 -1
  160. package/dist/server/src/controllers/settings.d.ts +7 -0
  161. package/dist/server/src/controllers/settings.d.ts.map +1 -0
  162. package/dist/server/src/index.d.ts +47 -8
  163. package/dist/server/src/index.d.ts.map +1 -1
  164. package/dist/server/src/models/ai-localization-job.d.ts +5 -0
  165. package/dist/server/src/models/ai-localization-job.d.ts.map +1 -0
  166. package/dist/server/src/models/index.d.ts +5 -0
  167. package/dist/server/src/models/index.d.ts.map +1 -0
  168. package/dist/server/src/register.d.ts +1 -1
  169. package/dist/server/src/register.d.ts.map +1 -1
  170. package/dist/server/src/routes/admin.d.ts.map +1 -1
  171. package/dist/server/src/routes/content-api.d.ts +5 -8
  172. package/dist/server/src/routes/content-api.d.ts.map +1 -1
  173. package/dist/server/src/routes/index.d.ts +3 -7
  174. package/dist/server/src/routes/index.d.ts.map +1 -1
  175. package/dist/server/src/routes/validation/index.d.ts +2 -0
  176. package/dist/server/src/routes/validation/index.d.ts.map +1 -0
  177. package/dist/server/src/routes/validation/locale.d.ts +41 -0
  178. package/dist/server/src/routes/validation/locale.d.ts.map +1 -0
  179. package/dist/server/src/services/ai-localization-jobs.d.ts +26 -0
  180. package/dist/server/src/services/ai-localization-jobs.d.ts.map +1 -0
  181. package/dist/server/src/services/ai-localizations.d.ts +18 -0
  182. package/dist/server/src/services/ai-localizations.d.ts.map +1 -0
  183. package/dist/server/src/services/index.d.ts +33 -0
  184. package/dist/server/src/services/index.d.ts.map +1 -1
  185. package/dist/server/src/services/settings.d.ts +13 -0
  186. package/dist/server/src/services/settings.d.ts.map +1 -0
  187. package/dist/server/src/utils/index.d.ts +7 -1
  188. package/dist/server/src/utils/index.d.ts.map +1 -1
  189. package/dist/server/src/validation/settings.d.ts +12 -0
  190. package/dist/server/src/validation/settings.d.ts.map +1 -0
  191. package/dist/server/utils/index.js.map +1 -1
  192. package/dist/server/utils/index.mjs.map +1 -1
  193. package/dist/server/validation/settings.js +11 -0
  194. package/dist/server/validation/settings.js.map +1 -0
  195. package/dist/server/validation/settings.mjs +9 -0
  196. package/dist/server/validation/settings.mjs.map +1 -0
  197. package/dist/shared/contracts/ai-localization-jobs.d.ts +27 -0
  198. package/dist/shared/contracts/ai-localization-jobs.d.ts.map +1 -0
  199. package/dist/shared/contracts/settings.d.ts +40 -0
  200. package/dist/shared/contracts/shared.d.ts.map +1 -0
  201. package/package.json +12 -9
@@ -1 +1 @@
1
- {"version":3,"file":"locales.js","sources":["../../../admin/src/services/locales.ts"],"sourcesContent":["import { i18nApi } from './api';\n\nimport type { GetISOLocales } from '../../../shared/contracts/iso-locales';\nimport type {\n GetLocales,\n CreateLocale,\n DeleteLocale,\n UpdateLocale,\n} from '../../../shared/contracts/locales';\n\nconst localesApi = i18nApi.injectEndpoints({\n endpoints: (builder) => ({\n createLocale: builder.mutation<CreateLocale.Response, CreateLocale.Request['body']>({\n query: (data) => ({\n url: '/i18n/locales',\n method: 'POST',\n data,\n }),\n invalidatesTags: [{ type: 'Locale', id: 'LIST' }],\n }),\n deleteLocale: builder.mutation<DeleteLocale.Response, DeleteLocale.Params['id']>({\n query: (id) => ({\n url: `/i18n/locales/${id}`,\n method: 'DELETE',\n }),\n invalidatesTags: (result, error, id) => [{ type: 'Locale', id }],\n }),\n getLocales: builder.query<GetLocales.Response, void>({\n query: () => '/i18n/locales',\n providesTags: (res) => [\n { type: 'Locale', id: 'LIST' },\n ...(Array.isArray(res)\n ? res.map((locale) => ({\n type: 'Locale' as const,\n id: locale.id,\n }))\n : []),\n ],\n }),\n getDefaultLocales: builder.query<GetISOLocales.Response, void>({\n query: () => '/i18n/iso-locales',\n }),\n updateLocale: builder.mutation<\n UpdateLocale.Response,\n UpdateLocale.Request['body'] & UpdateLocale.Params\n >({\n query: ({ id, ...data }) => ({\n url: `/i18n/locales/${id}`,\n method: 'PUT',\n data,\n }),\n invalidatesTags: (result, error, { id }) => [{ type: 'Locale', id }],\n }),\n }),\n});\n\nconst {\n useCreateLocaleMutation,\n useDeleteLocaleMutation,\n useGetLocalesQuery,\n useGetDefaultLocalesQuery,\n useUpdateLocaleMutation,\n} = localesApi;\n\nexport {\n useCreateLocaleMutation,\n useDeleteLocaleMutation,\n useGetLocalesQuery,\n useGetDefaultLocalesQuery,\n useUpdateLocaleMutation,\n};\n"],"names":["localesApi","i18nApi","injectEndpoints","endpoints","builder","createLocale","mutation","query","data","url","method","invalidatesTags","type","id","deleteLocale","result","error","getLocales","providesTags","res","Array","isArray","map","locale","getDefaultLocales","updateLocale","useCreateLocaleMutation","useDeleteLocaleMutation","useGetLocalesQuery","useGetDefaultLocalesQuery","useUpdateLocaleMutation"],"mappings":";;;;AAUA,MAAMA,UAAAA,GAAaC,WAAQC,CAAAA,eAAe,CAAC;IACzCC,SAAW,EAAA,CAACC,WAAa;YACvBC,YAAcD,EAAAA,OAAAA,CAAQE,QAAQ,CAAs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,CAAC,cAAc,EAAEI,EAAAA,CAAG,CAAC;wBAC1BH,MAAQ,EAAA,KAAA;AACRF,wBAAAA;qBACF,CAAA;AACAG,gBAAAA,eAAAA,EAAiB,CAACI,MAAQC,EAAAA,KAAAA,EAAO,EAAEH,EAAE,EAAE,GAAK;AAAC,wBAAA;4BAAED,IAAM,EAAA,QAAA;AAAUC,4BAAAA;AAAG;AAAE;AACtE,aAAA;SACF;AACF,CAAA,CAAA;AAEM,MAAA,EACJa,uBAAuB,EACvBC,uBAAuB,EACvBC,kBAAkB,EAClBC,yBAAyB,EACzBC,uBAAuB,EACxB,GAAG9B;;;;;;;;"}
1
+ {"version":3,"file":"locales.js","sources":["../../../admin/src/services/locales.ts"],"sourcesContent":["import { i18nApi } from './api';\n\nimport type { GetISOLocales } from '../../../shared/contracts/iso-locales';\nimport type {\n GetLocales,\n CreateLocale,\n DeleteLocale,\n UpdateLocale,\n} from '../../../shared/contracts/locales';\n\nconst localesApi = i18nApi.injectEndpoints({\n endpoints: (builder) => ({\n createLocale: builder.mutation<CreateLocale.Response, CreateLocale.Request['body']>({\n query: (data) => ({\n url: '/i18n/locales',\n method: 'POST',\n data,\n }),\n invalidatesTags: [{ type: 'Locale', id: 'LIST' }, 'HomepageKeyStatistics'],\n }),\n deleteLocale: builder.mutation<DeleteLocale.Response, DeleteLocale.Params['id']>({\n query: (id) => ({\n url: `/i18n/locales/${id}`,\n method: 'DELETE',\n }),\n invalidatesTags: (result, error, id) => [{ type: 'Locale', id }, 'HomepageKeyStatistics'],\n }),\n getLocales: builder.query<GetLocales.Response, void>({\n query: () => '/i18n/locales',\n providesTags: (res) => [\n { type: 'Locale', id: 'LIST' },\n ...(Array.isArray(res)\n ? res.map((locale) => ({\n type: 'Locale' as const,\n id: locale.id,\n }))\n : []),\n ],\n }),\n getDefaultLocales: builder.query<GetISOLocales.Response, void>({\n query: () => '/i18n/iso-locales',\n }),\n updateLocale: builder.mutation<\n UpdateLocale.Response,\n UpdateLocale.Request['body'] & UpdateLocale.Params\n >({\n query: ({ id, ...data }) => ({\n url: `/i18n/locales/${id}`,\n method: 'PUT',\n data,\n }),\n invalidatesTags: (result, error, { id }) => [{ type: 'Locale', id }],\n }),\n }),\n});\n\nconst {\n useCreateLocaleMutation,\n useDeleteLocaleMutation,\n useGetLocalesQuery,\n useGetDefaultLocalesQuery,\n useUpdateLocaleMutation,\n} = localesApi;\n\nexport {\n useCreateLocaleMutation,\n useDeleteLocaleMutation,\n useGetLocalesQuery,\n useGetDefaultLocalesQuery,\n useUpdateLocaleMutation,\n};\n"],"names":["localesApi","i18nApi","injectEndpoints","endpoints","builder","createLocale","mutation","query","data","url","method","invalidatesTags","type","id","deleteLocale","result","error","getLocales","providesTags","res","Array","isArray","map","locale","getDefaultLocales","updateLocale","useCreateLocaleMutation","useDeleteLocaleMutation","useGetLocalesQuery","useGetDefaultLocalesQuery","useUpdateLocaleMutation"],"mappings":";;;;AAUA,MAAMA,UAAAA,GAAaC,WAAQC,CAAAA,eAAe,CAAC;IACzCC,SAAW,EAAA,CAACC,WAAa;YACvBC,YAAcD,EAAAA,OAAAA,CAAQE,QAAQ,CAAsD;gBAClFC,KAAO,EAAA,CAACC,QAAU;wBAChBC,GAAK,EAAA,eAAA;wBACLC,MAAQ,EAAA,MAAA;AACRF,wBAAAA;qBACF,CAAA;gBACAG,eAAiB,EAAA;AAAC,oBAAA;wBAAEC,IAAM,EAAA,QAAA;wBAAUC,EAAI,EAAA;AAAO,qBAAA;AAAG,oBAAA;AAAwB;AAC5E,aAAA,CAAA;YACAC,YAAcV,EAAAA,OAAAA,CAAQE,QAAQ,CAAmD;gBAC/EC,KAAO,EAAA,CAACM,MAAQ;wBACdJ,GAAK,EAAA,CAAC,cAAc,EAAEI,EAAI,CAAA,CAAA;wBAC1BH,MAAQ,EAAA;qBACV,CAAA;gBACAC,eAAiB,EAAA,CAACI,MAAQC,EAAAA,KAAAA,EAAOH,EAAO,GAAA;AAAC,wBAAA;4BAAED,IAAM,EAAA,QA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+ 'HomepageKeyStatistics'
16
17
  ]
17
18
  }),
18
19
  deleteLocale: builder.mutation({
@@ -24,7 +25,8 @@ const localesApi = i18nApi.injectEndpoints({
24
25
  {
25
26
  type: 'Locale',
26
27
  id
27
- }
28
+ },
29
+ 'HomepageKeyStatistics'
28
30
  ]
29
31
  }),
30
32
  getLocales: builder.query({
@@ -1 +1 @@
1
- {"version":3,"file":"locales.mjs","sources":["../../../admin/src/services/locales.ts"],"sourcesContent":["import { i18nApi } from './api';\n\nimport type { GetISOLocales } from '../../../shared/contracts/iso-locales';\nimport type {\n GetLocales,\n CreateLocale,\n DeleteLocale,\n UpdateLocale,\n} from '../../../shared/contracts/locales';\n\nconst localesApi = i18nApi.injectEndpoints({\n endpoints: (builder) => ({\n createLocale: builder.mutation<CreateLocale.Response, CreateLocale.Request['body']>({\n query: (data) => ({\n url: '/i18n/locales',\n method: 'POST',\n data,\n }),\n invalidatesTags: [{ type: 'Locale', id: 'LIST' }],\n }),\n deleteLocale: builder.mutation<DeleteLocale.Response, DeleteLocale.Params['id']>({\n query: (id) => ({\n url: `/i18n/locales/${id}`,\n method: 'DELETE',\n }),\n invalidatesTags: (result, error, id) => [{ type: 'Locale', id }],\n }),\n getLocales: builder.query<GetLocales.Response, void>({\n query: () => '/i18n/locales',\n providesTags: (res) => [\n { type: 'Locale', id: 'LIST' },\n ...(Array.isArray(res)\n ? res.map((locale) => ({\n type: 'Locale' as const,\n id: locale.id,\n }))\n : []),\n ],\n }),\n getDefaultLocales: builder.query<GetISOLocales.Response, void>({\n query: () => '/i18n/iso-locales',\n }),\n updateLocale: builder.mutation<\n UpdateLocale.Response,\n UpdateLocale.Request['body'] & UpdateLocale.Params\n >({\n query: ({ id, ...data }) => ({\n url: `/i18n/locales/${id}`,\n method: 'PUT',\n data,\n }),\n invalidatesTags: (result, error, { id }) => [{ type: 'Locale', id }],\n }),\n }),\n});\n\nconst {\n useCreateLocaleMutation,\n useDeleteLocaleMutation,\n useGetLocalesQuery,\n useGetDefaultLocalesQuery,\n useUpdateLocaleMutation,\n} = localesApi;\n\nexport {\n useCreateLocaleMutation,\n useDeleteLocaleMutation,\n useGetLocalesQuery,\n useGetDefaultLocalesQuery,\n useUpdateLocaleMutation,\n};\n"],"names":["localesApi","i18nApi","injectEndpoints","endpoints","builder","createLocale","mutation","query","data","url","method","invalidatesTags","type","id","deleteLocale","result","error","getLocales","providesTags","res","Array","isArray","map","locale","getDefaultLocales","updateLocale","useCreateLocaleMutation","useDeleteLocaleMutation","useGetLocalesQuery","useGetDefaultLocalesQuery","useUpdateLocaleMutation"],"mappings":";;AAUA,MAAMA,UAAAA,GAAaC,OAAQC,CAAAA,eAAe,CAAC;IACzCC,SAAW,EAAA,CAACC,WAAa;YACvBC,YAAcD,EAAAA,OAAAA,CAAQE,QAAQ,CAAsD;gBAClFC,KAAO,EAAA,CAACC,QAAU;wBAChBC,GAAK,EAAA,eAAA;wBACLC,MAAQ,EAAA,MAAA;AACRF,wBAAAA;qBACF,CAAA;gBACAG,eAAiB,EAAA;AAAC,oBAAA;wBAAEC,IAAM,EAAA,QAAA;wBAAUC,EAAI,EAAA;AAAO;AAAE;AACnD,aAAA,CAAA;YACAC,YAAcV,EAAAA,OAAAA,CAAQE,QAAQ,CAAmD;gBAC/EC,KAAO,EAAA,CAACM,MAAQ;AACdJ,wBAAAA,GAAAA,EAAK,CAAC,cAAc,EAAEI,EAAAA,CAAG,CAAC;wBAC1BH,MAAQ,EAAA;qBACV,CAAA;gBACAC,eAAiB,EAAA,CAACI,MAAQC,EAAAA,KAAAA,EAAOH,EAAO,GAAA;AAAC,wBAAA;4BAAED,IAAM,EAAA,QAAA;AAAUC,4BAAAA;AAAG;AAAE;AAClE,aAAA,CAAA;YACAI,UAAYb,EAAAA,OAAAA,CAAQG,KAAK,CAA4B;AACnDA,gBAAAA,KAAAA,EAAO,IAAM,eAAA;AACbW,gBAAAA,YAAAA,EAAc,CAACC,GAAQ,GAAA;AACrB,wBAAA;4BAAEP,IAAM,EAAA,QAAA;4BAAUC,EAAI,EAAA;AAAO,yBAAA;2BACzBO,KAAMC,CAAAA,OAAO,CAACF,GACdA,CAAAA,GAAAA,GAAAA,CAAIG,GAAG,CAAC,CAACC,UAAY;gCACnBX,IAAM,EAAA,QAAA;AACNC,gCAAAA,EAAAA,EAAIU,OAAOV;AACb,6BAAA,KACA;AACL;AACH,aAAA,CAAA;YACAW,iBAAmBpB,EAAAA,OAAAA,CAAQG,KAAK,CAA+B;AAC7DA,gBAAAA,KAAAA,EAAO,IAAM;AACf,aAAA,CAAA;YACAkB,YAAcrB,EAAAA,OAAAA,CAAQE,QAAQ,CAG5B;AACAC,gBAAAA,KAAAA,EAAO,CAAC,EAAEM,EAAE,EAAE,GAAGL,IAAAA,EAAM,IAAM;AAC3BC,wBAAAA,GAAAA,EAAK,CAAC,cAAc,EAAEI,EAAAA,CAAG,CAAC;wBAC1BH,MAAQ,EAAA,KAAA;AACRF,wBAAAA;qBACF,CAAA;AACAG,gBAAAA,eAAAA,EAAiB,CAACI,MAAQC,EAAAA,KAAAA,EAAO,EAAEH,EAAE,EAAE,GAAK;AAAC,wBAAA;4BAAED,IAAM,EAAA,QAAA;AAAUC,4BAAAA;AAAG;AAAE;AACtE,aAAA;SACF;AACF,CAAA,CAAA;AAEM,MAAA,EACJa,uBAAuB,EACvBC,uBAAuB,EACvBC,kBAAkB,EAClBC,yBAAyB,EACzBC,uBAAuB,EACxB,GAAG9B;;;;"}
1
+ {"version":3,"file":"locales.mjs","sources":["../../../admin/src/services/locales.ts"],"sourcesContent":["import { i18nApi } from './api';\n\nimport type { GetISOLocales } from '../../../shared/contracts/iso-locales';\nimport type {\n GetLocales,\n CreateLocale,\n DeleteLocale,\n UpdateLocale,\n} from '../../../shared/contracts/locales';\n\nconst localesApi = i18nApi.injectEndpoints({\n endpoints: (builder) => ({\n createLocale: builder.mutation<CreateLocale.Response, CreateLocale.Request['body']>({\n query: (data) => ({\n url: '/i18n/locales',\n method: 'POST',\n data,\n }),\n invalidatesTags: [{ type: 'Locale', id: 'LIST' }, 'HomepageKeyStatistics'],\n }),\n deleteLocale: builder.mutation<DeleteLocale.Response, DeleteLocale.Params['id']>({\n query: (id) => ({\n url: `/i18n/locales/${id}`,\n method: 'DELETE',\n }),\n invalidatesTags: (result, error, id) => [{ type: 'Locale', id }, 'HomepageKeyStatistics'],\n }),\n getLocales: builder.query<GetLocales.Response, void>({\n query: () => '/i18n/locales',\n providesTags: (res) => [\n { type: 'Locale', id: 'LIST' },\n ...(Array.isArray(res)\n ? res.map((locale) => ({\n type: 'Locale' as const,\n id: locale.id,\n }))\n : []),\n ],\n }),\n getDefaultLocales: builder.query<GetISOLocales.Response, void>({\n query: () => '/i18n/iso-locales',\n }),\n updateLocale: builder.mutation<\n UpdateLocale.Response,\n UpdateLocale.Request['body'] & UpdateLocale.Params\n >({\n query: ({ id, ...data }) => ({\n url: `/i18n/locales/${id}`,\n method: 'PUT',\n data,\n }),\n invalidatesTags: (result, error, { id }) => [{ type: 'Locale', id }],\n }),\n }),\n});\n\nconst {\n useCreateLocaleMutation,\n useDeleteLocaleMutation,\n useGetLocalesQuery,\n useGetDefaultLocalesQuery,\n useUpdateLocaleMutation,\n} = localesApi;\n\nexport {\n useCreateLocaleMutation,\n useDeleteLocaleMutation,\n useGetLocalesQuery,\n useGetDefaultLocalesQuery,\n useUpdateLocaleMutation,\n};\n"],"names":["localesApi","i18nApi","injectEndpoints","endpoints","builder","createLocale","mutation","query","data","url","method","invalidatesTags","type","id","deleteLocale","result","error","getLocales","providesTags","res","Array","isArray","map","locale","getDefaultLocales","updateLocale","useCreateLocaleMutation","useDeleteLocaleMutation","useGetLocalesQuery","useGetDefaultLocalesQuery","useUpdateLocaleMutation"],"mappings":";;AAUA,MAAMA,UAAAA,GAAaC,OAAQC,CAAAA,eAAe,CAAC;IACzCC,SAAW,EAAA,CAACC,WAAa;YACvBC,YAAcD,EAAAA,OAAAA,CAAQE,QAAQ,CAAsD;gBAClFC,KAAO,EAAA,CAACC,QA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AC,cAAc,EAAEI,EAAI,CAAA,CAAA;wBAC1BH,MAAQ,EAAA,KAAA;AACRF,wBAAAA;qBACF,CAAA;AACAG,gBAAAA,eAAAA,EAAiB,CAACI,MAAQC,EAAAA,KAAAA,EAAO,EAAEH,EAAE,EAAE,GAAK;AAAC,wBAAA;4BAAED,IAAM,EAAA,QAAA;AAAUC,4BAAAA;AAAG;AAAE;AACtE,aAAA;SACF;AACF,CAAA,CAAA;AAEM,MAAA,EACJa,uBAAuB,EACvBC,uBAAuB,EACvBC,kBAAkB,EAClBC,yBAAyB,EACzBC,uBAAuB,EACxB,GAAG9B;;;;"}
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+ var api = require('./api.js');
4
+
5
+ const settingsApi = api.i18nApi.injectEndpoints({
6
+ endpoints: (builder)=>({
7
+ getSettings: builder.query({
8
+ query: ()=>'/i18n/settings',
9
+ providesTags: [
10
+ 'Settings'
11
+ ]
12
+ }),
13
+ updatei18nSettings: builder.mutation({
14
+ query: (data)=>({
15
+ url: '/i18n/settings',
16
+ method: 'PUT',
17
+ data
18
+ }),
19
+ invalidatesTags: [
20
+ 'Settings',
21
+ 'AIFeatureConfig'
22
+ ]
23
+ })
24
+ })
25
+ });
26
+ const { useGetSettingsQuery, useUpdatei18nSettingsMutation } = settingsApi;
27
+
28
+ exports.useGetSettingsQuery = useGetSettingsQuery;
29
+ exports.useUpdatei18nSettingsMutation = useUpdatei18nSettingsMutation;
30
+ //# sourceMappingURL=settings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.js","sources":["../../../admin/src/services/settings.ts"],"sourcesContent":["import { i18nApi } from './api';\n\nimport type { GetSettings, UpdateSettings } from '../../../shared/contracts/settings';\n\nconst settingsApi = i18nApi.injectEndpoints({\n endpoints: (builder) => ({\n getSettings: builder.query<GetSettings.Response['data'], void>({\n query: () => '/i18n/settings',\n providesTags: ['Settings'],\n }),\n updatei18nSettings: builder.mutation<UpdateSettings.Response, UpdateSettings.Request['body']>({\n query: (data) => ({\n url: '/i18n/settings',\n method: 'PUT',\n data,\n }),\n invalidatesTags: ['Settings', 'AIFeatureConfig'],\n }),\n }),\n});\n\nconst { useGetSettingsQuery, useUpdatei18nSettingsMutation } = settingsApi;\n\nexport { useGetSettingsQuery, useUpdatei18nSettingsMutation };\n"],"names":["settingsApi","i18nApi","injectEndpoints","endpoints","builder","getSettings","query","providesTags","updatei18nSettings","mutation","data","url","method","invalidatesTags","useGetSettingsQuery","useUpdatei18nSettingsMutation"],"mappings":";;;;AAIA,MAAMA,WAAAA,GAAcC,WAAQC,CAAAA,eAAe,CAAC;IAC1CC,SAAW,EAAA,CAACC,WAAa;YACvBC,WAAaD,EAAAA,OAAAA,CAAQE,KAAK,CAAqC;AAC7DA,gBAAAA,KAAAA,EAAO,IAAM,gBAAA;gBACbC,YAAc,EAAA;AAAC,oBAAA;AAAW;AAC5B,aAAA,CAAA;YACAC,kBAAoBJ,EAAAA,OAAAA,CAAQK,QAAQ,CAA0D;gBAC5FH,KAAO,EAAA,CAACI,QAAU;wBAChBC,GAAK,EAAA,gBAAA;wBACLC,MAAQ,EAAA,KAAA;AACRF,wBAAAA;qBACF,CAAA;gBACAG,eAAiB,EAAA;AAAC,oBAAA,UAAA;AAAY,oBAAA;AAAkB;AAClD,aAAA;SACF;AACF,CAAA,CAAA;AAEA,MAAM,EAAEC,mBAAmB,EAAEC,6BAA6B,EAAE,GAAGf;;;;;"}
@@ -0,0 +1,27 @@
1
+ import { i18nApi } from './api.mjs';
2
+
3
+ const settingsApi = i18nApi.injectEndpoints({
4
+ endpoints: (builder)=>({
5
+ getSettings: builder.query({
6
+ query: ()=>'/i18n/settings',
7
+ providesTags: [
8
+ 'Settings'
9
+ ]
10
+ }),
11
+ updatei18nSettings: builder.mutation({
12
+ query: (data)=>({
13
+ url: '/i18n/settings',
14
+ method: 'PUT',
15
+ data
16
+ }),
17
+ invalidatesTags: [
18
+ 'Settings',
19
+ 'AIFeatureConfig'
20
+ ]
21
+ })
22
+ })
23
+ });
24
+ const { useGetSettingsQuery, useUpdatei18nSettingsMutation } = settingsApi;
25
+
26
+ export { useGetSettingsQuery, useUpdatei18nSettingsMutation };
27
+ //# sourceMappingURL=settings.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"settings.mjs","sources":["../../../admin/src/services/settings.ts"],"sourcesContent":["import { i18nApi } from './api';\n\nimport type { GetSettings, UpdateSettings } from '../../../shared/contracts/settings';\n\nconst settingsApi = i18nApi.injectEndpoints({\n endpoints: (builder) => ({\n getSettings: builder.query<GetSettings.Response['data'], void>({\n query: () => '/i18n/settings',\n providesTags: ['Settings'],\n }),\n updatei18nSettings: builder.mutation<UpdateSettings.Response, UpdateSettings.Request['body']>({\n query: (data) => ({\n url: '/i18n/settings',\n method: 'PUT',\n data,\n }),\n invalidatesTags: ['Settings', 'AIFeatureConfig'],\n }),\n }),\n});\n\nconst { useGetSettingsQuery, useUpdatei18nSettingsMutation } = settingsApi;\n\nexport { useGetSettingsQuery, useUpdatei18nSettingsMutation };\n"],"names":["settingsApi","i18nApi","injectEndpoints","endpoints","builder","getSettings","query","providesTags","updatei18nSettings","mutation","data","url","method","invalidatesTags","useGetSettingsQuery","useUpdatei18nSettingsMutation"],"mappings":";;AAIA,MAAMA,WAAAA,GAAcC,OAAQC,CAAAA,eAAe,CAAC;IAC1CC,SAAW,EAAA,CAACC,WAAa;YACvBC,WAAaD,EAAAA,OAAAA,CAAQE,KAAK,CAAqC;AAC7DA,gBAAAA,KAAAA,EAAO,IAAM,gBAAA;gBACbC,YAAc,EAAA;AAAC,oBAAA;AAAW;AAC5B,aAAA,CAAA;YACAC,kBAAoBJ,EAAAA,OAAAA,CAAQK,QAAQ,CAA0D;gBAC5FH,KAAO,EAAA,CAACI,QAAU;wBAChBC,GAAK,EAAA,gBAAA;wBACLC,MAAQ,EAAA,KAAA;AACRF,wBAAAA;qBACF,CAAA;gBACAG,eAAiB,EAAA;AAAC,oBAAA,UAAA;AAAY,oBAAA;AAAkB;AAClD,aAAA;SACF;AACF,CAAA,CAAA;AAEA,MAAM,EAAEC,mBAAmB,EAAEC,6BAA6B,EAAE,GAAGf;;;;"}
@@ -3,16 +3,29 @@ import type { Locale } from '../../../shared/contracts/locales';
3
3
  import type { Modules } from '@strapi/types';
4
4
  declare const LocalePickerAction: ({ document, meta, model, collectionType, documentId, }: HeaderActionProps) => {
5
5
  label: string;
6
- options: {
6
+ options: ({
7
+ _render: () => import("react/jsx-runtime").JSX.Element;
8
+ disabled?: undefined;
9
+ value?: undefined;
10
+ label?: undefined;
11
+ startIcon?: undefined;
12
+ } | {
7
13
  disabled: boolean;
8
14
  value: string;
9
15
  label: import("react/jsx-runtime").JSX.Element;
10
- startIcon: import("react/jsx-runtime").JSX.Element | null;
11
- }[];
16
+ startIcon: import("react/jsx-runtime").JSX.Element;
17
+ _render?: undefined;
18
+ })[];
12
19
  customizeContent: () => string | undefined;
13
20
  onSelect: (value: string) => void;
14
21
  value: Locale | undefined;
15
22
  } | null;
23
+ declare const AITranslationStatusAction: ({ documentId, model, collectionType }: HeaderActionProps) => {
24
+ _status: {
25
+ message: import("react/jsx-runtime").JSX.Element;
26
+ tooltip: import("react/jsx-runtime").JSX.Element;
27
+ };
28
+ } | null;
16
29
  declare const FillFromAnotherLocaleAction: ({ documentId, meta, model, collectionType, }: HeaderActionProps) => {
17
30
  type: string;
18
31
  icon: import("react/jsx-runtime").JSX.Element;
@@ -33,4 +46,4 @@ export type LocaleStatus = {
33
46
  };
34
47
  declare const BulkLocalePublishAction: DocumentActionComponent;
35
48
  declare const BulkLocaleUnpublishAction: DocumentActionComponent;
36
- export { BulkLocalePublishAction, BulkLocaleUnpublishAction, DeleteLocaleAction, LocalePickerAction, FillFromAnotherLocaleAction, };
49
+ export { BulkLocalePublishAction, BulkLocaleUnpublishAction, DeleteLocaleAction, LocalePickerAction, FillFromAnotherLocaleAction, AITranslationStatusAction, };
@@ -3,7 +3,8 @@ interface LocaleListCellProps {
3
3
  locale: string;
4
4
  }[];
5
5
  locale: string;
6
+ documentId: string;
6
7
  }
7
- declare const LocaleListCell: ({ locale: currentLocale, localizations }: LocaleListCellProps) => import("react/jsx-runtime").JSX.Element | null;
8
+ declare const LocaleListCell: ({ locale: currentLocale, localizations, documentId, }: LocaleListCellProps) => import("react/jsx-runtime").JSX.Element | null;
8
9
  export { LocaleListCell };
9
10
  export type { LocaleListCellProps };
@@ -0,0 +1,9 @@
1
+ interface UseAILocalizationJobsPollingOptions {
2
+ documentId?: string;
3
+ model?: string;
4
+ collectionType?: string;
5
+ }
6
+ export declare const useAILocalizationJobsPolling: ({ documentId, model, collectionType, }: UseAILocalizationJobsPollingOptions) => {
7
+ status: "processing" | "completed" | "failed" | undefined;
8
+ };
9
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { GetAILocalizationJobsByDocument } from '../../../shared/contracts/ai-localization-jobs';
2
+ export declare const useGetAILocalizationJobsByDocumentQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<{
3
+ documentId: string;
4
+ model: string;
5
+ collectionType: string;
6
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", GetAILocalizationJobsByDocument.Response, "adminApi">>;
@@ -1,2 +1,2 @@
1
- declare const i18nApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, import("@reduxjs/toolkit/dist/query/endpointDefinitions").UpdateDefinitions<{}, "Locale", never>, "adminApi", "Locale", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
1
+ declare const i18nApi: import("@reduxjs/toolkit/query").Api<import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, import("@reduxjs/toolkit/dist/query/endpointDefinitions").UpdateDefinitions<{}, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", never>, "adminApi", "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", typeof import("@reduxjs/toolkit/query").coreModuleName | typeof import("@reduxjs/toolkit/dist/query/react").reactHooksModuleName>;
2
2
  export { i18nApi };
@@ -1,4 +1,4 @@
1
1
  import type { GetISOLocales } from '../../../shared/contracts/iso-locales';
2
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("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Locale", CreateLocale.Response, "adminApi">>, 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("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Locale", DeleteLocale.Response, "adminApi">>, useGetLocalesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Locale", GetLocales.Response, "adminApi">>, useGetDefaultLocalesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Locale", GetISOLocales.Response, "adminApi">>, 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("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Locale", UpdateLocale.Response, "adminApi">>;
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("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", CreateLocale.Response, "adminApi">>, 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("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", DeleteLocale.Response, "adminApi">>, useGetLocalesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", GetLocales.Response, "adminApi">>, useGetDefaultLocalesQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", GetISOLocales.Response, "adminApi">>, 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("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", UpdateLocale.Response, "adminApi">>;
4
4
  export { useCreateLocaleMutation, useDeleteLocaleMutation, useGetLocalesQuery, useGetDefaultLocalesQuery, useUpdateLocaleMutation, };
@@ -3,5 +3,5 @@ declare const useGetManyDraftRelationCountQuery: import("@reduxjs/toolkit/dist/q
3
3
  locale?: string | string[] | null | undefined;
4
4
  } & {
5
5
  model: string;
6
- }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "Locale", number, "adminApi">>;
6
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", number, "adminApi">>;
7
7
  export { useGetManyDraftRelationCountQuery };
@@ -0,0 +1,5 @@
1
+ import type { UpdateSettings } from '../../../shared/contracts/settings';
2
+ declare const useGetSettingsQuery: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseQuery<import("@reduxjs/toolkit/query").QueryDefinition<void, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", import("../../../shared/contracts/settings").Settings, "adminApi">>, useUpdatei18nSettingsMutation: import("@reduxjs/toolkit/dist/query/react/buildHooks").UseMutation<import("@reduxjs/toolkit/query").MutationDefinition<{
3
+ aiLocalizations?: boolean | undefined;
4
+ }, import("@reduxjs/toolkit/query").BaseQueryFn<string | import("@strapi/admin/strapi-admin").QueryArguments, unknown, import("@strapi/admin/strapi-admin").BaseQueryError, {}, {}>, "GuidedTourMeta" | "HomepageKeyStatistics" | "AIUsage" | "AIFeatureConfig" | "Locale" | "KeyStatistics" | "Settings" | "AILocalizationJobs", UpdateSettings.Response, "adminApi">>;
5
+ export { useGetSettingsQuery, useUpdatei18nSettingsMutation };