@lokalise/harmony 1.22.1 → 1.22.2
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.
- package/dist/harmony.cjs +1 -1
- package/dist/harmony.mjs +594 -595
- package/dist/types/src/features/publicApi/contributors.d.ts +1 -1
- package/dist/types/src/features/publicApi/languages.d.ts +3 -3
- package/dist/types/src/features/publicApi/projects.d.ts +4 -4
- package/dist/types/src/features/publicApi/teamUsers.d.ts +1 -1
- package/dist/types/src/features/publicApi/userToken.d.ts +1 -1
- package/package.json +7 -8
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Public API router definition for retrieving a project contributor
|
3
3
|
*/
|
4
|
-
export declare const retrieveContributor: import('@lokalise/
|
4
|
+
export declare const retrieveContributor: import('@lokalise/api-contracts').GetRouteDefinition<{
|
5
5
|
project: {
|
6
6
|
uuid: string;
|
7
7
|
} | {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export declare const listProjectLanguages: import('@lokalise/
|
1
|
+
export declare const listProjectLanguages: import('@lokalise/api-contracts').GetRouteDefinition<{
|
2
2
|
projectId: string;
|
3
3
|
}, import('zod').ZodObject<{
|
4
4
|
project_id: import('zod').ZodString;
|
@@ -113,7 +113,7 @@ export declare const listProjectLanguages: import('@lokalise/universal-ts-utils/
|
|
113
113
|
}, {
|
114
114
|
'X-LOKALISE-PLUGIN': string;
|
115
115
|
}>]>>, false, false>;
|
116
|
-
export declare const addLanguagesToProject: import('@lokalise/
|
116
|
+
export declare const addLanguagesToProject: import('@lokalise/api-contracts').PayloadRouteDefinition<{
|
117
117
|
projectId: string;
|
118
118
|
}, import('zod').ZodObject<{
|
119
119
|
languages: import('zod').ZodArray<import('zod').ZodObject<{
|
@@ -282,7 +282,7 @@ export declare const addLanguagesToProject: import('@lokalise/universal-ts-utils
|
|
282
282
|
}, {
|
283
283
|
'X-LOKALISE-PLUGIN': string;
|
284
284
|
}>]>>, false, false>;
|
285
|
-
export declare const bulkUpdateProjectLanguages: import('@lokalise/
|
285
|
+
export declare const bulkUpdateProjectLanguages: import('@lokalise/api-contracts').PayloadRouteDefinition<{
|
286
286
|
projectId: string;
|
287
287
|
}, import('zod').ZodObject<{
|
288
288
|
langs: import('zod').ZodArray<import('zod').ZodObject<{
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Public API router definition for creating a new project
|
3
3
|
*/
|
4
|
-
export declare const createProject: import('@lokalise/
|
4
|
+
export declare const createProject: import('@lokalise/api-contracts').PayloadRouteDefinition<never, import('zod').ZodObject<{
|
5
5
|
name: import('zod').ZodString;
|
6
6
|
team_id: import('zod').ZodString;
|
7
7
|
base_lang_iso: import('zod').ZodString;
|
@@ -412,7 +412,7 @@ export declare const createProject: import('@lokalise/universal-ts-utils/node').
|
|
412
412
|
/**
|
413
413
|
* Public API router definition for listing all projects
|
414
414
|
*/
|
415
|
-
export declare const listProjects: import('@lokalise/
|
415
|
+
export declare const listProjects: import('@lokalise/api-contracts').GetRouteDefinition<never, import('zod').ZodObject<{
|
416
416
|
projects: import('zod').ZodArray<import('zod').ZodObject<{
|
417
417
|
project_id: import('zod').ZodString;
|
418
418
|
uuid: import('zod').ZodString;
|
@@ -939,7 +939,7 @@ export declare const listProjects: import('@lokalise/universal-ts-utils/node').G
|
|
939
939
|
/**
|
940
940
|
* Public API router definition for retrieving a project
|
941
941
|
*/
|
942
|
-
export declare const retrieveProject: import('@lokalise/
|
942
|
+
export declare const retrieveProject: import('@lokalise/api-contracts').GetRouteDefinition<{
|
943
943
|
project_id: string;
|
944
944
|
}, import('zod').ZodObject<{
|
945
945
|
project_id: import('zod').ZodString;
|
@@ -1322,7 +1322,7 @@ export declare const retrieveProject: import('@lokalise/universal-ts-utils/node'
|
|
1322
1322
|
/**
|
1323
1323
|
* Public API router definition for updating a project
|
1324
1324
|
*/
|
1325
|
-
export declare const updateProject: import('@lokalise/
|
1325
|
+
export declare const updateProject: import('@lokalise/api-contracts').PayloadRouteDefinition<{
|
1326
1326
|
project_id: string;
|
1327
1327
|
}, import('zod').ZodObject<{
|
1328
1328
|
name: import('zod').ZodString;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/**
|
2
2
|
* Public API router definition for getting the details of a team user
|
3
3
|
*/
|
4
|
-
export declare const getTeamUser: import('@lokalise/
|
4
|
+
export declare const getTeamUser: import('@lokalise/api-contracts').GetRouteDefinition<{
|
5
5
|
userId: number;
|
6
6
|
teamId: number;
|
7
7
|
}, import('zod').ZodObject<{
|
@@ -3,7 +3,7 @@ import { z } from 'zod';
|
|
3
3
|
* A method of getting a JWT token for a user.
|
4
4
|
* You can call this with either a refresh token or from within the scope of a classic CSRF cookie session.
|
5
5
|
*/
|
6
|
-
export declare const getUserToken: import('@lokalise/
|
6
|
+
export declare const getUserToken: import('@lokalise/api-contracts').PayloadRouteDefinition<{
|
7
7
|
teamId: number;
|
8
8
|
}, z.ZodUndefined, z.ZodObject<{
|
9
9
|
accessToken: z.ZodString;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lokalise/harmony",
|
3
|
-
"version": "1.22.
|
3
|
+
"version": "1.22.2",
|
4
4
|
"author": {
|
5
5
|
"name": "Lokalise",
|
6
6
|
"url": "https://lokalise.com/"
|
@@ -18,9 +18,7 @@
|
|
18
18
|
"scripts": {
|
19
19
|
"build": "rimraf dist && vite build",
|
20
20
|
"bundle:size": "bundlesize",
|
21
|
-
"test": "vitest",
|
22
|
-
"test:coverage": "vitest --coverage",
|
23
|
-
"test:ci": "npm run lint && npm run test:coverage",
|
21
|
+
"test": "vitest --coverage",
|
24
22
|
"test:update-snapshots": "vitest -u",
|
25
23
|
"lint": "biome check . && tsc --project tsconfig.lint.json --noEmit",
|
26
24
|
"lint:fix": "biome check --write",
|
@@ -30,10 +28,10 @@
|
|
30
28
|
"storybook:build": "storybook build"
|
31
29
|
},
|
32
30
|
"peerDependencies": {
|
31
|
+
"@lokalise/api-contracts": ">=4.3.0",
|
33
32
|
"@lokalise/frontend-http-client": ">=3.2.1",
|
34
33
|
"@lokalise/louis": ">=26.0.0",
|
35
34
|
"@lokalise/token-dictionary": ">=2.42.1",
|
36
|
-
"@lokalise/universal-ts-utils": ">=3.4.0",
|
37
35
|
"@tanstack/react-query": ">=5.66.9",
|
38
36
|
"date-fns": ">=4.1",
|
39
37
|
"date-fns-tz": ">=3.2",
|
@@ -46,6 +44,7 @@
|
|
46
44
|
"@biomejs/biome": "^1.9.4",
|
47
45
|
"@chromatic-com/storybook": "^3.2.5",
|
48
46
|
"@faker-js/faker": "^9.6.0",
|
47
|
+
"@lokalise/api-contracts": "^4.3.0",
|
49
48
|
"@lokalise/biome-config": "^1.6.1",
|
50
49
|
"@semantic-release/changelog": "^6.0.3",
|
51
50
|
"@semantic-release/commit-analyzer": "^13.0.1",
|
@@ -69,7 +68,7 @@
|
|
69
68
|
"@types/react-dom": "18.3.0",
|
70
69
|
"@typescript-eslint/parser": "^8.26.1",
|
71
70
|
"@vitejs/plugin-react": "^4.3.4",
|
72
|
-
"@vitest/coverage-v8": "^3.
|
71
|
+
"@vitest/coverage-v8": "^3.1.1",
|
73
72
|
"bundlesize2": "^0.0.34",
|
74
73
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
75
74
|
"eslint-plugin-i18next": "^6.0.9",
|
@@ -82,10 +81,10 @@
|
|
82
81
|
"semantic-release": "^24.2.3",
|
83
82
|
"storybook": "^8.6.0-alpha.1",
|
84
83
|
"typescript": "^5.7.3",
|
85
|
-
"vite": "^6.2
|
84
|
+
"vite": "^6.3.2",
|
86
85
|
"vite-plugin-dts": "^4.5.3",
|
87
86
|
"vite-plugin-tsconfig-paths": "^1.4.1",
|
88
|
-
"vitest": "^3.
|
87
|
+
"vitest": "^3.1.1"
|
89
88
|
},
|
90
89
|
"main": "dist/harmony.cjs",
|
91
90
|
"module": "dist/harmony.mjs",
|