sowell-models 1.28.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
|
@@ -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
|
|
@@ -19,6 +19,13 @@ export enum CheckpointStatus {
|
|
|
19
19
|
PENDING = "PENDING"
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
export interface VisitReportMetadata {
|
|
23
|
+
uid?: string,
|
|
24
|
+
comment_imgs_count: number,
|
|
25
|
+
issue_reports_count: number,
|
|
26
|
+
issue_reports_imgs_count: number
|
|
27
|
+
}
|
|
28
|
+
|
|
22
29
|
export interface VisitReportPayload {
|
|
23
30
|
visitSchedule?: string
|
|
24
31
|
checkpoints: CheckpointProps[]
|
|
@@ -35,7 +42,8 @@ export interface VisitReportPayload {
|
|
|
35
42
|
providerCompany?: {
|
|
36
43
|
id: string
|
|
37
44
|
name: string
|
|
38
|
-
}
|
|
45
|
+
},
|
|
46
|
+
metadata?: VisitReportMetadata
|
|
39
47
|
}
|
|
40
48
|
|
|
41
49
|
export interface CheckpointProps {
|
|
@@ -76,6 +84,7 @@ export interface IVisitReport extends IModel {
|
|
|
76
84
|
id: string
|
|
77
85
|
name: string
|
|
78
86
|
}
|
|
87
|
+
metadata?: VisitReportMetadata
|
|
79
88
|
validate?: (payload: VisitReportPayload) => string
|
|
80
89
|
}
|
|
81
90
|
|
|
@@ -95,6 +104,7 @@ export class SPVisitReport extends ApplicationRecord implements IVisitReport {
|
|
|
95
104
|
id: string
|
|
96
105
|
name: string
|
|
97
106
|
}
|
|
107
|
+
@Attr() metadata!: VisitReportMetadata
|
|
98
108
|
@BelongsTo() author!: SPUserItem
|
|
99
109
|
@BelongsTo() visitSchedule!: SPVisitSchedule
|
|
100
110
|
@BelongsTo() checklist!: SPChecklistItem
|