@cemiar/cemiarlink-sdk 1.0.45 → 1.0.47
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.
|
@@ -1,19 +1,48 @@
|
|
|
1
|
+
import { OptionType } from './OptionType';
|
|
2
|
+
export type PolicyItemFlag = 0 | 1 | 2;
|
|
3
|
+
export interface ClaimPolicyItem {
|
|
4
|
+
ClaimSummaryPolicyID: number;
|
|
5
|
+
ClaimType: string;
|
|
6
|
+
Flag: PolicyItemFlag;
|
|
7
|
+
LineID: number;
|
|
8
|
+
NoticeOfOption: OptionType;
|
|
9
|
+
PolicyID: number;
|
|
10
|
+
RiskDescription: string;
|
|
11
|
+
RiskID?: number | null;
|
|
12
|
+
RiskNumber?: number | null;
|
|
13
|
+
RiskType: string;
|
|
14
|
+
SubRiskDescription: string;
|
|
15
|
+
SubRiskID?: number | null;
|
|
16
|
+
SubRiskNumber?: number | null;
|
|
17
|
+
SubRiskType: string;
|
|
18
|
+
ServiceSummaryID: number;
|
|
19
|
+
}
|
|
20
|
+
export interface ClaimCodeItem {
|
|
21
|
+
Code: string;
|
|
22
|
+
Flag: PolicyItemFlag;
|
|
23
|
+
}
|
|
24
|
+
export interface ClaimReportingHistory {
|
|
25
|
+
ClaimCodes: ClaimCodeItem[];
|
|
26
|
+
ClosedBy: string;
|
|
27
|
+
ClosedDate?: string | null;
|
|
28
|
+
Comments: string;
|
|
29
|
+
}
|
|
1
30
|
export interface Claim {
|
|
2
|
-
|
|
31
|
+
Id: string;
|
|
3
32
|
ClientId: string;
|
|
33
|
+
AgencyClaimNumber: string;
|
|
4
34
|
CannotBeDetermined: boolean;
|
|
5
35
|
CatastropheCode: string;
|
|
6
36
|
Chargeable: boolean;
|
|
7
37
|
CompanyClaimNumber: string;
|
|
8
|
-
CSIODateReportedToCompany?: string;
|
|
38
|
+
CSIODateReportedToCompany?: string | null;
|
|
9
39
|
CSIOReportedToCompanyBy: string;
|
|
10
|
-
CSIOTimeReportedToCompany?: string;
|
|
11
|
-
DateAgencyBroker?: string;
|
|
40
|
+
CSIOTimeReportedToCompany?: string | null;
|
|
41
|
+
DateAgencyBroker?: string | null;
|
|
12
42
|
DateOfLoss: string;
|
|
13
43
|
DateReported: string;
|
|
14
44
|
Description: string;
|
|
15
|
-
EstimateAmount?: number;
|
|
16
|
-
Id: string;
|
|
45
|
+
EstimateAmount?: number | null;
|
|
17
46
|
PreviouslyReported: boolean;
|
|
18
47
|
RecordOnly: boolean;
|
|
19
48
|
ReportedBy: string;
|
|
@@ -22,3 +51,80 @@ export interface Claim {
|
|
|
22
51
|
Suitpending: boolean;
|
|
23
52
|
UserCode?: string;
|
|
24
53
|
}
|
|
54
|
+
export interface ClaimV2 {
|
|
55
|
+
AgencyClaimNumber: number;
|
|
56
|
+
CannotBeDetermined: boolean;
|
|
57
|
+
CatastropheCode: string;
|
|
58
|
+
Chargeable: boolean;
|
|
59
|
+
ClaimID: number;
|
|
60
|
+
ClientID: number;
|
|
61
|
+
CompanyClaimNumber: string;
|
|
62
|
+
CSIODateReportedToCompany?: string | null;
|
|
63
|
+
CSIOReportedToCompanyBy: string;
|
|
64
|
+
CSIOTimeReportedToCompany?: string | null;
|
|
65
|
+
DateAgencyBroker?: string | null;
|
|
66
|
+
DateOfLoss: string;
|
|
67
|
+
DateReported: string;
|
|
68
|
+
Description: string;
|
|
69
|
+
EstimateAmount?: number | null;
|
|
70
|
+
Policies: ClaimPolicyItem[];
|
|
71
|
+
PreviouslyReported: boolean;
|
|
72
|
+
RecordOnly: boolean;
|
|
73
|
+
ReportedBy: string;
|
|
74
|
+
ReportedTo: string;
|
|
75
|
+
ReportingHistoryValue: ClaimReportingHistory;
|
|
76
|
+
Subrogation: boolean;
|
|
77
|
+
Suitpending: boolean;
|
|
78
|
+
TimeAgencyBroker?: string | null;
|
|
79
|
+
TimeOfLoss?: string | null;
|
|
80
|
+
TimeReported?: string | null;
|
|
81
|
+
Timestamp?: string | null;
|
|
82
|
+
}
|
|
83
|
+
export interface CreateClaimPolicyItem {
|
|
84
|
+
Flag: PolicyItemFlag;
|
|
85
|
+
PolicyID: number;
|
|
86
|
+
LineID: number;
|
|
87
|
+
ServiceSummaryID: number;
|
|
88
|
+
ClaimType: string;
|
|
89
|
+
ClaimSummaryPolicyID?: number;
|
|
90
|
+
NoticeOfOption?: OptionType;
|
|
91
|
+
RiskDescription?: string;
|
|
92
|
+
RiskID?: number | null;
|
|
93
|
+
RiskNumber?: number | null;
|
|
94
|
+
RiskType?: string;
|
|
95
|
+
SubRiskDescription?: string;
|
|
96
|
+
SubRiskID?: number | null;
|
|
97
|
+
SubRiskNumber?: number | null;
|
|
98
|
+
SubRiskType?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface CreateClaimRequest {
|
|
101
|
+
ClientID: number;
|
|
102
|
+
DateOfLoss: string;
|
|
103
|
+
DateReported: string;
|
|
104
|
+
Policies: CreateClaimPolicyItem[];
|
|
105
|
+
AgencyClaimNumber?: number;
|
|
106
|
+
CannotBeDetermined?: boolean;
|
|
107
|
+
CatastropheCode?: string;
|
|
108
|
+
Chargeable?: boolean;
|
|
109
|
+
CompanyClaimNumber?: string;
|
|
110
|
+
CSIODateReportedToCompany?: string | null;
|
|
111
|
+
CSIOReportedToCompanyBy?: string;
|
|
112
|
+
CSIOTimeReportedToCompany?: string | null;
|
|
113
|
+
DateAgencyBroker?: string | null;
|
|
114
|
+
Description?: string;
|
|
115
|
+
EstimateAmount?: number | null;
|
|
116
|
+
PreviouslyReported?: boolean;
|
|
117
|
+
RecordOnly?: boolean;
|
|
118
|
+
ReportedBy?: string;
|
|
119
|
+
ReportedTo?: string;
|
|
120
|
+
ReportingHistoryValue?: ClaimReportingHistory;
|
|
121
|
+
Subrogation?: boolean;
|
|
122
|
+
Suitpending?: boolean;
|
|
123
|
+
TimeAgencyBroker?: string | null;
|
|
124
|
+
TimeOfLoss?: string | null;
|
|
125
|
+
TimeReported?: string | null;
|
|
126
|
+
}
|
|
127
|
+
export type UpdateClaimRequest = Partial<Omit<ClaimV2, 'ClaimID' | 'ClientID'>>;
|
|
128
|
+
export interface CloseClaimRequest {
|
|
129
|
+
ClosedDate: string;
|
|
130
|
+
}
|
|
@@ -154,4 +154,32 @@ export declare namespace PolicyV2Model {
|
|
|
154
154
|
}[];
|
|
155
155
|
IgnoreOpenActivities?: boolean;
|
|
156
156
|
}
|
|
157
|
+
interface PolicyLineType {
|
|
158
|
+
ApplicationDetail: string;
|
|
159
|
+
ClassificationCode: string;
|
|
160
|
+
Code: string;
|
|
161
|
+
CodeID: number;
|
|
162
|
+
DepartmentCode: string;
|
|
163
|
+
Description: string;
|
|
164
|
+
PlanYear: boolean;
|
|
165
|
+
PolicyCanBeLineOfBusiness: boolean;
|
|
166
|
+
ProfitCenterCode: string;
|
|
167
|
+
TermDefault: string;
|
|
168
|
+
TypeOfBusinessCode: string;
|
|
169
|
+
APSection: string;
|
|
170
|
+
DefaultSystemDateAsEffectiveDate: boolean;
|
|
171
|
+
ClaimType: string;
|
|
172
|
+
DefaultIssuingLocation: boolean;
|
|
173
|
+
IncludePolicyInformationSection: boolean;
|
|
174
|
+
IsActive: boolean;
|
|
175
|
+
LossNoticeFilterCode: string;
|
|
176
|
+
NumberOfDaysPriorToExpirationShowInRenewalsManager: number;
|
|
177
|
+
TaxOptionCode: string;
|
|
178
|
+
AnnualizedCode: string;
|
|
179
|
+
IncludeAdditionalCoverages: boolean;
|
|
180
|
+
IncludeAdditionalInterests: boolean;
|
|
181
|
+
IncludeFormsEndorsements: boolean;
|
|
182
|
+
IncludeRemarks: boolean;
|
|
183
|
+
IvansProductCode: string;
|
|
184
|
+
}
|
|
157
185
|
}
|
|
@@ -2,7 +2,7 @@ import { Activity, CreateActivity } from '../../models/epic/Activity';
|
|
|
2
2
|
import { AdditionalInterest } from '../../models/epic/AdditionalInterest';
|
|
3
3
|
import { Attachment, AttachmentDetail, CreateAttachment } from '../../models/epic/Attachment';
|
|
4
4
|
import { Broker } from '../../models/epic/Broker';
|
|
5
|
-
import { Claim } from '../../models/epic/Claim';
|
|
5
|
+
import { Claim, ClaimV2, CloseClaimRequest, CreateClaimRequest, UpdateClaimRequest } from '../../models/epic/Claim';
|
|
6
6
|
import { Commission } from '../../models/epic/Commission';
|
|
7
7
|
import { Company } from '../../models/epic/Company';
|
|
8
8
|
import { Contact, CreateContact } from '../../models/epic/Contact';
|
|
@@ -59,6 +59,7 @@ export declare class EpicService extends BaseEpicService {
|
|
|
59
59
|
issueEndorsementPolicyV2(payload: PolicyV2Model.IssueEndorsement): Promise<void>;
|
|
60
60
|
issueCancellationPolicyV2(payload: PolicyV2Model.IssueCancellation): Promise<void>;
|
|
61
61
|
getPolicyV2RenewalStages(ids: number[]): Promise<RenewalStage[]>;
|
|
62
|
+
getPolicyLineType(lineTypeCode: string): Promise<PolicyV2Model.PolicyLineType>;
|
|
62
63
|
getEmployee(id: string): Promise<Broker>;
|
|
63
64
|
getEmployees(queryParams: object): Promise<Broker[]>;
|
|
64
65
|
getEmployeeV2(id: number): Promise<Employee>;
|
|
@@ -93,6 +94,12 @@ export declare class EpicService extends BaseEpicService {
|
|
|
93
94
|
createOpportunity(payload: object): Promise<string | string[]>;
|
|
94
95
|
getClaim(claimId: string): Promise<Claim>;
|
|
95
96
|
getClaims(queryParams: object): Promise<Claim[]>;
|
|
97
|
+
getClaimV2(claimId: string): Promise<ClaimV2>;
|
|
98
|
+
getClaimsV2(queryParams: object): Promise<ClaimV2[]>;
|
|
99
|
+
createClaim(payload: CreateClaimRequest): Promise<string | string[]>;
|
|
100
|
+
updateClaim(claimId: string, payload: UpdateClaimRequest): Promise<string>;
|
|
101
|
+
closeClaim(claimId: string, payload: CloseClaimRequest): Promise<string>;
|
|
102
|
+
reopenClaim(claimId: string): Promise<string>;
|
|
96
103
|
getPersonalAutoVehicles(queryParams: object): Promise<Vehicle[]>;
|
|
97
104
|
getPersonalAutoDrivers(queryParams: object): Promise<Driver[]>;
|
|
98
105
|
getCommercialAutoVehicles(queryParams: object): Promise<Vehicle[]>;
|
|
@@ -108,6 +108,9 @@ class EpicService extends BaseEpicService_1.BaseEpicService {
|
|
|
108
108
|
ids: ids.join(','),
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
+
async getPolicyLineType(lineTypeCode) {
|
|
112
|
+
return this.getOne('policyV2/lineType', lineTypeCode);
|
|
113
|
+
}
|
|
111
114
|
async getEmployee(id) {
|
|
112
115
|
return await this.getOne('employee', id);
|
|
113
116
|
}
|
|
@@ -210,6 +213,24 @@ class EpicService extends BaseEpicService_1.BaseEpicService {
|
|
|
210
213
|
async getClaims(queryParams) {
|
|
211
214
|
return this.get('claim', queryParams);
|
|
212
215
|
}
|
|
216
|
+
async getClaimV2(claimId) {
|
|
217
|
+
return this.getOne('claimV2', claimId);
|
|
218
|
+
}
|
|
219
|
+
async getClaimsV2(queryParams) {
|
|
220
|
+
return this.get('claimV2', queryParams);
|
|
221
|
+
}
|
|
222
|
+
async createClaim(payload) {
|
|
223
|
+
return this.post('claim', payload);
|
|
224
|
+
}
|
|
225
|
+
async updateClaim(claimId, payload) {
|
|
226
|
+
return this.put(`claim/${claimId}`, payload);
|
|
227
|
+
}
|
|
228
|
+
async closeClaim(claimId, payload) {
|
|
229
|
+
return this.put(`claim/close/${claimId}`, payload);
|
|
230
|
+
}
|
|
231
|
+
async reopenClaim(claimId) {
|
|
232
|
+
return this.put(`claim/reopen/${claimId}`, {});
|
|
233
|
+
}
|
|
213
234
|
async getPersonalAutoVehicles(queryParams) {
|
|
214
235
|
return this.get('personalAuto/vehicle', queryParams);
|
|
215
236
|
}
|