sowell-models 1.4.0 → 1.6.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.4.0",
3
+ "version": "1.6.0",
4
4
  "description": "SoWell models",
5
5
  "type": "module",
6
6
  "engines": {
@@ -13,6 +13,7 @@ export interface ICheckpoint extends IModel {
13
13
  _id?: string
14
14
  question?: string
15
15
  description?: string
16
+ descriptionImgs?: string[]
16
17
  checklist?: IChecklist
17
18
  categoryId?: number
18
19
  category?: number | ICategory
@@ -47,6 +48,7 @@ export class SPCheckpointItem extends ApplicationRecord implements ICheckpoint {
47
48
  static jsonapiType = "checkpoints"
48
49
  @Attr() question!: string
49
50
  @Attr() description!: string
51
+ @Attr() descriptionImgs!: string[]
50
52
  @Attr() categoryId!: number
51
53
  @Attr() locationId!: number
52
54
  @Attr() coefficient!: number
@@ -14,8 +14,11 @@ export interface IVisitSchedule extends IModel {
14
14
  dueAt: Date
15
15
  checklistId?: string
16
16
  residence?: IResidence
17
+ residenceId?: string
17
18
  place?: IPlace
19
+ placeId?: string
18
20
  spot?: ISpot
21
+ spotId?: string
19
22
  checklist?: IChecklist
20
23
  }
21
24
 
@@ -48,6 +51,9 @@ export class SPVisitSchedule
48
51
  static jsonapiType = "visit_schedules"
49
52
  @Attr() dueAt!: Date
50
53
  @Attr() checklistId!: string
54
+ @Attr() residenceId!: string
55
+ @Attr() placeId!: string
56
+ @Attr() spotId!: string
51
57
  @BelongsTo() residence!: SPResidenceItem
52
58
  @BelongsTo() place!: SPPlaceItem
53
59
  @BelongsTo() spot!: SPSpotItem