@lokalise/polyglot-sdk 5.4.0 → 5.4.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.
@@ -8,13 +8,21 @@ export type TranslateAsyncCallbackRequestBody = {
8
8
  errors: CommonErrorType[];
9
9
  };
10
10
  };
11
+ export type LqaAsyncCallbackData = {
12
+ contentUnitId: string;
13
+ translationId: string;
14
+ suggestion: string | null;
15
+ issues: LqaIssue[];
16
+ };
17
+ export type LqaAsyncCallbackError = {
18
+ contentUnitId: string;
19
+ translationId: string;
20
+ errorCode: string;
21
+ message: string;
22
+ details?: Record<string, unknown>;
23
+ };
11
24
  export type LqaAsyncCallbackRequestBody = {
12
25
  originCorrelationId: string;
13
- data: {
14
- contentUnitId: string;
15
- translationId: string;
16
- suggestion: string | null;
17
- issues: LqaIssue[];
18
- }[];
19
- errors: CommonErrorType[];
26
+ data: LqaAsyncCallbackData[];
27
+ errors: LqaAsyncCallbackError[];
20
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokalise/polyglot-sdk",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
4
4
  "author": {
5
5
  "name": "Lokalise",
6
6
  "url": "https://lokalise.com/"