// This file is auto-generated, don't edit it import * as $dara from '@darabonba/typescript'; export class ProductHotspotDetectionResponseBodyDataProductsBoxes extends $dara.Model { /** * @remarks * The bottom boundary of the bounding box. * * @example * 947 */ bottom?: number; /** * @remarks * The left boundary of the bounding box. * * @example * 280 */ left?: number; /** * @remarks * The right boundary of the bounding box. * * @example * 743 */ right?: number; /** * @remarks * The top boundary of the bounding box. * * @example * 965 */ top?: number; static names(): { [key: string]: string } { return { bottom: 'Bottom', left: 'Left', right: 'Right', top: 'Top', }; } static types(): { [key: string]: any } { return { bottom: 'number', left: 'number', right: 'number', top: 'number', }; } validate() { super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ProductHotspotDetectionResponseBodyDataProducts extends $dara.Model { /** * @remarks * The bounding boxes of the detected product instances. */ boxes?: ProductHotspotDetectionResponseBodyDataProductsBoxes[]; /** * @remarks * The product name. * * @example * Beige metal chain-embellished Mary Jane flats */ label?: string; /** * @remarks * The product ID generated by the workflow. * * @example * product_1 */ productId?: string; static names(): { [key: string]: string } { return { boxes: 'Boxes', label: 'Label', productId: 'ProductId', }; } static types(): { [key: string]: any } { return { boxes: { 'type': 'array', 'itemType': ProductHotspotDetectionResponseBodyDataProductsBoxes }, label: 'string', productId: 'string', }; } validate() { if(Array.isArray(this.boxes)) { $dara.Model.validateArray(this.boxes); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ProductHotspotDetectionResponseBodyData extends $dara.Model { /** * @remarks * The list of detected products and their bounding boxes. */ products?: ProductHotspotDetectionResponseBodyDataProducts[]; /** * @remarks * The usage information. * * @example * {"ProcessingCount":1} */ usageMap?: { [key: string]: number }; static names(): { [key: string]: string } { return { products: 'Products', usageMap: 'UsageMap', }; } static types(): { [key: string]: any } { return { products: { 'type': 'array', 'itemType': ProductHotspotDetectionResponseBodyDataProducts }, usageMap: { 'type': 'map', 'keyType': 'string', 'valueType': 'number' }, }; } validate() { if(Array.isArray(this.products)) { $dara.Model.validateArray(this.products); } if(this.usageMap) { $dara.Model.validateMap(this.usageMap); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } } export class ProductHotspotDetectionResponseBody extends $dara.Model { /** * @remarks * The error code. * * @example * success */ code?: string; /** * @remarks * The product hotzone recognition result. */ data?: ProductHotspotDetectionResponseBodyData; /** * @remarks * The error message. * * @example * Success */ message?: string; /** * @remarks * Id of the request * * @example * E1AD60F1-BAC7-546B-9533-E7AD02B16E3F */ requestId?: string; /** * @remarks * Indicates whether the call was successful. * * @example * True */ success?: boolean; static names(): { [key: string]: string } { return { code: 'Code', data: 'Data', message: 'Message', requestId: 'RequestId', success: 'Success', }; } static types(): { [key: string]: any } { return { code: 'string', data: ProductHotspotDetectionResponseBodyData, message: 'string', requestId: 'string', success: 'boolean', }; } validate() { if(this.data && typeof (this.data as any).validate === 'function') { (this.data as any).validate(); } super.validate(); } constructor(map?: { [key: string]: any }) { super(map); } }