@lokalise/harmony 1.17.3 → 1.18.0
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 +557 -526
- package/dist/types/src/features/publicApi/hooks/useBulkUpdateProjectLanguagesMutation.d.ts +21 -0
- package/dist/types/src/features/publicApi/languages.d.ts +96 -0
- package/dist/types/src/features/publicApi/node.d.ts +3 -2
- package/dist/types/src/features/publicApi/types/languageTypes.d.ts +39 -0
- package/package.json +1 -1
@@ -0,0 +1,21 @@
|
|
1
|
+
import { HeaderBuilder } from '../../auth/core/headers/headerBuilder';
|
2
|
+
import { BulkUpdateProjectLanguagesPathParams, BulkUpdateProjectLanguagesRequestBody, BulkUpdateProjectLanguagesResponse } from '../types/languageTypes';
|
3
|
+
import { BaseApiEndpointHeader } from '../types/sharedTypes';
|
4
|
+
import { ApiMutationOverrides } from '../../../utils/types/apiMutationOverrides';
|
5
|
+
import { Wretch } from 'wretch';
|
6
|
+
/**
|
7
|
+
* A react-router wrapper about the bulkUpdateProjectLanguages public API endpoint
|
8
|
+
*
|
9
|
+
* @param wretchClient - Wretch instance configured to a public API instance.
|
10
|
+
* @param params - URL parameters
|
11
|
+
* @param headers - A header builder instance to resolve the headers for the request.
|
12
|
+
* @param overrides - Additional options to pass to the query.
|
13
|
+
*/
|
14
|
+
export declare function useBulkUpdateProjectLanguagesMutation<T>(wretchClient: Wretch<T>, params: BulkUpdateProjectLanguagesPathParams, headers: HeaderBuilder<BaseApiEndpointHeader>, overrides?: ApiMutationOverrides<BulkUpdateProjectLanguagesResponse, BulkUpdateProjectLanguagesRequestBody>): import('@tanstack/react-query').UseMutationResult<{
|
15
|
+
success: boolean;
|
16
|
+
}, undefined, {
|
17
|
+
langs: {
|
18
|
+
lang_iso: string;
|
19
|
+
base_lang: boolean;
|
20
|
+
}[];
|
21
|
+
}, undefined>;
|
@@ -109,3 +109,99 @@ export declare const listProjectLanguages: import('@lokalise/universal-ts-utils/
|
|
109
109
|
}, {
|
110
110
|
'X-LOKALISE-PLUGIN': string;
|
111
111
|
}>]>>, false, false>;
|
112
|
+
export declare const bulkUpdateProjectLanguages: import('@lokalise/universal-ts-utils/node').PayloadRouteDefinition<{
|
113
|
+
projectId: string;
|
114
|
+
}, import('zod').ZodObject<{
|
115
|
+
langs: import('zod').ZodArray<import('zod').ZodObject<{
|
116
|
+
lang_iso: import('zod').ZodString;
|
117
|
+
base_lang: import('zod').ZodBoolean;
|
118
|
+
}, "strip", import('zod').ZodTypeAny, {
|
119
|
+
lang_iso: string;
|
120
|
+
base_lang: boolean;
|
121
|
+
}, {
|
122
|
+
lang_iso: string;
|
123
|
+
base_lang: boolean;
|
124
|
+
}>, "many">;
|
125
|
+
}, "strip", import('zod').ZodTypeAny, {
|
126
|
+
langs: {
|
127
|
+
lang_iso: string;
|
128
|
+
base_lang: boolean;
|
129
|
+
}[];
|
130
|
+
}, {
|
131
|
+
langs: {
|
132
|
+
lang_iso: string;
|
133
|
+
base_lang: boolean;
|
134
|
+
}[];
|
135
|
+
}>, import('zod').ZodObject<{
|
136
|
+
success: import('zod').ZodBoolean;
|
137
|
+
}, "strip", import('zod').ZodTypeAny, {
|
138
|
+
success: boolean;
|
139
|
+
}, {
|
140
|
+
success: boolean;
|
141
|
+
}>, import('zod').ZodObject<{
|
142
|
+
projectId: import('zod').ZodString;
|
143
|
+
}, "strip", import('zod').ZodTypeAny, {
|
144
|
+
projectId: string;
|
145
|
+
}, {
|
146
|
+
projectId: string;
|
147
|
+
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
148
|
+
Authorization: import('zod').ZodString;
|
149
|
+
}, "strip", import('zod').ZodTypeAny, {
|
150
|
+
Authorization: string;
|
151
|
+
}, {
|
152
|
+
Authorization: string;
|
153
|
+
}>, import('zod').ZodObject<{
|
154
|
+
authorization: import('zod').ZodString;
|
155
|
+
}, "strip", import('zod').ZodTypeAny, {
|
156
|
+
authorization: string;
|
157
|
+
}, {
|
158
|
+
authorization: string;
|
159
|
+
}>, import('zod').ZodObject<{
|
160
|
+
AUTHORIZATION: import('zod').ZodString;
|
161
|
+
}, "strip", import('zod').ZodTypeAny, {
|
162
|
+
AUTHORIZATION: string;
|
163
|
+
}, {
|
164
|
+
AUTHORIZATION: string;
|
165
|
+
}>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
166
|
+
'X-API-Token': import('zod').ZodString;
|
167
|
+
}, "strip", import('zod').ZodTypeAny, {
|
168
|
+
'X-API-Token': string;
|
169
|
+
}, {
|
170
|
+
'X-API-Token': string;
|
171
|
+
}>, import('zod').ZodObject<{
|
172
|
+
'X-Api-Token': import('zod').ZodString;
|
173
|
+
}, "strip", import('zod').ZodTypeAny, {
|
174
|
+
'X-Api-Token': string;
|
175
|
+
}, {
|
176
|
+
'X-Api-Token': string;
|
177
|
+
}>, import('zod').ZodObject<{
|
178
|
+
'x-api-token': import('zod').ZodString;
|
179
|
+
}, "strip", import('zod').ZodTypeAny, {
|
180
|
+
'x-api-token': string;
|
181
|
+
}, {
|
182
|
+
'x-api-token': string;
|
183
|
+
}>, import('zod').ZodObject<{
|
184
|
+
'X-API-TOKEN': import('zod').ZodString;
|
185
|
+
}, "strip", import('zod').ZodTypeAny, {
|
186
|
+
'X-API-TOKEN': string;
|
187
|
+
}, {
|
188
|
+
'X-API-TOKEN': string;
|
189
|
+
}>]>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
190
|
+
'X-Lokalise-Plugin': import('zod').ZodString;
|
191
|
+
}, "strip", import('zod').ZodTypeAny, {
|
192
|
+
'X-Lokalise-Plugin': string;
|
193
|
+
}, {
|
194
|
+
'X-Lokalise-Plugin': string;
|
195
|
+
}>, import('zod').ZodObject<{
|
196
|
+
'x-lokalise-plugin': import('zod').ZodString;
|
197
|
+
}, "strip", import('zod').ZodTypeAny, {
|
198
|
+
'x-lokalise-plugin': string;
|
199
|
+
}, {
|
200
|
+
'x-lokalise-plugin': string;
|
201
|
+
}>, import('zod').ZodObject<{
|
202
|
+
'X-LOKALISE-PLUGIN': import('zod').ZodString;
|
203
|
+
}, "strip", import('zod').ZodTypeAny, {
|
204
|
+
'X-LOKALISE-PLUGIN': string;
|
205
|
+
}, {
|
206
|
+
'X-LOKALISE-PLUGIN': string;
|
207
|
+
}>]>>, false, false>;
|
@@ -3,8 +3,8 @@ export * from './languages';
|
|
3
3
|
export * from './projects';
|
4
4
|
export * from './teamUsers';
|
5
5
|
export * from './userToken';
|
6
|
-
export type { LanguageStatistics, LanguageIso, Language, ListProjectLanguagesResponse, } from './types/languageTypes';
|
7
|
-
export type { Project, ProjectQaIssues, ProjectType, ProjectSettings } from './types/projectTypes';
|
6
|
+
export type { LanguageStatistics, LanguageIso, Language, ListProjectLanguagesResponse, BulkUpdateProjectLanguagesResponse, BulkUpdateProjectLanguagesRequestBody, } from './types/languageTypes';
|
7
|
+
export type { Project, ProjectQaIssues, ProjectType, ProjectSettings, UpdateProjectRequestBody, } from './types/projectTypes';
|
8
8
|
export type { TeamRole } from './types/teamRoleTypes';
|
9
9
|
export type { Contributor, ContributorLanguage } from './types/contributorTypes';
|
10
10
|
export type { TeamUser } from './types/teamUserTypes';
|
@@ -17,3 +17,4 @@ export * from './hooks/useListProjectsQuery';
|
|
17
17
|
export * from './hooks/useRetrieveContributorQuery';
|
18
18
|
export * from './hooks/useRetrieveProjectQuery';
|
19
19
|
export * from './hooks/useUpdateProjectMutation';
|
20
|
+
export * from './hooks/useBulkUpdateProjectLanguagesMutation';
|
@@ -98,3 +98,42 @@ export declare const LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
|
|
98
98
|
project_uuid: string;
|
99
99
|
}>;
|
100
100
|
export type ListProjectLanguagesResponse = z.infer<typeof LIST_PROJECT_LANGUAGES_RESPONSE_SCHEMA>;
|
101
|
+
export declare const BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA: z.ZodObject<{
|
102
|
+
projectId: z.ZodString;
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
104
|
+
projectId: string;
|
105
|
+
}, {
|
106
|
+
projectId: string;
|
107
|
+
}>;
|
108
|
+
export type BulkUpdateProjectLanguagesPathParams = z.infer<typeof BULK_UPDATE_PROJECT_LANGUAGES_PATH_PARAMS_SCHEMA>;
|
109
|
+
export declare const BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA: z.ZodObject<{
|
110
|
+
langs: z.ZodArray<z.ZodObject<{
|
111
|
+
lang_iso: z.ZodString;
|
112
|
+
base_lang: z.ZodBoolean;
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
114
|
+
lang_iso: string;
|
115
|
+
base_lang: boolean;
|
116
|
+
}, {
|
117
|
+
lang_iso: string;
|
118
|
+
base_lang: boolean;
|
119
|
+
}>, "many">;
|
120
|
+
}, "strip", z.ZodTypeAny, {
|
121
|
+
langs: {
|
122
|
+
lang_iso: string;
|
123
|
+
base_lang: boolean;
|
124
|
+
}[];
|
125
|
+
}, {
|
126
|
+
langs: {
|
127
|
+
lang_iso: string;
|
128
|
+
base_lang: boolean;
|
129
|
+
}[];
|
130
|
+
}>;
|
131
|
+
export type BulkUpdateProjectLanguagesRequestBody = z.infer<typeof BULK_UPDATE_PROJECT_LANGUAGES_REQUEST_BODY_SCHEMA>;
|
132
|
+
export declare const BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA: z.ZodObject<{
|
133
|
+
success: z.ZodBoolean;
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
135
|
+
success: boolean;
|
136
|
+
}, {
|
137
|
+
success: boolean;
|
138
|
+
}>;
|
139
|
+
export type BulkUpdateProjectLanguagesResponse = z.infer<typeof BULK_UPDATE_PROJECT_LANGUAGES_RESPONSE_SCHEMA>;
|