sowell-models 1.11.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sowell-models",
3
- "version": "1.11.0",
3
+ "version": "1.13.0",
4
4
  "description": "SoWell models",
5
5
  "type": "module",
6
6
  "engines": {
@@ -16,12 +16,14 @@ export interface ICheckpoint extends IModel {
16
16
  descriptionImgs?: string[]
17
17
  checklist?: IChecklist
18
18
  categoryId?: number
19
- category?: number | ICategory
19
+ category?: ICategory
20
+ defaultReasonId?: number
20
21
  visitProps?: IVisitProp[]
21
22
  locationId?: number
22
23
  location?: ILocation
23
24
  coefficient?: number
24
25
  order?: number
26
+ disallowExclusion?: boolean
25
27
  }
26
28
 
27
29
  export class CheckpointCollection
@@ -51,9 +53,11 @@ export class SPCheckpointItem extends ApplicationRecord implements ICheckpoint {
51
53
  @Attr() description!: string
52
54
  @Attr() descriptionImgs!: string[]
53
55
  @Attr() categoryId!: number
56
+ @Attr() defaultReasonId!: number
54
57
  @Attr() locationId!: number
55
58
  @Attr() coefficient!: number
56
59
  @Attr() order!: number
60
+ @Attr() disallowExclusion!: boolean
57
61
  @BelongsTo() category!: SPCategoryItem
58
62
  @BelongsTo() checklist!: SPChecklistItem
59
63
  @BelongsTo() location?: SPLocationItem | undefined
@@ -7,6 +7,7 @@ import { CollectionFindOptions, IClearable } from '../interfaces';
7
7
  import { SPCategoryItem } from '../category';
8
8
 
9
9
  export interface IReason extends IModel {
10
+ id?: string;
10
11
  _id?: string;
11
12
  name: string;
12
13
  iconUrl?: string;