@cemiar/cemiarlink-sdk 1.0.57 → 1.0.58
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/README.md +651 -651
- package/dist/epic-api/index.d.ts +2 -0
- package/dist/epic-api/index.js +18 -0
- package/dist/epic-api/models/BaseModels.d.ts +34 -0
- package/dist/epic-api/models/BaseModels.js +2 -0
- package/dist/epic-api/models/EpicApiOptions.d.ts +12 -0
- package/dist/epic-api/models/EpicApiOptions.js +2 -0
- package/dist/epic-api/models/epic/Client.d.ts +203 -0
- package/dist/epic-api/models/epic/Client.js +2 -0
- package/dist/epic-api/models/epic/Form.d.ts +113 -0
- package/dist/epic-api/models/epic/Form.js +2 -0
- package/dist/epic-api/models/epic/Line.d.ts +146 -0
- package/dist/epic-api/models/epic/Line.js +2 -0
- package/dist/epic-api/models/epic/Organization.d.ts +31 -0
- package/dist/epic-api/models/epic/Organization.js +2 -0
- package/dist/epic-api/models/epic/Policy.d.ts +111 -0
- package/dist/epic-api/models/epic/Policy.js +2 -0
- package/dist/epic-api/models/epic/index.d.ts +5 -0
- package/dist/epic-api/models/epic/index.js +21 -0
- package/dist/epic-api/models/index.d.ts +3 -0
- package/dist/epic-api/models/index.js +19 -0
- package/dist/epic-api/modules/BaseModule.d.ts +14 -0
- package/dist/epic-api/modules/BaseModule.js +31 -0
- package/dist/epic-api/modules/ClientModule.d.ts +9 -0
- package/dist/epic-api/modules/ClientModule.js +24 -0
- package/dist/epic-api/modules/FormModule.d.ts +8 -0
- package/dist/epic-api/modules/FormModule.js +22 -0
- package/dist/epic-api/modules/PolicyModule.d.ts +11 -0
- package/dist/epic-api/modules/PolicyModule.js +30 -0
- package/dist/epic-api/services/EpicApiService.d.ts +29 -0
- package/dist/epic-api/services/EpicApiService.js +132 -0
- package/dist/epic-api/services/index.d.ts +1 -0
- package/dist/epic-api/services/index.js +17 -0
- package/dist/index.js +7 -17
- package/dist/models/index.js +7 -17
- package/dist/utils/Excel.js +1 -2
- package/package.json +42 -30
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./models"), exports);
|
|
18
|
+
__exportStar(require("./services"), exports);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export interface ListParams {
|
|
2
|
+
limit?: number;
|
|
3
|
+
offset?: number;
|
|
4
|
+
embed?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface BaseListResponse<T> {
|
|
7
|
+
total: number;
|
|
8
|
+
_links: Links;
|
|
9
|
+
_embedded: {
|
|
10
|
+
[key: string]: T[];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export interface ListResponse<T> {
|
|
14
|
+
items: T[];
|
|
15
|
+
total: number;
|
|
16
|
+
links: Links;
|
|
17
|
+
}
|
|
18
|
+
export interface Link {
|
|
19
|
+
href: string;
|
|
20
|
+
templated?: boolean;
|
|
21
|
+
type?: string;
|
|
22
|
+
deprecation?: string;
|
|
23
|
+
name?: string;
|
|
24
|
+
profile?: string;
|
|
25
|
+
title?: string;
|
|
26
|
+
hreflang?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface Links {
|
|
29
|
+
self: Link;
|
|
30
|
+
next?: Link;
|
|
31
|
+
prev?: Link;
|
|
32
|
+
first?: Link;
|
|
33
|
+
last?: Link;
|
|
34
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type CemiarLinkOptions = {
|
|
2
|
+
env: 'local';
|
|
3
|
+
baseURL: string;
|
|
4
|
+
} | {
|
|
5
|
+
env: 'dev' | 'prod';
|
|
6
|
+
taskId?: string;
|
|
7
|
+
};
|
|
8
|
+
export interface EpicApiOptions {
|
|
9
|
+
apiEnv?: 'dev' | 'prod';
|
|
10
|
+
language?: 'en-US' | 'fr-CA';
|
|
11
|
+
cemiarLink?: CemiarLinkOptions;
|
|
12
|
+
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { ListParams } from '../BaseModels';
|
|
2
|
+
export interface Client {
|
|
3
|
+
id: string;
|
|
4
|
+
active?: boolean;
|
|
5
|
+
individualOrBusiness?: 'INDIVIDUAL' | 'BUSINESS';
|
|
6
|
+
businessTypes?: ('AGRICULTURE' | 'BENEFITS' | 'BONDS' | 'COMMERCIAL' | 'FINANCIAL_SERVICES' | 'LIFE_AND_HEALTH' | 'PERSONAL' | 'OTHER')[];
|
|
7
|
+
name: string;
|
|
8
|
+
lookupCode?: string;
|
|
9
|
+
type: 'PROSPECT' | 'INSURED';
|
|
10
|
+
customId?: string | null;
|
|
11
|
+
accountSource?: string;
|
|
12
|
+
doNotPurge?: boolean;
|
|
13
|
+
organizations: string[];
|
|
14
|
+
address?: ClientAddress;
|
|
15
|
+
comments?: string;
|
|
16
|
+
phoneNumber?: ClientPhoneNumber;
|
|
17
|
+
inactiveReason?: string;
|
|
18
|
+
enteredBy?: ClientAudit;
|
|
19
|
+
lastUpdatedBy?: ClientAudit;
|
|
20
|
+
convertedOn?: string;
|
|
21
|
+
priorAccountId?: string;
|
|
22
|
+
business?: ClientBusiness | null;
|
|
23
|
+
billing?: ClientBilling;
|
|
24
|
+
servicingContacts?: ClientServicingContact[];
|
|
25
|
+
primaryContact?: string;
|
|
26
|
+
mainBusinessContact?: string;
|
|
27
|
+
_links?: ClientLinks;
|
|
28
|
+
_embedded?: Record<string, any>;
|
|
29
|
+
}
|
|
30
|
+
export interface ClientAddress {
|
|
31
|
+
streets: string[];
|
|
32
|
+
city: string;
|
|
33
|
+
zipOrPostalCode: string;
|
|
34
|
+
county: string;
|
|
35
|
+
stateOrProvince: string;
|
|
36
|
+
countryCode: string;
|
|
37
|
+
description: string;
|
|
38
|
+
siteId: string;
|
|
39
|
+
mailing: boolean;
|
|
40
|
+
billing: boolean;
|
|
41
|
+
}
|
|
42
|
+
export interface ClientPhoneNumber {
|
|
43
|
+
callPermission: 'OBTAINED' | 'DID_NOT_OBTAIN' | 'PLEASE_DO_NOT_CALL';
|
|
44
|
+
number?: string;
|
|
45
|
+
description?: string;
|
|
46
|
+
extension?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface ClientAudit {
|
|
49
|
+
date: string;
|
|
50
|
+
userCode: string;
|
|
51
|
+
}
|
|
52
|
+
export interface ClientBusiness {
|
|
53
|
+
email?: string;
|
|
54
|
+
website?: string;
|
|
55
|
+
faxNumber?: ClientPhoneNumber | null;
|
|
56
|
+
}
|
|
57
|
+
export interface ClientLinks {
|
|
58
|
+
self: {
|
|
59
|
+
href: string;
|
|
60
|
+
};
|
|
61
|
+
organizations: {
|
|
62
|
+
href: string;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export interface ClientFilter extends ListParams {
|
|
66
|
+
active_status?: string;
|
|
67
|
+
address_contains?: string;
|
|
68
|
+
email?: string;
|
|
69
|
+
email_contains?: string;
|
|
70
|
+
enteredBy?: string;
|
|
71
|
+
enteredBy_contains?: string;
|
|
72
|
+
enteredOn_before?: string;
|
|
73
|
+
enteredOn_after?: string;
|
|
74
|
+
lookupCode?: string;
|
|
75
|
+
lookupCode_contains?: string;
|
|
76
|
+
name?: string;
|
|
77
|
+
name_contains?: string;
|
|
78
|
+
customId?: string;
|
|
79
|
+
customId_contains?: string;
|
|
80
|
+
organization?: string;
|
|
81
|
+
phoneNumber?: string;
|
|
82
|
+
phoneNumber_contains?: string;
|
|
83
|
+
priorAccountId?: string;
|
|
84
|
+
priorAccountId_contains?: string;
|
|
85
|
+
type?: string;
|
|
86
|
+
updatedBy?: string;
|
|
87
|
+
updatedBy_contains?: string;
|
|
88
|
+
updatedOn_after?: string;
|
|
89
|
+
updatedOn_before?: string;
|
|
90
|
+
'servicingContacts.role'?: string;
|
|
91
|
+
'servicingContacts.employee'?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface CreateClient {
|
|
94
|
+
name: string;
|
|
95
|
+
type: 'PROSPECT' | 'INSURED';
|
|
96
|
+
organizations: string[];
|
|
97
|
+
primaryContact: CreateClientContact;
|
|
98
|
+
active?: boolean;
|
|
99
|
+
individualOrBusiness?: 'INDIVIDUAL' | 'BUSINESS';
|
|
100
|
+
businessTypes?: ('AGRICULTURE' | 'BENEFITS' | 'BONDS' | 'COMMERCIAL' | 'FINANCIAL_SERVICES' | 'LIFE_AND_HEALTH' | 'PERSONAL' | 'OTHER')[];
|
|
101
|
+
lookupCode?: string;
|
|
102
|
+
customId?: string | null;
|
|
103
|
+
accountSource?: string;
|
|
104
|
+
doNotPurge?: boolean;
|
|
105
|
+
address?: ClientAddress;
|
|
106
|
+
comments?: string;
|
|
107
|
+
phoneNumber?: ClientPhoneNumber;
|
|
108
|
+
inactiveReason?: string;
|
|
109
|
+
business?: ClientBusiness;
|
|
110
|
+
billing?: ClientBilling;
|
|
111
|
+
servicingContacts?: ClientServicingContact[];
|
|
112
|
+
}
|
|
113
|
+
export interface ClientBilling {
|
|
114
|
+
broker?: string;
|
|
115
|
+
billBrokerNet?: boolean;
|
|
116
|
+
invoicePageBreak?: 'CLIENT' | 'ITEM' | 'POLICY';
|
|
117
|
+
invoiceLayout?: string;
|
|
118
|
+
serviceCharge?: boolean;
|
|
119
|
+
statementPageBreak?: 'ACCOUNT' | 'CONTACT';
|
|
120
|
+
statementLayout?: string;
|
|
121
|
+
overrideAchFee?: number;
|
|
122
|
+
overrideCcFee?: number;
|
|
123
|
+
accountBalance?: {
|
|
124
|
+
currencySymbol: string;
|
|
125
|
+
units: string;
|
|
126
|
+
partialUnits: number;
|
|
127
|
+
};
|
|
128
|
+
continuousPaymentAuthorization?: {
|
|
129
|
+
authorized: boolean;
|
|
130
|
+
cardLastDigits?: string;
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
export interface ClientServicingContact {
|
|
134
|
+
role: string;
|
|
135
|
+
employee: string;
|
|
136
|
+
description?: string;
|
|
137
|
+
_links?: Record<string, {
|
|
138
|
+
href: string;
|
|
139
|
+
}>;
|
|
140
|
+
_embedded?: Record<string, any>;
|
|
141
|
+
}
|
|
142
|
+
export interface CreateClientContact {
|
|
143
|
+
individualOrBusiness: 'INDIVIDUAL' | 'BUSINESS';
|
|
144
|
+
marketingPreferences: ClientMarketingPreferences;
|
|
145
|
+
primaryContactPreference: 'PHONE' | 'EMAIL' | 'MAIL' | 'FAX' | 'SMS';
|
|
146
|
+
billingContactPreference: 'EMAIL' | 'MAIL' | 'FAX';
|
|
147
|
+
servicingContactPreference: 'EMAIL' | 'MAIL' | 'FAX';
|
|
148
|
+
preferredLanguage: string;
|
|
149
|
+
phoneNumbers?: ContactPhoneNumber[];
|
|
150
|
+
useAccountAddress?: boolean;
|
|
151
|
+
address?: ClientAddress | null;
|
|
152
|
+
emails?: ClientEmail[];
|
|
153
|
+
website?: string;
|
|
154
|
+
conversationalSmsOptIn?: boolean;
|
|
155
|
+
comments?: string;
|
|
156
|
+
individualContact?: IndividualContact;
|
|
157
|
+
businessContact?: BusinessContact;
|
|
158
|
+
}
|
|
159
|
+
export interface ContactPhoneNumber extends ClientPhoneNumber {
|
|
160
|
+
type: 'BUSINESS' | 'MOBILE' | 'RESIDENCE' | 'FAX' | 'OTHER';
|
|
161
|
+
primary?: boolean;
|
|
162
|
+
}
|
|
163
|
+
export interface IndividualContact {
|
|
164
|
+
lastName: string;
|
|
165
|
+
person?: string;
|
|
166
|
+
prefix?: string;
|
|
167
|
+
firstName?: string;
|
|
168
|
+
middleName?: string;
|
|
169
|
+
suffix?: string;
|
|
170
|
+
formalName?: string;
|
|
171
|
+
informalName?: string;
|
|
172
|
+
dateOfBirth?: string;
|
|
173
|
+
}
|
|
174
|
+
export interface BusinessContact {
|
|
175
|
+
name: string;
|
|
176
|
+
businessStartedDate?: string;
|
|
177
|
+
naics?: string;
|
|
178
|
+
sic?: string;
|
|
179
|
+
}
|
|
180
|
+
export interface ClientPrimaryContact {
|
|
181
|
+
individualOrBusiness: 'INDIVIDUAL' | 'BUSINESS';
|
|
182
|
+
marketingPreferences: ClientMarketingPreferences;
|
|
183
|
+
primaryContactPreference: 'PHONE' | 'EMAIL' | 'MAIL' | 'FAX' | 'SMS';
|
|
184
|
+
billingContactPreference: 'EMAIL' | 'MAIL' | 'FAX';
|
|
185
|
+
servicingContactPreference: 'EMAIL' | 'MAIL' | 'FAX';
|
|
186
|
+
preferredLanguage: string;
|
|
187
|
+
phoneNumbers?: ContactPhoneNumber[];
|
|
188
|
+
useAccountAddress?: boolean;
|
|
189
|
+
address?: ClientAddress | null;
|
|
190
|
+
emails?: ClientEmail[];
|
|
191
|
+
website?: string;
|
|
192
|
+
conversationalSmsOptIn?: boolean;
|
|
193
|
+
comments?: string;
|
|
194
|
+
}
|
|
195
|
+
export interface ClientMarketingPreferences {
|
|
196
|
+
doNotMarket: boolean;
|
|
197
|
+
preferred?: 'PHONE' | 'EMAIL' | 'MAIL' | 'FAX';
|
|
198
|
+
allowed?: ('PHONE' | 'EMAIL' | 'MAIL' | 'FAX' | '3RD_PARTY' | 'SMS')[];
|
|
199
|
+
}
|
|
200
|
+
export interface ClientEmail {
|
|
201
|
+
emailAddress: string;
|
|
202
|
+
description?: string;
|
|
203
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export interface FormContentResponse<T> {
|
|
2
|
+
_links: {
|
|
3
|
+
self: {
|
|
4
|
+
href: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
content: T;
|
|
8
|
+
}
|
|
9
|
+
export interface SubmissionFormDefinition {
|
|
10
|
+
form: FormDefinition;
|
|
11
|
+
prefillForm: PrefillForm | null;
|
|
12
|
+
clientId: number;
|
|
13
|
+
hiddenFields: string[];
|
|
14
|
+
isSample: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface FormDefinition {
|
|
17
|
+
guid: string;
|
|
18
|
+
label: string;
|
|
19
|
+
description?: string;
|
|
20
|
+
formPages: FormPage[];
|
|
21
|
+
formBlocks: FormBlock[];
|
|
22
|
+
formFields: FormField[];
|
|
23
|
+
insuranceTypes: InsuranceType[];
|
|
24
|
+
countries: string[];
|
|
25
|
+
categoryName?: string;
|
|
26
|
+
isTestAgency?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export interface FormPage {
|
|
29
|
+
guid: string;
|
|
30
|
+
label: string;
|
|
31
|
+
isDraft?: string;
|
|
32
|
+
isLocked?: boolean;
|
|
33
|
+
clonedFromParent?: string | number | null;
|
|
34
|
+
}
|
|
35
|
+
export interface FormBlock {
|
|
36
|
+
guid: string;
|
|
37
|
+
entity?: number;
|
|
38
|
+
condition?: Record<string, any> | null;
|
|
39
|
+
attributes?: Record<string, any>;
|
|
40
|
+
label: string;
|
|
41
|
+
description?: string;
|
|
42
|
+
formPage?: string;
|
|
43
|
+
after?: string;
|
|
44
|
+
type?: string;
|
|
45
|
+
hasRootEntity?: boolean;
|
|
46
|
+
isLocked?: boolean;
|
|
47
|
+
isDraft?: string;
|
|
48
|
+
clonedFromParent?: string | number | null;
|
|
49
|
+
entityLink?: string | number | null;
|
|
50
|
+
children?: string;
|
|
51
|
+
entityDetails?: {
|
|
52
|
+
id: number;
|
|
53
|
+
label: string;
|
|
54
|
+
};
|
|
55
|
+
integrationsIdentifier?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface FormField {
|
|
58
|
+
guid: string;
|
|
59
|
+
type: string;
|
|
60
|
+
attributes?: Record<string, any>;
|
|
61
|
+
label: string;
|
|
62
|
+
metadata?: string | Record<string, any>;
|
|
63
|
+
child?: string;
|
|
64
|
+
}
|
|
65
|
+
export interface InsuranceType {
|
|
66
|
+
id: number;
|
|
67
|
+
name: string;
|
|
68
|
+
}
|
|
69
|
+
export interface PrefillForm {
|
|
70
|
+
id: number;
|
|
71
|
+
name: string;
|
|
72
|
+
form?: {
|
|
73
|
+
guid: string;
|
|
74
|
+
label: string;
|
|
75
|
+
description?: string;
|
|
76
|
+
};
|
|
77
|
+
defaultPrefill?: {
|
|
78
|
+
id: number;
|
|
79
|
+
name: string;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
export interface SubmissionResponse {
|
|
83
|
+
id: number;
|
|
84
|
+
formField: {
|
|
85
|
+
guid: string;
|
|
86
|
+
type: string;
|
|
87
|
+
attributes?: Record<string, any>;
|
|
88
|
+
label: string;
|
|
89
|
+
};
|
|
90
|
+
type: string;
|
|
91
|
+
response: any;
|
|
92
|
+
}
|
|
93
|
+
export interface SubmissionResponseRow {
|
|
94
|
+
id: number;
|
|
95
|
+
entity: number;
|
|
96
|
+
formBlocks: FormBlock[];
|
|
97
|
+
responses: SubmissionResponse[];
|
|
98
|
+
responseRows: SubmissionResponseRow[];
|
|
99
|
+
formBlocksIntegrationsIdentifiers?: string[];
|
|
100
|
+
}
|
|
101
|
+
export interface SubmissionResponsesResult {
|
|
102
|
+
responses: SubmissionResponse[];
|
|
103
|
+
responseRows: SubmissionResponseRow[];
|
|
104
|
+
}
|
|
105
|
+
export interface UpdateSubmissionResponsesPayload {
|
|
106
|
+
responses: SubmissionResponse[];
|
|
107
|
+
responseRows: SubmissionResponseRow[];
|
|
108
|
+
}
|
|
109
|
+
export interface UpdateSubmissionResponsesResult {
|
|
110
|
+
errors: any[];
|
|
111
|
+
responses: SubmissionResponse[];
|
|
112
|
+
responseRows: SubmissionResponseRow[];
|
|
113
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { ListParams } from '../BaseModels';
|
|
2
|
+
import { PolicyCurrency } from './Policy';
|
|
3
|
+
export interface Line {
|
|
4
|
+
id: string;
|
|
5
|
+
status?: string;
|
|
6
|
+
lineType?: string;
|
|
7
|
+
issuingCompany?: string;
|
|
8
|
+
issuingLocation?: {
|
|
9
|
+
stateOrProvince: string;
|
|
10
|
+
country: string;
|
|
11
|
+
};
|
|
12
|
+
premiumPayable?: {
|
|
13
|
+
account: string;
|
|
14
|
+
type: 'EXTERNAL_BROKER' | 'CARRIER' | 'INTERNAL_BROKER';
|
|
15
|
+
};
|
|
16
|
+
organization?: string;
|
|
17
|
+
billMode?: 'AGENCY' | 'DIRECT';
|
|
18
|
+
agencyFirstWrittenOn?: string;
|
|
19
|
+
effectiveOn?: string;
|
|
20
|
+
expirationOn?: string;
|
|
21
|
+
planOptionName?: string;
|
|
22
|
+
planLineId?: string;
|
|
23
|
+
billTo?: LineBillTo;
|
|
24
|
+
producerBrokerCommission?: {
|
|
25
|
+
type: 'SINGLE_TERM' | 'MULTI_TERM';
|
|
26
|
+
};
|
|
27
|
+
client?: string;
|
|
28
|
+
policy?: string;
|
|
29
|
+
premium?: LinePremium;
|
|
30
|
+
commission?: LinePremium;
|
|
31
|
+
comments?: string;
|
|
32
|
+
newRevenueBeginOn?: string;
|
|
33
|
+
renewalRevenueBeginOn?: string;
|
|
34
|
+
billingPlan?: string;
|
|
35
|
+
financed?: boolean;
|
|
36
|
+
taxOption?: 'NOT_APPLICABLE' | 'AUTO_GENERATE' | 'EXEMPT' | 'PROMPT';
|
|
37
|
+
lineCommission?: LineCommission;
|
|
38
|
+
risksInsured?: number;
|
|
39
|
+
risksInsuredDescription?: string;
|
|
40
|
+
totalEligible?: number;
|
|
41
|
+
totalEligibleDescription?: string;
|
|
42
|
+
payableContract?: string;
|
|
43
|
+
cobraStateContinuation?: 'NONE' | 'OFFERED' | 'NOT_OFFERED';
|
|
44
|
+
rateGuaranteedThrough?: string;
|
|
45
|
+
stage?: string;
|
|
46
|
+
action?: string;
|
|
47
|
+
lastUpdatedBy?: {
|
|
48
|
+
userCode?: string;
|
|
49
|
+
date?: string;
|
|
50
|
+
};
|
|
51
|
+
_links?: Record<string, {
|
|
52
|
+
href: string;
|
|
53
|
+
}>;
|
|
54
|
+
_embedded?: Record<string, any>;
|
|
55
|
+
}
|
|
56
|
+
export interface CreateLine {
|
|
57
|
+
status: string;
|
|
58
|
+
lineType: string;
|
|
59
|
+
issuingLocation: {
|
|
60
|
+
stateOrProvince: string;
|
|
61
|
+
country: string;
|
|
62
|
+
};
|
|
63
|
+
organization: string;
|
|
64
|
+
policy: string;
|
|
65
|
+
billMode: 'AGENCY' | 'DIRECT';
|
|
66
|
+
issuingCompany?: string;
|
|
67
|
+
premiumPayable?: {
|
|
68
|
+
account: string;
|
|
69
|
+
type: 'EXTERNAL_BROKER' | 'CARRIER' | 'INTERNAL_BROKER';
|
|
70
|
+
};
|
|
71
|
+
agencyFirstWrittenOn?: string;
|
|
72
|
+
effectiveOn?: string;
|
|
73
|
+
expirationOn?: string;
|
|
74
|
+
planOptionName?: string;
|
|
75
|
+
planLineId?: string;
|
|
76
|
+
billTo?: LineBillTo;
|
|
77
|
+
producerBrokerCommission?: {
|
|
78
|
+
type: 'SINGLE_TERM' | 'MULTI_TERM';
|
|
79
|
+
};
|
|
80
|
+
premium?: LinePremium;
|
|
81
|
+
commission?: LinePremium;
|
|
82
|
+
comments?: string;
|
|
83
|
+
newRevenueBeginOn?: string;
|
|
84
|
+
renewalRevenueBeginOn?: string;
|
|
85
|
+
billingPlan?: string;
|
|
86
|
+
financed?: boolean;
|
|
87
|
+
taxOption?: 'NOT_APPLICABLE' | 'AUTO_GENERATE' | 'EXEMPT' | 'PROMPT';
|
|
88
|
+
lineCommission?: LineCommission;
|
|
89
|
+
risksInsured?: number;
|
|
90
|
+
risksInsuredDescription?: string;
|
|
91
|
+
totalEligible?: number;
|
|
92
|
+
totalEligibleDescription?: string;
|
|
93
|
+
payableContract?: string;
|
|
94
|
+
cobraStateContinuation?: 'NONE' | 'OFFERED' | 'NOT_OFFERED';
|
|
95
|
+
rateGuaranteedThrough?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface LineFilter extends ListParams {
|
|
98
|
+
policy?: string;
|
|
99
|
+
'lastUpdatedOn.date_before'?: string;
|
|
100
|
+
'lastUpdatedOn.date_after'?: string;
|
|
101
|
+
'lineType.code'?: string;
|
|
102
|
+
'lineType.code_contains'?: string;
|
|
103
|
+
effectiveOn?: string;
|
|
104
|
+
effectiveOn_before?: string;
|
|
105
|
+
effectiveOn_after?: string;
|
|
106
|
+
expirationOn?: string;
|
|
107
|
+
expirationOn_before?: string;
|
|
108
|
+
expirationOn_after?: string;
|
|
109
|
+
organization?: string;
|
|
110
|
+
client?: string;
|
|
111
|
+
}
|
|
112
|
+
export interface LinePremium {
|
|
113
|
+
estimated?: PolicyCurrency;
|
|
114
|
+
annualized?: PolicyCurrency;
|
|
115
|
+
billed?: PolicyCurrency;
|
|
116
|
+
estimatedMonthly?: PolicyCurrency;
|
|
117
|
+
}
|
|
118
|
+
export interface LineBillTo {
|
|
119
|
+
contactName?: string;
|
|
120
|
+
address?: LineAddress;
|
|
121
|
+
deliveryMethod?: 'MAIL' | 'EMAIL' | 'FAX';
|
|
122
|
+
email?: string;
|
|
123
|
+
faxNumber?: {
|
|
124
|
+
number?: string;
|
|
125
|
+
extension?: string;
|
|
126
|
+
};
|
|
127
|
+
account?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface LineAddress {
|
|
130
|
+
streets?: string[];
|
|
131
|
+
city?: string;
|
|
132
|
+
stateOrProvince?: string;
|
|
133
|
+
zipOrPostalCode?: string;
|
|
134
|
+
county?: string;
|
|
135
|
+
countryCode?: string;
|
|
136
|
+
description?: string;
|
|
137
|
+
siteId?: string;
|
|
138
|
+
}
|
|
139
|
+
export interface LineCommission {
|
|
140
|
+
useAgreement?: boolean;
|
|
141
|
+
commissionAgreement?: string;
|
|
142
|
+
overrideAgreement?: boolean;
|
|
143
|
+
type?: 'FLAT_FEE' | 'PERCENTAGE_OF_PREMIUM';
|
|
144
|
+
percent?: number;
|
|
145
|
+
amount?: PolicyCurrency;
|
|
146
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ListParams } from '../BaseModels';
|
|
2
|
+
export interface Organization {
|
|
3
|
+
id: string;
|
|
4
|
+
agency: string;
|
|
5
|
+
branch: string;
|
|
6
|
+
_links?: {
|
|
7
|
+
self?: {
|
|
8
|
+
href: string;
|
|
9
|
+
};
|
|
10
|
+
agency?: {
|
|
11
|
+
href: string;
|
|
12
|
+
};
|
|
13
|
+
branch?: {
|
|
14
|
+
href: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
_embedded?: {
|
|
18
|
+
agency?: {
|
|
19
|
+
id: string;
|
|
20
|
+
code: string;
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
branch?: {
|
|
24
|
+
id: string;
|
|
25
|
+
code: string;
|
|
26
|
+
name: string;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
export interface OrganizationFilter extends ListParams {
|
|
31
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { ListParams } from '../BaseModels';
|
|
2
|
+
export interface Policy {
|
|
3
|
+
id: string;
|
|
4
|
+
status?: string;
|
|
5
|
+
organization?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
effectiveOn?: string;
|
|
8
|
+
expirationOn?: string;
|
|
9
|
+
policyNumber?: string;
|
|
10
|
+
policyType?: string;
|
|
11
|
+
client?: string;
|
|
12
|
+
premium?: PolicyPremium;
|
|
13
|
+
commission?: PolicyCommission;
|
|
14
|
+
source?: string;
|
|
15
|
+
turnOffPolicyDownload?: boolean;
|
|
16
|
+
datesChanged?: boolean;
|
|
17
|
+
originalPolicy?: string;
|
|
18
|
+
lines?: string[];
|
|
19
|
+
historic?: boolean;
|
|
20
|
+
enteredBy?: PolicyProcessAndDate;
|
|
21
|
+
lastUpdatedBy?: PolicyProcessAndDate;
|
|
22
|
+
_links?: Record<string, {
|
|
23
|
+
href: string;
|
|
24
|
+
}>;
|
|
25
|
+
_embedded?: Record<string, any>;
|
|
26
|
+
}
|
|
27
|
+
export interface CreatePolicy {
|
|
28
|
+
description: string;
|
|
29
|
+
effectiveOn: string;
|
|
30
|
+
expirationOn: string;
|
|
31
|
+
policyType: string;
|
|
32
|
+
client: string;
|
|
33
|
+
status?: string;
|
|
34
|
+
policyNumber?: string;
|
|
35
|
+
premium?: PolicyPremium;
|
|
36
|
+
commission?: PolicyCommission;
|
|
37
|
+
source?: string;
|
|
38
|
+
turnOffPolicyDownload?: boolean;
|
|
39
|
+
lines?: CreatePolicyLine[];
|
|
40
|
+
}
|
|
41
|
+
export interface CreatePolicyLine {
|
|
42
|
+
status: string;
|
|
43
|
+
lineType: string;
|
|
44
|
+
issuingLocation: {
|
|
45
|
+
stateOrProvince: string;
|
|
46
|
+
country: string;
|
|
47
|
+
};
|
|
48
|
+
organization: string;
|
|
49
|
+
billMode: 'AGENCY' | 'DIRECT';
|
|
50
|
+
issuingCompany?: string;
|
|
51
|
+
premiumPayable?: {
|
|
52
|
+
account: string;
|
|
53
|
+
type: 'EXTERNAL_BROKER' | 'INTERNAL_BROKER';
|
|
54
|
+
};
|
|
55
|
+
agencyFirstWrittenOn?: string;
|
|
56
|
+
effectiveOn?: string;
|
|
57
|
+
expirationOn?: string;
|
|
58
|
+
planOptionName?: string;
|
|
59
|
+
planLineId?: string;
|
|
60
|
+
billTo?: PolicyBillTo;
|
|
61
|
+
premium?: PolicyPremium;
|
|
62
|
+
commission?: PolicyCommission;
|
|
63
|
+
comments?: string;
|
|
64
|
+
newRevenueBeginOn?: string;
|
|
65
|
+
renewalRevenueBeginOn?: string;
|
|
66
|
+
producerBrokerCommission?: {
|
|
67
|
+
type: 'SINGLE_TERM' | 'MULTI_TERM';
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
export interface PolicyFilter extends ListParams {
|
|
71
|
+
policyType?: string;
|
|
72
|
+
'lineType.code'?: string;
|
|
73
|
+
'lineType.code_contains'?: string;
|
|
74
|
+
policyNumber?: string;
|
|
75
|
+
policyNumber_contains?: string;
|
|
76
|
+
effectiveOn?: string;
|
|
77
|
+
effectiveOn_before?: string;
|
|
78
|
+
effectiveOn_after?: string;
|
|
79
|
+
expirationOn?: string;
|
|
80
|
+
expirationOn_before?: string;
|
|
81
|
+
expirationOn_after?: string;
|
|
82
|
+
enteredOn_before?: string;
|
|
83
|
+
enteredOn_after?: string;
|
|
84
|
+
lastUpdatedOn_before?: string;
|
|
85
|
+
lastUpdatedOn_after?: string;
|
|
86
|
+
historic?: string;
|
|
87
|
+
status?: string;
|
|
88
|
+
client?: string;
|
|
89
|
+
insertedByProcessCode?: string;
|
|
90
|
+
updatedByProcessCode?: string;
|
|
91
|
+
originalPolicy?: string;
|
|
92
|
+
}
|
|
93
|
+
export interface PolicyPremium {
|
|
94
|
+
estimated?: PolicyCurrency;
|
|
95
|
+
}
|
|
96
|
+
export interface PolicyCommission {
|
|
97
|
+
estimated?: PolicyCurrency;
|
|
98
|
+
}
|
|
99
|
+
export interface PolicyCurrency {
|
|
100
|
+
currencySymbol?: string;
|
|
101
|
+
units?: string;
|
|
102
|
+
partialUnits?: number;
|
|
103
|
+
}
|
|
104
|
+
export interface PolicyProcessAndDate {
|
|
105
|
+
code?: string;
|
|
106
|
+
date?: string;
|
|
107
|
+
}
|
|
108
|
+
export interface PolicyBillTo {
|
|
109
|
+
contactName?: string;
|
|
110
|
+
account?: string;
|
|
111
|
+
}
|