sowell-models 1.15.0 → 1.17.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.15.0",
3
+ "version": "1.17.0",
4
4
  "description": "SoWell models",
5
5
  "type": "module",
6
6
  "engines": {
@@ -13,6 +13,7 @@ export interface ILocation extends IModel {
13
13
  areaTypeId?: number
14
14
  checkpoints?: ICheckpoint[]
15
15
  iconUrl?: string
16
+ order?: number
16
17
  }
17
18
 
18
19
  @Model()
@@ -21,6 +22,7 @@ export class SPLocationItem extends ApplicationRecord implements ILocation {
21
22
  @Attr() name!: string
22
23
  @Attr() areaTypeId!: number
23
24
  @Attr() iconUrl!: string
25
+ @Attr() order!: number
24
26
  @BelongsTo() areaType!: SPAreaType
25
27
  @HasMany() checkpoints?: SPCheckpointItem[] | undefined
26
28
  }
@@ -13,6 +13,7 @@ export interface IVisitSchedule extends IModel {
13
13
  _id?: string
14
14
  dueAt: Date
15
15
  lastDoneAt?: Date
16
+ lateCount?: number
16
17
  checklistId?: string
17
18
  residence?: IResidence
18
19
  residenceId?: string
@@ -52,6 +53,7 @@ export class SPVisitSchedule
52
53
  static jsonapiType = "visit_schedules"
53
54
  @Attr() dueAt!: Date
54
55
  @Attr() lastDoneAt?: Date
56
+ @Attr() lateCount?: number
55
57
  @Attr() checklistId!: string
56
58
  @Attr() residenceId!: string
57
59
  @Attr() placeId!: string