All files / src/entities draft_preview.ts

100% Statements 19/19
100% Branches 0/0
100% Functions 1/1
100% Lines 17/17

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 381x 1x 1x     1x 1x 1x 1x   1x     1x     1x     1x     1x     1x     1x     1x     1x   1x  
import { Entity } from '../entity.js';
import { MerchiFile } from './file.js';
import { Product } from './product.js';
import { DraftPreviewLayer } from './draft_preview_layer.js';
 
export class DraftPreview extends Entity {
  protected static resourceName = 'draft_previews';
  protected static singularName = 'draftPreview';
  protected static pluralName = 'draftPreviews';
 
  @DraftPreview.property()
  public id?: number;
 
  @DraftPreview.property({type: MerchiFile})
  public file?: MerchiFile;
 
  @DraftPreview.property({type: Product})
  public product?: Product;
 
  @DraftPreview.property({type: String})
  public description?: string | null;
 
  @DraftPreview.property({type: String})
  public name?: string | null;
 
  @DraftPreview.property({type: Date})
  public date?: Date | null;
 
  @DraftPreview.property()
  public height?: number;
 
  @DraftPreview.property()
  public width?: number;
 
  @DraftPreview.property({arrayType: 'DraftPreviewLayer'})
  public draftPreviewLayers?: DraftPreviewLayer[];
}