@lokalise/connector-shell 1.3.0 → 2.1.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/auth/authController.d.ts +30 -30
- package/dist/auth/authController.js +3 -3
- package/dist/auth/authController.js.map +1 -1
- package/dist/cache/cacheController.d.ts +59 -59
- package/dist/env/envController.d.ts +44 -28
- package/dist/itemGroup/ItemGroupController.d.ts +34 -34
- package/dist/itemList/ItemListController.d.ts +45 -45
- package/dist/publish/publishController.d.ts +29 -29
- package/dist/translate/translateController.d.ts +62 -61
- package/dist/translate/translateController.js +1 -1
- package/dist/translate/translateController.js.map +1 -1
- package/package.json +6 -6
|
@@ -4,43 +4,43 @@ import '../commonTypes.ts';
|
|
|
4
4
|
type AuthControllerContractsType = typeof AuthController.contracts;
|
|
5
5
|
export declare class AuthController extends AbstractController<AuthControllerContractsType> {
|
|
6
6
|
static contracts: {
|
|
7
|
-
readonly postAuth: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod
|
|
8
|
-
redirectUrl: import("zod
|
|
9
|
-
state: import("zod
|
|
10
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
11
|
-
'ce-config': import("zod
|
|
12
|
-
"x-connector-id": import("zod
|
|
7
|
+
readonly postAuth: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
8
|
+
redirectUrl: import("zod").ZodString;
|
|
9
|
+
state: import("zod").ZodOptional<import("zod").ZodString>;
|
|
10
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodOptional<import("zod").ZodNull>]>, import("zod").ZodObject<{}, import("zod/v4/core").$loose>, undefined, undefined, import("zod").ZodObject<{
|
|
11
|
+
'ce-config': import("zod").ZodString;
|
|
12
|
+
"x-connector-id": import("zod").ZodString;
|
|
13
13
|
}, import("zod/v4/core").$strip>, undefined, false, false, {
|
|
14
|
-
200: import("zod
|
|
15
|
-
403: import("zod
|
|
16
|
-
message: import("zod
|
|
17
|
-
statusCode: import("zod
|
|
14
|
+
200: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
15
|
+
403: import("zod").ZodObject<{
|
|
16
|
+
message: import("zod").ZodString;
|
|
17
|
+
statusCode: import("zod").ZodNumber;
|
|
18
18
|
}, import("zod/v4/core").$strip>;
|
|
19
19
|
}>;
|
|
20
|
-
readonly postAuthRefresh: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod
|
|
21
|
-
'ce-config': import("zod
|
|
22
|
-
'ce-auth': import("zod
|
|
23
|
-
"x-connector-id": import("zod
|
|
20
|
+
readonly postAuthRefresh: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodOptional<import("zod").ZodNull>, import("zod").ZodObject<{}, import("zod/v4/core").$loose>, undefined, undefined, import("zod").ZodObject<{
|
|
21
|
+
'ce-config': import("zod").ZodString;
|
|
22
|
+
'ce-auth': import("zod").ZodString;
|
|
23
|
+
"x-connector-id": import("zod").ZodString;
|
|
24
24
|
}, import("zod/v4/core").$strip>, undefined, false, false, {
|
|
25
|
-
200: import("zod
|
|
26
|
-
403: import("zod
|
|
27
|
-
message: import("zod
|
|
28
|
-
statusCode: import("zod
|
|
25
|
+
200: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
26
|
+
403: import("zod").ZodObject<{
|
|
27
|
+
message: import("zod").ZodString;
|
|
28
|
+
statusCode: import("zod").ZodNumber;
|
|
29
29
|
}, import("zod/v4/core").$strip>;
|
|
30
30
|
}>;
|
|
31
|
-
readonly postAuthResponse: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod
|
|
32
|
-
query: import("zod
|
|
33
|
-
body: import("zod
|
|
34
|
-
redirectUrl: import("zod
|
|
35
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
36
|
-
'ce-config': import("zod
|
|
37
|
-
"x-connector-id": import("zod
|
|
31
|
+
readonly postAuthResponse: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodObject<{
|
|
32
|
+
query: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
33
|
+
body: import("zod").ZodOptional<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
34
|
+
redirectUrl: import("zod").ZodString;
|
|
35
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$loose>, undefined, undefined, import("zod").ZodObject<{
|
|
36
|
+
'ce-config': import("zod").ZodString;
|
|
37
|
+
"x-connector-id": import("zod").ZodString;
|
|
38
38
|
}, import("zod/v4/core").$strip>, undefined, false, false, {
|
|
39
|
-
200: import("zod
|
|
40
|
-
403: import("zod
|
|
41
|
-
message: import("zod
|
|
42
|
-
errorCode: import("zod
|
|
43
|
-
details: import("zod
|
|
39
|
+
200: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
40
|
+
403: import("zod").ZodObject<{
|
|
41
|
+
message: import("zod").ZodString;
|
|
42
|
+
errorCode: import("zod").ZodNumber;
|
|
43
|
+
details: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
44
44
|
}, import("zod/v4/core").$strip>;
|
|
45
45
|
}>;
|
|
46
46
|
};
|
|
@@ -26,7 +26,7 @@ export class AuthController extends AbstractController {
|
|
|
26
26
|
return reply.send(authConfig);
|
|
27
27
|
}
|
|
28
28
|
if (adapter.authServiceOAuth) {
|
|
29
|
-
const authorizationUrl = await adapter.authServiceOAuth.generateAuthorizationUrl(req.
|
|
29
|
+
const authorizationUrl = await adapter.authServiceOAuth.generateAuthorizationUrl(req.body, req.reqContext);
|
|
30
30
|
return reply.send({
|
|
31
31
|
url: authorizationUrl,
|
|
32
32
|
});
|
|
@@ -47,8 +47,8 @@ export class AuthController extends AbstractController {
|
|
|
47
47
|
if (!resolvedAuthService) {
|
|
48
48
|
throw new OAuthNotSupportedError(adapter.getConnectorName());
|
|
49
49
|
}
|
|
50
|
-
const
|
|
51
|
-
return reply.send(
|
|
50
|
+
const refreshedAuthConfig = await resolvedAuthService.refresh(req.authConfig, req.reqContext);
|
|
51
|
+
return reply.send(refreshedAuthConfig);
|
|
52
52
|
}, this.protectedRouteMetadataMapper());
|
|
53
53
|
}
|
|
54
54
|
get postAuthResponse() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authController.js","sourceRoot":"","sources":["../../src/auth/authController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,sBAAsB,EAAE,MAAM,oCAAoC,CAAA;AACzF,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,uBAAuB,EACvB,wBAAwB,GACzB,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAA8B,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,mBAAmB,CAAA;AAI1B,MAAM,OAAO,cAAe,SAAQ,kBAA+C;IAC1E,MAAM,CAAC,SAAS,GAAG;QACxB,QAAQ,EAAE,gBAAgB;QAC1B,eAAe,EAAE,uBAAuB;QACxC,gBAAgB,EAAE,wBAAwB;KAClC,CAAA;IAEO,QAAQ,CAAyB;IACjC,4BAA4B,CAAqC;IAElF,YAAY,YAAwC;QAClD,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAA;QACrC,IAAI,CAAC,4BAA4B,GAAG,YAAY,CAAC,mCAAmC,CAAA;IACtF,CAAC;IAED,IAAY,QAAQ;QAClB,OAAO,wBAAwB,CAC7B,gBAAgB,EAChB,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;YACnB,MAAM,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAA;YAC/E,IAAI,OAAO,CAAC,iBAAiB,EAAE,CAAC;gBAC9B,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,iBAAiB,CAAC,QAAQ,CACzD,GAAG,CAAC,iBAAiB,EACrB,GAAG,CAAC,UAAU,CACf,CAAA;gBACD,OAAO,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;YAC/B,CAAC;YAED,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;gBAC7B,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,gBAAgB,CAAC,wBAAwB,CAC9E,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"authController.js","sourceRoot":"","sources":["../../src/auth/authController.ts"],"names":[],"mappings":"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"}
|
|
@@ -4,74 +4,74 @@ import '../commonTypes.ts';
|
|
|
4
4
|
type CacheControllerContractsType = typeof CacheController.contracts;
|
|
5
5
|
export declare class CacheController extends AbstractController<CacheControllerContractsType> {
|
|
6
6
|
static contracts: {
|
|
7
|
-
readonly getCache: import("@lokalise/api-contracts").GetRouteDefinition<import("zod
|
|
8
|
-
items: import("zod
|
|
9
|
-
uniqueId: import("zod
|
|
10
|
-
groupId: import("zod
|
|
11
|
-
metadata: import("zod
|
|
7
|
+
readonly getCache: import("@lokalise/api-contracts").GetRouteDefinition<import("zod").ZodObject<{
|
|
8
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
9
|
+
uniqueId: import("zod").ZodString;
|
|
10
|
+
groupId: import("zod").ZodString;
|
|
11
|
+
metadata: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
12
12
|
}, import("zod/v4/core").$strip>>;
|
|
13
|
-
next: import("zod
|
|
14
|
-
hasMore: import("zod
|
|
15
|
-
nextCursor: import("zod
|
|
16
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod
|
|
17
|
-
next: import("zod
|
|
18
|
-
maxItems: import("zod
|
|
19
|
-
cursor: import("zod
|
|
20
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
21
|
-
'ce-config': import("zod
|
|
22
|
-
'ce-auth': import("zod
|
|
23
|
-
"x-connector-id": import("zod
|
|
24
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
25
|
-
'x-continue-after': import("zod
|
|
13
|
+
next: import("zod").ZodOptional<import("zod").ZodString>;
|
|
14
|
+
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
15
|
+
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
17
|
+
next: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
+
maxItems: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
19
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
21
|
+
'ce-config': import("zod").ZodString;
|
|
22
|
+
'ce-auth': import("zod").ZodString;
|
|
23
|
+
"x-connector-id": import("zod").ZodString;
|
|
24
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
25
|
+
'x-continue-after': import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
26
|
}, import("zod/v4/core").$strip>, false, false, {
|
|
27
|
-
200: import("zod
|
|
28
|
-
items: import("zod
|
|
29
|
-
uniqueId: import("zod
|
|
30
|
-
groupId: import("zod
|
|
31
|
-
metadata: import("zod
|
|
27
|
+
200: import("zod").ZodObject<{
|
|
28
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
29
|
+
uniqueId: import("zod").ZodString;
|
|
30
|
+
groupId: import("zod").ZodString;
|
|
31
|
+
metadata: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
32
32
|
}, import("zod/v4/core").$strip>>;
|
|
33
|
-
next: import("zod
|
|
34
|
-
hasMore: import("zod
|
|
35
|
-
nextCursor: import("zod
|
|
33
|
+
next: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
|
+
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
35
|
+
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
36
36
|
}, import("zod/v4/core").$strip>;
|
|
37
37
|
}>;
|
|
38
|
-
readonly postCacheItems: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod
|
|
39
|
-
items: import("zod
|
|
40
|
-
uniqueId: import("zod
|
|
41
|
-
groupId: import("zod
|
|
42
|
-
metadata: import("zod
|
|
38
|
+
readonly postCacheItems: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodObject<{
|
|
39
|
+
items: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
40
|
+
uniqueId: import("zod").ZodString;
|
|
41
|
+
groupId: import("zod").ZodString;
|
|
42
|
+
metadata: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
43
43
|
}, import("zod/v4/core").$strip>>>;
|
|
44
|
-
maxItems: import("zod
|
|
45
|
-
cursor: import("zod
|
|
46
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
47
|
-
items: import("zod
|
|
48
|
-
uniqueId: import("zod
|
|
49
|
-
groupId: import("zod
|
|
50
|
-
metadata: import("zod
|
|
51
|
-
fields: import("zod
|
|
52
|
-
title: import("zod
|
|
53
|
-
groupTitle: import("zod
|
|
44
|
+
maxItems: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
45
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
46
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
47
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
48
|
+
uniqueId: import("zod").ZodString;
|
|
49
|
+
groupId: import("zod").ZodString;
|
|
50
|
+
metadata: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
51
|
+
fields: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
52
|
+
title: import("zod").ZodString;
|
|
53
|
+
groupTitle: import("zod").ZodString;
|
|
54
54
|
}, import("zod/v4/core").$strip>>;
|
|
55
|
-
hasMore: import("zod
|
|
56
|
-
nextCursor: import("zod
|
|
57
|
-
}, import("zod/v4/core").$strip>, undefined, undefined, import("zod
|
|
58
|
-
'ce-config': import("zod
|
|
59
|
-
'ce-auth': import("zod
|
|
60
|
-
"x-connector-id": import("zod
|
|
61
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
62
|
-
'x-continue-after': import("zod
|
|
55
|
+
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
56
|
+
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
57
|
+
}, import("zod/v4/core").$strip>, undefined, undefined, import("zod").ZodObject<{
|
|
58
|
+
'ce-config': import("zod").ZodString;
|
|
59
|
+
'ce-auth': import("zod").ZodString;
|
|
60
|
+
"x-connector-id": import("zod").ZodString;
|
|
61
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
62
|
+
'x-continue-after': import("zod").ZodOptional<import("zod").ZodString>;
|
|
63
63
|
}, import("zod/v4/core").$strip>, false, false, {
|
|
64
|
-
200: import("zod
|
|
65
|
-
items: import("zod
|
|
66
|
-
uniqueId: import("zod
|
|
67
|
-
groupId: import("zod
|
|
68
|
-
metadata: import("zod
|
|
69
|
-
fields: import("zod
|
|
70
|
-
title: import("zod
|
|
71
|
-
groupTitle: import("zod
|
|
64
|
+
200: import("zod").ZodObject<{
|
|
65
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
66
|
+
uniqueId: import("zod").ZodString;
|
|
67
|
+
groupId: import("zod").ZodString;
|
|
68
|
+
metadata: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
69
|
+
fields: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
70
|
+
title: import("zod").ZodString;
|
|
71
|
+
groupTitle: import("zod").ZodString;
|
|
72
72
|
}, import("zod/v4/core").$strip>>;
|
|
73
|
-
hasMore: import("zod
|
|
74
|
-
nextCursor: import("zod
|
|
73
|
+
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
74
|
+
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
75
75
|
}, import("zod/v4/core").$strip>;
|
|
76
76
|
}>;
|
|
77
77
|
};
|
|
@@ -4,39 +4,55 @@ import '../commonTypes.ts';
|
|
|
4
4
|
type EnvControllerContractsType = typeof EnvController.contracts;
|
|
5
5
|
export declare class EnvController extends AbstractController<EnvControllerContractsType> {
|
|
6
6
|
static contracts: {
|
|
7
|
-
readonly getEnv: import("@lokalise/api-contracts").GetRouteDefinition<import("zod
|
|
8
|
-
defaultLocale: import("zod
|
|
9
|
-
locales: import("zod
|
|
10
|
-
name: import("zod
|
|
11
|
-
code: import("zod
|
|
7
|
+
readonly getEnv: import("@lokalise/api-contracts").GetRouteDefinition<import("zod").ZodObject<{
|
|
8
|
+
defaultLocale: import("zod").ZodString;
|
|
9
|
+
locales: import("zod").ZodArray<import("zod").ZodObject<{
|
|
10
|
+
name: import("zod").ZodString;
|
|
11
|
+
code: import("zod").ZodString;
|
|
12
12
|
}, import("zod/v4/core").$strip>>;
|
|
13
|
-
supportedContentTypes: import("zod
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
supportedContentTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
14
|
+
features: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
15
|
+
skippingEmptyTranslations: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
16
|
+
showSkipEmptyOptionOnImport: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
17
|
+
supportedImportTags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
18
|
+
id: import("zod").ZodString;
|
|
19
|
+
title: import("zod").ZodString;
|
|
20
|
+
}, import("zod/v4/core").$strip>>>;
|
|
21
|
+
}, import("zod/v4/core").$strip>>;
|
|
22
|
+
cacheItemStructure: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
23
|
+
}, import("zod/v4/core").$strip>, undefined, undefined, import("zod").ZodObject<{
|
|
24
|
+
'ce-config': import("zod").ZodString;
|
|
25
|
+
'ce-auth': import("zod").ZodString;
|
|
26
|
+
"x-connector-id": import("zod").ZodString;
|
|
19
27
|
}, import("zod/v4/core").$strip>, undefined, false, false, {
|
|
20
|
-
200: import("zod
|
|
21
|
-
defaultLocale: import("zod
|
|
22
|
-
locales: import("zod
|
|
23
|
-
name: import("zod
|
|
24
|
-
code: import("zod
|
|
28
|
+
200: import("zod").ZodObject<{
|
|
29
|
+
defaultLocale: import("zod").ZodString;
|
|
30
|
+
locales: import("zod").ZodArray<import("zod").ZodObject<{
|
|
31
|
+
name: import("zod").ZodString;
|
|
32
|
+
code: import("zod").ZodString;
|
|
33
|
+
}, import("zod/v4/core").$strip>>;
|
|
34
|
+
supportedContentTypes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
35
|
+
features: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
36
|
+
skippingEmptyTranslations: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
37
|
+
showSkipEmptyOptionOnImport: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
38
|
+
supportedImportTags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
39
|
+
id: import("zod").ZodString;
|
|
40
|
+
title: import("zod").ZodString;
|
|
41
|
+
}, import("zod/v4/core").$strip>>>;
|
|
25
42
|
}, import("zod/v4/core").$strip>>;
|
|
26
|
-
|
|
27
|
-
cacheItemStructure: import("zod/v4").ZodRecord<import("zod/v4").ZodString, import("zod/v4").ZodString>;
|
|
43
|
+
cacheItemStructure: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
28
44
|
}, import("zod/v4/core").$strip>;
|
|
29
|
-
403: import("zod
|
|
30
|
-
statusCode: import("zod
|
|
31
|
-
payload: import("zod
|
|
32
|
-
message: import("zod
|
|
33
|
-
errorCode: import("zod
|
|
34
|
-
details: import("zod
|
|
45
|
+
403: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
46
|
+
statusCode: import("zod").ZodNumber;
|
|
47
|
+
payload: import("zod").ZodObject<{
|
|
48
|
+
message: import("zod").ZodString;
|
|
49
|
+
errorCode: import("zod").ZodString;
|
|
50
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
35
51
|
}, import("zod/v4/core").$strip>;
|
|
36
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
37
|
-
message: import("zod
|
|
38
|
-
errorCode: import("zod
|
|
39
|
-
details: import("zod
|
|
52
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
53
|
+
message: import("zod").ZodString;
|
|
54
|
+
errorCode: import("zod").ZodString;
|
|
55
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
40
56
|
}, import("zod/v4/core").$strip>]>;
|
|
41
57
|
}>;
|
|
42
58
|
};
|
|
@@ -4,45 +4,45 @@ import '../commonTypes.ts';
|
|
|
4
4
|
type ItemGroupControllerContractsType = typeof ItemGroupController.contracts;
|
|
5
5
|
export declare class ItemGroupController extends AbstractController<ItemGroupControllerContractsType> {
|
|
6
6
|
static contracts: {
|
|
7
|
-
readonly getItemGroupList: import("@lokalise/api-contracts").GetRouteDefinition<import("zod
|
|
8
|
-
items: import("zod
|
|
9
|
-
id: import("zod
|
|
10
|
-
name: import("zod
|
|
11
|
-
parentItemGroupId: import("zod
|
|
12
|
-
details: import("zod
|
|
7
|
+
readonly getItemGroupList: import("@lokalise/api-contracts").GetRouteDefinition<import("zod").ZodObject<{
|
|
8
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
9
|
+
id: import("zod").ZodString;
|
|
10
|
+
name: import("zod").ZodString;
|
|
11
|
+
parentItemGroupId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
12
|
+
details: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
13
13
|
}, import("zod/v4/core").$strip>>;
|
|
14
|
-
hasMore: import("zod
|
|
15
|
-
nextCursor: import("zod
|
|
16
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod
|
|
17
|
-
limit: import("zod
|
|
18
|
-
cursor: import("zod
|
|
19
|
-
$filter: import("zod
|
|
20
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
21
|
-
'ce-config': import("zod
|
|
22
|
-
'ce-auth': import("zod
|
|
23
|
-
"x-connector-id": import("zod
|
|
14
|
+
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
15
|
+
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
16
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
17
|
+
limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
18
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
|
+
$filter: import("zod").ZodOptional<import("zod").ZodString>;
|
|
20
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
21
|
+
'ce-config': import("zod").ZodString;
|
|
22
|
+
'ce-auth': import("zod").ZodString;
|
|
23
|
+
"x-connector-id": import("zod").ZodString;
|
|
24
24
|
}, import("zod/v4/core").$strip>, undefined, false, false, {
|
|
25
|
-
200: import("zod
|
|
26
|
-
items: import("zod
|
|
27
|
-
id: import("zod
|
|
28
|
-
name: import("zod
|
|
29
|
-
parentItemGroupId: import("zod
|
|
30
|
-
details: import("zod
|
|
25
|
+
200: import("zod").ZodObject<{
|
|
26
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
27
|
+
id: import("zod").ZodString;
|
|
28
|
+
name: import("zod").ZodString;
|
|
29
|
+
parentItemGroupId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
30
|
+
details: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
31
31
|
}, import("zod/v4/core").$strip>>;
|
|
32
|
-
hasMore: import("zod
|
|
33
|
-
nextCursor: import("zod
|
|
32
|
+
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
33
|
+
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
34
34
|
}, import("zod/v4/core").$strip>;
|
|
35
|
-
401: import("zod
|
|
36
|
-
statusCode: import("zod
|
|
37
|
-
payload: import("zod
|
|
38
|
-
message: import("zod
|
|
39
|
-
errorCode: import("zod
|
|
40
|
-
details: import("zod
|
|
35
|
+
401: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
36
|
+
statusCode: import("zod").ZodNumber;
|
|
37
|
+
payload: import("zod").ZodObject<{
|
|
38
|
+
message: import("zod").ZodString;
|
|
39
|
+
errorCode: import("zod").ZodString;
|
|
40
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
41
41
|
}, import("zod/v4/core").$strip>;
|
|
42
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
43
|
-
message: import("zod
|
|
44
|
-
errorCode: import("zod
|
|
45
|
-
details: import("zod
|
|
42
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
43
|
+
message: import("zod").ZodString;
|
|
44
|
+
errorCode: import("zod").ZodString;
|
|
45
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
46
46
|
}, import("zod/v4/core").$strip>]>;
|
|
47
47
|
}>;
|
|
48
48
|
};
|
|
@@ -4,58 +4,58 @@ import '../commonTypes.ts';
|
|
|
4
4
|
type ItemListControllerContractsType = typeof ItemListController.contracts;
|
|
5
5
|
export declare class ItemListController extends AbstractController<ItemListControllerContractsType> {
|
|
6
6
|
static contracts: {
|
|
7
|
-
readonly getItemList: import("@lokalise/api-contracts").GetRouteDefinition<import("zod
|
|
8
|
-
data: import("zod
|
|
9
|
-
uniqueId: import("zod
|
|
10
|
-
groupId: import("zod
|
|
11
|
-
metadata: import("zod
|
|
12
|
-
fields: import("zod
|
|
13
|
-
title: import("zod
|
|
14
|
-
groupTitle: import("zod
|
|
7
|
+
readonly getItemList: import("@lokalise/api-contracts").GetRouteDefinition<import("zod").ZodObject<{
|
|
8
|
+
data: import("zod").ZodArray<import("zod").ZodObject<{
|
|
9
|
+
uniqueId: import("zod").ZodString;
|
|
10
|
+
groupId: import("zod").ZodString;
|
|
11
|
+
metadata: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
12
|
+
fields: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
13
|
+
title: import("zod").ZodString;
|
|
14
|
+
groupTitle: import("zod").ZodString;
|
|
15
15
|
}, import("zod/v4/core").$strip>>;
|
|
16
|
-
meta: import("zod
|
|
17
|
-
count: import("zod
|
|
18
|
-
cursor: import("zod
|
|
19
|
-
hasMore: import("zod
|
|
16
|
+
meta: import("zod").ZodObject<{
|
|
17
|
+
count: import("zod").ZodNumber;
|
|
18
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
19
|
+
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
20
20
|
}, import("zod/v4/core").$strip>;
|
|
21
|
-
}, import("zod/v4/core").$strip>, undefined, import("zod
|
|
22
|
-
limit: import("zod
|
|
23
|
-
cursor: import("zod
|
|
24
|
-
contentTypes: import("zod
|
|
25
|
-
$filter: import("zod
|
|
26
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
27
|
-
'ce-config': import("zod
|
|
28
|
-
'ce-auth': import("zod
|
|
29
|
-
"x-connector-id": import("zod
|
|
30
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
31
|
-
'x-continue-after': import("zod
|
|
21
|
+
}, import("zod/v4/core").$strip>, undefined, import("zod").ZodObject<{
|
|
22
|
+
limit: import("zod").ZodOptional<import("zod").ZodCoercedNumber<unknown>>;
|
|
23
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
24
|
+
contentTypes: import("zod").ZodOptional<import("zod").ZodPipe<import("zod").ZodTransform<unknown, unknown>, import("zod").ZodArray<import("zod").ZodString>>>;
|
|
25
|
+
$filter: import("zod").ZodOptional<import("zod").ZodString>;
|
|
26
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
27
|
+
'ce-config': import("zod").ZodString;
|
|
28
|
+
'ce-auth': import("zod").ZodString;
|
|
29
|
+
"x-connector-id": import("zod").ZodString;
|
|
30
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
31
|
+
'x-continue-after': import("zod").ZodOptional<import("zod").ZodString>;
|
|
32
32
|
}, import("zod/v4/core").$strip>, false, false, {
|
|
33
|
-
200: import("zod
|
|
34
|
-
data: import("zod
|
|
35
|
-
uniqueId: import("zod
|
|
36
|
-
groupId: import("zod
|
|
37
|
-
metadata: import("zod
|
|
38
|
-
fields: import("zod
|
|
39
|
-
title: import("zod
|
|
40
|
-
groupTitle: import("zod
|
|
33
|
+
200: import("zod").ZodObject<{
|
|
34
|
+
data: import("zod").ZodArray<import("zod").ZodObject<{
|
|
35
|
+
uniqueId: import("zod").ZodString;
|
|
36
|
+
groupId: import("zod").ZodString;
|
|
37
|
+
metadata: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
38
|
+
fields: import("zod").ZodObject<{}, import("zod/v4/core").$loose>;
|
|
39
|
+
title: import("zod").ZodString;
|
|
40
|
+
groupTitle: import("zod").ZodString;
|
|
41
41
|
}, import("zod/v4/core").$strip>>;
|
|
42
|
-
meta: import("zod
|
|
43
|
-
count: import("zod
|
|
44
|
-
cursor: import("zod
|
|
45
|
-
hasMore: import("zod
|
|
42
|
+
meta: import("zod").ZodObject<{
|
|
43
|
+
count: import("zod").ZodNumber;
|
|
44
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
|
+
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
46
46
|
}, import("zod/v4/core").$strip>;
|
|
47
47
|
}, import("zod/v4/core").$strip>;
|
|
48
|
-
401: import("zod
|
|
49
|
-
statusCode: import("zod
|
|
50
|
-
payload: import("zod
|
|
51
|
-
message: import("zod
|
|
52
|
-
errorCode: import("zod
|
|
53
|
-
details: import("zod
|
|
48
|
+
401: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
49
|
+
statusCode: import("zod").ZodNumber;
|
|
50
|
+
payload: import("zod").ZodObject<{
|
|
51
|
+
message: import("zod").ZodString;
|
|
52
|
+
errorCode: import("zod").ZodString;
|
|
53
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
54
54
|
}, import("zod/v4/core").$strip>;
|
|
55
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
56
|
-
message: import("zod
|
|
57
|
-
errorCode: import("zod
|
|
58
|
-
details: import("zod
|
|
55
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
56
|
+
message: import("zod").ZodString;
|
|
57
|
+
errorCode: import("zod").ZodString;
|
|
58
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
59
59
|
}, import("zod/v4/core").$strip>]>;
|
|
60
60
|
}>;
|
|
61
61
|
};
|
|
@@ -4,39 +4,39 @@ import '../commonTypes.ts';
|
|
|
4
4
|
type PublishControllerContractsType = typeof PublishController.contracts;
|
|
5
5
|
export declare class PublishController extends AbstractController<PublishControllerContractsType> {
|
|
6
6
|
static contracts: {
|
|
7
|
-
readonly postPublish: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod
|
|
8
|
-
items: import("zod
|
|
9
|
-
uniqueId: import("zod
|
|
10
|
-
groupId: import("zod
|
|
11
|
-
metadata: import("zod
|
|
12
|
-
translations: import("zod
|
|
7
|
+
readonly postPublish: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodObject<{
|
|
8
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
9
|
+
uniqueId: import("zod").ZodString;
|
|
10
|
+
groupId: import("zod").ZodString;
|
|
11
|
+
metadata: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
12
|
+
translations: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
13
13
|
}, import("zod/v4/core").$strip>>;
|
|
14
|
-
defaultLocale: import("zod
|
|
15
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
16
|
-
statusCode: import("zod
|
|
17
|
-
message: import("zod
|
|
18
|
-
payload: import("zod
|
|
19
|
-
message: import("zod
|
|
20
|
-
errorCode: import("zod
|
|
21
|
-
details: import("zod
|
|
22
|
-
errors: import("zod
|
|
14
|
+
defaultLocale: import("zod").ZodString;
|
|
15
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
16
|
+
statusCode: import("zod").ZodNumber;
|
|
17
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
+
payload: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
19
|
+
message: import("zod").ZodString;
|
|
20
|
+
errorCode: import("zod").ZodString;
|
|
21
|
+
details: import("zod").ZodObject<{
|
|
22
|
+
errors: import("zod").ZodArray<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
23
23
|
}, import("zod/v4/core").$strip>;
|
|
24
24
|
}, import("zod/v4/core").$strip>>;
|
|
25
|
-
}, import("zod/v4/core").$strip>, undefined, undefined, import("zod
|
|
26
|
-
'ce-config': import("zod
|
|
27
|
-
'ce-auth': import("zod
|
|
28
|
-
"x-connector-id": import("zod
|
|
29
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
30
|
-
'x-continue-after': import("zod
|
|
25
|
+
}, import("zod/v4/core").$strip>, undefined, undefined, import("zod").ZodObject<{
|
|
26
|
+
'ce-config': import("zod").ZodString;
|
|
27
|
+
'ce-auth': import("zod").ZodString;
|
|
28
|
+
"x-connector-id": import("zod").ZodString;
|
|
29
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
30
|
+
'x-continue-after': import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
31
|
}, import("zod/v4/core").$strip>, false, false, {
|
|
32
|
-
200: import("zod
|
|
33
|
-
statusCode: import("zod
|
|
34
|
-
message: import("zod
|
|
35
|
-
payload: import("zod
|
|
36
|
-
message: import("zod
|
|
37
|
-
errorCode: import("zod
|
|
38
|
-
details: import("zod
|
|
39
|
-
errors: import("zod
|
|
32
|
+
200: import("zod").ZodObject<{
|
|
33
|
+
statusCode: import("zod").ZodNumber;
|
|
34
|
+
message: import("zod").ZodOptional<import("zod").ZodString>;
|
|
35
|
+
payload: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
36
|
+
message: import("zod").ZodString;
|
|
37
|
+
errorCode: import("zod").ZodString;
|
|
38
|
+
details: import("zod").ZodObject<{
|
|
39
|
+
errors: import("zod").ZodArray<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
40
40
|
}, import("zod/v4/core").$strip>;
|
|
41
41
|
}, import("zod/v4/core").$strip>>;
|
|
42
42
|
}, import("zod/v4/core").$strip>;
|
|
@@ -4,79 +4,80 @@ import '../commonTypes.ts';
|
|
|
4
4
|
type TranslateControllerContractsType = typeof TranslateController.contracts;
|
|
5
5
|
export declare class TranslateController extends AbstractController<TranslateControllerContractsType> {
|
|
6
6
|
static contracts: {
|
|
7
|
-
readonly postTranslate: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod
|
|
8
|
-
locales: import("zod
|
|
9
|
-
items: import("zod
|
|
10
|
-
uniqueId: import("zod
|
|
11
|
-
groupId: import("zod
|
|
12
|
-
metadata: import("zod
|
|
7
|
+
readonly postTranslate: import("@lokalise/api-contracts").PayloadRouteDefinition<import("zod").ZodObject<{
|
|
8
|
+
locales: import("zod").ZodArray<import("zod").ZodString>;
|
|
9
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
10
|
+
uniqueId: import("zod").ZodString;
|
|
11
|
+
groupId: import("zod").ZodString;
|
|
12
|
+
metadata: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
13
13
|
}, import("zod/v4/core").$strip>>;
|
|
14
|
-
defaultLocale: import("zod
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
defaultLocale: import("zod").ZodString;
|
|
15
|
+
importTags: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
16
|
+
maxItems: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
17
|
+
cursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
18
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
19
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
20
|
+
uniqueId: import("zod").ZodString;
|
|
21
|
+
groupId: import("zod").ZodString;
|
|
22
|
+
metadata: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
23
|
+
translations: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
24
|
+
itemGroups: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
25
|
+
id: import("zod").ZodString;
|
|
26
|
+
name: import("zod").ZodString;
|
|
27
|
+
parentItemGroupId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
28
|
+
details: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
28
29
|
}, import("zod/v4/core").$strip>>>;
|
|
29
30
|
}, import("zod/v4/core").$strip>>;
|
|
30
|
-
payload: import("zod
|
|
31
|
-
message: import("zod
|
|
32
|
-
errorCode: import("zod
|
|
33
|
-
details: import("zod
|
|
34
|
-
errors: import("zod
|
|
31
|
+
payload: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
32
|
+
message: import("zod").ZodString;
|
|
33
|
+
errorCode: import("zod").ZodString;
|
|
34
|
+
details: import("zod").ZodObject<{
|
|
35
|
+
errors: import("zod").ZodArray<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
35
36
|
}, import("zod/v4/core").$strip>;
|
|
36
37
|
}, import("zod/v4/core").$strip>>;
|
|
37
|
-
hasMore: import("zod
|
|
38
|
-
nextCursor: import("zod
|
|
39
|
-
}, import("zod/v4/core").$strip>, undefined, undefined, import("zod
|
|
40
|
-
'ce-config': import("zod
|
|
41
|
-
'ce-auth': import("zod
|
|
42
|
-
"x-connector-id": import("zod
|
|
43
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
44
|
-
'x-continue-after': import("zod
|
|
38
|
+
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
39
|
+
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
40
|
+
}, import("zod/v4/core").$strip>, undefined, undefined, import("zod").ZodObject<{
|
|
41
|
+
'ce-config': import("zod").ZodString;
|
|
42
|
+
'ce-auth': import("zod").ZodString;
|
|
43
|
+
"x-connector-id": import("zod").ZodString;
|
|
44
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
45
|
+
'x-continue-after': import("zod").ZodOptional<import("zod").ZodString>;
|
|
45
46
|
}, import("zod/v4/core").$strip>, false, false, {
|
|
46
|
-
200: import("zod
|
|
47
|
-
items: import("zod
|
|
48
|
-
uniqueId: import("zod
|
|
49
|
-
groupId: import("zod
|
|
50
|
-
metadata: import("zod
|
|
51
|
-
translations: import("zod
|
|
52
|
-
itemGroups: import("zod
|
|
53
|
-
id: import("zod
|
|
54
|
-
name: import("zod
|
|
55
|
-
parentItemGroupId: import("zod
|
|
56
|
-
details: import("zod
|
|
47
|
+
200: import("zod").ZodObject<{
|
|
48
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
49
|
+
uniqueId: import("zod").ZodString;
|
|
50
|
+
groupId: import("zod").ZodString;
|
|
51
|
+
metadata: import("zod").ZodRecord<import("zod").ZodAny, import("zod").ZodAny>;
|
|
52
|
+
translations: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodString>;
|
|
53
|
+
itemGroups: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
54
|
+
id: import("zod").ZodString;
|
|
55
|
+
name: import("zod").ZodString;
|
|
56
|
+
parentItemGroupId: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodString>>;
|
|
57
|
+
details: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>;
|
|
57
58
|
}, import("zod/v4/core").$strip>>>;
|
|
58
59
|
}, import("zod/v4/core").$strip>>;
|
|
59
|
-
payload: import("zod
|
|
60
|
-
message: import("zod
|
|
61
|
-
errorCode: import("zod
|
|
62
|
-
details: import("zod
|
|
63
|
-
errors: import("zod
|
|
60
|
+
payload: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
61
|
+
message: import("zod").ZodString;
|
|
62
|
+
errorCode: import("zod").ZodString;
|
|
63
|
+
details: import("zod").ZodObject<{
|
|
64
|
+
errors: import("zod").ZodArray<import("zod").ZodObject<{}, import("zod/v4/core").$loose>>;
|
|
64
65
|
}, import("zod/v4/core").$strip>;
|
|
65
66
|
}, import("zod/v4/core").$strip>>;
|
|
66
|
-
hasMore: import("zod
|
|
67
|
-
nextCursor: import("zod
|
|
67
|
+
hasMore: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
68
|
+
nextCursor: import("zod").ZodOptional<import("zod").ZodString>;
|
|
68
69
|
}, import("zod/v4/core").$strip>;
|
|
69
|
-
403: import("zod
|
|
70
|
-
statusCode: import("zod
|
|
71
|
-
payload: import("zod
|
|
72
|
-
message: import("zod
|
|
73
|
-
errorCode: import("zod
|
|
74
|
-
details: import("zod
|
|
70
|
+
403: import("zod").ZodUnion<readonly [import("zod").ZodObject<{
|
|
71
|
+
statusCode: import("zod").ZodNumber;
|
|
72
|
+
payload: import("zod").ZodObject<{
|
|
73
|
+
message: import("zod").ZodString;
|
|
74
|
+
errorCode: import("zod").ZodString;
|
|
75
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
75
76
|
}, import("zod/v4/core").$strip>;
|
|
76
|
-
}, import("zod/v4/core").$strip>, import("zod
|
|
77
|
-
message: import("zod
|
|
78
|
-
errorCode: import("zod
|
|
79
|
-
details: import("zod
|
|
77
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
78
|
+
message: import("zod").ZodString;
|
|
79
|
+
errorCode: import("zod").ZodString;
|
|
80
|
+
details: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>;
|
|
80
81
|
}, import("zod/v4/core").$strip>]>;
|
|
81
82
|
}>;
|
|
82
83
|
};
|
|
@@ -18,7 +18,7 @@ export class TranslateController extends AbstractController {
|
|
|
18
18
|
get postTranslate() {
|
|
19
19
|
return buildFastifyPayloadRoute(postTranslateContract, async (req, reply) => {
|
|
20
20
|
const adapter = resolveAdapter(this.adapters, req.headers[CONNECTOR_ID_HEADER]);
|
|
21
|
-
const items = await adapter.translateService.getContent(req.integrationConfig, req.authConfig, req.body.locales, req.body.items, req.body.defaultLocale, req.reqContext);
|
|
21
|
+
const items = await adapter.translateService.getContent(req.integrationConfig, req.authConfig, req.body.locales, req.body.items, req.body.defaultLocale, req.reqContext, { ...req.body });
|
|
22
22
|
req.reqContext.logger.debug({
|
|
23
23
|
itemsCount: items.length,
|
|
24
24
|
items: stringValueSerializer(items),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translateController.js","sourceRoot":"","sources":["../../src/translate/translateController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAC9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EAAE,kBAAkB,EAA8B,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,mBAAmB,CAAA;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAI3D,MAAM,OAAO,mBAAoB,SAAQ,kBAAoD;IACpF,MAAM,CAAC,SAAS,GAAG;QACxB,aAAa,EAAE,qBAAqB;KAC5B,CAAA;IACO,QAAQ,CAAyB;IACjC,4BAA4B,CAAqC;IAElF,YAAY,YAAwC;QAClD,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAA;QACrC,IAAI,CAAC,4BAA4B,GAAG,YAAY,CAAC,mCAAmC,CAAA;IACtF,CAAC;IAED,IAAY,aAAa;QACvB,OAAO,wBAAwB,CAC7B,qBAAqB,EACrB,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;YACnB,MAAM,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAA;YAC/E,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,gBAAgB,CAAC,UAAU,CACrD,GAAG,CAAC,iBAAiB,EACrB,GAAG,CAAC,UAAU,EACd,GAAG,CAAC,IAAI,CAAC,OAAO,EAChB,GAAG,CAAC,IAAI,CAAC,KAAK,EACd,GAAG,CAAC,IAAI,CAAC,aAAa,EACtB,GAAG,CAAC,UAAU,
|
|
1
|
+
{"version":3,"file":"translateController.js","sourceRoot":"","sources":["../../src/translate/translateController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAA;AAC9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAA;AAC1E,OAAO,EAAE,kBAAkB,EAA8B,MAAM,qBAAqB,CAAA;AACpF,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAA;AAKrE,OAAO,mBAAmB,CAAA;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAA;AAI3D,MAAM,OAAO,mBAAoB,SAAQ,kBAAoD;IACpF,MAAM,CAAC,SAAS,GAAG;QACxB,aAAa,EAAE,qBAAqB;KAC5B,CAAA;IACO,QAAQ,CAAyB;IACjC,4BAA4B,CAAqC;IAElF,YAAY,YAAwC;QAClD,KAAK,EAAE,CAAA;QAEP,IAAI,CAAC,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAA;QACrC,IAAI,CAAC,4BAA4B,GAAG,YAAY,CAAC,mCAAmC,CAAA;IACtF,CAAC;IAED,IAAY,aAAa;QACvB,OAAO,wBAAwB,CAC7B,qBAAqB,EACrB,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;YACnB,MAAM,OAAO,GAAG,cAAc,CAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAA;YAC/E,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,gBAAgB,CAAC,UAAU,CACrD,GAAG,CAAC,iBAAiB,EACrB,GAAG,CAAC,UAAU,EACd,GAAG,CAAC,IAAI,CAAC,OAAO,EAChB,GAAG,CAAC,IAAI,CAAC,KAAK,EACd,GAAG,CAAC,IAAI,CAAC,aAAa,EACtB,GAAG,CAAC,UAAU,EACd,EAAE,GAAG,GAAG,CAAC,IAAI,EAAE,CAChB,CAAA;YAED,GAAG,CAAC,UAAU,CAAC,MAAM,CAAC,KAAK,CACzB;gBACE,UAAU,EAAE,KAAK,CAAC,MAAM;gBACxB,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC;aACpC,EACD,0BAA0B,OAAO,CAAC,gBAAgB,EAAE,UAAU,CAC/D,CAAA;YAED,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;QAC7B,CAAC,EACD,IAAI,CAAC,4BAA4B,EAAE,CACpC,CAAA;IACH,CAAC;IAED,WAAW;QACT,OAAO;YACL,aAAa,EAAE,IAAI,CAAC,aAAa;SACyB,CAAA;IAC9D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokalise/connector-shell",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -36,15 +36,15 @@
|
|
|
36
36
|
],
|
|
37
37
|
"author": "Lokalise",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@lokalise/connector-adapter-common": "
|
|
40
|
-
"@lokalise/fastify-api-contracts": "^5.
|
|
39
|
+
"@lokalise/connector-adapter-common": "*",
|
|
40
|
+
"@lokalise/fastify-api-contracts": "^5.3.0",
|
|
41
41
|
"@lokalise/fastify-extras": "^30.3.0",
|
|
42
42
|
"@lokalise/node-core": "^14.7.0",
|
|
43
43
|
"fastify-type-provider-zod": "^6.1.0",
|
|
44
|
-
"opinionated-machine": "^5.
|
|
44
|
+
"opinionated-machine": "^5.2.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@lokalise/connector-api-contracts": "^1.
|
|
47
|
+
"@lokalise/connector-api-contracts": "^1.29.2",
|
|
48
48
|
"zod": "^4.1.12",
|
|
49
49
|
"fastify": "^5.6.2"
|
|
50
50
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@biomejs/biome": "^2.3.8",
|
|
53
53
|
"@lokalise/biome-config": "^3.1.1",
|
|
54
54
|
"@lokalise/tsconfig": "^3.1.0",
|
|
55
|
-
"@types/node": "^25.
|
|
55
|
+
"@types/node": "^25.2.3",
|
|
56
56
|
"@vitest/coverage-v8": "^3.2.4",
|
|
57
57
|
"typescript": "^5.9.3",
|
|
58
58
|
"vitest": "^3.2.4"
|