-
Notifications
You must be signed in to change notification settings - Fork 0
/
restorationManager.d.ts
133 lines (128 loc) · 3.06 KB
/
restorationManager.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
import { Document } from "./documents"
export interface RMDocument extends Document {
source: "RM"
}
export type RMCorrespondence = {
claimNumber: string
correspondence: string | null
job: string | null
jobJobId: string
jobId: number
correspondenceId: number
correspondenceDateTime: string
correspondenceTitle: string
correspondenceType: "" | "Collections" | "Email" | "Fax" | "Field Note" | "Job Note" | "Letter" | "Note" | "Payment" | "Phone" | "Picture/File" | "Text" | "XA - Note"
contFullName: string | null
correspondenceTo: string | null
correspondenceFilePath: string | null
correspondenceBody: string
correspondenceTypeId: number
correspondenceStatusId: number | null
cmbDesc: string | null
taskId: number
taskStatus: string | null
taskEmpId: number | null
taskResolution: string | null
taskDueDate: string | null
correspondenceStatus: string
correspondenceCreatedBy: string | null
correspondenceCreatedDate: string
correspondenceCc: string | null
correspondenceIsFrom: string | null
correspondenceInitiate: string
marketingReceiptNumber: number | null
marketingAmountSpent: number | null
correspondenceToContactId: number | null
showInPortal: boolean | null
showInProjectPortal: boolean | null
showInVendorPortal: boolean | null
taskDescription: string | null
taskSubject: string | null
sentToXact: boolean | null
publicAccess: boolean
}
export type RMKPIHistory = {
"Customer Contacted"?: KpiRange
"Site Inspection Appt"?: KpiRange
"Adj Est Uploaded"?: KpiRange
"QA Estimate Uploaded"?: KpiRange
"WA/Contract Signed"?: KpiRange
Walkthough?: KpiRange
Punchlist?: KpiRange
Final?: KpiRange
}
type KpiRange = {
level: KpiLevel
firstDate: string
lastDate: string
}
type KpiLevel = "Green" | "Yellow" | "Red" | "Unknown"
type Kpi = {
kpi: KpiName
level: KpiLevel
date: string
}
type KpiName = keyof RMKPIHistory
export type GanttStatus = {
statusName: string
statusId: string
startDate: string
updateDate: string
updatedBy: {
fullName: string
id: string
email?: string
phone?: string
}
}
export type RMClaim = {
currentProgressKPIStatus: KpiLevel
coverages:
| (
| {
coverageType: string
policyLimit: string
deductable: string
}
| undefined
)[]
| undefined
lossDescription: string | undefined
kpiHistory: Kpi[]
status: "Active"
internalId: number
jobId: string
address: {
line1: string
line2: string | null
city: string
state: string
zip: string
full: string
}
claimNumber: string
startDate: string | null
lastChangedDate: string
createdDate: string
progressId: number
progressName: string
serviceArea: string
jobName: string
jobType: string
staffName?: string
superName?: string
primaryContact: {
fullName: string
firstName: string
lastName: string
phone: string
phoneType: string | null
email: string
}
location: [number, number]
policyNumber?: string
overallDeductable?: string
policyInception?: string
policyEnd?: string,
ganttStatus?: GanttStatus[]
}