sowell-models 1.8.4 → 1.10.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.
@@ -11,9 +11,9 @@ jobs:
11
11
  runs-on: ubuntu-latest
12
12
  steps:
13
13
  - name: Checkout repository
14
- uses: actions/checkout@v2
14
+ uses: actions/checkout@v4
15
15
  - name: Nodejs
16
- uses: actions/setup-node@v2
16
+ uses: actions/setup-node@v4
17
17
  with:
18
18
  node-version: "16"
19
19
  cache: yarn
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sowell-models",
3
- "version": "1.8.4",
3
+ "version": "1.10.0",
4
4
  "description": "SoWell models",
5
5
  "type": "module",
6
6
  "engines": {
@@ -20,6 +20,7 @@ export interface IChecklist extends IModel {
20
20
  area?: IArea
21
21
  checkpoints?: ICheckpoint[]
22
22
  family?: IFamily
23
+ periodicity?: string
23
24
  allowedAgents?: string[]
24
25
  }
25
26
 
@@ -50,6 +51,7 @@ export class SPChecklistItem extends ApplicationRecord implements IChecklist {
50
51
  @Attr() isPlanned!: boolean
51
52
  @Attr() iconUrl!: string
52
53
  @Attr({ persist: false }) updatedAt!: Date
54
+ @Attr() periodicity!: string
53
55
  @Attr() allowedAgents!: string[]
54
56
  @BelongsTo() company!: SPCompany
55
57
  @BelongsTo() family!: SPFamily
@@ -21,6 +21,7 @@ export interface ICheckpoint extends IModel {
21
21
  locationId?: number
22
22
  location?: ILocation
23
23
  coefficient?: number
24
+ order?: number
24
25
  }
25
26
 
26
27
  export class CheckpointCollection
@@ -52,6 +53,7 @@ export class SPCheckpointItem extends ApplicationRecord implements ICheckpoint {
52
53
  @Attr() categoryId!: number
53
54
  @Attr() locationId!: number
54
55
  @Attr() coefficient!: number
56
+ @Attr() order!: number
55
57
  @BelongsTo() category!: SPCategoryItem
56
58
  @BelongsTo() checklist!: SPChecklistItem
57
59
  @BelongsTo() location?: SPLocationItem | undefined
@@ -42,6 +42,7 @@ export interface CheckpointProps {
42
42
  id?: string
43
43
  label?: string
44
44
  status: CheckpointStatus
45
+ issueReportId?: string
45
46
  issue?: {
46
47
  description: string
47
48
  priority: string