All files / src/entities variations_group.ts

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

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 38 39 40 41 421x 1x 1x   1x   1x 1x 1x 1x   1x     1x     1x     1x     1x     1x     1x     1x     1x     1x   1x  
import { CartItem } from './cart_item.js';
import { Entity } from '../entity.js';
import { Job } from './job.js';
import { Variation } from './variation.js';
import { MatchingInventory } from './matching_inventory.js';
 
export class VariationsGroup extends Entity {
  protected static resourceName = 'variations_groups';
  protected static singularName = 'variationsGroup';
  protected static pluralName = 'variationsGroups';
 
  @VariationsGroup.property({type: Date})
  public archived?: Date | null;
 
  @VariationsGroup.property()
  public id?: number;
 
  @VariationsGroup.property()
  public quantity?: number;
 
  @VariationsGroup.property({type: Number})
  public groupCost?: number | null;
 
  @VariationsGroup.property({type: Job})
  public job?: Job | null;
 
  @VariationsGroup.property({type: CartItem})
  public cartItem?: CartItem | null;
 
  @VariationsGroup.property({type: MatchingInventory})
  public matchingInventory?: MatchingInventory | null;
 
  @VariationsGroup.property({arrayType: 'Variation'})
  public variations?: Variation[];
 
  @VariationsGroup.property({embeddedByDefault: false})
  public inventoryCount?: number;
 
  @VariationsGroup.property({embeddedByDefault: false})
  public inventorySufficient?: boolean;
}