sowell-models 1.25.0 → 1.27.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.25.0",
3
+ "version": "1.27.0",
4
4
  "description": "SoWell models",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -27,14 +27,15 @@ export interface VisitReportPayload {
27
27
  spot?: string
28
28
  checklist?: string
29
29
  isContradictory?: boolean
30
- assistedBy?: {
31
- id: string
32
- fullName: string
33
- }
30
+ assistedBy?: string
34
31
  comment?: string
35
32
  isMissingProvider?: boolean
36
33
  validate?: (payload: VisitReportPayload) => string
37
34
  agent?: string
35
+ providerCompany?: {
36
+ id: string
37
+ full_name: string
38
+ }
38
39
  }
39
40
 
40
41
  export interface CheckpointProps {
@@ -67,13 +68,14 @@ export interface IVisitReport extends IModel {
67
68
  author?: IUser
68
69
  issueReports?: IIssueReport[]
69
70
  isContradictory?: boolean
70
- assistedBy?: {
71
- id: string
72
- full_name: string
73
- }
71
+ assistedBy?: string
74
72
  score?: number
75
73
  isMissingProvider?: boolean
76
74
  agent?: string
75
+ providerCompany?: {
76
+ id: string
77
+ full_name: string
78
+ }
77
79
  validate?: (payload: VisitReportPayload) => string
78
80
  }
79
81
 
@@ -84,14 +86,15 @@ export class SPVisitReport extends ApplicationRecord implements IVisitReport {
84
86
  @Attr() createdAt!: Date
85
87
  @Attr() score!: number
86
88
  @Attr() isContradictory!: boolean
87
- @Attr() assistedBy!: {
88
- id: string
89
- full_name: string
90
- }
89
+ @Attr() assistedBy!: string
91
90
  @Attr() comment!: string
92
91
  @Attr() imgs!: string[]
93
92
  @Attr() isMissingProvider!: boolean
94
93
  @Attr() agent!: string
94
+ @Attr() providerCompany!: {
95
+ id: string
96
+ full_name: string
97
+ }
95
98
  @BelongsTo() author!: SPUserItem
96
99
  @BelongsTo() visitSchedule!: SPVisitSchedule
97
100
  @BelongsTo() checklist!: SPChecklistItem
@@ -28,6 +28,7 @@ export interface ICategory extends IModel {
28
28
  company?: ICompany
29
29
  reasons?: IReason[]
30
30
  isAssigned?: boolean
31
+ isHidden?: boolean
31
32
  }
32
33
 
33
34
  export class CategoryCollection
@@ -75,6 +76,7 @@ export class SPCategoryItem extends ApplicationRecord implements ICategory {
75
76
  @Attr() iconUrl!: string
76
77
  @Attr() areaName!: string
77
78
  @Attr() isAssigned!: boolean
79
+ @Attr() isHidden!: boolean
78
80
  @BelongsTo() company!: SPCompany
79
81
  @BelongsTo() categoryType!: SPCategoryTypeItem
80
82
  get _id(): string | undefined {