import { ApiProperty } from '@nestjs/swagger';
import { AssetProps } from '../logic/Props';

export class AssetPropAccountDTO {
  @ApiProperty({})
  accountId: number;

  @ApiProperty({})
  name: string;
}

export class AssetBlockDTO {
  @ApiProperty({})
  name: null | string;

  @ApiProperty({})
  title: null | string;

  @ApiProperty({})
  ownTitle: null | string;

  @ApiProperty({})
  type: string;

  @ApiProperty({})
  index: number | null;

  @ApiProperty({ type: 'object' })
  props: AssetProps;

  // @ApiProperty({ type: 'object' })
  // computedProps: AssetProps;

  @ApiProperty({ type: Date })
  createdAt: string;

  @ApiProperty({ type: Date })
  updatedAt: string;

  @ApiProperty()
  rights: number | null;

  @ApiProperty()
  filledRate: number;
}
