sowell-models 1.29.0 → 1.30.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.29.0",
3
+ "version": "1.30.0",
4
4
  "description": "SoWell models",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -35,6 +35,7 @@ export interface IssueReportPayload {
35
35
  reason?: string
36
36
  origin?: string
37
37
  assignee?: string
38
+ metadata?: Record<string, any>
38
39
  }
39
40
 
40
41
  export type Tab = "mySector" | "others"
@@ -94,6 +95,7 @@ export interface IIssueReport extends IModel {
94
95
  seen?: boolean
95
96
  areaId?: number
96
97
  validate?: () => string
98
+ metadata?: Record<string, any>
97
99
  }
98
100
 
99
101
  export class IssueCollection
@@ -153,6 +155,7 @@ export class SPIssueReportItem
153
155
  @Attr() canceledTimestamp!: Date
154
156
  @Attr() rejectedTimestamp!: Date
155
157
  @Attr() seen!: boolean
158
+ @Attr() metadata!: Record<string, any>
156
159
  @BelongsTo() author!: SPUserItem
157
160
  @BelongsTo() category!: SPCategoryItem
158
161
  @BelongsTo() residence!: IResidence
@@ -20,6 +20,7 @@ export enum CheckpointStatus {
20
20
  }
21
21
 
22
22
  export interface VisitReportMetadata {
23
+ uid?: string,
23
24
  comment_imgs_count: number,
24
25
  issue_reports_count: number,
25
26
  issue_reports_imgs_count: number