@alicloud/aidge20260428 2.0.0 → 3.0.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/dist/client.d.ts +230 -246
- package/dist/client.js +263 -288
- package/dist/client.js.map +1 -1
- package/dist/models/DocumentTranslateRequest.d.ts +3 -3
- package/dist/models/DocumentTranslateResponseBody.d.ts +3 -5
- package/dist/models/DocumentTranslateResponseBody.js.map +1 -1
- package/dist/models/ImageMattingRequest.d.ts +7 -7
- package/dist/models/ImageMattingResponseBody.d.ts +2 -2
- package/dist/models/ImageRemovalProRequest.d.ts +35 -0
- package/dist/models/{ImageTranslationPlusRequest.js → ImageRemovalProRequest.js} +6 -16
- package/dist/models/ImageRemovalProRequest.js.map +1 -0
- package/dist/models/{ImageTranslationPlusResponse.d.ts → ImageRemovalProResponse.d.ts} +3 -3
- package/dist/models/{ImageTranslationPlusResponse.js → ImageRemovalProResponse.js} +6 -6
- package/dist/models/ImageRemovalProResponse.js.map +1 -0
- package/dist/models/{ImageTranslationPlusResponseBody.d.ts → ImageRemovalProResponseBody.d.ts} +21 -6
- package/dist/models/{ImageTranslationPlusResponseBody.js → ImageRemovalProResponseBody.js} +14 -7
- package/dist/models/ImageRemovalProResponseBody.js.map +1 -0
- package/dist/models/ImageRemoveRequest.d.ts +15 -5
- package/dist/models/ImageRemoveRequest.js.map +1 -1
- package/dist/models/ImageRemoveResponseBody.d.ts +8 -8
- package/dist/models/ImageRemoveShrinkRequest.d.ts +15 -5
- package/dist/models/ImageRemoveShrinkRequest.js.map +1 -1
- package/dist/models/ImageTranslationProRequest.d.ts +11 -7
- package/dist/models/ImageTranslationProRequest.js.map +1 -1
- package/dist/models/ImageTranslationProResponseBody.d.ts +55 -55
- package/dist/models/MaterialInspectionRequest.d.ts +14 -0
- package/dist/models/MaterialInspectionRequest.js.map +1 -1
- package/dist/models/MaterialInspectionResponseBody.d.ts +45 -0
- package/dist/models/MaterialInspectionResponseBody.js.map +1 -1
- package/dist/models/TextTranslateRequest.d.ts +15 -5
- package/dist/models/TextTranslateRequest.js +4 -0
- package/dist/models/TextTranslateRequest.js.map +1 -1
- package/dist/models/TextTranslateResponseBody.d.ts +7 -7
- package/dist/models/TextTranslateShrinkRequest.d.ts +15 -5
- package/dist/models/TextTranslateShrinkRequest.js +4 -0
- package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
- package/dist/models/model.d.ts +4 -4
- package/dist/models/model.js +10 -10
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +269 -297
- package/src/models/DocumentTranslateRequest.ts +3 -3
- package/src/models/DocumentTranslateResponseBody.ts +3 -5
- package/src/models/ImageMattingRequest.ts +7 -7
- package/src/models/ImageMattingResponseBody.ts +2 -2
- package/src/models/ImageRemovalProRequest.ts +50 -0
- package/src/models/{ImageTranslationPlusResponse.ts → ImageRemovalProResponse.ts} +4 -4
- package/src/models/{ImageTranslationPlusResponseBody.ts → ImageRemovalProResponseBody.ts} +27 -7
- package/src/models/ImageRemoveRequest.ts +15 -5
- package/src/models/ImageRemoveResponseBody.ts +8 -8
- package/src/models/ImageRemoveShrinkRequest.ts +15 -5
- package/src/models/ImageTranslationProRequest.ts +11 -7
- package/src/models/ImageTranslationProResponseBody.ts +55 -55
- package/src/models/MaterialInspectionRequest.ts +14 -0
- package/src/models/MaterialInspectionResponseBody.ts +45 -0
- package/src/models/TextTranslateRequest.ts +19 -5
- package/src/models/TextTranslateResponseBody.ts +7 -7
- package/src/models/TextTranslateShrinkRequest.ts +19 -5
- package/src/models/model.ts +4 -4
- package/dist/models/ImageTranslationPlusRequest.d.ts +0 -75
- package/dist/models/ImageTranslationPlusRequest.js.map +0 -1
- package/dist/models/ImageTranslationPlusResponse.js.map +0 -1
- package/dist/models/ImageTranslationPlusResponseBody.js.map +0 -1
- package/src/models/ImageTranslationPlusRequest.ts +0 -100
|
@@ -55,12 +55,12 @@ export class TextTranslateResponseBodyDataTranslations extends $dara.Model {
|
|
|
55
55
|
export class TextTranslateResponseBodyData extends $dara.Model {
|
|
56
56
|
/**
|
|
57
57
|
* @remarks
|
|
58
|
-
* The
|
|
58
|
+
* The translation result list. Each element corresponds to a translation result for an entry in the input text list.
|
|
59
59
|
*/
|
|
60
60
|
translations?: TextTranslateResponseBodyDataTranslations[];
|
|
61
61
|
/**
|
|
62
62
|
* @remarks
|
|
63
|
-
* The usage information, including the
|
|
63
|
+
* The usage information, including the input character count.
|
|
64
64
|
*
|
|
65
65
|
* @example
|
|
66
66
|
* {"InputCharacterCount":5}
|
|
@@ -98,7 +98,7 @@ export class TextTranslateResponseBodyData extends $dara.Model {
|
|
|
98
98
|
export class TextTranslateResponseBody extends $dara.Model {
|
|
99
99
|
/**
|
|
100
100
|
* @remarks
|
|
101
|
-
* The response code.
|
|
101
|
+
* The response code. Returns "success" for successful calls.
|
|
102
102
|
*
|
|
103
103
|
* @example
|
|
104
104
|
* success
|
|
@@ -106,12 +106,12 @@ export class TextTranslateResponseBody extends $dara.Model {
|
|
|
106
106
|
code?: string;
|
|
107
107
|
/**
|
|
108
108
|
* @remarks
|
|
109
|
-
* The translation result data,
|
|
109
|
+
* The translation result data, including the translation list and usage information.
|
|
110
110
|
*/
|
|
111
111
|
data?: TextTranslateResponseBodyData;
|
|
112
112
|
/**
|
|
113
113
|
* @remarks
|
|
114
|
-
* The error message.
|
|
114
|
+
* The error message. Returns "Success" for successful calls. Returns specific error information for exceptions, such as "The parameters contain sensitive information. Try other input."
|
|
115
115
|
*
|
|
116
116
|
* @example
|
|
117
117
|
* Success
|
|
@@ -119,7 +119,7 @@ export class TextTranslateResponseBody extends $dara.Model {
|
|
|
119
119
|
message?: string;
|
|
120
120
|
/**
|
|
121
121
|
* @remarks
|
|
122
|
-
* The request ID,
|
|
122
|
+
* The request ID, used to identify a unique request call.
|
|
123
123
|
*
|
|
124
124
|
* @example
|
|
125
125
|
* 922E43BB-EE0E-1A29-B143-BB91BB3EA6AB
|
|
@@ -127,7 +127,7 @@ export class TextTranslateResponseBody extends $dara.Model {
|
|
|
127
127
|
requestId?: string;
|
|
128
128
|
/**
|
|
129
129
|
* @remarks
|
|
130
|
-
* Indicates whether the call is successful.
|
|
130
|
+
* Indicates whether the call is successful. true indicates success. false indicates failure.
|
|
131
131
|
*
|
|
132
132
|
* @example
|
|
133
133
|
* true
|
|
@@ -3,9 +3,14 @@ import * as $dara from '@darabonba/typescript';
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
export class TextTranslateShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @example
|
|
8
|
+
* MyCompany-Chat
|
|
9
|
+
*/
|
|
10
|
+
bizName?: string;
|
|
6
11
|
/**
|
|
7
12
|
* @remarks
|
|
8
|
-
* The format type of the source text.
|
|
13
|
+
* The format type of the source text. This parameter is optional. Valid values: text (plain text format) and html (web page format that preserves HTML tags).
|
|
9
14
|
*
|
|
10
15
|
* @example
|
|
11
16
|
* text
|
|
@@ -13,7 +18,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
13
18
|
formatType?: string;
|
|
14
19
|
/**
|
|
15
20
|
* @remarks
|
|
16
|
-
* The intervention glossary ID.
|
|
21
|
+
* The intervention glossary ID. This parameter is optional. The glossary must be created separately in the console and its ID provided here. If the glossary ID is empty, the translation result is not modified.
|
|
17
22
|
*
|
|
18
23
|
* @example
|
|
19
24
|
* glossary_1
|
|
@@ -21,7 +26,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
21
26
|
glossary?: string;
|
|
22
27
|
/**
|
|
23
28
|
* @remarks
|
|
24
|
-
* The source language code.
|
|
29
|
+
* The source language code. This parameter is optional. If not specified, the language is automatically detected. You can pass auto for language detection.
|
|
25
30
|
*
|
|
26
31
|
* @example
|
|
27
32
|
* auto
|
|
@@ -29,7 +34,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
29
34
|
sourceLanguage?: string;
|
|
30
35
|
/**
|
|
31
36
|
* @remarks
|
|
32
|
-
* The list of texts to translate.
|
|
37
|
+
* The list of texts to translate. This parameter is required. The total character length cannot exceed 50,000, and the list length cannot exceed 50.
|
|
33
38
|
*
|
|
34
39
|
* This parameter is required.
|
|
35
40
|
*
|
|
@@ -39,7 +44,7 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
39
44
|
sourceTextListShrink?: string;
|
|
40
45
|
/**
|
|
41
46
|
* @remarks
|
|
42
|
-
* The target language code.
|
|
47
|
+
* The target language code. This parameter is required. More than 100 language directions are supported. For details, refer to the supported language directions list.
|
|
43
48
|
*
|
|
44
49
|
* This parameter is required.
|
|
45
50
|
*
|
|
@@ -47,23 +52,32 @@ export class TextTranslateShrinkRequest extends $dara.Model {
|
|
|
47
52
|
* ko
|
|
48
53
|
*/
|
|
49
54
|
targetLanguage?: string;
|
|
55
|
+
/**
|
|
56
|
+
* @example
|
|
57
|
+
* e-commerce-title
|
|
58
|
+
*/
|
|
59
|
+
translateScene?: string;
|
|
50
60
|
static names(): { [key: string]: string } {
|
|
51
61
|
return {
|
|
62
|
+
bizName: 'BizName',
|
|
52
63
|
formatType: 'FormatType',
|
|
53
64
|
glossary: 'Glossary',
|
|
54
65
|
sourceLanguage: 'SourceLanguage',
|
|
55
66
|
sourceTextListShrink: 'SourceTextList',
|
|
56
67
|
targetLanguage: 'TargetLanguage',
|
|
68
|
+
translateScene: 'TranslateScene',
|
|
57
69
|
};
|
|
58
70
|
}
|
|
59
71
|
|
|
60
72
|
static types(): { [key: string]: any } {
|
|
61
73
|
return {
|
|
74
|
+
bizName: 'string',
|
|
62
75
|
formatType: 'string',
|
|
63
76
|
glossary: 'string',
|
|
64
77
|
sourceLanguage: 'string',
|
|
65
78
|
sourceTextListShrink: 'string',
|
|
66
79
|
targetLanguage: 'string',
|
|
80
|
+
translateScene: 'string',
|
|
67
81
|
};
|
|
68
82
|
}
|
|
69
83
|
|
package/src/models/model.ts
CHANGED
|
@@ -8,8 +8,8 @@ export { DocumentTranslateResponseBodyData } from './DocumentTranslateResponseBo
|
|
|
8
8
|
export { ImageCroppingResponseBodyData } from './ImageCroppingResponseBody';
|
|
9
9
|
export { ImageMattingResponseBodyData } from './ImageMattingResponseBody';
|
|
10
10
|
export { ImageRecognitionResponseBodyData } from './ImageRecognitionResponseBody';
|
|
11
|
+
export { ImageRemovalProResponseBodyData } from './ImageRemovalProResponseBody';
|
|
11
12
|
export { ImageRemoveResponseBodyData } from './ImageRemoveResponseBody';
|
|
12
|
-
export { ImageTranslationPlusResponseBodyData } from './ImageTranslationPlusResponseBody';
|
|
13
13
|
export { ImageTranslationProResponseBodyDataGenFilesEditInfoGoodsRects } from './ImageTranslationProResponseBody';
|
|
14
14
|
export { ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsImageRect } from './ImageTranslationProResponseBody';
|
|
15
15
|
export { ImageTranslationProResponseBodyDataGenFilesEditInfoTextAreasTextsTextRect } from './ImageTranslationProResponseBody';
|
|
@@ -60,13 +60,13 @@ export { ImageRecognitionRequest } from './ImageRecognitionRequest';
|
|
|
60
60
|
export { ImageRecognitionShrinkRequest } from './ImageRecognitionShrinkRequest';
|
|
61
61
|
export { ImageRecognitionResponseBody } from './ImageRecognitionResponseBody';
|
|
62
62
|
export { ImageRecognitionResponse } from './ImageRecognitionResponse';
|
|
63
|
+
export { ImageRemovalProRequest } from './ImageRemovalProRequest';
|
|
64
|
+
export { ImageRemovalProResponseBody } from './ImageRemovalProResponseBody';
|
|
65
|
+
export { ImageRemovalProResponse } from './ImageRemovalProResponse';
|
|
63
66
|
export { ImageRemoveRequest } from './ImageRemoveRequest';
|
|
64
67
|
export { ImageRemoveShrinkRequest } from './ImageRemoveShrinkRequest';
|
|
65
68
|
export { ImageRemoveResponseBody } from './ImageRemoveResponseBody';
|
|
66
69
|
export { ImageRemoveResponse } from './ImageRemoveResponse';
|
|
67
|
-
export { ImageTranslationPlusRequest } from './ImageTranslationPlusRequest';
|
|
68
|
-
export { ImageTranslationPlusResponseBody } from './ImageTranslationPlusResponseBody';
|
|
69
|
-
export { ImageTranslationPlusResponse } from './ImageTranslationPlusResponse';
|
|
70
70
|
export { ImageTranslationProRequest } from './ImageTranslationProRequest';
|
|
71
71
|
export { ImageTranslationProResponseBody } from './ImageTranslationProResponseBody';
|
|
72
72
|
export { ImageTranslationProResponse } from './ImageTranslationProResponse';
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import * as $dara from '@darabonba/typescript';
|
|
2
|
-
export declare class ImageTranslationPlusRequest extends $dara.Model {
|
|
3
|
-
/**
|
|
4
|
-
* @remarks
|
|
5
|
-
* The ID of the intervention glossary. This parameter is optional.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* glossary-001
|
|
9
|
-
*/
|
|
10
|
-
glossary?: string;
|
|
11
|
-
/**
|
|
12
|
-
* @remarks
|
|
13
|
-
* The URL of the original image. This parameter is required.
|
|
14
|
-
*
|
|
15
|
-
* This parameter is required.
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* https://img.alicdn.com/example.png
|
|
19
|
-
*/
|
|
20
|
-
imageUrl?: string;
|
|
21
|
-
/**
|
|
22
|
-
* @remarks
|
|
23
|
-
* Specifies whether to translate text on the product body. This parameter is optional. Default value: false.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* false
|
|
27
|
-
*/
|
|
28
|
-
includingProductArea?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* @remarks
|
|
31
|
-
* The source language. This parameter is required.
|
|
32
|
-
*
|
|
33
|
-
* This parameter is required.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* zh
|
|
37
|
-
*/
|
|
38
|
-
sourceLanguage?: string;
|
|
39
|
-
/**
|
|
40
|
-
* @remarks
|
|
41
|
-
* The target language. This parameter is required.
|
|
42
|
-
*
|
|
43
|
-
* This parameter is required.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* en
|
|
47
|
-
*/
|
|
48
|
-
targetLanguage?: string;
|
|
49
|
-
/**
|
|
50
|
-
* @remarks
|
|
51
|
-
* Specifies whether to translate brand text on the product. This parameter is optional. Default value: false.
|
|
52
|
-
*
|
|
53
|
-
* @example
|
|
54
|
-
* false
|
|
55
|
-
*/
|
|
56
|
-
translatingBrandInTheProduct?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* @remarks
|
|
59
|
-
* Specifies whether to use the image translation editor protocol. This parameter is optional.
|
|
60
|
-
*
|
|
61
|
-
* @example
|
|
62
|
-
* false
|
|
63
|
-
*/
|
|
64
|
-
useImageEditor?: boolean;
|
|
65
|
-
static names(): {
|
|
66
|
-
[key: string]: string;
|
|
67
|
-
};
|
|
68
|
-
static types(): {
|
|
69
|
-
[key: string]: any;
|
|
70
|
-
};
|
|
71
|
-
validate(): void;
|
|
72
|
-
constructor(map?: {
|
|
73
|
-
[key: string]: any;
|
|
74
|
-
});
|
|
75
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageTranslationPlusRequest.js","sourceRoot":"","sources":["../../src/models/ImageTranslationPlusRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,2BAA4B,SAAQ,KAAK,CAAC,KAAK;IA+D1D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,UAAU;YACpB,QAAQ,EAAE,UAAU;YACpB,oBAAoB,EAAE,sBAAsB;YAC5C,cAAc,EAAE,gBAAgB;YAChC,cAAc,EAAE,gBAAgB;YAChC,4BAA4B,EAAE,8BAA8B;YAC5D,cAAc,EAAE,gBAAgB;SACjC,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,QAAQ,EAAE,QAAQ;YAClB,QAAQ,EAAE,QAAQ;YAClB,oBAAoB,EAAE,SAAS;YAC/B,cAAc,EAAE,QAAQ;YACxB,cAAc,EAAE,QAAQ;YACxB,4BAA4B,EAAE,SAAS;YACvC,cAAc,EAAE,SAAS;SAC1B,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA9FD,kEA8FC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageTranslationPlusResponse.js","sourceRoot":"","sources":["../../src/models/ImageTranslationPlusResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAC/C,yFAAsF;AAGtF,MAAa,4BAA6B,SAAQ,KAAK,CAAC,KAAK;IAI3D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;YACtE,UAAU,EAAE,QAAQ;YACpB,IAAI,EAAE,mEAAgC;SACvC,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,EAAE,CAAC;YAChB,KAAK,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,CAAC;QACD,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAjCD,oEAiCC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ImageTranslationPlusResponseBody.js","sourceRoot":"","sources":["../../src/models/ImageTranslationPlusResponseBody.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,oCAAqC,SAAQ,KAAK,CAAC,KAAK;IASnE,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,MAAM,EAAE,QAAQ;SACjB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AA5BD,oFA4BC;AAED,MAAa,gCAAiC,SAAQ,KAAK,CAAC,KAAK;IAwC/D,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,OAAO,EAAE,SAAS;YAClB,SAAS,EAAE,WAAW;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,IAAI,EAAE,QAAQ;YACd,IAAI,EAAE,oCAAoC;YAC1C,OAAO,EAAE,QAAQ;YACjB,SAAS,EAAE,QAAQ;YACnB,OAAO,EAAE,SAAS;SACnB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,IAAI,IAAI,OAAQ,IAAI,CAAC,IAAY,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjE,IAAI,CAAC,IAAY,CAAC,QAAQ,EAAE,CAAC;QAChC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAtED,4EAsEC"}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated, don't edit it
|
|
2
|
-
import * as $dara from '@darabonba/typescript';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export class ImageTranslationPlusRequest extends $dara.Model {
|
|
6
|
-
/**
|
|
7
|
-
* @remarks
|
|
8
|
-
* The ID of the intervention glossary. This parameter is optional.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* glossary-001
|
|
12
|
-
*/
|
|
13
|
-
glossary?: string;
|
|
14
|
-
/**
|
|
15
|
-
* @remarks
|
|
16
|
-
* The URL of the original image. This parameter is required.
|
|
17
|
-
*
|
|
18
|
-
* This parameter is required.
|
|
19
|
-
*
|
|
20
|
-
* @example
|
|
21
|
-
* https://img.alicdn.com/example.png
|
|
22
|
-
*/
|
|
23
|
-
imageUrl?: string;
|
|
24
|
-
/**
|
|
25
|
-
* @remarks
|
|
26
|
-
* Specifies whether to translate text on the product body. This parameter is optional. Default value: false.
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* false
|
|
30
|
-
*/
|
|
31
|
-
includingProductArea?: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* @remarks
|
|
34
|
-
* The source language. This parameter is required.
|
|
35
|
-
*
|
|
36
|
-
* This parameter is required.
|
|
37
|
-
*
|
|
38
|
-
* @example
|
|
39
|
-
* zh
|
|
40
|
-
*/
|
|
41
|
-
sourceLanguage?: string;
|
|
42
|
-
/**
|
|
43
|
-
* @remarks
|
|
44
|
-
* The target language. This parameter is required.
|
|
45
|
-
*
|
|
46
|
-
* This parameter is required.
|
|
47
|
-
*
|
|
48
|
-
* @example
|
|
49
|
-
* en
|
|
50
|
-
*/
|
|
51
|
-
targetLanguage?: string;
|
|
52
|
-
/**
|
|
53
|
-
* @remarks
|
|
54
|
-
* Specifies whether to translate brand text on the product. This parameter is optional. Default value: false.
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* false
|
|
58
|
-
*/
|
|
59
|
-
translatingBrandInTheProduct?: boolean;
|
|
60
|
-
/**
|
|
61
|
-
* @remarks
|
|
62
|
-
* Specifies whether to use the image translation editor protocol. This parameter is optional.
|
|
63
|
-
*
|
|
64
|
-
* @example
|
|
65
|
-
* false
|
|
66
|
-
*/
|
|
67
|
-
useImageEditor?: boolean;
|
|
68
|
-
static names(): { [key: string]: string } {
|
|
69
|
-
return {
|
|
70
|
-
glossary: 'Glossary',
|
|
71
|
-
imageUrl: 'ImageUrl',
|
|
72
|
-
includingProductArea: 'IncludingProductArea',
|
|
73
|
-
sourceLanguage: 'SourceLanguage',
|
|
74
|
-
targetLanguage: 'TargetLanguage',
|
|
75
|
-
translatingBrandInTheProduct: 'TranslatingBrandInTheProduct',
|
|
76
|
-
useImageEditor: 'UseImageEditor',
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
static types(): { [key: string]: any } {
|
|
81
|
-
return {
|
|
82
|
-
glossary: 'string',
|
|
83
|
-
imageUrl: 'string',
|
|
84
|
-
includingProductArea: 'boolean',
|
|
85
|
-
sourceLanguage: 'string',
|
|
86
|
-
targetLanguage: 'string',
|
|
87
|
-
translatingBrandInTheProduct: 'boolean',
|
|
88
|
-
useImageEditor: 'boolean',
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
validate() {
|
|
93
|
-
super.validate();
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
constructor(map?: { [key: string]: any }) {
|
|
97
|
-
super(map);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|