UNPKG

service-imagesets-node

Version:
27 lines (20 loc) 987 B
import { ObjectSchema } from 'pip-services3-commons-nodex'; import { ArraySchema } from 'pip-services3-commons-nodex'; import { TypeCode } from 'pip-services3-commons-nodex'; import { AttachmentV1Schema } from './AttachmentV1Schema'; export class ImageSetV1Schema extends ObjectSchema { public constructor() { super(); /* Identification */ this.withOptionalProperty('id', TypeCode.String); this.withRequiredProperty('title', TypeCode.String); /* Generic request properties */ this.withOptionalProperty('create_time', TypeCode.DateTime); //TypeCode.DateTime); /* Common properties */ this.withOptionalProperty('title', TypeCode.String); this.withOptionalProperty('pics', new ArraySchema(new AttachmentV1Schema())); /* Search */ this.withOptionalProperty('tags', new ArraySchema(TypeCode.String)); this.withOptionalProperty('all_tags', new ArraySchema(TypeCode.String)); } }