@lokalise/polyglot-sdk 5.2.0 → 5.4.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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
type ObjectValues<T> = T[keyof T];
|
|
1
2
|
export type PolyglotClientSyncIterativeResponse<T extends ContentUnitLqaResponse | ContentUnitTranslationResponse> = {
|
|
2
3
|
segmentIdsProcessedByContentUnitId: Record<string, string[]>;
|
|
3
4
|
response: T[];
|
|
@@ -9,11 +10,17 @@ export type PolyglotSyncResponse<T extends object> = {
|
|
|
9
10
|
errors?: CommonErrorType[];
|
|
10
11
|
integration: string;
|
|
11
12
|
};
|
|
13
|
+
export declare const ErrorCodeEnum: {
|
|
14
|
+
readonly EDITED_NON_TRANSLATABLE_CONTENT: "EDITED_NON_TRANSLATABLE_CONTENT_ERROR";
|
|
15
|
+
readonly TRANSLATION_FAILED: "TRANSLATION_FAILED";
|
|
16
|
+
};
|
|
17
|
+
export type ErrorCode = ObjectValues<typeof ErrorCodeEnum>;
|
|
12
18
|
export type CommonErrorType = {
|
|
13
19
|
errorCode: string;
|
|
14
20
|
message: string;
|
|
15
21
|
details?: {
|
|
16
22
|
segmentId?: string;
|
|
23
|
+
actualFailedSegmentId?: string;
|
|
17
24
|
cause?: string;
|
|
18
25
|
options?: Record<string, unknown>;
|
|
19
26
|
};
|
|
@@ -75,3 +82,4 @@ export type TranslateAsyncResponse = {
|
|
|
75
82
|
expectedAt: string;
|
|
76
83
|
};
|
|
77
84
|
export type LqaAsyncResponse = TranslateAsyncResponse;
|
|
85
|
+
export {};
|
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ErrorCodeEnum = void 0;
|
|
4
|
+
exports.ErrorCodeEnum = {
|
|
5
|
+
EDITED_NON_TRANSLATABLE_CONTENT: 'EDITED_NON_TRANSLATABLE_CONTENT_ERROR',
|
|
6
|
+
TRANSLATION_FAILED: 'TRANSLATION_FAILED',
|
|
7
|
+
};
|
|
3
8
|
//# sourceMappingURL=responses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/sdk/types/responses.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/sdk/types/responses.ts"],"names":[],"mappings":";;;AAiBa,QAAA,aAAa,GAAG;IAC3B,+BAA+B,EAAE,uCAAuC;IACxE,kBAAkB,EAAE,oBAAoB;CAChC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lokalise/polyglot-sdk",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Lokalise",
|
|
6
6
|
"url": "https://lokalise.com/"
|
|
@@ -32,12 +32,12 @@
|
|
|
32
32
|
"prepublishOnly": "npm run build:publish"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@amplitude/analytics-types": "^2.5.
|
|
35
|
+
"@amplitude/analytics-types": "^2.5.1",
|
|
36
36
|
"@lokalise/fastify-extras": "^20.0.0",
|
|
37
37
|
"@lokalise/id-utils": "^2.0.0",
|
|
38
|
-
"@lokalise/node-core": "^9.
|
|
38
|
+
"@lokalise/node-core": "^9.20.0",
|
|
39
39
|
"@lokalise/zod-extras": "^2.0.1",
|
|
40
|
-
"undici": "^6.18.
|
|
40
|
+
"undici": "^6.18.1",
|
|
41
41
|
"undici-retry": "^5.0.2",
|
|
42
42
|
"zod": "^3.23.4"
|
|
43
43
|
},
|