@alicloud/aidge20260428 3.1.0 → 4.0.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.
Files changed (46) hide show
  1. package/dist/client.d.ts +81 -52
  2. package/dist/client.js +117 -52
  3. package/dist/client.js.map +1 -1
  4. package/dist/models/ImageTranslationProRequest.d.ts +11 -8
  5. package/dist/models/ImageTranslationProRequest.js.map +1 -1
  6. package/dist/models/ImageTranslationProResponseBody.d.ts +16 -24
  7. package/dist/models/ImageTranslationProResponseBody.js +0 -2
  8. package/dist/models/ImageTranslationProResponseBody.js.map +1 -1
  9. package/dist/models/ImageTranslationStandardRequest.d.ts +14 -6
  10. package/dist/models/ImageTranslationStandardRequest.js +2 -0
  11. package/dist/models/ImageTranslationStandardRequest.js.map +1 -1
  12. package/dist/models/ImageTranslationStandardResponseBody.d.ts +357 -4
  13. package/dist/models/ImageTranslationStandardResponseBody.js +222 -1
  14. package/dist/models/ImageTranslationStandardResponseBody.js.map +1 -1
  15. package/dist/models/MerchandisePlacementDetectionRequest.d.ts +47 -0
  16. package/dist/models/MerchandisePlacementDetectionRequest.js +64 -0
  17. package/dist/models/MerchandisePlacementDetectionRequest.js.map +1 -0
  18. package/dist/models/MerchandisePlacementDetectionResponse.d.ts +19 -0
  19. package/dist/models/MerchandisePlacementDetectionResponse.js +69 -0
  20. package/dist/models/MerchandisePlacementDetectionResponse.js.map +1 -0
  21. package/dist/models/MerchandisePlacementDetectionResponseBody.d.ts +210 -0
  22. package/dist/models/MerchandisePlacementDetectionResponseBody.js +182 -0
  23. package/dist/models/MerchandisePlacementDetectionResponseBody.js.map +1 -0
  24. package/dist/models/QueryAsyncTaskResultResponseBody.d.ts +3 -3
  25. package/dist/models/TextTranslateRequest.d.ts +7 -1
  26. package/dist/models/TextTranslateRequest.js.map +1 -1
  27. package/dist/models/TextTranslateResponseBody.d.ts +4 -4
  28. package/dist/models/TextTranslateShrinkRequest.d.ts +7 -1
  29. package/dist/models/TextTranslateShrinkRequest.js.map +1 -1
  30. package/dist/models/model.d.ts +13 -0
  31. package/dist/models/model.js +32 -6
  32. package/dist/models/model.js.map +1 -1
  33. package/package.json +1 -1
  34. package/src/client.ts +124 -52
  35. package/src/models/ImageTranslationProRequest.ts +11 -8
  36. package/src/models/ImageTranslationProResponseBody.ts +16 -26
  37. package/src/models/ImageTranslationStandardRequest.ts +16 -6
  38. package/src/models/ImageTranslationStandardResponseBody.ts +524 -4
  39. package/src/models/MerchandisePlacementDetectionRequest.ts +66 -0
  40. package/src/models/MerchandisePlacementDetectionResponse.ts +40 -0
  41. package/src/models/MerchandisePlacementDetectionResponseBody.ts +309 -0
  42. package/src/models/QueryAsyncTaskResultResponseBody.ts +3 -3
  43. package/src/models/TextTranslateRequest.ts +7 -1
  44. package/src/models/TextTranslateResponseBody.ts +4 -4
  45. package/src/models/TextTranslateShrinkRequest.ts +7 -1
  46. package/src/models/model.ts +13 -0
@@ -2,7 +2,522 @@
2
2
  import * as $dara from '@darabonba/typescript';
3
3
 
4
4
 
5
+ export class ImageTranslationStandardResponseBodyDataEditInfoGoodsRects extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * The rotation angle.
9
+ */
10
+ degree?: number;
11
+ /**
12
+ * @remarks
13
+ * The height.
14
+ */
15
+ height?: number;
16
+ /**
17
+ * @remarks
18
+ * The left coordinate.
19
+ */
20
+ left?: number;
21
+ /**
22
+ * @remarks
23
+ * The top coordinate.
24
+ */
25
+ top?: number;
26
+ /**
27
+ * @remarks
28
+ * The width.
29
+ */
30
+ width?: number;
31
+ static names(): { [key: string]: string } {
32
+ return {
33
+ degree: 'Degree',
34
+ height: 'Height',
35
+ left: 'Left',
36
+ top: 'Top',
37
+ width: 'Width',
38
+ };
39
+ }
40
+
41
+ static types(): { [key: string]: any } {
42
+ return {
43
+ degree: 'number',
44
+ height: 'number',
45
+ left: 'number',
46
+ top: 'number',
47
+ width: 'number',
48
+ };
49
+ }
50
+
51
+ validate() {
52
+ super.validate();
53
+ }
54
+
55
+ constructor(map?: { [key: string]: any }) {
56
+ super(map);
57
+ }
58
+ }
59
+
60
+ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsImageRect extends $dara.Model {
61
+ /**
62
+ * @remarks
63
+ * The rotation angle.
64
+ */
65
+ degree?: number;
66
+ /**
67
+ * @remarks
68
+ * The height.
69
+ */
70
+ height?: number;
71
+ /**
72
+ * @remarks
73
+ * The left coordinate.
74
+ */
75
+ left?: number;
76
+ /**
77
+ * @remarks
78
+ * The top coordinate.
79
+ */
80
+ top?: number;
81
+ /**
82
+ * @remarks
83
+ * The width.
84
+ */
85
+ width?: number;
86
+ static names(): { [key: string]: string } {
87
+ return {
88
+ degree: 'Degree',
89
+ height: 'Height',
90
+ left: 'Left',
91
+ top: 'Top',
92
+ width: 'Width',
93
+ };
94
+ }
95
+
96
+ static types(): { [key: string]: any } {
97
+ return {
98
+ degree: 'number',
99
+ height: 'number',
100
+ left: 'number',
101
+ top: 'number',
102
+ width: 'number',
103
+ };
104
+ }
105
+
106
+ validate() {
107
+ super.validate();
108
+ }
109
+
110
+ constructor(map?: { [key: string]: any }) {
111
+ super(map);
112
+ }
113
+ }
114
+
115
+ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsTextRect extends $dara.Model {
116
+ /**
117
+ * @remarks
118
+ * The rotation angle.
119
+ */
120
+ degree?: number;
121
+ /**
122
+ * @remarks
123
+ * The height.
124
+ */
125
+ height?: number;
126
+ /**
127
+ * @remarks
128
+ * The left coordinate.
129
+ */
130
+ left?: number;
131
+ /**
132
+ * @remarks
133
+ * The top coordinate.
134
+ */
135
+ top?: number;
136
+ /**
137
+ * @remarks
138
+ * The width.
139
+ */
140
+ width?: number;
141
+ static names(): { [key: string]: string } {
142
+ return {
143
+ degree: 'Degree',
144
+ height: 'Height',
145
+ left: 'Left',
146
+ top: 'Top',
147
+ width: 'Width',
148
+ };
149
+ }
150
+
151
+ static types(): { [key: string]: any } {
152
+ return {
153
+ degree: 'number',
154
+ height: 'number',
155
+ left: 'number',
156
+ top: 'number',
157
+ width: 'number',
158
+ };
159
+ }
160
+
161
+ validate() {
162
+ super.validate();
163
+ }
164
+
165
+ constructor(map?: { [key: string]: any }) {
166
+ super(map);
167
+ }
168
+ }
169
+
170
+ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts extends $dara.Model {
171
+ /**
172
+ * @remarks
173
+ * The color.
174
+ *
175
+ * @example
176
+ * #9d7746
177
+ */
178
+ color?: string;
179
+ /**
180
+ * @remarks
181
+ * The font size.
182
+ *
183
+ * @example
184
+ * 42
185
+ */
186
+ fontsize?: number;
187
+ /**
188
+ * @remarks
189
+ * The horizontal layout.
190
+ *
191
+ * @example
192
+ * left
193
+ */
194
+ horizontalLayout?: string;
195
+ /**
196
+ * @remarks
197
+ * The image area.
198
+ */
199
+ imageRect?: ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsImageRect;
200
+ /**
201
+ * @remarks
202
+ * The language.
203
+ *
204
+ * @example
205
+ * zh
206
+ */
207
+ language?: string;
208
+ /**
209
+ * @remarks
210
+ * The line count.
211
+ *
212
+ * @example
213
+ * 1
214
+ */
215
+ lineCount?: number;
216
+ /**
217
+ * @remarks
218
+ * The text area.
219
+ */
220
+ textRect?: ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsTextRect;
221
+ /**
222
+ * @remarks
223
+ * Indicates whether the text is valid.
224
+ *
225
+ * @example
226
+ * true
227
+ */
228
+ valid?: boolean;
229
+ /**
230
+ * @remarks
231
+ * The text value.
232
+ *
233
+ * @example
234
+ * Solid Wood Wardrobe.
235
+ */
236
+ value?: string;
237
+ /**
238
+ * @remarks
239
+ * The vertical layout.
240
+ *
241
+ * @example
242
+ * center
243
+ */
244
+ verticalLayout?: string;
245
+ static names(): { [key: string]: string } {
246
+ return {
247
+ color: 'Color',
248
+ fontsize: 'Fontsize',
249
+ horizontalLayout: 'HorizontalLayout',
250
+ imageRect: 'ImageRect',
251
+ language: 'Language',
252
+ lineCount: 'LineCount',
253
+ textRect: 'TextRect',
254
+ valid: 'Valid',
255
+ value: 'Value',
256
+ verticalLayout: 'VerticalLayout',
257
+ };
258
+ }
259
+
260
+ static types(): { [key: string]: any } {
261
+ return {
262
+ color: 'string',
263
+ fontsize: 'number',
264
+ horizontalLayout: 'string',
265
+ imageRect: ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsImageRect,
266
+ language: 'string',
267
+ lineCount: 'number',
268
+ textRect: ImageTranslationStandardResponseBodyDataEditInfoTextAreasTextsTextRect,
269
+ valid: 'boolean',
270
+ value: 'string',
271
+ verticalLayout: 'string',
272
+ };
273
+ }
274
+
275
+ validate() {
276
+ if(this.imageRect && typeof (this.imageRect as any).validate === 'function') {
277
+ (this.imageRect as any).validate();
278
+ }
279
+ if(this.textRect && typeof (this.textRect as any).validate === 'function') {
280
+ (this.textRect as any).validate();
281
+ }
282
+ super.validate();
283
+ }
284
+
285
+ constructor(map?: { [key: string]: any }) {
286
+ super(map);
287
+ }
288
+ }
289
+
290
+ export class ImageTranslationStandardResponseBodyDataEditInfoTextAreas extends $dara.Model {
291
+ /**
292
+ * @remarks
293
+ * The color.
294
+ *
295
+ * @example
296
+ * #000000
297
+ */
298
+ color?: string;
299
+ /**
300
+ * @remarks
301
+ * The content.
302
+ *
303
+ * @example
304
+ * SOLIDWOOD WARDROBE
305
+ */
306
+ content?: string;
307
+ /**
308
+ * @remarks
309
+ * The font size.
310
+ *
311
+ * @example
312
+ * 36
313
+ */
314
+ fontsize?: number;
315
+ /**
316
+ * @remarks
317
+ * The horizontal layout.
318
+ *
319
+ * @example
320
+ * left
321
+ */
322
+ horizontalLayout?: string;
323
+ /**
324
+ * @remarks
325
+ * The line count.
326
+ *
327
+ * @example
328
+ * 2
329
+ */
330
+ lineCount?: number;
331
+ /**
332
+ * @remarks
333
+ * The list of texts.
334
+ */
335
+ texts?: ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts[];
336
+ /**
337
+ * @remarks
338
+ * The vertical layout.
339
+ *
340
+ * @example
341
+ * center
342
+ */
343
+ verticalLayout?: string;
344
+ static names(): { [key: string]: string } {
345
+ return {
346
+ color: 'Color',
347
+ content: 'Content',
348
+ fontsize: 'Fontsize',
349
+ horizontalLayout: 'HorizontalLayout',
350
+ lineCount: 'LineCount',
351
+ texts: 'Texts',
352
+ verticalLayout: 'VerticalLayout',
353
+ };
354
+ }
355
+
356
+ static types(): { [key: string]: any } {
357
+ return {
358
+ color: 'string',
359
+ content: 'string',
360
+ fontsize: 'number',
361
+ horizontalLayout: 'string',
362
+ lineCount: 'number',
363
+ texts: { 'type': 'array', 'itemType': ImageTranslationStandardResponseBodyDataEditInfoTextAreasTexts },
364
+ verticalLayout: 'string',
365
+ };
366
+ }
367
+
368
+ validate() {
369
+ if(Array.isArray(this.texts)) {
370
+ $dara.Model.validateArray(this.texts);
371
+ }
372
+ super.validate();
373
+ }
374
+
375
+ constructor(map?: { [key: string]: any }) {
376
+ super(map);
377
+ }
378
+ }
379
+
380
+ export class ImageTranslationStandardResponseBodyDataEditInfo extends $dara.Model {
381
+ /**
382
+ * @remarks
383
+ * The list of fonts used.
384
+ *
385
+ * @example
386
+ * ["NotoSansSC-Bold"]
387
+ */
388
+ font?: string[];
389
+ /**
390
+ * @remarks
391
+ * The product area rectangles.
392
+ */
393
+ goodsRects?: ImageTranslationStandardResponseBodyDataEditInfoGoodsRects;
394
+ /**
395
+ * @remarks
396
+ * The product image URL.
397
+ *
398
+ * @example
399
+ * https://xiuxiu-pro.meitudata.com/posters/34d78f9157e5560a4d612949ca6f6485.jpg
400
+ */
401
+ goodsUrl?: string;
402
+ /**
403
+ * @remarks
404
+ * The list of target languages.
405
+ *
406
+ * @example
407
+ * ["zh"]
408
+ */
409
+ languages?: string[];
410
+ /**
411
+ * @remarks
412
+ * The original image URL.
413
+ *
414
+ * @example
415
+ * https://xiuxiu-pro.meitudata.com/posters/34d78f9157e5560a4d612949ca6f6485.jpg
416
+ */
417
+ pictUrl?: string;
418
+ /**
419
+ * @remarks
420
+ * The repaired image URL.
421
+ *
422
+ * @example
423
+ * http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.png
424
+ */
425
+ repairedUrl?: string;
426
+ /**
427
+ * @remarks
428
+ * The list of repaired image URLs.
429
+ *
430
+ * @example
431
+ * ["http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.png"]
432
+ */
433
+ repairedUrls?: string[];
434
+ /**
435
+ * @remarks
436
+ * The list of result image IDs.
437
+ *
438
+ * @example
439
+ * ["c18ab570-81aa-11f1-a14a-5ee00dcfdc3c"]
440
+ */
441
+ resultImageIds?: string[];
442
+ /**
443
+ * @remarks
444
+ * The list of result image URLs.
445
+ *
446
+ * @example
447
+ * ["http://dashscope-a717.oss-cn-beijing.aliyuncs.com/xxx.jpg"]
448
+ */
449
+ resultUrls?: string[];
450
+ /**
451
+ * @remarks
452
+ * The list of text areas.
453
+ */
454
+ textAreas?: ImageTranslationStandardResponseBodyDataEditInfoTextAreas[];
455
+ static names(): { [key: string]: string } {
456
+ return {
457
+ font: 'Font',
458
+ goodsRects: 'GoodsRects',
459
+ goodsUrl: 'GoodsUrl',
460
+ languages: 'Languages',
461
+ pictUrl: 'PictUrl',
462
+ repairedUrl: 'RepairedUrl',
463
+ repairedUrls: 'RepairedUrls',
464
+ resultImageIds: 'ResultImageIds',
465
+ resultUrls: 'ResultUrls',
466
+ textAreas: 'TextAreas',
467
+ };
468
+ }
469
+
470
+ static types(): { [key: string]: any } {
471
+ return {
472
+ font: { 'type': 'array', 'itemType': 'string' },
473
+ goodsRects: ImageTranslationStandardResponseBodyDataEditInfoGoodsRects,
474
+ goodsUrl: 'string',
475
+ languages: { 'type': 'array', 'itemType': 'string' },
476
+ pictUrl: 'string',
477
+ repairedUrl: 'string',
478
+ repairedUrls: { 'type': 'array', 'itemType': 'string' },
479
+ resultImageIds: { 'type': 'array', 'itemType': 'string' },
480
+ resultUrls: { 'type': 'array', 'itemType': 'string' },
481
+ textAreas: { 'type': 'array', 'itemType': ImageTranslationStandardResponseBodyDataEditInfoTextAreas },
482
+ };
483
+ }
484
+
485
+ validate() {
486
+ if(Array.isArray(this.font)) {
487
+ $dara.Model.validateArray(this.font);
488
+ }
489
+ if(this.goodsRects && typeof (this.goodsRects as any).validate === 'function') {
490
+ (this.goodsRects as any).validate();
491
+ }
492
+ if(Array.isArray(this.languages)) {
493
+ $dara.Model.validateArray(this.languages);
494
+ }
495
+ if(Array.isArray(this.repairedUrls)) {
496
+ $dara.Model.validateArray(this.repairedUrls);
497
+ }
498
+ if(Array.isArray(this.resultImageIds)) {
499
+ $dara.Model.validateArray(this.resultImageIds);
500
+ }
501
+ if(Array.isArray(this.resultUrls)) {
502
+ $dara.Model.validateArray(this.resultUrls);
503
+ }
504
+ if(Array.isArray(this.textAreas)) {
505
+ $dara.Model.validateArray(this.textAreas);
506
+ }
507
+ super.validate();
508
+ }
509
+
510
+ constructor(map?: { [key: string]: any }) {
511
+ super(map);
512
+ }
513
+ }
514
+
5
515
  export class ImageTranslationStandardResponseBodyData extends $dara.Model {
516
+ /**
517
+ * @remarks
518
+ * The edit information.
519
+ */
520
+ editInfo?: ImageTranslationStandardResponseBodyDataEditInfo;
6
521
  /**
7
522
  * @remarks
8
523
  * The URL of the image generated after image translation.
@@ -13,7 +528,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
13
528
  imageUrl?: string;
14
529
  /**
15
530
  * @remarks
16
- * The usage information, including the number of processed images.
531
+ * The usage information, including the number of images processed.
17
532
  *
18
533
  * @example
19
534
  * {"ProcessedImageCount":1}
@@ -21,6 +536,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
21
536
  usageMap?: { [key: string]: number };
22
537
  static names(): { [key: string]: string } {
23
538
  return {
539
+ editInfo: 'EditInfo',
24
540
  imageUrl: 'ImageUrl',
25
541
  usageMap: 'UsageMap',
26
542
  };
@@ -28,12 +544,16 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
28
544
 
29
545
  static types(): { [key: string]: any } {
30
546
  return {
547
+ editInfo: ImageTranslationStandardResponseBodyDataEditInfo,
31
548
  imageUrl: 'string',
32
549
  usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' },
33
550
  };
34
551
  }
35
552
 
36
553
  validate() {
554
+ if(this.editInfo && typeof (this.editInfo as any).validate === 'function') {
555
+ (this.editInfo as any).validate();
556
+ }
37
557
  if(this.usageMap) {
38
558
  $dara.Model.validateMap(this.usageMap);
39
559
  }
@@ -48,7 +568,7 @@ export class ImageTranslationStandardResponseBodyData extends $dara.Model {
48
568
  export class ImageTranslationStandardResponseBody extends $dara.Model {
49
569
  /**
50
570
  * @remarks
51
- * The response code. A value of 200 indicates a successful call. For other response codes, see the error codes.
571
+ * The response code. A value of 200 indicates a successful call. For other response codes, refer to the error code information.
52
572
  *
53
573
  * @example
54
574
  * 200
@@ -61,7 +581,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
61
581
  data?: ImageTranslationStandardResponseBodyData;
62
582
  /**
63
583
  * @remarks
64
- * The error message. "Success" is returned for a successful call. A specific error message is returned for a failed call.
584
+ * The error message. Returns "Success" for successful calls, and returns specific error information for failed calls.
65
585
  *
66
586
  * @example
67
587
  * Success
@@ -77,7 +597,7 @@ export class ImageTranslationStandardResponseBody extends $dara.Model {
77
597
  requestId?: string;
78
598
  /**
79
599
  * @remarks
80
- * Indicates whether the call was successful. A value of true indicates success. A value of false indicates failure.
600
+ * Indicates whether the call is successful. A value of true indicates success, and a value of false indicates failure.
81
601
  *
82
602
  * @example
83
603
  * true
@@ -0,0 +1,66 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+
4
+
5
+ export class MerchandisePlacementDetectionRequest extends $dara.Model {
6
+ /**
7
+ * @remarks
8
+ * Specifies a custom API version. If you created a "My API" during the trial phase, you can find the corresponding ApiId in the product console under "Intelligent Inspection > API Management > My API".
9
+ *
10
+ * @example
11
+ * api_xxx
12
+ */
13
+ apiId?: string;
14
+ /**
15
+ * @remarks
16
+ * The URL of the shelf or floor-stack image to be recognized (accessible via the public network or OSS).
17
+ *
18
+ * This parameter is required.
19
+ *
20
+ * @example
21
+ * https://example.com/shelf.jpg
22
+ */
23
+ imageUrl?: string;
24
+ /**
25
+ * @remarks
26
+ * The customer-specific SKU vector library ID that determines which library to retrieve from. The library must be created in advance through the library creation process.
27
+ *
28
+ * @example
29
+ * rag_xxx
30
+ */
31
+ ragId?: string;
32
+ /**
33
+ * @remarks
34
+ * The business type (reserved for future routing by business line). The current release supports skincare & lotion.
35
+ *
36
+ * @example
37
+ * Lotion.
38
+ */
39
+ type?: string;
40
+ static names(): { [key: string]: string } {
41
+ return {
42
+ apiId: 'ApiId',
43
+ imageUrl: 'ImageUrl',
44
+ ragId: 'RagId',
45
+ type: 'Type',
46
+ };
47
+ }
48
+
49
+ static types(): { [key: string]: any } {
50
+ return {
51
+ apiId: 'string',
52
+ imageUrl: 'string',
53
+ ragId: 'string',
54
+ type: 'string',
55
+ };
56
+ }
57
+
58
+ validate() {
59
+ super.validate();
60
+ }
61
+
62
+ constructor(map?: { [key: string]: any }) {
63
+ super(map);
64
+ }
65
+ }
66
+
@@ -0,0 +1,40 @@
1
+ // This file is auto-generated, don't edit it
2
+ import * as $dara from '@darabonba/typescript';
3
+ import { MerchandisePlacementDetectionResponseBody } from "./MerchandisePlacementDetectionResponseBody";
4
+
5
+
6
+ export class MerchandisePlacementDetectionResponse extends $dara.Model {
7
+ headers?: { [key: string]: string };
8
+ statusCode?: number;
9
+ body?: MerchandisePlacementDetectionResponseBody;
10
+ static names(): { [key: string]: string } {
11
+ return {
12
+ headers: 'headers',
13
+ statusCode: 'statusCode',
14
+ body: 'body',
15
+ };
16
+ }
17
+
18
+ static types(): { [key: string]: any } {
19
+ return {
20
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
21
+ statusCode: 'number',
22
+ body: MerchandisePlacementDetectionResponseBody,
23
+ };
24
+ }
25
+
26
+ validate() {
27
+ if(this.headers) {
28
+ $dara.Model.validateMap(this.headers);
29
+ }
30
+ if(this.body && typeof (this.body as any).validate === 'function') {
31
+ (this.body as any).validate();
32
+ }
33
+ super.validate();
34
+ }
35
+
36
+ constructor(map?: { [key: string]: any }) {
37
+ super(map);
38
+ }
39
+ }
40
+