@lendi/integrations-transform 1.0.7 → 1.1.1
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/lib/index.d.ts +7 -0
- package/lib/index.js +20 -0
- package/lib/logger.d.ts +2 -0
- package/lib/logger.js +5 -0
- package/lib/schemas/credit-report-retrieved-event.json +57 -0
- package/lib/schemas/public-applicant-event.json +652 -0
- package/lib/schemas/public-application-event.json +224 -0
- package/lib/schemas/public-asset-event.json +633 -0
- package/lib/schemas/public-asset-liability-relation-delete-event.json +74 -0
- package/lib/schemas/public-asset-liability-relation-event.json +73 -0
- package/lib/schemas/public-create-applicant-event.json +610 -0
- package/lib/schemas/public-delete-applicant-event.json +66 -0
- package/lib/schemas/public-delete-asset-event.json +53 -0
- package/lib/schemas/public-delete-income-event.json +55 -0
- package/lib/schemas/public-employment-delete-event.json +31 -0
- package/lib/schemas/public-employment-event.json +302 -0
- package/lib/schemas/public-expense-delete-event.json +41 -0
- package/lib/schemas/public-expense-event.json +132 -0
- package/lib/schemas/public-funding-position-event.json +289 -0
- package/lib/schemas/public-income-event.json +242 -0
- package/lib/schemas/public-liability-delete-event.json +37 -0
- package/lib/schemas/public-liability-event.json +234 -0
- package/lib/schemas/public-required-document-event.json +98 -0
- package/lib/schemas/public-update-applicant-event.json +607 -0
- package/lib/schemas/sf-opportunity-event-out.json +138 -0
- package/lib/transform-events/generate-asset-liability-link.d.ts +8 -0
- package/lib/transform-events/generate-asset-liability-link.js +29 -0
- package/lib/transform-events/generate-asset.d.ts +17 -0
- package/lib/transform-events/generate-asset.js +178 -0
- package/lib/transform-events/generate-credit-report-rebuilt.d.ts +8 -0
- package/lib/transform-events/generate-credit-report-rebuilt.js +41 -0
- package/lib/transform-events/generate-employment.d.ts +8 -0
- package/lib/transform-events/generate-employment.js +106 -0
- package/lib/transform-events/generate-funding-position.d.ts +18 -0
- package/lib/transform-events/generate-funding-position.js +82 -0
- package/lib/transform-events/generate-income.d.ts +37 -0
- package/lib/transform-events/generate-income.js +254 -0
- package/lib/transform-events/generate-liability.d.ts +8 -0
- package/lib/transform-events/generate-liability.js +87 -0
- package/lib/transform-events/generate-lixi-percentowned.d.ts +9 -0
- package/lib/transform-events/generate-lixi-percentowned.js +24 -0
- package/lib/transform-events/generate-opportunity.d.ts +8 -0
- package/lib/transform-events/generate-opportunity.js +32 -0
- package/lib/transform-events/generate-required-document.d.ts +8 -0
- package/lib/transform-events/generate-required-document.js +54 -0
- package/lib/transform-events/transform-applicant.d.ts +33 -0
- package/lib/transform-events/transform-applicant.js +189 -0
- package/lib/transform-events/transform-application.d.ts +8 -0
- package/lib/transform-events/transform-application.js +54 -0
- package/lib/transform-events/transform-expenses.d.ts +37 -0
- package/lib/transform-events/transform-expenses.js +121 -0
- package/lib/types/enum-mappings/alieo-frequency.d.ts +15 -0
- package/lib/types/enum-mappings/alieo-frequency.js +26 -0
- package/lib/types/enum-mappings/country-code.d.ts +7 -0
- package/lib/types/enum-mappings/country-code.js +247 -0
- package/lib/types/enum-mappings/employment-basis.d.ts +7 -0
- package/lib/types/enum-mappings/employment-basis.js +13 -0
- package/lib/types/enum-mappings/expense-frequency.d.ts +7 -0
- package/lib/types/enum-mappings/expense-frequency.js +12 -0
- package/lib/types/enum-mappings/funding-position.d.ts +18 -0
- package/lib/types/enum-mappings/funding-position.js +34 -0
- package/lib/types/enum-mappings/government-benefits.d.ts +7 -0
- package/lib/types/enum-mappings/government-benefits.js +11 -0
- package/lib/types/enum-mappings/housing-status.d.ts +7 -0
- package/lib/types/enum-mappings/housing-status.js +16 -0
- package/lib/types/enum-mappings/income-type.d.ts +7 -0
- package/lib/types/enum-mappings/income-type.js +17 -0
- package/lib/types/enum-mappings/liability-payment-type.d.ts +7 -0
- package/lib/types/enum-mappings/liability-payment-type.js +10 -0
- package/lib/types/enum-mappings/liability-type.d.ts +7 -0
- package/lib/types/enum-mappings/liability-type.js +22 -0
- package/lib/types/enum-mappings/living-expense.d.ts +7 -0
- package/lib/types/enum-mappings/living-expense.js +31 -0
- package/lib/types/enum-mappings/marital-status.d.ts +7 -0
- package/lib/types/enum-mappings/marital-status.js +13 -0
- package/lib/types/enum-mappings/postcode.d.ts +6 -0
- package/lib/types/enum-mappings/postcode.js +16 -0
- package/lib/types/enum-mappings/preferred-repayment.d.ts +7 -0
- package/lib/types/enum-mappings/preferred-repayment.js +11 -0
- package/lib/types/enum-mappings/proof-of-identity.d.ts +7 -0
- package/lib/types/enum-mappings/proof-of-identity.js +11 -0
- package/lib/types/enum-mappings/public-financial-asset.d.ts +7 -0
- package/lib/types/enum-mappings/public-financial-asset.js +13 -0
- package/lib/types/enum-mappings/public-primary-purpose.d.ts +7 -0
- package/lib/types/enum-mappings/public-primary-purpose.js +10 -0
- package/lib/types/enum-mappings/public-property-status.d.ts +7 -0
- package/lib/types/enum-mappings/public-property-status.js +12 -0
- package/lib/types/enum-mappings/public-property-type.d.ts +7 -0
- package/lib/types/enum-mappings/public-property-type.js +24 -0
- package/lib/types/enum-mappings/residency-status.d.ts +7 -0
- package/lib/types/enum-mappings/residency-status.js +12 -0
- package/lib/types/enum-mappings/title-gender.d.ts +7 -0
- package/lib/types/enum-mappings/title-gender.js +14 -0
- package/lib/types/enum-mappings/title.d.ts +7 -0
- package/lib/types/enum-mappings/title.js +14 -0
- package/lib/types/enum-mappings/transaction-type.d.ts +7 -0
- package/lib/types/enum-mappings/transaction-type.js +10 -0
- package/lib/types/events/applicant-delete.d.ts +42 -0
- package/lib/types/events/applicant-delete.js +15 -0
- package/lib/types/events/asset-delete.d.ts +33 -0
- package/lib/types/events/asset-delete.js +15 -0
- package/lib/types/events/asset-liability-relation-delete.d.ts +52 -0
- package/lib/types/events/asset-liability-relation-delete.js +15 -0
- package/lib/types/events/credit-report-retrieved.d.ts +36 -0
- package/lib/types/events/credit-report-retrieved.js +15 -0
- package/lib/types/events/employment-delete.d.ts +19 -0
- package/lib/types/events/employment-delete.js +7 -0
- package/lib/types/events/expense-delete.d.ts +21 -0
- package/lib/types/events/expense-delete.js +7 -0
- package/lib/types/events/funding-position.d.ts +116 -0
- package/lib/types/events/funding-position.js +34 -0
- package/lib/types/events/income-delete.d.ts +33 -0
- package/lib/types/events/income-delete.js +15 -0
- package/lib/types/events/liability-delete.d.ts +17 -0
- package/lib/types/events/liability-delete.js +7 -0
- package/lib/types/events/opportunity.d.ts +102 -0
- package/lib/types/events/opportunity.js +47 -0
- package/lib/types/events/public-applicant.d.ts +485 -0
- package/lib/types/events/public-applicant.js +343 -0
- package/lib/types/events/public-application.d.ts +145 -0
- package/lib/types/events/public-application.js +100 -0
- package/lib/types/events/public-asset-liability-relation.d.ts +52 -0
- package/lib/types/events/public-asset-liability-relation.js +15 -0
- package/lib/types/events/public-asset.d.ts +469 -0
- package/lib/types/events/public-asset.js +319 -0
- package/lib/types/events/public-employment.d.ts +190 -0
- package/lib/types/events/public-employment.js +69 -0
- package/lib/types/events/public-expense.d.ts +83 -0
- package/lib/types/events/public-expense.js +50 -0
- package/lib/types/events/public-funding-position.d.ts +226 -0
- package/lib/types/events/public-funding-position.js +7 -0
- package/lib/types/events/public-income.d.ts +144 -0
- package/lib/types/events/public-income.js +65 -0
- package/lib/types/events/public-liability.d.ts +133 -0
- package/lib/types/events/public-liability.js +68 -0
- package/lib/types/events/public-required-document.d.ts +99 -0
- package/lib/types/events/public-required-document.js +44 -0
- package/lib/types/partial-application.d.ts +3 -0
- package/lib/types/partial-application.js +2 -0
- package/lib/types/recursive-partial.d.ts +3 -0
- package/lib/types/recursive-partial.js +2 -0
- package/lib/utils/address-tools.d.ts +69 -0
- package/lib/utils/address-tools.js +146 -0
- package/lib/utils/clean-up.d.ts +7 -0
- package/lib/utils/clean-up.js +24 -0
- package/lib/utils/generate-address.d.ts +19 -0
- package/lib/utils/generate-address.js +102 -0
- package/lib/utils/get-financial-institution.d.ts +7 -0
- package/lib/utils/get-financial-institution.js +16 -0
- package/lib/utils/is-income-type.d.ts +83 -0
- package/lib/utils/is-income-type.js +166 -0
- package/lib/utils/normalise-date.d.ts +8 -0
- package/lib/utils/normalise-date.js +17 -0
- package/lib/utils/round-decimal.d.ts +6 -0
- package/lib/utils/round-decimal.js +12 -0
- package/package.json +10 -7
|
@@ -0,0 +1,485 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create, update or delete. UpdatePrimaryApplicant is DEPRECATED
|
|
3
|
+
*/
|
|
4
|
+
export interface PublicApplicant {
|
|
5
|
+
payload: Payload;
|
|
6
|
+
type: Type;
|
|
7
|
+
/**
|
|
8
|
+
* schema version
|
|
9
|
+
*/
|
|
10
|
+
version: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* create/update applicant payload
|
|
14
|
+
*/
|
|
15
|
+
export interface Payload {
|
|
16
|
+
applicantType?: ApplicantType;
|
|
17
|
+
/**
|
|
18
|
+
* uuid of application
|
|
19
|
+
*/
|
|
20
|
+
applicationId: string;
|
|
21
|
+
citizenship?: Countries;
|
|
22
|
+
/**
|
|
23
|
+
* uuid of source applicant
|
|
24
|
+
*/
|
|
25
|
+
clonedFromApplicantId?: string;
|
|
26
|
+
contact?: Contact;
|
|
27
|
+
countryOfBirth?: Countries;
|
|
28
|
+
creditStatus?: CreditStatus;
|
|
29
|
+
/**
|
|
30
|
+
* uuid of customer
|
|
31
|
+
*/
|
|
32
|
+
customerId: string;
|
|
33
|
+
dateOfBirth?: string;
|
|
34
|
+
dependants?: Dependant[];
|
|
35
|
+
employmentType?: EmploymentType;
|
|
36
|
+
entity?: Entity;
|
|
37
|
+
firstName?: string;
|
|
38
|
+
gender?: Gender;
|
|
39
|
+
hasSelfEmploymentProof?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* uuid of applicant
|
|
42
|
+
*/
|
|
43
|
+
id: string;
|
|
44
|
+
invitationStatus?: InvitationStatus;
|
|
45
|
+
isFirstHomeBuyer?: boolean;
|
|
46
|
+
isPrimaryApplicant?: boolean;
|
|
47
|
+
lastName?: string;
|
|
48
|
+
maritalDetails?: ApplicantKeyObject;
|
|
49
|
+
maritalStatus?: MaritalStatus;
|
|
50
|
+
meta?: ApplicantMeta;
|
|
51
|
+
middleName?: string;
|
|
52
|
+
/**
|
|
53
|
+
* Mothers Maiden Name
|
|
54
|
+
*/
|
|
55
|
+
mothersMaidenName?: string;
|
|
56
|
+
residencyStatus?: ResidencyStatus;
|
|
57
|
+
title?: Title;
|
|
58
|
+
totalIncomeEstimate?: number;
|
|
59
|
+
}
|
|
60
|
+
export declare enum ApplicantType {
|
|
61
|
+
Borrower = "BORROWER",
|
|
62
|
+
BorrowerAndGuarantor = "BORROWER_AND_GUARANTOR",
|
|
63
|
+
Guarantor = "GUARANTOR"
|
|
64
|
+
}
|
|
65
|
+
export declare enum Countries {
|
|
66
|
+
Afghanistan = "Afghanistan",
|
|
67
|
+
Albania = "Albania",
|
|
68
|
+
Algeria = "Algeria",
|
|
69
|
+
AmericanSamoa = "American Samoa",
|
|
70
|
+
Andorra = "Andorra",
|
|
71
|
+
Angola = "Angola",
|
|
72
|
+
Anguilla = "Anguilla",
|
|
73
|
+
Antarctica = "Antarctica",
|
|
74
|
+
AntiguaAndBarbuda = "Antigua And Barbuda",
|
|
75
|
+
Argentina = "Argentina",
|
|
76
|
+
Armenia = "Armenia",
|
|
77
|
+
Aruba = "Aruba",
|
|
78
|
+
Australia = "Australia",
|
|
79
|
+
Austria = "Austria",
|
|
80
|
+
Azerbaijan = "Azerbaijan",
|
|
81
|
+
Bahamas = "Bahamas",
|
|
82
|
+
Bahrain = "Bahrain",
|
|
83
|
+
Bangladesh = "Bangladesh",
|
|
84
|
+
Barbados = "Barbados",
|
|
85
|
+
Belarus = "Belarus",
|
|
86
|
+
Belgium = "Belgium",
|
|
87
|
+
Belize = "Belize",
|
|
88
|
+
Benin = "Benin",
|
|
89
|
+
Bermuda = "Bermuda",
|
|
90
|
+
Bhutan = "Bhutan",
|
|
91
|
+
Bolivia = "Bolivia",
|
|
92
|
+
BosniaAndHerzegovina = "Bosnia And Herzegovina",
|
|
93
|
+
Botswana = "Botswana",
|
|
94
|
+
BouvetIsland = "Bouvet Island",
|
|
95
|
+
Brazil = "Brazil",
|
|
96
|
+
BritishIndianOceanTerritory = "British Indian Ocean Territory",
|
|
97
|
+
BritishVirginIslands = "British Virgin Islands",
|
|
98
|
+
BruneiDarussalam = "Brunei Darussalam",
|
|
99
|
+
Bulgaria = "Bulgaria",
|
|
100
|
+
BurkinaFaso = "Burkina Faso",
|
|
101
|
+
Burundi = "Burundi",
|
|
102
|
+
Cambodia = "Cambodia",
|
|
103
|
+
Cameroon = "Cameroon",
|
|
104
|
+
Canada = "Canada",
|
|
105
|
+
CapeVerde = "Cape Verde",
|
|
106
|
+
CaymanIslands = "Cayman Islands",
|
|
107
|
+
CentralAfricanRepublic = "Central African Republic",
|
|
108
|
+
Chad = "Chad",
|
|
109
|
+
Chile = "Chile",
|
|
110
|
+
China = "China",
|
|
111
|
+
ChristmasIsland = "Christmas Island",
|
|
112
|
+
CocosKeelingIslands = "Cocos (Keeling) Islands",
|
|
113
|
+
Colombia = "Colombia",
|
|
114
|
+
Comoros = "Comoros",
|
|
115
|
+
CookIslands = "Cook Islands",
|
|
116
|
+
CostaRica = "Costa Rica",
|
|
117
|
+
CoteDIvoire = "Cote D'ivoire",
|
|
118
|
+
Croatia = "Croatia",
|
|
119
|
+
Cuba = "Cuba",
|
|
120
|
+
Cyprus = "Cyprus",
|
|
121
|
+
CzechRepublic = "Czech Republic",
|
|
122
|
+
DemocraticPeopleSRepublicOfKorea = "Democratic People's Republic of Korea",
|
|
123
|
+
DemocraticRepublicOfTheCongo = "Democratic Republic Of The Congo",
|
|
124
|
+
Denmark = "Denmark",
|
|
125
|
+
Djibouti = "Djibouti",
|
|
126
|
+
Dominica = "Dominica",
|
|
127
|
+
DominicanRepublic = "Dominican Republic",
|
|
128
|
+
EastTimor = "East Timor",
|
|
129
|
+
Ecuador = "Ecuador",
|
|
130
|
+
Egypt = "Egypt",
|
|
131
|
+
ElSalvador = "El Salvador",
|
|
132
|
+
EquatorialGuinea = "Equatorial Guinea",
|
|
133
|
+
Eritrea = "Eritrea",
|
|
134
|
+
Estonia = "Estonia",
|
|
135
|
+
Ethiopia = "Ethiopia",
|
|
136
|
+
FalklandIslands = "Falkland Islands",
|
|
137
|
+
FaroeIslands = "Faroe Islands",
|
|
138
|
+
FederatedStatesOfMicronesia = "Federated States Of Micronesia",
|
|
139
|
+
Fiji = "Fiji",
|
|
140
|
+
Finland = "Finland",
|
|
141
|
+
France = "France",
|
|
142
|
+
FrenchGuiana = "French Guiana",
|
|
143
|
+
FrenchPolynesia = "French Polynesia",
|
|
144
|
+
FrenchSouthernTerritories = "French Southern Territories",
|
|
145
|
+
Gabon = "Gabon",
|
|
146
|
+
Gambia = "Gambia",
|
|
147
|
+
Georgia = "Georgia",
|
|
148
|
+
Germany = "Germany",
|
|
149
|
+
Ghana = "Ghana",
|
|
150
|
+
Gibraltar = "Gibraltar",
|
|
151
|
+
Greece = "Greece",
|
|
152
|
+
Greenland = "Greenland",
|
|
153
|
+
Grenada = "Grenada",
|
|
154
|
+
Guadeloupe = "Guadeloupe",
|
|
155
|
+
Guam = "Guam",
|
|
156
|
+
Guatemala = "Guatemala",
|
|
157
|
+
Guinea = "Guinea",
|
|
158
|
+
GuineaBissau = "Guinea-bissau",
|
|
159
|
+
Guyana = "Guyana",
|
|
160
|
+
Haiti = "Haiti",
|
|
161
|
+
HeardIslandAndMcdonaldIslands = "Heard Island And Mcdonald Islands",
|
|
162
|
+
HolySeeVaticanCityState = "Holy See (Vatican City State)",
|
|
163
|
+
Honduras = "Honduras",
|
|
164
|
+
HongKong = "Hong Kong",
|
|
165
|
+
Hungary = "Hungary",
|
|
166
|
+
Iceland = "Iceland",
|
|
167
|
+
India = "India",
|
|
168
|
+
Indonesia = "Indonesia",
|
|
169
|
+
Iran = "Iran",
|
|
170
|
+
Iraq = "Iraq",
|
|
171
|
+
Ireland = "Ireland",
|
|
172
|
+
Israel = "Israel",
|
|
173
|
+
Italy = "Italy",
|
|
174
|
+
Jamaica = "Jamaica",
|
|
175
|
+
Japan = "Japan",
|
|
176
|
+
Jordan = "Jordan",
|
|
177
|
+
Kazakstan = "Kazakstan",
|
|
178
|
+
Kenya = "Kenya",
|
|
179
|
+
Kiribati = "Kiribati",
|
|
180
|
+
Kosovo = "Kosovo",
|
|
181
|
+
Kuwait = "Kuwait",
|
|
182
|
+
Kyrgyzstan = "Kyrgyzstan",
|
|
183
|
+
Laos = "Laos",
|
|
184
|
+
Latvia = "Latvia",
|
|
185
|
+
Lebanon = "Lebanon",
|
|
186
|
+
Lesotho = "Lesotho",
|
|
187
|
+
Liberia = "Liberia",
|
|
188
|
+
LibyanArabJamahiriya = "Libyan Arab Jamahiriya",
|
|
189
|
+
Liechtenstein = "Liechtenstein",
|
|
190
|
+
Lithuania = "Lithuania",
|
|
191
|
+
Luxembourg = "Luxembourg",
|
|
192
|
+
Macau = "Macau",
|
|
193
|
+
Macedonia = "Macedonia",
|
|
194
|
+
Madagascar = "Madagascar",
|
|
195
|
+
Malawi = "Malawi",
|
|
196
|
+
Malaysia = "Malaysia",
|
|
197
|
+
Maldives = "Maldives",
|
|
198
|
+
Mali = "Mali",
|
|
199
|
+
Malta = "Malta",
|
|
200
|
+
MarshallIslands = "Marshall Islands",
|
|
201
|
+
Martinique = "Martinique",
|
|
202
|
+
Mauritania = "Mauritania",
|
|
203
|
+
Mauritius = "Mauritius",
|
|
204
|
+
Mayotte = "Mayotte",
|
|
205
|
+
Mexico = "Mexico",
|
|
206
|
+
Monaco = "Monaco",
|
|
207
|
+
Mongolia = "Mongolia",
|
|
208
|
+
Montenegro = "Montenegro",
|
|
209
|
+
Montserrat = "Montserrat",
|
|
210
|
+
Morocco = "Morocco",
|
|
211
|
+
Mozambique = "Mozambique",
|
|
212
|
+
Myanmar = "Myanmar",
|
|
213
|
+
Namibia = "Namibia",
|
|
214
|
+
Nauru = "Nauru",
|
|
215
|
+
Nepal = "Nepal",
|
|
216
|
+
Netherlands = "Netherlands",
|
|
217
|
+
NetherlandsAntilles = "Netherlands Antilles",
|
|
218
|
+
NewCaledonia = "New Caledonia",
|
|
219
|
+
NewZealand = "New Zealand",
|
|
220
|
+
Nicaragua = "Nicaragua",
|
|
221
|
+
Niger = "Niger",
|
|
222
|
+
Nigeria = "Nigeria",
|
|
223
|
+
Niue = "Niue",
|
|
224
|
+
NorfolkIsland = "Norfolk Island",
|
|
225
|
+
NorthernMarianaIslands = "Northern Mariana Islands",
|
|
226
|
+
Norway = "Norway",
|
|
227
|
+
Oman = "Oman",
|
|
228
|
+
Pakistan = "Pakistan",
|
|
229
|
+
Palau = "Palau",
|
|
230
|
+
PalestinianTerritory = "Palestinian Territory",
|
|
231
|
+
Panama = "Panama",
|
|
232
|
+
PapuaNewGuinea = "Papua New Guinea",
|
|
233
|
+
Paraguay = "Paraguay",
|
|
234
|
+
Peru = "Peru",
|
|
235
|
+
Philippines = "Philippines",
|
|
236
|
+
Pitcairn = "Pitcairn",
|
|
237
|
+
Poland = "Poland",
|
|
238
|
+
Portugal = "Portugal",
|
|
239
|
+
PuertoRico = "Puerto Rico",
|
|
240
|
+
Qatar = "Qatar",
|
|
241
|
+
RepublicOfMoldova = "Republic Of Moldova",
|
|
242
|
+
Romania = "Romania",
|
|
243
|
+
RussianFederation = "Russian Federation",
|
|
244
|
+
Rwanda = "Rwanda",
|
|
245
|
+
SANMarino = "San Marino",
|
|
246
|
+
SaintHelena = "Saint Helena",
|
|
247
|
+
SaintKittsAndNevis = "Saint Kitts And Nevis",
|
|
248
|
+
SaintLucia = "Saint Lucia",
|
|
249
|
+
SaintPierreAndMiquelon = "Saint Pierre And Miquelon",
|
|
250
|
+
SaintVincentAndTheGrenadines = "Saint Vincent And The Grenadines",
|
|
251
|
+
Samoa = "Samoa",
|
|
252
|
+
SaoTomeAndPrincipe = "Sao Tome And Principe",
|
|
253
|
+
SaudiArabia = "Saudi Arabia",
|
|
254
|
+
Senegal = "Senegal",
|
|
255
|
+
Serbia = "Serbia",
|
|
256
|
+
Seychelles = "Seychelles",
|
|
257
|
+
SierraLeone = "Sierra Leone",
|
|
258
|
+
Singapore = "Singapore",
|
|
259
|
+
Slovakia = "Slovakia",
|
|
260
|
+
Slovenia = "Slovenia",
|
|
261
|
+
SolomonIslands = "Solomon Islands",
|
|
262
|
+
Somalia = "Somalia",
|
|
263
|
+
SouthAfrica = "South Africa",
|
|
264
|
+
SouthGeorgiaAndTheSouthSandwichIslands = "South Georgia And The South Sandwich Islands",
|
|
265
|
+
Spain = "Spain",
|
|
266
|
+
SriLanka = "Sri Lanka",
|
|
267
|
+
Sudan = "Sudan",
|
|
268
|
+
Suriname = "Suriname",
|
|
269
|
+
SvalbardAndJanMayen = "Svalbard And Jan Mayen",
|
|
270
|
+
Swaziland = "Swaziland",
|
|
271
|
+
Sweden = "Sweden",
|
|
272
|
+
Switzerland = "Switzerland",
|
|
273
|
+
SyrianArabRepublic = "Syrian Arab Republic",
|
|
274
|
+
Taiwan = "Taiwan",
|
|
275
|
+
Tajikistan = "Tajikistan",
|
|
276
|
+
Tanzania = "Tanzania",
|
|
277
|
+
Thailand = "Thailand",
|
|
278
|
+
TheRepublicOfSouthKorea = "The Republic of South Korea",
|
|
279
|
+
Togo = "Togo",
|
|
280
|
+
Tokelau = "Tokelau",
|
|
281
|
+
Tonga = "Tonga",
|
|
282
|
+
TrinidadAndTobago = "Trinidad And Tobago",
|
|
283
|
+
Tunisia = "Tunisia",
|
|
284
|
+
Turkey = "Turkey",
|
|
285
|
+
Turkmenistan = "Turkmenistan",
|
|
286
|
+
TurksAndCaicosIslands = "Turks And Caicos Islands",
|
|
287
|
+
Tuvalu = "Tuvalu",
|
|
288
|
+
USVirginIslands = "US Virgin Islands",
|
|
289
|
+
Uganda = "Uganda",
|
|
290
|
+
Ukraine = "Ukraine",
|
|
291
|
+
UnitedArabEmirates = "United Arab Emirates",
|
|
292
|
+
UnitedKingdom = "United Kingdom",
|
|
293
|
+
UnitedStatesMinorOutlyingIslands = "United States Minor Outlying Islands",
|
|
294
|
+
UnitedStatesOfAmerica = "United States of America",
|
|
295
|
+
Uruguay = "Uruguay",
|
|
296
|
+
Uzbekistan = "Uzbekistan",
|
|
297
|
+
Vanuatu = "Vanuatu",
|
|
298
|
+
Venezuela = "Venezuela",
|
|
299
|
+
Vietnam = "Vietnam",
|
|
300
|
+
WallisAndFutuna = "Wallis And Futuna",
|
|
301
|
+
WesternSahara = "Western Sahara",
|
|
302
|
+
Yemen = "Yemen",
|
|
303
|
+
Zambia = "Zambia",
|
|
304
|
+
Zimbabwe = "Zimbabwe"
|
|
305
|
+
}
|
|
306
|
+
export interface Contact {
|
|
307
|
+
currentAddress?: CommonAddressProperties;
|
|
308
|
+
/**
|
|
309
|
+
* The applicant email
|
|
310
|
+
*/
|
|
311
|
+
emailAddress?: string;
|
|
312
|
+
/**
|
|
313
|
+
* applicant's mailing address being captured as part of funnels 5 (post product select)
|
|
314
|
+
*/
|
|
315
|
+
mailingAddress?: Address;
|
|
316
|
+
/**
|
|
317
|
+
* applicant's mobile number formatted in +611234567890
|
|
318
|
+
*/
|
|
319
|
+
mobileNumber?: string;
|
|
320
|
+
/**
|
|
321
|
+
* applicant's post settlement address being captured as part of funnels 5 (post product
|
|
322
|
+
* select)
|
|
323
|
+
*/
|
|
324
|
+
postSettlementAddress?: Address;
|
|
325
|
+
previousAddresses?: PreviousAddress[];
|
|
326
|
+
}
|
|
327
|
+
export interface CommonAddressProperties {
|
|
328
|
+
externalId?: string;
|
|
329
|
+
housingStatus?: HousingStatusList;
|
|
330
|
+
residentialAddress?: Address;
|
|
331
|
+
startDate?: string;
|
|
332
|
+
}
|
|
333
|
+
export declare enum HousingStatusList {
|
|
334
|
+
Boarding = "Boarding",
|
|
335
|
+
Caravan = "Caravan",
|
|
336
|
+
Other = "Other",
|
|
337
|
+
OwnHome = "Own Home",
|
|
338
|
+
OwnHomeMortgage = "Own Home Mortgage",
|
|
339
|
+
Renting = "Renting",
|
|
340
|
+
SuppliedByEmployer = "Supplied by Employer",
|
|
341
|
+
WithParents = "With Parents"
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* applicant's mailing address being captured as part of funnels 5 (post product select)
|
|
345
|
+
*
|
|
346
|
+
* applicant's post settlement address being captured as part of funnels 5 (post product
|
|
347
|
+
* select)
|
|
348
|
+
*/
|
|
349
|
+
export interface Address {
|
|
350
|
+
city?: string;
|
|
351
|
+
country?: Countries;
|
|
352
|
+
formatted?: string;
|
|
353
|
+
postcode?: string;
|
|
354
|
+
standard?: AddressStandard;
|
|
355
|
+
state?: string;
|
|
356
|
+
}
|
|
357
|
+
export interface AddressStandard {
|
|
358
|
+
/**
|
|
359
|
+
* The building name
|
|
360
|
+
*/
|
|
361
|
+
buildingName?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Postal address, usually a PO Box or Locked Bag
|
|
364
|
+
*/
|
|
365
|
+
deliveryAddress?: string;
|
|
366
|
+
level?: string;
|
|
367
|
+
/**
|
|
368
|
+
* The lot number
|
|
369
|
+
*/
|
|
370
|
+
lotSection?: string;
|
|
371
|
+
streetName?: string;
|
|
372
|
+
streetNumber?: string;
|
|
373
|
+
/**
|
|
374
|
+
* The street suffix
|
|
375
|
+
*/
|
|
376
|
+
streetSuffix?: string;
|
|
377
|
+
streetType?: string;
|
|
378
|
+
unit?: string;
|
|
379
|
+
}
|
|
380
|
+
export interface PreviousAddress {
|
|
381
|
+
endDate?: string;
|
|
382
|
+
externalId?: string;
|
|
383
|
+
housingStatus?: HousingStatusList;
|
|
384
|
+
residentialAddress?: Address;
|
|
385
|
+
startDate?: string;
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* current credit status of the applicant (Customer declared value)
|
|
389
|
+
*/
|
|
390
|
+
export declare enum CreditStatus {
|
|
391
|
+
Average = "AVERAGE",
|
|
392
|
+
Excellent = "EXCELLENT",
|
|
393
|
+
Fair = "FAIR",
|
|
394
|
+
Unknown = "UNKNOWN"
|
|
395
|
+
}
|
|
396
|
+
export interface Dependant {
|
|
397
|
+
age?: number;
|
|
398
|
+
/**
|
|
399
|
+
* Id for entity.
|
|
400
|
+
*/
|
|
401
|
+
id?: string;
|
|
402
|
+
/**
|
|
403
|
+
* Whether dependant was added for this applicant.
|
|
404
|
+
*/
|
|
405
|
+
isAddedOnThisApplicant?: boolean;
|
|
406
|
+
sharedWith?: ApplicantKeyObject;
|
|
407
|
+
}
|
|
408
|
+
export interface ApplicantKeyObject {
|
|
409
|
+
applicantId?: string;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* applicant's employment type
|
|
413
|
+
*/
|
|
414
|
+
export declare enum EmploymentType {
|
|
415
|
+
Employee = "EMPLOYEE",
|
|
416
|
+
SelfEmployed = "SELF_EMPLOYED",
|
|
417
|
+
Unknown = "UNKNOWN"
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* applicant's entity. For a person applicant this is 'PERSON'
|
|
421
|
+
*/
|
|
422
|
+
export declare enum Entity {
|
|
423
|
+
Company = "COMPANY",
|
|
424
|
+
Person = "PERSON"
|
|
425
|
+
}
|
|
426
|
+
export declare enum Gender {
|
|
427
|
+
Female = "FEMALE",
|
|
428
|
+
Male = "MALE",
|
|
429
|
+
Undisclosed = "UNDISCLOSED",
|
|
430
|
+
Unknown = "UNKNOWN"
|
|
431
|
+
}
|
|
432
|
+
/**
|
|
433
|
+
* different invitation statuses an applicant can have
|
|
434
|
+
*/
|
|
435
|
+
export declare enum InvitationStatus {
|
|
436
|
+
Accepted = "ACCEPTED",
|
|
437
|
+
Cancelled = "CANCELLED",
|
|
438
|
+
Expired = "EXPIRED",
|
|
439
|
+
Pending = "PENDING"
|
|
440
|
+
}
|
|
441
|
+
export declare enum MaritalStatus {
|
|
442
|
+
DeFacto = "DE_FACTO",
|
|
443
|
+
Divorced = "DIVORCED",
|
|
444
|
+
Married = "MARRIED",
|
|
445
|
+
Single = "SINGLE",
|
|
446
|
+
Unknown = "UNKNOWN"
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* The metadata of the applicant
|
|
450
|
+
*/
|
|
451
|
+
export interface ApplicantMeta {
|
|
452
|
+
/**
|
|
453
|
+
* uuid of user who made the action (create/update/delete)
|
|
454
|
+
*/
|
|
455
|
+
actionedBy: string;
|
|
456
|
+
/**
|
|
457
|
+
* role of the user that made the action
|
|
458
|
+
*/
|
|
459
|
+
actionedByRole: ActionedByRole;
|
|
460
|
+
}
|
|
461
|
+
/**
|
|
462
|
+
* role of the user that made the action
|
|
463
|
+
*/
|
|
464
|
+
export declare enum ActionedByRole {
|
|
465
|
+
Customer = "customer",
|
|
466
|
+
Team = "team"
|
|
467
|
+
}
|
|
468
|
+
export declare enum ResidencyStatus {
|
|
469
|
+
AustralianCitizen = "AUSTRALIAN_CITIZEN",
|
|
470
|
+
PermanentResident = "PERMANENT_RESIDENT",
|
|
471
|
+
TemporaryResident = "TEMPORARY_RESIDENT",
|
|
472
|
+
Unknown = "UNKNOWN"
|
|
473
|
+
}
|
|
474
|
+
export declare enum Title {
|
|
475
|
+
DR = "DR",
|
|
476
|
+
MS = "MS",
|
|
477
|
+
Miss = "MISS",
|
|
478
|
+
Mr = "MR",
|
|
479
|
+
Mrs = "MRS",
|
|
480
|
+
Unknown = "UNKNOWN"
|
|
481
|
+
}
|
|
482
|
+
export declare enum Type {
|
|
483
|
+
CreateApplicant = "CreateApplicant",
|
|
484
|
+
UpdateApplicant = "UpdateApplicant"
|
|
485
|
+
}
|