sowell-models 1.34.0 → 1.36.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.34.0",
3
+ "version": "1.36.0",
4
4
  "description": "SoWell models",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -90,7 +90,7 @@ export interface IIssueReport extends IModel {
90
90
  spot?: ISpot | ISpot[]
91
91
  imgs?: string[]
92
92
  isTenantRequest?: boolean
93
- tenantSpot?: ISpot
93
+ tenantSpot?: ISpot
94
94
  reason?: IReason
95
95
  origin?: IOrigin
96
96
  assignee?: IUser
@@ -98,6 +98,7 @@ export interface IIssueReport extends IModel {
98
98
  areaId?: number
99
99
  validate?: () => string
100
100
  metadata?: Record<string, any>
101
+ code?: string
101
102
  }
102
103
 
103
104
  export class IssueCollection
@@ -158,6 +159,7 @@ export class SPIssueReportItem
158
159
  @Attr() rejectedTimestamp!: Date
159
160
  @Attr() seen!: boolean
160
161
  @Attr() metadata!: Record<string, any>
162
+ @Attr() code!: string
161
163
  @BelongsTo() author!: SPUserItem
162
164
  @BelongsTo() category!: SPCategoryItem
163
165
  @BelongsTo() residence!: IResidence
@@ -84,6 +84,9 @@ export interface IVisitReport extends IModel {
84
84
  id: string
85
85
  name: string
86
86
  }
87
+ comment?: string
88
+ imgs?: string[]
89
+ signatureUrl?: string
87
90
  metadata?: VisitReportMetadata
88
91
  validate?: (payload: VisitReportPayload) => string
89
92
  }
@@ -104,6 +107,7 @@ export class SPVisitReport extends ApplicationRecord implements IVisitReport {
104
107
  id: string
105
108
  name: string
106
109
  }
110
+ @Attr() signatureUrl!: string
107
111
  @Attr() metadata!: VisitReportMetadata
108
112
  @BelongsTo() author!: SPUserItem
109
113
  @BelongsTo() visitSchedule!: SPVisitSchedule