@lokalise/harmony 1.17.3 → 1.18.1
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/README.md +1 -1
- package/dist/harmony.cjs +1 -1
- package/dist/harmony.mjs +567 -537
- package/dist/types/src/features/auth/core/headers/createHeaderBuilderMiddleware.d.ts +3 -3
- package/dist/types/src/features/auth/core/headers/headerBuilder.d.ts +13 -13
- package/dist/types/src/features/auth/core/middleware/jwtAuthHeaderBuilderMiddleware.d.ts +1 -1
- package/dist/types/src/features/publicApi/contributors.d.ts +0 -6
- package/dist/types/src/features/publicApi/hooks/useBulkUpdateProjectLanguagesMutation.d.ts +21 -0
- package/dist/types/src/features/publicApi/languages.d.ts +87 -3
- package/dist/types/src/features/publicApi/node.d.ts +3 -2
- package/dist/types/src/features/publicApi/projects.d.ts +0 -24
- package/dist/types/src/features/publicApi/teamUsers.d.ts +0 -6
- package/dist/types/src/features/publicApi/types/contributorTypes.d.ts +0 -6
- package/dist/types/src/features/publicApi/types/languageTypes.d.ts +39 -0
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +0 -6
- package/dist/types/src/features/publicApi/types/sharedTypes.d.ts +0 -18
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +0 -6
- package/dist/types/src/features/publicApi/types/userTokenTypes.d.ts +0 -6
- package/dist/types/src/features/publicApi/userToken.d.ts +0 -6
- package/package.json +1 -1
@@ -16,14 +16,14 @@ export type { HeaderBuilderMiddleware };
|
|
16
16
|
* ```typescript
|
17
17
|
* const authMiddleware = createHeaderBuilderMiddleware(async (builder) => {
|
18
18
|
* const token = await fetchToken()
|
19
|
-
* return builder.add('
|
19
|
+
* return builder.add('authorization', `Bearer ${token}`)
|
20
20
|
* })
|
21
21
|
*
|
22
22
|
* const builder = HeaderBuilder.create()
|
23
23
|
* .with(authMiddleware)
|
24
24
|
*
|
25
|
-
* const headers = await builder.resolve() // Type of headers is { '
|
26
|
-
* console.log(headers) // { '
|
25
|
+
* const headers = await builder.resolve() // Type of headers is { 'authorization': string }
|
26
|
+
* console.log(headers) // { 'authorization': 'Bearer <token>' }
|
27
27
|
*/
|
28
28
|
declare class HeaderBuilderMiddleware<const H extends Headers> {
|
29
29
|
private readonly middleware;
|
@@ -11,7 +11,7 @@ type NoHeaders = {};
|
|
11
11
|
* ```typescript
|
12
12
|
* const authMiddleware = createHeaderBuilderMiddleware(async (builder) => {
|
13
13
|
* const token = await fetchToken()
|
14
|
-
* return builder.add('
|
14
|
+
* return builder.add('authorization', `Bearer ${token}`)
|
15
15
|
* })
|
16
16
|
*
|
17
17
|
* const builder = HeaderBuilder.create()
|
@@ -25,7 +25,7 @@ type NoHeaders = {};
|
|
25
25
|
* // 'Content-Type': 'application/json',
|
26
26
|
* // 'X-Custom-Header': 'custom',
|
27
27
|
* // 'X-Another-Header': 'another',
|
28
|
-
* // '
|
28
|
+
* // 'authorization': 'Bearer <token>'
|
29
29
|
* // }
|
30
30
|
*/
|
31
31
|
export declare class HeaderBuilder<H extends Headers = NoHeaders> {
|
@@ -60,11 +60,11 @@ export declare class HeaderBuilder<H extends Headers = NoHeaders> {
|
|
60
60
|
* ```typescript
|
61
61
|
* const builder = HeaderBuilder.create()
|
62
62
|
* .add('Content-Type', 'application/json')
|
63
|
-
* .add('
|
63
|
+
* .add('authorization', 'Bearer token')
|
64
64
|
*
|
65
65
|
* const headers = await builder.resolve()
|
66
66
|
* console.log(headers)
|
67
|
-
* // { 'Content-Type': 'application/json', '
|
67
|
+
* // { 'Content-Type': 'application/json', 'authorization': 'Bearer token' }
|
68
68
|
* ```
|
69
69
|
*
|
70
70
|
* @param key - The key of the header
|
@@ -79,14 +79,14 @@ export declare class HeaderBuilder<H extends Headers = NoHeaders> {
|
|
79
79
|
* @example
|
80
80
|
* ```typescript
|
81
81
|
* const builder = HeaderBuilder.create()
|
82
|
-
* .and({ 'Content-Type': 'application/json', '
|
82
|
+
* .and({ 'Content-Type': 'application/json', 'authorization': 'Bearer token' })
|
83
83
|
* .and(Promise.resolve({ 'X-Custom-Header': 'custom', 'X-Another-Header': 'another' }))
|
84
84
|
*
|
85
85
|
* const headers = await builder.resolve()
|
86
86
|
* console.log(headers)
|
87
87
|
* // Prints: {
|
88
88
|
* // 'Content-Type': 'application/json',
|
89
|
-
* // '
|
89
|
+
* // 'authorization': 'Bearer token',
|
90
90
|
* // 'X-Custom-Header': 'custom',
|
91
91
|
* // 'X-Another-Header': 'another'
|
92
92
|
* // }
|
@@ -104,11 +104,11 @@ export declare class HeaderBuilder<H extends Headers = NoHeaders> {
|
|
104
104
|
* const builder = HeaderBuilder.create()
|
105
105
|
* .from(async () => {
|
106
106
|
* const token = await fetchToken()
|
107
|
-
* return { '
|
107
|
+
* return { 'authorization': `Bearer ${token}` }
|
108
108
|
* })
|
109
109
|
*
|
110
110
|
* const headers = await builder.resolve()
|
111
|
-
* console.log(headers) // { '
|
111
|
+
* console.log(headers) // { 'authorization': 'Bearer <token>' }
|
112
112
|
* ```
|
113
113
|
*
|
114
114
|
* @param factory - A function that returns a promise of headers
|
@@ -121,14 +121,14 @@ export declare class HeaderBuilder<H extends Headers = NoHeaders> {
|
|
121
121
|
* ```typescript
|
122
122
|
* const authMiddleware = createHeaderBuilderMiddleware(async (builder) => {
|
123
123
|
* const token = await fetchToken()
|
124
|
-
* return builder.add('
|
124
|
+
* return builder.add('authorization', `Bearer ${token}`)
|
125
125
|
* })
|
126
126
|
*
|
127
127
|
* const builder = HeaderBuilder.create()
|
128
128
|
* .with(authMiddleware)
|
129
129
|
*
|
130
|
-
* const headers = await builder.resolve() // Type of headers is { '
|
131
|
-
* console.log(headers) // { '
|
130
|
+
* const headers = await builder.resolve() // Type of headers is { 'authorization': string }
|
131
|
+
* console.log(headers) // { 'authorization': 'Bearer <token>' }
|
132
132
|
* ```
|
133
133
|
*
|
134
134
|
* @param middleware
|
@@ -143,13 +143,13 @@ export declare class HeaderBuilder<H extends Headers = NoHeaders> {
|
|
143
143
|
* .add('Content-Type', 'application/json')
|
144
144
|
*
|
145
145
|
* const builderB = HeaderBuilder.create()
|
146
|
-
* .add('
|
146
|
+
* .add('authorization', 'Bearer token')
|
147
147
|
*
|
148
148
|
* const mergedBuilder = builderA.merge(builderB)
|
149
149
|
*
|
150
150
|
* const headers = await mergedBuilder.resolve()
|
151
151
|
* console.log(headers)
|
152
|
-
* // { 'Content-Type': 'application/json', '
|
152
|
+
* // { 'Content-Type': 'application/json', 'authorization': 'Bearer token' }
|
153
153
|
* ```
|
154
154
|
*
|
155
155
|
* @param builder - The builder to merge with
|
@@ -6,5 +6,5 @@ export type JwtAuthHeaderBuilderMiddlewareProps = {
|
|
6
6
|
onNewTokenIssued?: (token: JwtToken) => void;
|
7
7
|
};
|
8
8
|
export declare function JwtAuthHeaderBuilderMiddleware(props: JwtAuthHeaderBuilderMiddlewareProps): import('../headers/createHeaderBuilderMiddleware').HeaderBuilderMiddleware<{
|
9
|
-
|
9
|
+
authorization: `Bearer ${string}`;
|
10
10
|
}>;
|
@@ -109,12 +109,6 @@ export declare const retrieveContributor: import('@lokalise/universal-ts-utils/n
|
|
109
109
|
projectId: string;
|
110
110
|
contributorId: number;
|
111
111
|
}>, undefined, z.ZodIntersection<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
112
|
-
Authorization: z.ZodString;
|
113
|
-
}, "strip", z.ZodTypeAny, {
|
114
|
-
Authorization: string;
|
115
|
-
}, {
|
116
|
-
Authorization: string;
|
117
|
-
}>, z.ZodObject<{
|
118
112
|
authorization: z.ZodString;
|
119
113
|
}, "strip", z.ZodTypeAny, {
|
120
114
|
authorization: string;
|
@@ -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>;
|
@@ -49,12 +49,96 @@ export declare const listProjectLanguages: import('@lokalise/universal-ts-utils/
|
|
49
49
|
}, {
|
50
50
|
projectId: string;
|
51
51
|
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
52
|
-
|
52
|
+
authorization: import('zod').ZodString;
|
53
|
+
}, "strip", import('zod').ZodTypeAny, {
|
54
|
+
authorization: string;
|
55
|
+
}, {
|
56
|
+
authorization: string;
|
57
|
+
}>, import('zod').ZodObject<{
|
58
|
+
AUTHORIZATION: import('zod').ZodString;
|
59
|
+
}, "strip", import('zod').ZodTypeAny, {
|
60
|
+
AUTHORIZATION: string;
|
61
|
+
}, {
|
62
|
+
AUTHORIZATION: string;
|
63
|
+
}>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
64
|
+
'X-API-Token': import('zod').ZodString;
|
65
|
+
}, "strip", import('zod').ZodTypeAny, {
|
66
|
+
'X-API-Token': string;
|
67
|
+
}, {
|
68
|
+
'X-API-Token': string;
|
69
|
+
}>, import('zod').ZodObject<{
|
70
|
+
'X-Api-Token': import('zod').ZodString;
|
53
71
|
}, "strip", import('zod').ZodTypeAny, {
|
54
|
-
|
72
|
+
'X-Api-Token': string;
|
73
|
+
}, {
|
74
|
+
'X-Api-Token': string;
|
75
|
+
}>, import('zod').ZodObject<{
|
76
|
+
'x-api-token': import('zod').ZodString;
|
77
|
+
}, "strip", import('zod').ZodTypeAny, {
|
78
|
+
'x-api-token': string;
|
55
79
|
}, {
|
56
|
-
|
80
|
+
'x-api-token': string;
|
57
81
|
}>, import('zod').ZodObject<{
|
82
|
+
'X-API-TOKEN': import('zod').ZodString;
|
83
|
+
}, "strip", import('zod').ZodTypeAny, {
|
84
|
+
'X-API-TOKEN': string;
|
85
|
+
}, {
|
86
|
+
'X-API-TOKEN': string;
|
87
|
+
}>]>]>, import('zod').ZodUnion<[import('zod').ZodObject<{
|
88
|
+
'X-Lokalise-Plugin': import('zod').ZodString;
|
89
|
+
}, "strip", import('zod').ZodTypeAny, {
|
90
|
+
'X-Lokalise-Plugin': string;
|
91
|
+
}, {
|
92
|
+
'X-Lokalise-Plugin': string;
|
93
|
+
}>, import('zod').ZodObject<{
|
94
|
+
'x-lokalise-plugin': import('zod').ZodString;
|
95
|
+
}, "strip", import('zod').ZodTypeAny, {
|
96
|
+
'x-lokalise-plugin': string;
|
97
|
+
}, {
|
98
|
+
'x-lokalise-plugin': string;
|
99
|
+
}>, import('zod').ZodObject<{
|
100
|
+
'X-LOKALISE-PLUGIN': import('zod').ZodString;
|
101
|
+
}, "strip", import('zod').ZodTypeAny, {
|
102
|
+
'X-LOKALISE-PLUGIN': string;
|
103
|
+
}, {
|
104
|
+
'X-LOKALISE-PLUGIN': string;
|
105
|
+
}>]>>, false, false>;
|
106
|
+
export declare const bulkUpdateProjectLanguages: import('@lokalise/universal-ts-utils/node').PayloadRouteDefinition<{
|
107
|
+
projectId: string;
|
108
|
+
}, import('zod').ZodObject<{
|
109
|
+
langs: import('zod').ZodArray<import('zod').ZodObject<{
|
110
|
+
lang_iso: import('zod').ZodString;
|
111
|
+
base_lang: import('zod').ZodBoolean;
|
112
|
+
}, "strip", import('zod').ZodTypeAny, {
|
113
|
+
lang_iso: string;
|
114
|
+
base_lang: boolean;
|
115
|
+
}, {
|
116
|
+
lang_iso: string;
|
117
|
+
base_lang: boolean;
|
118
|
+
}>, "many">;
|
119
|
+
}, "strip", import('zod').ZodTypeAny, {
|
120
|
+
langs: {
|
121
|
+
lang_iso: string;
|
122
|
+
base_lang: boolean;
|
123
|
+
}[];
|
124
|
+
}, {
|
125
|
+
langs: {
|
126
|
+
lang_iso: string;
|
127
|
+
base_lang: boolean;
|
128
|
+
}[];
|
129
|
+
}>, import('zod').ZodObject<{
|
130
|
+
success: import('zod').ZodBoolean;
|
131
|
+
}, "strip", import('zod').ZodTypeAny, {
|
132
|
+
success: boolean;
|
133
|
+
}, {
|
134
|
+
success: boolean;
|
135
|
+
}>, import('zod').ZodObject<{
|
136
|
+
projectId: import('zod').ZodString;
|
137
|
+
}, "strip", import('zod').ZodTypeAny, {
|
138
|
+
projectId: string;
|
139
|
+
}, {
|
140
|
+
projectId: string;
|
141
|
+
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
58
142
|
authorization: import('zod').ZodString;
|
59
143
|
}, "strip", import('zod').ZodTypeAny, {
|
60
144
|
authorization: string;
|
@@ -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';
|
@@ -332,12 +332,6 @@ export declare const createProject: import('@lokalise/universal-ts-utils/node').
|
|
332
332
|
};
|
333
333
|
} | undefined;
|
334
334
|
}>, undefined, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
335
|
-
Authorization: import('zod').ZodString;
|
336
|
-
}, "strip", import('zod').ZodTypeAny, {
|
337
|
-
Authorization: string;
|
338
|
-
}, {
|
339
|
-
Authorization: string;
|
340
|
-
}>, import('zod').ZodObject<{
|
341
335
|
authorization: import('zod').ZodString;
|
342
336
|
}, "strip", import('zod').ZodTypeAny, {
|
343
337
|
authorization: string;
|
@@ -832,12 +826,6 @@ export declare const listProjects: import('@lokalise/universal-ts-utils/node').G
|
|
832
826
|
include_settings?: 0 | 1 | undefined;
|
833
827
|
limit?: number | undefined;
|
834
828
|
}>, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
835
|
-
Authorization: import('zod').ZodString;
|
836
|
-
}, "strip", import('zod').ZodTypeAny, {
|
837
|
-
Authorization: string;
|
838
|
-
}, {
|
839
|
-
Authorization: string;
|
840
|
-
}>, import('zod').ZodObject<{
|
841
829
|
authorization: import('zod').ZodString;
|
842
830
|
}, "strip", import('zod').ZodTypeAny, {
|
843
831
|
authorization: string;
|
@@ -1198,12 +1186,6 @@ export declare const retrieveProject: import('@lokalise/universal-ts-utils/node'
|
|
1198
1186
|
}, {
|
1199
1187
|
project_id: string;
|
1200
1188
|
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
1201
|
-
Authorization: import('zod').ZodString;
|
1202
|
-
}, "strip", import('zod').ZodTypeAny, {
|
1203
|
-
Authorization: string;
|
1204
|
-
}, {
|
1205
|
-
Authorization: string;
|
1206
|
-
}>, import('zod').ZodObject<{
|
1207
1189
|
authorization: import('zod').ZodString;
|
1208
1190
|
}, "strip", import('zod').ZodTypeAny, {
|
1209
1191
|
authorization: string;
|
@@ -1573,12 +1555,6 @@ export declare const updateProject: import('@lokalise/universal-ts-utils/node').
|
|
1573
1555
|
}, {
|
1574
1556
|
project_id: string;
|
1575
1557
|
}>, undefined, import('zod').ZodIntersection<import('zod').ZodUnion<[import('zod').ZodUnion<[import('zod').ZodObject<{
|
1576
|
-
Authorization: import('zod').ZodString;
|
1577
|
-
}, "strip", import('zod').ZodTypeAny, {
|
1578
|
-
Authorization: string;
|
1579
|
-
}, {
|
1580
|
-
Authorization: string;
|
1581
|
-
}>, import('zod').ZodObject<{
|
1582
1558
|
authorization: import('zod').ZodString;
|
1583
1559
|
}, "strip", import('zod').ZodTypeAny, {
|
1584
1560
|
authorization: string;
|
@@ -59,12 +59,6 @@ export declare const getTeamUser: import('@lokalise/universal-ts-utils/node').Ge
|
|
59
59
|
userId: number;
|
60
60
|
teamId: number;
|
61
61
|
}>, undefined, z.ZodIntersection<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
62
|
-
Authorization: z.ZodString;
|
63
|
-
}, "strip", z.ZodTypeAny, {
|
64
|
-
Authorization: string;
|
65
|
-
}, {
|
66
|
-
Authorization: string;
|
67
|
-
}>, z.ZodObject<{
|
68
62
|
authorization: z.ZodString;
|
69
63
|
}, "strip", z.ZodTypeAny, {
|
70
64
|
authorization: string;
|
@@ -1,11 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const CONTRIBUTOR_API_BASE_HEADER_SCHEMA: z.ZodIntersection<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
3
|
-
Authorization: z.ZodString;
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
5
|
-
Authorization: string;
|
6
|
-
}, {
|
7
|
-
Authorization: string;
|
8
|
-
}>, z.ZodObject<{
|
9
3
|
authorization: z.ZodString;
|
10
4
|
}, "strip", z.ZodTypeAny, {
|
11
5
|
authorization: string;
|
@@ -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>;
|
@@ -1,11 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const PROJECT_API_BASE_HEADERS_SCHEMA: z.ZodIntersection<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
3
|
-
Authorization: z.ZodString;
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
5
|
-
Authorization: string;
|
6
|
-
}, {
|
7
|
-
Authorization: string;
|
8
|
-
}>, z.ZodObject<{
|
9
3
|
authorization: z.ZodString;
|
10
4
|
}, "strip", z.ZodTypeAny, {
|
11
5
|
authorization: string;
|
@@ -1,11 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const AUTHORIZATION_HEADER_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
3
|
-
Authorization: z.ZodString;
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
5
|
-
Authorization: string;
|
6
|
-
}, {
|
7
|
-
Authorization: string;
|
8
|
-
}>, z.ZodObject<{
|
9
3
|
authorization: z.ZodString;
|
10
4
|
}, "strip", z.ZodTypeAny, {
|
11
5
|
authorization: string;
|
@@ -44,12 +38,6 @@ export declare const APU_TOKEN_AUTH_HEADER_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
44
38
|
'X-API-TOKEN': string;
|
45
39
|
}>]>;
|
46
40
|
export declare const AUTHENTICATION_HEADERS_SCHEMA: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
47
|
-
Authorization: z.ZodString;
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
49
|
-
Authorization: string;
|
50
|
-
}, {
|
51
|
-
Authorization: string;
|
52
|
-
}>, z.ZodObject<{
|
53
41
|
authorization: z.ZodString;
|
54
42
|
}, "strip", z.ZodTypeAny, {
|
55
43
|
authorization: string;
|
@@ -108,12 +96,6 @@ export declare const API_PLUGIN_HEADER_SCHEMA: z.ZodUnion<[z.ZodObject<{
|
|
108
96
|
}>]>;
|
109
97
|
export type ApiPluginHeader = z.infer<typeof API_PLUGIN_HEADER_SCHEMA>;
|
110
98
|
export declare const BASE_API_ENDPOINT_HEADER_SCHEMA: z.ZodIntersection<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
111
|
-
Authorization: z.ZodString;
|
112
|
-
}, "strip", z.ZodTypeAny, {
|
113
|
-
Authorization: string;
|
114
|
-
}, {
|
115
|
-
Authorization: string;
|
116
|
-
}>, z.ZodObject<{
|
117
99
|
authorization: z.ZodString;
|
118
100
|
}, "strip", z.ZodTypeAny, {
|
119
101
|
authorization: string;
|
@@ -1,11 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const TEAM_USER_API_BASE_HEADERS_SCHEMA: z.ZodIntersection<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
3
|
-
Authorization: z.ZodString;
|
4
|
-
}, "strip", z.ZodTypeAny, {
|
5
|
-
Authorization: string;
|
6
|
-
}, {
|
7
|
-
Authorization: string;
|
8
|
-
}>, z.ZodObject<{
|
9
3
|
authorization: z.ZodString;
|
10
4
|
}, "strip", z.ZodTypeAny, {
|
11
5
|
authorization: string;
|
@@ -11,12 +11,6 @@ export declare const JWT_TOKEN_SCHEMA: z.ZodObject<{
|
|
11
11
|
}>;
|
12
12
|
export type JwtToken = z.infer<typeof JWT_TOKEN_SCHEMA>;
|
13
13
|
export declare const USER_TOKEN_REQUEST_HEADER_SCHEMA: z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
14
|
-
Authorization: z.ZodString;
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
16
|
-
Authorization: string;
|
17
|
-
}, {
|
18
|
-
Authorization: string;
|
19
|
-
}>, z.ZodObject<{
|
20
14
|
authorization: z.ZodString;
|
21
15
|
}, "strip", z.ZodTypeAny, {
|
22
16
|
authorization: string;
|
@@ -21,12 +21,6 @@ export declare const getUserToken: import('@lokalise/universal-ts-utils/node').P
|
|
21
21
|
}, {
|
22
22
|
teamId: number;
|
23
23
|
}>, undefined, z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
24
|
-
Authorization: z.ZodString;
|
25
|
-
}, "strip", z.ZodTypeAny, {
|
26
|
-
Authorization: string;
|
27
|
-
}, {
|
28
|
-
Authorization: string;
|
29
|
-
}>, z.ZodObject<{
|
30
24
|
authorization: z.ZodString;
|
31
25
|
}, "strip", z.ZodTypeAny, {
|
32
26
|
authorization: string;
|