@lokalise/harmony 1.22.0 → 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 +595 -596
- package/dist/types/src/features/publicApi/contributors.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useAddLanguagesToProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListProjectLanguagesQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/languages.d.ts +13 -13
- 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/types/languageTypes.d.ts +13 -13
- 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
|
} | {
|
@@ -16,7 +16,7 @@ export declare function useAddLanguagesToProjectMutation<T>(wretchClient: Wretch
|
|
16
16
|
lang_id: number;
|
17
17
|
lang_iso: string;
|
18
18
|
lang_name: string;
|
19
|
-
project_language_id:
|
19
|
+
project_language_id: string;
|
20
20
|
project_language_uuid: string;
|
21
21
|
is_rtl: boolean;
|
22
22
|
plural_forms: (string | undefined)[];
|
@@ -18,7 +18,7 @@ export declare function useListProjectLanguagesQuery<T>(wretchClient: Wretch<T>,
|
|
18
18
|
lang_id: number;
|
19
19
|
lang_iso: string;
|
20
20
|
lang_name: string;
|
21
|
-
project_language_id:
|
21
|
+
project_language_id: string;
|
22
22
|
project_language_uuid: string;
|
23
23
|
is_rtl: boolean;
|
24
24
|
plural_forms: (string | undefined)[];
|
@@ -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;
|
@@ -9,13 +9,13 @@ export declare const listProjectLanguages: import('@lokalise/universal-ts-utils/
|
|
9
9
|
lang_name: import('zod').ZodString;
|
10
10
|
is_rtl: import('zod').ZodBoolean;
|
11
11
|
plural_forms: import('zod').ZodArray<import('zod').ZodOptional<import('zod').ZodString>, "many">;
|
12
|
-
project_language_id: import('zod').
|
12
|
+
project_language_id: import('zod').ZodString;
|
13
13
|
project_language_uuid: import('zod').ZodString;
|
14
14
|
}, "strip", import('zod').ZodTypeAny, {
|
15
15
|
lang_id: number;
|
16
16
|
lang_iso: string;
|
17
17
|
lang_name: string;
|
18
|
-
project_language_id:
|
18
|
+
project_language_id: string;
|
19
19
|
project_language_uuid: string;
|
20
20
|
is_rtl: boolean;
|
21
21
|
plural_forms: (string | undefined)[];
|
@@ -23,7 +23,7 @@ export declare const listProjectLanguages: import('@lokalise/universal-ts-utils/
|
|
23
23
|
lang_id: number;
|
24
24
|
lang_iso: string;
|
25
25
|
lang_name: string;
|
26
|
-
project_language_id:
|
26
|
+
project_language_id: string;
|
27
27
|
project_language_uuid: string;
|
28
28
|
is_rtl: boolean;
|
29
29
|
plural_forms: (string | undefined)[];
|
@@ -33,7 +33,7 @@ export declare const listProjectLanguages: import('@lokalise/universal-ts-utils/
|
|
33
33
|
lang_id: number;
|
34
34
|
lang_iso: string;
|
35
35
|
lang_name: string;
|
36
|
-
project_language_id:
|
36
|
+
project_language_id: string;
|
37
37
|
project_language_uuid: string;
|
38
38
|
is_rtl: boolean;
|
39
39
|
plural_forms: (string | undefined)[];
|
@@ -45,7 +45,7 @@ export declare const listProjectLanguages: import('@lokalise/universal-ts-utils/
|
|
45
45
|
lang_id: number;
|
46
46
|
lang_iso: string;
|
47
47
|
lang_name: string;
|
48
|
-
project_language_id:
|
48
|
+
project_language_id: string;
|
49
49
|
project_language_uuid: string;
|
50
50
|
is_rtl: boolean;
|
51
51
|
plural_forms: (string | undefined)[];
|
@@ -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<{
|
@@ -155,13 +155,13 @@ export declare const addLanguagesToProject: import('@lokalise/universal-ts-utils
|
|
155
155
|
lang_name: import('zod').ZodString;
|
156
156
|
is_rtl: import('zod').ZodBoolean;
|
157
157
|
plural_forms: import('zod').ZodArray<import('zod').ZodOptional<import('zod').ZodString>, "many">;
|
158
|
-
project_language_id: import('zod').
|
158
|
+
project_language_id: import('zod').ZodString;
|
159
159
|
project_language_uuid: import('zod').ZodString;
|
160
160
|
}, "strip", import('zod').ZodTypeAny, {
|
161
161
|
lang_id: number;
|
162
162
|
lang_iso: string;
|
163
163
|
lang_name: string;
|
164
|
-
project_language_id:
|
164
|
+
project_language_id: string;
|
165
165
|
project_language_uuid: string;
|
166
166
|
is_rtl: boolean;
|
167
167
|
plural_forms: (string | undefined)[];
|
@@ -169,7 +169,7 @@ export declare const addLanguagesToProject: import('@lokalise/universal-ts-utils
|
|
169
169
|
lang_id: number;
|
170
170
|
lang_iso: string;
|
171
171
|
lang_name: string;
|
172
|
-
project_language_id:
|
172
|
+
project_language_id: string;
|
173
173
|
project_language_uuid: string;
|
174
174
|
is_rtl: boolean;
|
175
175
|
plural_forms: (string | undefined)[];
|
@@ -192,7 +192,7 @@ export declare const addLanguagesToProject: import('@lokalise/universal-ts-utils
|
|
192
192
|
lang_id: number;
|
193
193
|
lang_iso: string;
|
194
194
|
lang_name: string;
|
195
|
-
project_language_id:
|
195
|
+
project_language_id: string;
|
196
196
|
project_language_uuid: string;
|
197
197
|
is_rtl: boolean;
|
198
198
|
plural_forms: (string | undefined)[];
|
@@ -209,7 +209,7 @@ export declare const addLanguagesToProject: import('@lokalise/universal-ts-utils
|
|
209
209
|
lang_id: number;
|
210
210
|
lang_iso: string;
|
211
211
|
lang_name: string;
|
212
|
-
project_language_id:
|
212
|
+
project_language_id: string;
|
213
213
|
project_language_uuid: string;
|
214
214
|
is_rtl: boolean;
|
215
215
|
plural_forms: (string | undefined)[];
|
@@ -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<{
|
@@ -46,13 +46,13 @@ export declare const LANGUAGE_SCHEMA: z.ZodObject<{
|
|
46
46
|
lang_name: z.ZodString;
|
47
47
|
is_rtl: z.ZodBoolean;
|
48
48
|
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString>, "many">;
|
49
|
-
project_language_id: z.
|
49
|
+
project_language_id: z.ZodString;
|
50
50
|
project_language_uuid: z.ZodString;
|
51
51
|
}, "strip", z.ZodTypeAny, {
|
52
52
|
lang_id: number;
|
53
53
|
lang_iso: string;
|
54
54
|
lang_name: string;
|
55
|
-
project_language_id:
|
55
|
+
project_language_id: string;
|
56
56
|
project_language_uuid: string;
|
57
57
|
is_rtl: boolean;
|
58
58
|
plural_forms: (string | undefined)[];
|
@@ -60,7 +60,7 @@ export declare const LANGUAGE_SCHEMA: z.ZodObject<{
|
|
60
60
|
lang_id: number;
|
61
61
|
lang_iso: string;
|
62
62
|
lang_name: string;
|
63
|
-
project_language_id:
|
63
|
+
project_language_id: string;
|
64
64
|
project_language_uuid: string;
|
65
65
|
is_rtl: boolean;
|
66
66
|
plural_forms: (string | undefined)[];
|
@@ -75,13 +75,13 @@ export declare const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
75
75
|
lang_name: z.ZodString;
|
76
76
|
is_rtl: z.ZodBoolean;
|
77
77
|
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString>, "many">;
|
78
|
-
project_language_id: z.
|
78
|
+
project_language_id: z.ZodString;
|
79
79
|
project_language_uuid: z.ZodString;
|
80
80
|
}, "strip", z.ZodTypeAny, {
|
81
81
|
lang_id: number;
|
82
82
|
lang_iso: string;
|
83
83
|
lang_name: string;
|
84
|
-
project_language_id:
|
84
|
+
project_language_id: string;
|
85
85
|
project_language_uuid: string;
|
86
86
|
is_rtl: boolean;
|
87
87
|
plural_forms: (string | undefined)[];
|
@@ -89,7 +89,7 @@ export declare const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
89
89
|
lang_id: number;
|
90
90
|
lang_iso: string;
|
91
91
|
lang_name: string;
|
92
|
-
project_language_id:
|
92
|
+
project_language_id: string;
|
93
93
|
project_language_uuid: string;
|
94
94
|
is_rtl: boolean;
|
95
95
|
plural_forms: (string | undefined)[];
|
@@ -99,7 +99,7 @@ export declare const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
99
99
|
lang_id: number;
|
100
100
|
lang_iso: string;
|
101
101
|
lang_name: string;
|
102
|
-
project_language_id:
|
102
|
+
project_language_id: string;
|
103
103
|
project_language_uuid: string;
|
104
104
|
is_rtl: boolean;
|
105
105
|
plural_forms: (string | undefined)[];
|
@@ -111,7 +111,7 @@ export declare const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
111
111
|
lang_id: number;
|
112
112
|
lang_iso: string;
|
113
113
|
lang_name: string;
|
114
|
-
project_language_id:
|
114
|
+
project_language_id: string;
|
115
115
|
project_language_uuid: string;
|
116
116
|
is_rtl: boolean;
|
117
117
|
plural_forms: (string | undefined)[];
|
@@ -170,13 +170,13 @@ export declare const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA: z.ZodObject<{
|
|
170
170
|
lang_name: z.ZodString;
|
171
171
|
is_rtl: z.ZodBoolean;
|
172
172
|
plural_forms: z.ZodArray<z.ZodOptional<z.ZodString>, "many">;
|
173
|
-
project_language_id: z.
|
173
|
+
project_language_id: z.ZodString;
|
174
174
|
project_language_uuid: z.ZodString;
|
175
175
|
}, "strip", z.ZodTypeAny, {
|
176
176
|
lang_id: number;
|
177
177
|
lang_iso: string;
|
178
178
|
lang_name: string;
|
179
|
-
project_language_id:
|
179
|
+
project_language_id: string;
|
180
180
|
project_language_uuid: string;
|
181
181
|
is_rtl: boolean;
|
182
182
|
plural_forms: (string | undefined)[];
|
@@ -184,7 +184,7 @@ export declare const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA: z.ZodObject<{
|
|
184
184
|
lang_id: number;
|
185
185
|
lang_iso: string;
|
186
186
|
lang_name: string;
|
187
|
-
project_language_id:
|
187
|
+
project_language_id: string;
|
188
188
|
project_language_uuid: string;
|
189
189
|
is_rtl: boolean;
|
190
190
|
plural_forms: (string | undefined)[];
|
@@ -207,7 +207,7 @@ export declare const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA: z.ZodObject<{
|
|
207
207
|
lang_id: number;
|
208
208
|
lang_iso: string;
|
209
209
|
lang_name: string;
|
210
|
-
project_language_id:
|
210
|
+
project_language_id: string;
|
211
211
|
project_language_uuid: string;
|
212
212
|
is_rtl: boolean;
|
213
213
|
plural_forms: (string | undefined)[];
|
@@ -224,7 +224,7 @@ export declare const ADD_LANGUAGES_TO_PROJECT_RESPONSE_SCHEMA: z.ZodObject<{
|
|
224
224
|
lang_id: number;
|
225
225
|
lang_iso: string;
|
226
226
|
lang_name: string;
|
227
|
-
project_language_id:
|
227
|
+
project_language_id: string;
|
228
228
|
project_language_uuid: string;
|
229
229
|
is_rtl: boolean;
|
230
230
|
plural_forms: (string | undefined)[];
|
@@ -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",
|