@strapi/i18n 0.0.0-next.88599e70ce0e4e804e2bad578aba4718c5a5304d → 0.0.0-next.88e2effa81cb9544dd09eb0536e39c3fed6ef4c9

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 (91) hide show
  1. package/dist/admin/components/CMHeaderActions.js +18 -2
  2. package/dist/admin/components/CMHeaderActions.js.map +1 -1
  3. package/dist/admin/components/CMHeaderActions.mjs +18 -2
  4. package/dist/admin/components/CMHeaderActions.mjs.map +1 -1
  5. package/dist/admin/hooks/useAILocalizationJobsPolling.js +110 -0
  6. package/dist/admin/hooks/useAILocalizationJobsPolling.js.map +1 -0
  7. package/dist/admin/hooks/useAILocalizationJobsPolling.mjs +89 -0
  8. package/dist/admin/hooks/useAILocalizationJobsPolling.mjs.map +1 -0
  9. package/dist/admin/services/aiLocalizationJobs.js +26 -0
  10. package/dist/admin/services/aiLocalizationJobs.js.map +1 -0
  11. package/dist/admin/services/aiLocalizationJobs.mjs +24 -0
  12. package/dist/admin/services/aiLocalizationJobs.mjs.map +1 -0
  13. package/dist/admin/services/api.js +2 -1
  14. package/dist/admin/services/api.js.map +1 -1
  15. package/dist/admin/services/api.mjs +2 -1
  16. package/dist/admin/services/api.mjs.map +1 -1
  17. package/dist/admin/src/components/CMHeaderActions.d.ts +1 -1
  18. package/dist/admin/src/hooks/useAILocalizationJobsPolling.d.ts +9 -0
  19. package/dist/admin/src/services/aiLocalizationJobs.d.ts +6 -0
  20. package/dist/admin/src/services/api.d.ts +1 -1
  21. package/dist/admin/src/services/locales.d.ts +1 -1
  22. package/dist/admin/src/services/relations.d.ts +1 -1
  23. package/dist/admin/src/services/settings.d.ts +2 -2
  24. package/dist/admin/translations/en.json.js +2 -0
  25. package/dist/admin/translations/en.json.js.map +1 -1
  26. package/dist/admin/translations/en.json.mjs +2 -0
  27. package/dist/admin/translations/en.json.mjs.map +1 -1
  28. package/dist/server/bootstrap.js +2 -0
  29. package/dist/server/bootstrap.js.map +1 -1
  30. package/dist/server/bootstrap.mjs +2 -0
  31. package/dist/server/bootstrap.mjs.map +1 -1
  32. package/dist/server/controllers/ai-localization-jobs.js +47 -0
  33. package/dist/server/controllers/ai-localization-jobs.js.map +1 -0
  34. package/dist/server/controllers/ai-localization-jobs.mjs +45 -0
  35. package/dist/server/controllers/ai-localization-jobs.mjs.map +1 -0
  36. package/dist/server/controllers/index.js +3 -1
  37. package/dist/server/controllers/index.js.map +1 -1
  38. package/dist/server/controllers/index.mjs +3 -1
  39. package/dist/server/controllers/index.mjs.map +1 -1
  40. package/dist/server/models/ai-localization-job.js +60 -0
  41. package/dist/server/models/ai-localization-job.js.map +1 -0
  42. package/dist/server/models/ai-localization-job.mjs +57 -0
  43. package/dist/server/models/ai-localization-job.mjs.map +1 -0
  44. package/dist/server/register.js +3 -1
  45. package/dist/server/register.js.map +1 -1
  46. package/dist/server/register.mjs +3 -1
  47. package/dist/server/register.mjs.map +1 -1
  48. package/dist/server/routes/admin.js +20 -0
  49. package/dist/server/routes/admin.js.map +1 -1
  50. package/dist/server/routes/admin.mjs +20 -0
  51. package/dist/server/routes/admin.mjs.map +1 -1
  52. package/dist/server/services/ai-localization-jobs.js +64 -0
  53. package/dist/server/services/ai-localization-jobs.js.map +1 -0
  54. package/dist/server/services/ai-localization-jobs.mjs +62 -0
  55. package/dist/server/services/ai-localization-jobs.mjs.map +1 -0
  56. package/dist/server/services/ai-localizations.js +209 -0
  57. package/dist/server/services/ai-localizations.js.map +1 -1
  58. package/dist/server/services/ai-localizations.mjs +209 -0
  59. package/dist/server/services/ai-localizations.mjs.map +1 -1
  60. package/dist/server/services/index.js +3 -1
  61. package/dist/server/services/index.js.map +1 -1
  62. package/dist/server/services/index.mjs +3 -1
  63. package/dist/server/services/index.mjs.map +1 -1
  64. package/dist/server/src/bootstrap.d.ts.map +1 -1
  65. package/dist/server/src/controllers/ai-localization-jobs.d.ts +17 -0
  66. package/dist/server/src/controllers/ai-localization-jobs.d.ts.map +1 -0
  67. package/dist/server/src/controllers/index.d.ts +6 -0
  68. package/dist/server/src/controllers/index.d.ts.map +1 -1
  69. package/dist/server/src/index.d.ts +26 -2
  70. package/dist/server/src/index.d.ts.map +1 -1
  71. package/dist/server/src/models/ai-localization-job.d.ts +5 -0
  72. package/dist/server/src/models/ai-localization-job.d.ts.map +1 -0
  73. package/dist/server/src/models/index.d.ts +5 -0
  74. package/dist/server/src/models/index.d.ts.map +1 -0
  75. package/dist/server/src/register.d.ts +1 -1
  76. package/dist/server/src/register.d.ts.map +1 -1
  77. package/dist/server/src/routes/admin.d.ts.map +1 -1
  78. package/dist/server/src/services/ai-localization-jobs.d.ts +26 -0
  79. package/dist/server/src/services/ai-localization-jobs.d.ts.map +1 -0
  80. package/dist/server/src/services/ai-localizations.d.ts +11 -1
  81. package/dist/server/src/services/ai-localizations.d.ts.map +1 -1
  82. package/dist/server/src/services/index.d.ts +19 -1
  83. package/dist/server/src/services/index.d.ts.map +1 -1
  84. package/dist/server/src/utils/index.d.ts +4 -0
  85. package/dist/server/src/utils/index.d.ts.map +1 -1
  86. package/dist/server/utils/index.js.map +1 -1
  87. package/dist/server/utils/index.mjs.map +1 -1
  88. package/dist/shared/contracts/ai-localization-jobs.d.ts +27 -0
  89. package/dist/shared/contracts/ai-localization-jobs.d.ts.map +1 -0
  90. package/dist/shared/contracts/shared.d.ts.map +1 -0
  91. package/package.json +7 -6
@@ -0,0 +1,27 @@
1
+ import { errors } from '@strapi/utils';
2
+ import { Entity } from './shared';
3
+ export interface AILocalizationJobs extends Entity {
4
+ contentType: string;
5
+ relatedDocumentId: string;
6
+ sourceLocale: string;
7
+ targetLocales: string[];
8
+ status: 'processing' | 'completed' | 'failed';
9
+ }
10
+ /**
11
+ * GET /i18n/ai-localization-jobs/document/:documentId - Get AI localization jobs by document ID
12
+ */
13
+ export declare namespace GetAILocalizationJobsByDocument {
14
+ interface Request {
15
+ query: {};
16
+ body: {};
17
+ }
18
+ interface Params {
19
+ documentId: string;
20
+ }
21
+ type Response = {
22
+ data: AILocalizationJobs;
23
+ } | {
24
+ data: null;
25
+ error: errors.ApplicationError;
26
+ };
27
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ai-localization-jobs.d.ts","sourceRoot":"","sources":["../../../shared/contracts/ai-localization-jobs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,MAAM,WAAW,kBAAmB,SAAQ,MAAM;IAChD,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,MAAM,EAAE,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,+BAA+B,CAAC;IACvD,UAAiB,OAAO;QACtB,KAAK,EAAE,EAAE,CAAC;QACV,IAAI,EAAE,EAAE,CAAC;KACV;IAED,UAAiB,MAAM;QACrB,UAAU,EAAE,MAAM,CAAC;KACpB;IAED,KAAY,QAAQ,GAChB;QACE,IAAI,EAAE,kBAAkB,CAAC;KAC1B,GACD;QACE,IAAI,EAAE,IAAI,CAAC;QACX,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC;KAChC,CAAC;CACP"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../shared/contracts/shared.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,IAAI,CAAC,EAAE,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/i18n",
3
- "version": "0.0.0-next.88599e70ce0e4e804e2bad578aba4718c5a5304d",
3
+ "version": "0.0.0-next.88e2effa81cb9544dd09eb0536e39c3fed6ef4c9",
4
4
  "description": "Create read and update content in different languages, both from the Admin Panel and from the API",
5
5
  "repository": {
6
6
  "type": "git",
@@ -59,7 +59,7 @@
59
59
  "@reduxjs/toolkit": "1.9.7",
60
60
  "@strapi/design-system": "2.0.0-rc.30",
61
61
  "@strapi/icons": "2.0.0-rc.30",
62
- "@strapi/utils": "0.0.0-next.88599e70ce0e4e804e2bad578aba4718c5a5304d",
62
+ "@strapi/utils": "0.0.0-next.88e2effa81cb9544dd09eb0536e39c3fed6ef4c9",
63
63
  "lodash": "4.17.21",
64
64
  "qs": "6.11.1",
65
65
  "react-intl": "6.6.2",
@@ -68,10 +68,11 @@
68
68
  "zod": "3.25.67"
69
69
  },
70
70
  "devDependencies": {
71
- "@strapi/admin": "0.0.0-next.88599e70ce0e4e804e2bad578aba4718c5a5304d",
72
- "@strapi/admin-test-utils": "0.0.0-next.88599e70ce0e4e804e2bad578aba4718c5a5304d",
73
- "@strapi/content-manager": "0.0.0-next.88599e70ce0e4e804e2bad578aba4718c5a5304d",
74
- "@strapi/types": "0.0.0-next.88599e70ce0e4e804e2bad578aba4718c5a5304d",
71
+ "@strapi/admin": "0.0.0-next.88e2effa81cb9544dd09eb0536e39c3fed6ef4c9",
72
+ "@strapi/admin-test-utils": "0.0.0-next.88e2effa81cb9544dd09eb0536e39c3fed6ef4c9",
73
+ "@strapi/content-manager": "0.0.0-next.88e2effa81cb9544dd09eb0536e39c3fed6ef4c9",
74
+ "@strapi/database": "0.0.0-next.88e2effa81cb9544dd09eb0536e39c3fed6ef4c9",
75
+ "@strapi/types": "0.0.0-next.88e2effa81cb9544dd09eb0536e39c3fed6ef4c9",
75
76
  "@testing-library/react": "15.0.7",
76
77
  "@testing-library/user-event": "14.5.2",
77
78
  "koa": "2.16.1",