@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,469 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Create, update or delete
|
|
3
|
+
*/
|
|
4
|
+
export interface PublicAsset {
|
|
5
|
+
payload: AssetDefinition;
|
|
6
|
+
type: Type;
|
|
7
|
+
/**
|
|
8
|
+
* schema version
|
|
9
|
+
*/
|
|
10
|
+
version: string;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* create/update Asset payload
|
|
14
|
+
*/
|
|
15
|
+
export interface AssetDefinition {
|
|
16
|
+
applicationId: string;
|
|
17
|
+
asset: Asset;
|
|
18
|
+
/**
|
|
19
|
+
* uuid of asset
|
|
20
|
+
*/
|
|
21
|
+
id: string;
|
|
22
|
+
meta?: Meta;
|
|
23
|
+
}
|
|
24
|
+
export interface Asset {
|
|
25
|
+
address?: Address;
|
|
26
|
+
constructionDetails?: ConstructionDetails;
|
|
27
|
+
contractDetails?: ContractDetails;
|
|
28
|
+
contractPriceAmount?: number;
|
|
29
|
+
description?: string;
|
|
30
|
+
estimatedValue?: number;
|
|
31
|
+
financialInstitution?: string;
|
|
32
|
+
financialInstitutionShortName?: string;
|
|
33
|
+
knockDownToRebuild?: boolean;
|
|
34
|
+
make?: string;
|
|
35
|
+
model?: string;
|
|
36
|
+
percentOwned?: PercentOwned;
|
|
37
|
+
primaryPurpose?: PrimaryPurpose;
|
|
38
|
+
propertyStatus?: PropertyStatus;
|
|
39
|
+
propertyType?: PropertyType;
|
|
40
|
+
toBePurchased?: boolean;
|
|
41
|
+
toBeSold?: boolean;
|
|
42
|
+
toBeUsedAsSecurity?: boolean;
|
|
43
|
+
type: AssetType;
|
|
44
|
+
year?: number;
|
|
45
|
+
zoneType?: ZoneType;
|
|
46
|
+
}
|
|
47
|
+
export interface Address {
|
|
48
|
+
/**
|
|
49
|
+
* The city / suburb name
|
|
50
|
+
*/
|
|
51
|
+
city?: string;
|
|
52
|
+
country?: Countries;
|
|
53
|
+
/**
|
|
54
|
+
* A formatted version of the address
|
|
55
|
+
*/
|
|
56
|
+
formatted?: string;
|
|
57
|
+
/**
|
|
58
|
+
* N digit postcode (for AU addresses, usually 4)
|
|
59
|
+
*/
|
|
60
|
+
postcode?: string;
|
|
61
|
+
standard?: AddressStandard;
|
|
62
|
+
/**
|
|
63
|
+
* The state name
|
|
64
|
+
*/
|
|
65
|
+
state?: string;
|
|
66
|
+
}
|
|
67
|
+
export declare enum Countries {
|
|
68
|
+
Afghanistan = "Afghanistan",
|
|
69
|
+
Albania = "Albania",
|
|
70
|
+
Algeria = "Algeria",
|
|
71
|
+
AmericanSamoa = "American Samoa",
|
|
72
|
+
Andorra = "Andorra",
|
|
73
|
+
Angola = "Angola",
|
|
74
|
+
Anguilla = "Anguilla",
|
|
75
|
+
Antarctica = "Antarctica",
|
|
76
|
+
AntiguaAndBarbuda = "Antigua And Barbuda",
|
|
77
|
+
Argentina = "Argentina",
|
|
78
|
+
Armenia = "Armenia",
|
|
79
|
+
Aruba = "Aruba",
|
|
80
|
+
Australia = "Australia",
|
|
81
|
+
Austria = "Austria",
|
|
82
|
+
Azerbaijan = "Azerbaijan",
|
|
83
|
+
Bahamas = "Bahamas",
|
|
84
|
+
Bahrain = "Bahrain",
|
|
85
|
+
Bangladesh = "Bangladesh",
|
|
86
|
+
Barbados = "Barbados",
|
|
87
|
+
Belarus = "Belarus",
|
|
88
|
+
Belgium = "Belgium",
|
|
89
|
+
Belize = "Belize",
|
|
90
|
+
Benin = "Benin",
|
|
91
|
+
Bermuda = "Bermuda",
|
|
92
|
+
Bhutan = "Bhutan",
|
|
93
|
+
Bolivia = "Bolivia",
|
|
94
|
+
BosniaAndHerzegovina = "Bosnia And Herzegovina",
|
|
95
|
+
Botswana = "Botswana",
|
|
96
|
+
BouvetIsland = "Bouvet Island",
|
|
97
|
+
Brazil = "Brazil",
|
|
98
|
+
BritishIndianOceanTerritory = "British Indian Ocean Territory",
|
|
99
|
+
BritishVirginIslands = "British Virgin Islands",
|
|
100
|
+
BruneiDarussalam = "Brunei Darussalam",
|
|
101
|
+
Bulgaria = "Bulgaria",
|
|
102
|
+
BurkinaFaso = "Burkina Faso",
|
|
103
|
+
Burundi = "Burundi",
|
|
104
|
+
Cambodia = "Cambodia",
|
|
105
|
+
Cameroon = "Cameroon",
|
|
106
|
+
Canada = "Canada",
|
|
107
|
+
CapeVerde = "Cape Verde",
|
|
108
|
+
CaymanIslands = "Cayman Islands",
|
|
109
|
+
CentralAfricanRepublic = "Central African Republic",
|
|
110
|
+
Chad = "Chad",
|
|
111
|
+
Chile = "Chile",
|
|
112
|
+
China = "China",
|
|
113
|
+
ChristmasIsland = "Christmas Island",
|
|
114
|
+
CocosKeelingIslands = "Cocos (Keeling) Islands",
|
|
115
|
+
Colombia = "Colombia",
|
|
116
|
+
Comoros = "Comoros",
|
|
117
|
+
CookIslands = "Cook Islands",
|
|
118
|
+
CostaRica = "Costa Rica",
|
|
119
|
+
CoteDIvoire = "Cote D'ivoire",
|
|
120
|
+
Croatia = "Croatia",
|
|
121
|
+
Cuba = "Cuba",
|
|
122
|
+
Cyprus = "Cyprus",
|
|
123
|
+
CzechRepublic = "Czech Republic",
|
|
124
|
+
DemocraticPeopleSRepublicOfKorea = "Democratic People's Republic of Korea",
|
|
125
|
+
DemocraticRepublicOfTheCongo = "Democratic Republic Of The Congo",
|
|
126
|
+
Denmark = "Denmark",
|
|
127
|
+
Djibouti = "Djibouti",
|
|
128
|
+
Dominica = "Dominica",
|
|
129
|
+
DominicanRepublic = "Dominican Republic",
|
|
130
|
+
EastTimor = "East Timor",
|
|
131
|
+
Ecuador = "Ecuador",
|
|
132
|
+
Egypt = "Egypt",
|
|
133
|
+
ElSalvador = "El Salvador",
|
|
134
|
+
EquatorialGuinea = "Equatorial Guinea",
|
|
135
|
+
Eritrea = "Eritrea",
|
|
136
|
+
Estonia = "Estonia",
|
|
137
|
+
Ethiopia = "Ethiopia",
|
|
138
|
+
FalklandIslands = "Falkland Islands",
|
|
139
|
+
FaroeIslands = "Faroe Islands",
|
|
140
|
+
FederatedStatesOfMicronesia = "Federated States Of Micronesia",
|
|
141
|
+
Fiji = "Fiji",
|
|
142
|
+
Finland = "Finland",
|
|
143
|
+
France = "France",
|
|
144
|
+
FrenchGuiana = "French Guiana",
|
|
145
|
+
FrenchPolynesia = "French Polynesia",
|
|
146
|
+
FrenchSouthernTerritories = "French Southern Territories",
|
|
147
|
+
Gabon = "Gabon",
|
|
148
|
+
Gambia = "Gambia",
|
|
149
|
+
Georgia = "Georgia",
|
|
150
|
+
Germany = "Germany",
|
|
151
|
+
Ghana = "Ghana",
|
|
152
|
+
Gibraltar = "Gibraltar",
|
|
153
|
+
Greece = "Greece",
|
|
154
|
+
Greenland = "Greenland",
|
|
155
|
+
Grenada = "Grenada",
|
|
156
|
+
Guadeloupe = "Guadeloupe",
|
|
157
|
+
Guam = "Guam",
|
|
158
|
+
Guatemala = "Guatemala",
|
|
159
|
+
Guinea = "Guinea",
|
|
160
|
+
GuineaBissau = "Guinea-bissau",
|
|
161
|
+
Guyana = "Guyana",
|
|
162
|
+
Haiti = "Haiti",
|
|
163
|
+
HeardIslandAndMcdonaldIslands = "Heard Island And Mcdonald Islands",
|
|
164
|
+
HolySeeVaticanCityState = "Holy See (Vatican City State)",
|
|
165
|
+
Honduras = "Honduras",
|
|
166
|
+
HongKong = "Hong Kong",
|
|
167
|
+
Hungary = "Hungary",
|
|
168
|
+
Iceland = "Iceland",
|
|
169
|
+
India = "India",
|
|
170
|
+
Indonesia = "Indonesia",
|
|
171
|
+
Iran = "Iran",
|
|
172
|
+
Iraq = "Iraq",
|
|
173
|
+
Ireland = "Ireland",
|
|
174
|
+
Israel = "Israel",
|
|
175
|
+
Italy = "Italy",
|
|
176
|
+
Jamaica = "Jamaica",
|
|
177
|
+
Japan = "Japan",
|
|
178
|
+
Jordan = "Jordan",
|
|
179
|
+
Kazakstan = "Kazakstan",
|
|
180
|
+
Kenya = "Kenya",
|
|
181
|
+
Kiribati = "Kiribati",
|
|
182
|
+
Kosovo = "Kosovo",
|
|
183
|
+
Kuwait = "Kuwait",
|
|
184
|
+
Kyrgyzstan = "Kyrgyzstan",
|
|
185
|
+
Laos = "Laos",
|
|
186
|
+
Latvia = "Latvia",
|
|
187
|
+
Lebanon = "Lebanon",
|
|
188
|
+
Lesotho = "Lesotho",
|
|
189
|
+
Liberia = "Liberia",
|
|
190
|
+
LibyanArabJamahiriya = "Libyan Arab Jamahiriya",
|
|
191
|
+
Liechtenstein = "Liechtenstein",
|
|
192
|
+
Lithuania = "Lithuania",
|
|
193
|
+
Luxembourg = "Luxembourg",
|
|
194
|
+
Macau = "Macau",
|
|
195
|
+
Macedonia = "Macedonia",
|
|
196
|
+
Madagascar = "Madagascar",
|
|
197
|
+
Malawi = "Malawi",
|
|
198
|
+
Malaysia = "Malaysia",
|
|
199
|
+
Maldives = "Maldives",
|
|
200
|
+
Mali = "Mali",
|
|
201
|
+
Malta = "Malta",
|
|
202
|
+
MarshallIslands = "Marshall Islands",
|
|
203
|
+
Martinique = "Martinique",
|
|
204
|
+
Mauritania = "Mauritania",
|
|
205
|
+
Mauritius = "Mauritius",
|
|
206
|
+
Mayotte = "Mayotte",
|
|
207
|
+
Mexico = "Mexico",
|
|
208
|
+
Monaco = "Monaco",
|
|
209
|
+
Mongolia = "Mongolia",
|
|
210
|
+
Montenegro = "Montenegro",
|
|
211
|
+
Montserrat = "Montserrat",
|
|
212
|
+
Morocco = "Morocco",
|
|
213
|
+
Mozambique = "Mozambique",
|
|
214
|
+
Myanmar = "Myanmar",
|
|
215
|
+
Namibia = "Namibia",
|
|
216
|
+
Nauru = "Nauru",
|
|
217
|
+
Nepal = "Nepal",
|
|
218
|
+
Netherlands = "Netherlands",
|
|
219
|
+
NetherlandsAntilles = "Netherlands Antilles",
|
|
220
|
+
NewCaledonia = "New Caledonia",
|
|
221
|
+
NewZealand = "New Zealand",
|
|
222
|
+
Nicaragua = "Nicaragua",
|
|
223
|
+
Niger = "Niger",
|
|
224
|
+
Nigeria = "Nigeria",
|
|
225
|
+
Niue = "Niue",
|
|
226
|
+
NorfolkIsland = "Norfolk Island",
|
|
227
|
+
NorthernMarianaIslands = "Northern Mariana Islands",
|
|
228
|
+
Norway = "Norway",
|
|
229
|
+
Oman = "Oman",
|
|
230
|
+
Pakistan = "Pakistan",
|
|
231
|
+
Palau = "Palau",
|
|
232
|
+
PalestinianTerritory = "Palestinian Territory",
|
|
233
|
+
Panama = "Panama",
|
|
234
|
+
PapuaNewGuinea = "Papua New Guinea",
|
|
235
|
+
Paraguay = "Paraguay",
|
|
236
|
+
Peru = "Peru",
|
|
237
|
+
Philippines = "Philippines",
|
|
238
|
+
Pitcairn = "Pitcairn",
|
|
239
|
+
Poland = "Poland",
|
|
240
|
+
Portugal = "Portugal",
|
|
241
|
+
PuertoRico = "Puerto Rico",
|
|
242
|
+
Qatar = "Qatar",
|
|
243
|
+
RepublicOfMoldova = "Republic Of Moldova",
|
|
244
|
+
Romania = "Romania",
|
|
245
|
+
RussianFederation = "Russian Federation",
|
|
246
|
+
Rwanda = "Rwanda",
|
|
247
|
+
SANMarino = "San Marino",
|
|
248
|
+
SaintHelena = "Saint Helena",
|
|
249
|
+
SaintKittsAndNevis = "Saint Kitts And Nevis",
|
|
250
|
+
SaintLucia = "Saint Lucia",
|
|
251
|
+
SaintPierreAndMiquelon = "Saint Pierre And Miquelon",
|
|
252
|
+
SaintVincentAndTheGrenadines = "Saint Vincent And The Grenadines",
|
|
253
|
+
Samoa = "Samoa",
|
|
254
|
+
SaoTomeAndPrincipe = "Sao Tome And Principe",
|
|
255
|
+
SaudiArabia = "Saudi Arabia",
|
|
256
|
+
Senegal = "Senegal",
|
|
257
|
+
Serbia = "Serbia",
|
|
258
|
+
Seychelles = "Seychelles",
|
|
259
|
+
SierraLeone = "Sierra Leone",
|
|
260
|
+
Singapore = "Singapore",
|
|
261
|
+
Slovakia = "Slovakia",
|
|
262
|
+
Slovenia = "Slovenia",
|
|
263
|
+
SolomonIslands = "Solomon Islands",
|
|
264
|
+
Somalia = "Somalia",
|
|
265
|
+
SouthAfrica = "South Africa",
|
|
266
|
+
SouthGeorgiaAndTheSouthSandwichIslands = "South Georgia And The South Sandwich Islands",
|
|
267
|
+
Spain = "Spain",
|
|
268
|
+
SriLanka = "Sri Lanka",
|
|
269
|
+
Sudan = "Sudan",
|
|
270
|
+
Suriname = "Suriname",
|
|
271
|
+
SvalbardAndJanMayen = "Svalbard And Jan Mayen",
|
|
272
|
+
Swaziland = "Swaziland",
|
|
273
|
+
Sweden = "Sweden",
|
|
274
|
+
Switzerland = "Switzerland",
|
|
275
|
+
SyrianArabRepublic = "Syrian Arab Republic",
|
|
276
|
+
Taiwan = "Taiwan",
|
|
277
|
+
Tajikistan = "Tajikistan",
|
|
278
|
+
Tanzania = "Tanzania",
|
|
279
|
+
Thailand = "Thailand",
|
|
280
|
+
TheRepublicOfSouthKorea = "The Republic of South Korea",
|
|
281
|
+
Togo = "Togo",
|
|
282
|
+
Tokelau = "Tokelau",
|
|
283
|
+
Tonga = "Tonga",
|
|
284
|
+
TrinidadAndTobago = "Trinidad And Tobago",
|
|
285
|
+
Tunisia = "Tunisia",
|
|
286
|
+
Turkey = "Turkey",
|
|
287
|
+
Turkmenistan = "Turkmenistan",
|
|
288
|
+
TurksAndCaicosIslands = "Turks And Caicos Islands",
|
|
289
|
+
Tuvalu = "Tuvalu",
|
|
290
|
+
USVirginIslands = "US Virgin Islands",
|
|
291
|
+
Uganda = "Uganda",
|
|
292
|
+
Ukraine = "Ukraine",
|
|
293
|
+
UnitedArabEmirates = "United Arab Emirates",
|
|
294
|
+
UnitedKingdom = "United Kingdom",
|
|
295
|
+
UnitedStatesMinorOutlyingIslands = "United States Minor Outlying Islands",
|
|
296
|
+
UnitedStatesOfAmerica = "United States of America",
|
|
297
|
+
Uruguay = "Uruguay",
|
|
298
|
+
Uzbekistan = "Uzbekistan",
|
|
299
|
+
Vanuatu = "Vanuatu",
|
|
300
|
+
Venezuela = "Venezuela",
|
|
301
|
+
Vietnam = "Vietnam",
|
|
302
|
+
WallisAndFutuna = "Wallis And Futuna",
|
|
303
|
+
WesternSahara = "Western Sahara",
|
|
304
|
+
Yemen = "Yemen",
|
|
305
|
+
Zambia = "Zambia",
|
|
306
|
+
Zimbabwe = "Zimbabwe"
|
|
307
|
+
}
|
|
308
|
+
export interface AddressStandard {
|
|
309
|
+
/**
|
|
310
|
+
* The building name
|
|
311
|
+
*/
|
|
312
|
+
buildingName?: string;
|
|
313
|
+
/**
|
|
314
|
+
* Postal address, usually a PO Box or Locked Bag
|
|
315
|
+
*/
|
|
316
|
+
deliveryAddress?: string;
|
|
317
|
+
/**
|
|
318
|
+
* The level of the unit/apartment
|
|
319
|
+
*/
|
|
320
|
+
level?: string;
|
|
321
|
+
/**
|
|
322
|
+
* The lot number
|
|
323
|
+
*/
|
|
324
|
+
lotSection?: string;
|
|
325
|
+
/**
|
|
326
|
+
* The street name
|
|
327
|
+
*/
|
|
328
|
+
streetName?: string;
|
|
329
|
+
/**
|
|
330
|
+
* The street number
|
|
331
|
+
*/
|
|
332
|
+
streetNumber?: string;
|
|
333
|
+
/**
|
|
334
|
+
* The street suffix
|
|
335
|
+
*/
|
|
336
|
+
streetSuffix?: string;
|
|
337
|
+
/**
|
|
338
|
+
* The type of the street i.e. road
|
|
339
|
+
*/
|
|
340
|
+
streetType?: string;
|
|
341
|
+
/**
|
|
342
|
+
* The unit number
|
|
343
|
+
*/
|
|
344
|
+
unit?: string;
|
|
345
|
+
}
|
|
346
|
+
export interface ConstructionDetails {
|
|
347
|
+
/**
|
|
348
|
+
* Indicates whether it should be coded as vacant land loan or a construction loan
|
|
349
|
+
*/
|
|
350
|
+
buildIn6Months?: boolean;
|
|
351
|
+
buildPriceAmount?: number;
|
|
352
|
+
landEstimatedValue?: number;
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Details of the purchase/sale price as specified in the Contract of Sale
|
|
356
|
+
*/
|
|
357
|
+
export interface ContractDetails {
|
|
358
|
+
/**
|
|
359
|
+
* The date of the Contract of Sale.
|
|
360
|
+
*/
|
|
361
|
+
contractDate?: string;
|
|
362
|
+
/**
|
|
363
|
+
* Captures the total purchase/sale price as specified in the Contract of Sale.
|
|
364
|
+
*/
|
|
365
|
+
contractPriceAmount?: number;
|
|
366
|
+
/**
|
|
367
|
+
* The purchase date of the property, or the proposed settlement date for a property being
|
|
368
|
+
* purchased or sold
|
|
369
|
+
*/
|
|
370
|
+
estimatedSettlementDate?: string;
|
|
371
|
+
}
|
|
372
|
+
export interface PercentOwned {
|
|
373
|
+
owners?: ApplicantOwnership[];
|
|
374
|
+
/**
|
|
375
|
+
* Indicate whether ownership proportions are equal, specified individually for each one or
|
|
376
|
+
* not specified.
|
|
377
|
+
*/
|
|
378
|
+
proportions?: Proportions;
|
|
379
|
+
}
|
|
380
|
+
export interface ApplicantOwnership {
|
|
381
|
+
/**
|
|
382
|
+
* The applicant Identifier
|
|
383
|
+
*/
|
|
384
|
+
applicantId: string;
|
|
385
|
+
customerId?: string;
|
|
386
|
+
/**
|
|
387
|
+
* how much percent for the corresponding applicant
|
|
388
|
+
*/
|
|
389
|
+
percent: number;
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* Indicate whether ownership proportions are equal, specified individually for each one or
|
|
393
|
+
* not specified.
|
|
394
|
+
*/
|
|
395
|
+
export declare enum Proportions {
|
|
396
|
+
Equal = "EQUAL",
|
|
397
|
+
NotSpecified = "NOT_SPECIFIED",
|
|
398
|
+
Specified = "SPECIFIED"
|
|
399
|
+
}
|
|
400
|
+
export declare enum PrimaryPurpose {
|
|
401
|
+
Investment = "INVESTMENT",
|
|
402
|
+
OwnerOccupied = "OWNER_OCCUPIED"
|
|
403
|
+
}
|
|
404
|
+
export declare enum PropertyStatus {
|
|
405
|
+
Established = "ESTABLISHED",
|
|
406
|
+
NewBuilding = "NEW_BUILDING",
|
|
407
|
+
OffThePlan = "OFF_THE_PLAN",
|
|
408
|
+
VacantLand = "VACANT_LAND"
|
|
409
|
+
}
|
|
410
|
+
export declare enum PropertyType {
|
|
411
|
+
ApartmentUnitLessThan50M2 = "APARTMENT_UNIT_LESS_THAN_50M2",
|
|
412
|
+
ApartmentUnitMoreThan50M2 = "APARTMENT_UNIT_MORE_THAN_50M2",
|
|
413
|
+
Duplex = "DUPLEX",
|
|
414
|
+
FullyDetachedHouse = "FULLY_DETACHED_HOUSE",
|
|
415
|
+
KitHome = "KIT_HOME",
|
|
416
|
+
Land = "LAND",
|
|
417
|
+
MultiDwellingSingleTitle = "MULTI_DWELLING_SINGLE_TITLE",
|
|
418
|
+
PropertyOver10_Ha = "PROPERTY_OVER_10_HA",
|
|
419
|
+
SemiDetachedHouse = "SEMI_DETACHED_HOUSE",
|
|
420
|
+
ServicedApartment = "SERVICED_APARTMENT",
|
|
421
|
+
StudentAccommodation = "STUDENT_ACCOMMODATION",
|
|
422
|
+
Studio = "STUDIO",
|
|
423
|
+
Terrace = "TERRACE",
|
|
424
|
+
Townhouse = "TOWNHOUSE",
|
|
425
|
+
Villa = "VILLA",
|
|
426
|
+
WarehouseApartment = "WAREHOUSE_APARTMENT"
|
|
427
|
+
}
|
|
428
|
+
export declare enum AssetType {
|
|
429
|
+
Gifts = "GIFTS",
|
|
430
|
+
HomeContents = "HOME_CONTENTS",
|
|
431
|
+
ManagedFunds = "MANAGED_FUNDS",
|
|
432
|
+
OtherAsset = "OTHER_ASSET",
|
|
433
|
+
Property = "PROPERTY",
|
|
434
|
+
SavingCheckAccount = "SAVING_CHECK_ACCOUNT",
|
|
435
|
+
Shares = "SHARES",
|
|
436
|
+
Superannuation = "SUPERANNUATION",
|
|
437
|
+
TermDeposit = "TERM_DEPOSIT",
|
|
438
|
+
Vehicle = "VEHICLE"
|
|
439
|
+
}
|
|
440
|
+
export declare enum ZoneType {
|
|
441
|
+
Commercial = "COMMERCIAL",
|
|
442
|
+
Industrial = "INDUSTRIAL",
|
|
443
|
+
Residential = "RESIDENTIAL",
|
|
444
|
+
Rural = "RURAL"
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* The metadata of the alieo
|
|
448
|
+
*/
|
|
449
|
+
export interface Meta {
|
|
450
|
+
/**
|
|
451
|
+
* uuid of user who made the action (create/update/delete)
|
|
452
|
+
*/
|
|
453
|
+
actionedBy: string;
|
|
454
|
+
/**
|
|
455
|
+
* role of the user that made the action
|
|
456
|
+
*/
|
|
457
|
+
actionedByRole: ActionedByRole;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* role of the user that made the action
|
|
461
|
+
*/
|
|
462
|
+
export declare enum ActionedByRole {
|
|
463
|
+
Customer = "customer",
|
|
464
|
+
Team = "team"
|
|
465
|
+
}
|
|
466
|
+
export declare enum Type {
|
|
467
|
+
AssetCreated = "AssetCreated",
|
|
468
|
+
AssetUpdated = "AssetUpdated"
|
|
469
|
+
}
|