@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.
Files changed (156) hide show
  1. package/lib/index.d.ts +7 -0
  2. package/lib/index.js +20 -0
  3. package/lib/logger.d.ts +2 -0
  4. package/lib/logger.js +5 -0
  5. package/lib/schemas/credit-report-retrieved-event.json +57 -0
  6. package/lib/schemas/public-applicant-event.json +652 -0
  7. package/lib/schemas/public-application-event.json +224 -0
  8. package/lib/schemas/public-asset-event.json +633 -0
  9. package/lib/schemas/public-asset-liability-relation-delete-event.json +74 -0
  10. package/lib/schemas/public-asset-liability-relation-event.json +73 -0
  11. package/lib/schemas/public-create-applicant-event.json +610 -0
  12. package/lib/schemas/public-delete-applicant-event.json +66 -0
  13. package/lib/schemas/public-delete-asset-event.json +53 -0
  14. package/lib/schemas/public-delete-income-event.json +55 -0
  15. package/lib/schemas/public-employment-delete-event.json +31 -0
  16. package/lib/schemas/public-employment-event.json +302 -0
  17. package/lib/schemas/public-expense-delete-event.json +41 -0
  18. package/lib/schemas/public-expense-event.json +132 -0
  19. package/lib/schemas/public-funding-position-event.json +289 -0
  20. package/lib/schemas/public-income-event.json +242 -0
  21. package/lib/schemas/public-liability-delete-event.json +37 -0
  22. package/lib/schemas/public-liability-event.json +234 -0
  23. package/lib/schemas/public-required-document-event.json +98 -0
  24. package/lib/schemas/public-update-applicant-event.json +607 -0
  25. package/lib/schemas/sf-opportunity-event-out.json +138 -0
  26. package/lib/transform-events/generate-asset-liability-link.d.ts +8 -0
  27. package/lib/transform-events/generate-asset-liability-link.js +29 -0
  28. package/lib/transform-events/generate-asset.d.ts +17 -0
  29. package/lib/transform-events/generate-asset.js +178 -0
  30. package/lib/transform-events/generate-credit-report-rebuilt.d.ts +8 -0
  31. package/lib/transform-events/generate-credit-report-rebuilt.js +41 -0
  32. package/lib/transform-events/generate-employment.d.ts +8 -0
  33. package/lib/transform-events/generate-employment.js +106 -0
  34. package/lib/transform-events/generate-funding-position.d.ts +18 -0
  35. package/lib/transform-events/generate-funding-position.js +82 -0
  36. package/lib/transform-events/generate-income.d.ts +37 -0
  37. package/lib/transform-events/generate-income.js +254 -0
  38. package/lib/transform-events/generate-liability.d.ts +8 -0
  39. package/lib/transform-events/generate-liability.js +87 -0
  40. package/lib/transform-events/generate-lixi-percentowned.d.ts +9 -0
  41. package/lib/transform-events/generate-lixi-percentowned.js +24 -0
  42. package/lib/transform-events/generate-opportunity.d.ts +8 -0
  43. package/lib/transform-events/generate-opportunity.js +32 -0
  44. package/lib/transform-events/generate-required-document.d.ts +8 -0
  45. package/lib/transform-events/generate-required-document.js +54 -0
  46. package/lib/transform-events/transform-applicant.d.ts +33 -0
  47. package/lib/transform-events/transform-applicant.js +189 -0
  48. package/lib/transform-events/transform-application.d.ts +8 -0
  49. package/lib/transform-events/transform-application.js +54 -0
  50. package/lib/transform-events/transform-expenses.d.ts +37 -0
  51. package/lib/transform-events/transform-expenses.js +121 -0
  52. package/lib/types/enum-mappings/alieo-frequency.d.ts +15 -0
  53. package/lib/types/enum-mappings/alieo-frequency.js +26 -0
  54. package/lib/types/enum-mappings/country-code.d.ts +7 -0
  55. package/lib/types/enum-mappings/country-code.js +247 -0
  56. package/lib/types/enum-mappings/employment-basis.d.ts +7 -0
  57. package/lib/types/enum-mappings/employment-basis.js +13 -0
  58. package/lib/types/enum-mappings/expense-frequency.d.ts +7 -0
  59. package/lib/types/enum-mappings/expense-frequency.js +12 -0
  60. package/lib/types/enum-mappings/funding-position.d.ts +18 -0
  61. package/lib/types/enum-mappings/funding-position.js +34 -0
  62. package/lib/types/enum-mappings/government-benefits.d.ts +7 -0
  63. package/lib/types/enum-mappings/government-benefits.js +11 -0
  64. package/lib/types/enum-mappings/housing-status.d.ts +7 -0
  65. package/lib/types/enum-mappings/housing-status.js +16 -0
  66. package/lib/types/enum-mappings/income-type.d.ts +7 -0
  67. package/lib/types/enum-mappings/income-type.js +17 -0
  68. package/lib/types/enum-mappings/liability-payment-type.d.ts +7 -0
  69. package/lib/types/enum-mappings/liability-payment-type.js +10 -0
  70. package/lib/types/enum-mappings/liability-type.d.ts +7 -0
  71. package/lib/types/enum-mappings/liability-type.js +22 -0
  72. package/lib/types/enum-mappings/living-expense.d.ts +7 -0
  73. package/lib/types/enum-mappings/living-expense.js +31 -0
  74. package/lib/types/enum-mappings/marital-status.d.ts +7 -0
  75. package/lib/types/enum-mappings/marital-status.js +13 -0
  76. package/lib/types/enum-mappings/postcode.d.ts +6 -0
  77. package/lib/types/enum-mappings/postcode.js +16 -0
  78. package/lib/types/enum-mappings/preferred-repayment.d.ts +7 -0
  79. package/lib/types/enum-mappings/preferred-repayment.js +11 -0
  80. package/lib/types/enum-mappings/proof-of-identity.d.ts +7 -0
  81. package/lib/types/enum-mappings/proof-of-identity.js +11 -0
  82. package/lib/types/enum-mappings/public-financial-asset.d.ts +7 -0
  83. package/lib/types/enum-mappings/public-financial-asset.js +13 -0
  84. package/lib/types/enum-mappings/public-primary-purpose.d.ts +7 -0
  85. package/lib/types/enum-mappings/public-primary-purpose.js +10 -0
  86. package/lib/types/enum-mappings/public-property-status.d.ts +7 -0
  87. package/lib/types/enum-mappings/public-property-status.js +12 -0
  88. package/lib/types/enum-mappings/public-property-type.d.ts +7 -0
  89. package/lib/types/enum-mappings/public-property-type.js +24 -0
  90. package/lib/types/enum-mappings/residency-status.d.ts +7 -0
  91. package/lib/types/enum-mappings/residency-status.js +12 -0
  92. package/lib/types/enum-mappings/title-gender.d.ts +7 -0
  93. package/lib/types/enum-mappings/title-gender.js +14 -0
  94. package/lib/types/enum-mappings/title.d.ts +7 -0
  95. package/lib/types/enum-mappings/title.js +14 -0
  96. package/lib/types/enum-mappings/transaction-type.d.ts +7 -0
  97. package/lib/types/enum-mappings/transaction-type.js +10 -0
  98. package/lib/types/events/applicant-delete.d.ts +42 -0
  99. package/lib/types/events/applicant-delete.js +15 -0
  100. package/lib/types/events/asset-delete.d.ts +33 -0
  101. package/lib/types/events/asset-delete.js +15 -0
  102. package/lib/types/events/asset-liability-relation-delete.d.ts +52 -0
  103. package/lib/types/events/asset-liability-relation-delete.js +15 -0
  104. package/lib/types/events/credit-report-retrieved.d.ts +36 -0
  105. package/lib/types/events/credit-report-retrieved.js +15 -0
  106. package/lib/types/events/employment-delete.d.ts +19 -0
  107. package/lib/types/events/employment-delete.js +7 -0
  108. package/lib/types/events/expense-delete.d.ts +21 -0
  109. package/lib/types/events/expense-delete.js +7 -0
  110. package/lib/types/events/funding-position.d.ts +116 -0
  111. package/lib/types/events/funding-position.js +34 -0
  112. package/lib/types/events/income-delete.d.ts +33 -0
  113. package/lib/types/events/income-delete.js +15 -0
  114. package/lib/types/events/liability-delete.d.ts +17 -0
  115. package/lib/types/events/liability-delete.js +7 -0
  116. package/lib/types/events/opportunity.d.ts +102 -0
  117. package/lib/types/events/opportunity.js +47 -0
  118. package/lib/types/events/public-applicant.d.ts +485 -0
  119. package/lib/types/events/public-applicant.js +343 -0
  120. package/lib/types/events/public-application.d.ts +145 -0
  121. package/lib/types/events/public-application.js +100 -0
  122. package/lib/types/events/public-asset-liability-relation.d.ts +52 -0
  123. package/lib/types/events/public-asset-liability-relation.js +15 -0
  124. package/lib/types/events/public-asset.d.ts +469 -0
  125. package/lib/types/events/public-asset.js +319 -0
  126. package/lib/types/events/public-employment.d.ts +190 -0
  127. package/lib/types/events/public-employment.js +69 -0
  128. package/lib/types/events/public-expense.d.ts +83 -0
  129. package/lib/types/events/public-expense.js +50 -0
  130. package/lib/types/events/public-funding-position.d.ts +226 -0
  131. package/lib/types/events/public-funding-position.js +7 -0
  132. package/lib/types/events/public-income.d.ts +144 -0
  133. package/lib/types/events/public-income.js +65 -0
  134. package/lib/types/events/public-liability.d.ts +133 -0
  135. package/lib/types/events/public-liability.js +68 -0
  136. package/lib/types/events/public-required-document.d.ts +99 -0
  137. package/lib/types/events/public-required-document.js +44 -0
  138. package/lib/types/partial-application.d.ts +3 -0
  139. package/lib/types/partial-application.js +2 -0
  140. package/lib/types/recursive-partial.d.ts +3 -0
  141. package/lib/types/recursive-partial.js +2 -0
  142. package/lib/utils/address-tools.d.ts +69 -0
  143. package/lib/utils/address-tools.js +146 -0
  144. package/lib/utils/clean-up.d.ts +7 -0
  145. package/lib/utils/clean-up.js +24 -0
  146. package/lib/utils/generate-address.d.ts +19 -0
  147. package/lib/utils/generate-address.js +102 -0
  148. package/lib/utils/get-financial-institution.d.ts +7 -0
  149. package/lib/utils/get-financial-institution.js +16 -0
  150. package/lib/utils/is-income-type.d.ts +83 -0
  151. package/lib/utils/is-income-type.js +166 -0
  152. package/lib/utils/normalise-date.d.ts +8 -0
  153. package/lib/utils/normalise-date.js +17 -0
  154. package/lib/utils/round-decimal.d.ts +6 -0
  155. package/lib/utils/round-decimal.js +12 -0
  156. package/package.json +10 -7
@@ -0,0 +1,343 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.Type = exports.Title = exports.ResidencyStatus = exports.ActionedByRole = exports.MaritalStatus = exports.InvitationStatus = exports.Gender = exports.Entity = exports.EmploymentType = exports.CreditStatus = exports.HousingStatusList = exports.Countries = exports.ApplicantType = void 0;
4
+ var ApplicantType;
5
+ (function (ApplicantType) {
6
+ ApplicantType["Borrower"] = "BORROWER";
7
+ ApplicantType["BorrowerAndGuarantor"] = "BORROWER_AND_GUARANTOR";
8
+ ApplicantType["Guarantor"] = "GUARANTOR";
9
+ })(ApplicantType = exports.ApplicantType || (exports.ApplicantType = {}));
10
+ var Countries;
11
+ (function (Countries) {
12
+ Countries["Afghanistan"] = "Afghanistan";
13
+ Countries["Albania"] = "Albania";
14
+ Countries["Algeria"] = "Algeria";
15
+ Countries["AmericanSamoa"] = "American Samoa";
16
+ Countries["Andorra"] = "Andorra";
17
+ Countries["Angola"] = "Angola";
18
+ Countries["Anguilla"] = "Anguilla";
19
+ Countries["Antarctica"] = "Antarctica";
20
+ Countries["AntiguaAndBarbuda"] = "Antigua And Barbuda";
21
+ Countries["Argentina"] = "Argentina";
22
+ Countries["Armenia"] = "Armenia";
23
+ Countries["Aruba"] = "Aruba";
24
+ Countries["Australia"] = "Australia";
25
+ Countries["Austria"] = "Austria";
26
+ Countries["Azerbaijan"] = "Azerbaijan";
27
+ Countries["Bahamas"] = "Bahamas";
28
+ Countries["Bahrain"] = "Bahrain";
29
+ Countries["Bangladesh"] = "Bangladesh";
30
+ Countries["Barbados"] = "Barbados";
31
+ Countries["Belarus"] = "Belarus";
32
+ Countries["Belgium"] = "Belgium";
33
+ Countries["Belize"] = "Belize";
34
+ Countries["Benin"] = "Benin";
35
+ Countries["Bermuda"] = "Bermuda";
36
+ Countries["Bhutan"] = "Bhutan";
37
+ Countries["Bolivia"] = "Bolivia";
38
+ Countries["BosniaAndHerzegovina"] = "Bosnia And Herzegovina";
39
+ Countries["Botswana"] = "Botswana";
40
+ Countries["BouvetIsland"] = "Bouvet Island";
41
+ Countries["Brazil"] = "Brazil";
42
+ Countries["BritishIndianOceanTerritory"] = "British Indian Ocean Territory";
43
+ Countries["BritishVirginIslands"] = "British Virgin Islands";
44
+ Countries["BruneiDarussalam"] = "Brunei Darussalam";
45
+ Countries["Bulgaria"] = "Bulgaria";
46
+ Countries["BurkinaFaso"] = "Burkina Faso";
47
+ Countries["Burundi"] = "Burundi";
48
+ Countries["Cambodia"] = "Cambodia";
49
+ Countries["Cameroon"] = "Cameroon";
50
+ Countries["Canada"] = "Canada";
51
+ Countries["CapeVerde"] = "Cape Verde";
52
+ Countries["CaymanIslands"] = "Cayman Islands";
53
+ Countries["CentralAfricanRepublic"] = "Central African Republic";
54
+ Countries["Chad"] = "Chad";
55
+ Countries["Chile"] = "Chile";
56
+ Countries["China"] = "China";
57
+ Countries["ChristmasIsland"] = "Christmas Island";
58
+ Countries["CocosKeelingIslands"] = "Cocos (Keeling) Islands";
59
+ Countries["Colombia"] = "Colombia";
60
+ Countries["Comoros"] = "Comoros";
61
+ Countries["CookIslands"] = "Cook Islands";
62
+ Countries["CostaRica"] = "Costa Rica";
63
+ Countries["CoteDIvoire"] = "Cote D'ivoire";
64
+ Countries["Croatia"] = "Croatia";
65
+ Countries["Cuba"] = "Cuba";
66
+ Countries["Cyprus"] = "Cyprus";
67
+ Countries["CzechRepublic"] = "Czech Republic";
68
+ Countries["DemocraticPeopleSRepublicOfKorea"] = "Democratic People's Republic of Korea";
69
+ Countries["DemocraticRepublicOfTheCongo"] = "Democratic Republic Of The Congo";
70
+ Countries["Denmark"] = "Denmark";
71
+ Countries["Djibouti"] = "Djibouti";
72
+ Countries["Dominica"] = "Dominica";
73
+ Countries["DominicanRepublic"] = "Dominican Republic";
74
+ Countries["EastTimor"] = "East Timor";
75
+ Countries["Ecuador"] = "Ecuador";
76
+ Countries["Egypt"] = "Egypt";
77
+ Countries["ElSalvador"] = "El Salvador";
78
+ Countries["EquatorialGuinea"] = "Equatorial Guinea";
79
+ Countries["Eritrea"] = "Eritrea";
80
+ Countries["Estonia"] = "Estonia";
81
+ Countries["Ethiopia"] = "Ethiopia";
82
+ Countries["FalklandIslands"] = "Falkland Islands";
83
+ Countries["FaroeIslands"] = "Faroe Islands";
84
+ Countries["FederatedStatesOfMicronesia"] = "Federated States Of Micronesia";
85
+ Countries["Fiji"] = "Fiji";
86
+ Countries["Finland"] = "Finland";
87
+ Countries["France"] = "France";
88
+ Countries["FrenchGuiana"] = "French Guiana";
89
+ Countries["FrenchPolynesia"] = "French Polynesia";
90
+ Countries["FrenchSouthernTerritories"] = "French Southern Territories";
91
+ Countries["Gabon"] = "Gabon";
92
+ Countries["Gambia"] = "Gambia";
93
+ Countries["Georgia"] = "Georgia";
94
+ Countries["Germany"] = "Germany";
95
+ Countries["Ghana"] = "Ghana";
96
+ Countries["Gibraltar"] = "Gibraltar";
97
+ Countries["Greece"] = "Greece";
98
+ Countries["Greenland"] = "Greenland";
99
+ Countries["Grenada"] = "Grenada";
100
+ Countries["Guadeloupe"] = "Guadeloupe";
101
+ Countries["Guam"] = "Guam";
102
+ Countries["Guatemala"] = "Guatemala";
103
+ Countries["Guinea"] = "Guinea";
104
+ Countries["GuineaBissau"] = "Guinea-bissau";
105
+ Countries["Guyana"] = "Guyana";
106
+ Countries["Haiti"] = "Haiti";
107
+ Countries["HeardIslandAndMcdonaldIslands"] = "Heard Island And Mcdonald Islands";
108
+ Countries["HolySeeVaticanCityState"] = "Holy See (Vatican City State)";
109
+ Countries["Honduras"] = "Honduras";
110
+ Countries["HongKong"] = "Hong Kong";
111
+ Countries["Hungary"] = "Hungary";
112
+ Countries["Iceland"] = "Iceland";
113
+ Countries["India"] = "India";
114
+ Countries["Indonesia"] = "Indonesia";
115
+ Countries["Iran"] = "Iran";
116
+ Countries["Iraq"] = "Iraq";
117
+ Countries["Ireland"] = "Ireland";
118
+ Countries["Israel"] = "Israel";
119
+ Countries["Italy"] = "Italy";
120
+ Countries["Jamaica"] = "Jamaica";
121
+ Countries["Japan"] = "Japan";
122
+ Countries["Jordan"] = "Jordan";
123
+ Countries["Kazakstan"] = "Kazakstan";
124
+ Countries["Kenya"] = "Kenya";
125
+ Countries["Kiribati"] = "Kiribati";
126
+ Countries["Kosovo"] = "Kosovo";
127
+ Countries["Kuwait"] = "Kuwait";
128
+ Countries["Kyrgyzstan"] = "Kyrgyzstan";
129
+ Countries["Laos"] = "Laos";
130
+ Countries["Latvia"] = "Latvia";
131
+ Countries["Lebanon"] = "Lebanon";
132
+ Countries["Lesotho"] = "Lesotho";
133
+ Countries["Liberia"] = "Liberia";
134
+ Countries["LibyanArabJamahiriya"] = "Libyan Arab Jamahiriya";
135
+ Countries["Liechtenstein"] = "Liechtenstein";
136
+ Countries["Lithuania"] = "Lithuania";
137
+ Countries["Luxembourg"] = "Luxembourg";
138
+ Countries["Macau"] = "Macau";
139
+ Countries["Macedonia"] = "Macedonia";
140
+ Countries["Madagascar"] = "Madagascar";
141
+ Countries["Malawi"] = "Malawi";
142
+ Countries["Malaysia"] = "Malaysia";
143
+ Countries["Maldives"] = "Maldives";
144
+ Countries["Mali"] = "Mali";
145
+ Countries["Malta"] = "Malta";
146
+ Countries["MarshallIslands"] = "Marshall Islands";
147
+ Countries["Martinique"] = "Martinique";
148
+ Countries["Mauritania"] = "Mauritania";
149
+ Countries["Mauritius"] = "Mauritius";
150
+ Countries["Mayotte"] = "Mayotte";
151
+ Countries["Mexico"] = "Mexico";
152
+ Countries["Monaco"] = "Monaco";
153
+ Countries["Mongolia"] = "Mongolia";
154
+ Countries["Montenegro"] = "Montenegro";
155
+ Countries["Montserrat"] = "Montserrat";
156
+ Countries["Morocco"] = "Morocco";
157
+ Countries["Mozambique"] = "Mozambique";
158
+ Countries["Myanmar"] = "Myanmar";
159
+ Countries["Namibia"] = "Namibia";
160
+ Countries["Nauru"] = "Nauru";
161
+ Countries["Nepal"] = "Nepal";
162
+ Countries["Netherlands"] = "Netherlands";
163
+ Countries["NetherlandsAntilles"] = "Netherlands Antilles";
164
+ Countries["NewCaledonia"] = "New Caledonia";
165
+ Countries["NewZealand"] = "New Zealand";
166
+ Countries["Nicaragua"] = "Nicaragua";
167
+ Countries["Niger"] = "Niger";
168
+ Countries["Nigeria"] = "Nigeria";
169
+ Countries["Niue"] = "Niue";
170
+ Countries["NorfolkIsland"] = "Norfolk Island";
171
+ Countries["NorthernMarianaIslands"] = "Northern Mariana Islands";
172
+ Countries["Norway"] = "Norway";
173
+ Countries["Oman"] = "Oman";
174
+ Countries["Pakistan"] = "Pakistan";
175
+ Countries["Palau"] = "Palau";
176
+ Countries["PalestinianTerritory"] = "Palestinian Territory";
177
+ Countries["Panama"] = "Panama";
178
+ Countries["PapuaNewGuinea"] = "Papua New Guinea";
179
+ Countries["Paraguay"] = "Paraguay";
180
+ Countries["Peru"] = "Peru";
181
+ Countries["Philippines"] = "Philippines";
182
+ Countries["Pitcairn"] = "Pitcairn";
183
+ Countries["Poland"] = "Poland";
184
+ Countries["Portugal"] = "Portugal";
185
+ Countries["PuertoRico"] = "Puerto Rico";
186
+ Countries["Qatar"] = "Qatar";
187
+ Countries["RepublicOfMoldova"] = "Republic Of Moldova";
188
+ Countries["Romania"] = "Romania";
189
+ Countries["RussianFederation"] = "Russian Federation";
190
+ Countries["Rwanda"] = "Rwanda";
191
+ Countries["SANMarino"] = "San Marino";
192
+ Countries["SaintHelena"] = "Saint Helena";
193
+ Countries["SaintKittsAndNevis"] = "Saint Kitts And Nevis";
194
+ Countries["SaintLucia"] = "Saint Lucia";
195
+ Countries["SaintPierreAndMiquelon"] = "Saint Pierre And Miquelon";
196
+ Countries["SaintVincentAndTheGrenadines"] = "Saint Vincent And The Grenadines";
197
+ Countries["Samoa"] = "Samoa";
198
+ Countries["SaoTomeAndPrincipe"] = "Sao Tome And Principe";
199
+ Countries["SaudiArabia"] = "Saudi Arabia";
200
+ Countries["Senegal"] = "Senegal";
201
+ Countries["Serbia"] = "Serbia";
202
+ Countries["Seychelles"] = "Seychelles";
203
+ Countries["SierraLeone"] = "Sierra Leone";
204
+ Countries["Singapore"] = "Singapore";
205
+ Countries["Slovakia"] = "Slovakia";
206
+ Countries["Slovenia"] = "Slovenia";
207
+ Countries["SolomonIslands"] = "Solomon Islands";
208
+ Countries["Somalia"] = "Somalia";
209
+ Countries["SouthAfrica"] = "South Africa";
210
+ Countries["SouthGeorgiaAndTheSouthSandwichIslands"] = "South Georgia And The South Sandwich Islands";
211
+ Countries["Spain"] = "Spain";
212
+ Countries["SriLanka"] = "Sri Lanka";
213
+ Countries["Sudan"] = "Sudan";
214
+ Countries["Suriname"] = "Suriname";
215
+ Countries["SvalbardAndJanMayen"] = "Svalbard And Jan Mayen";
216
+ Countries["Swaziland"] = "Swaziland";
217
+ Countries["Sweden"] = "Sweden";
218
+ Countries["Switzerland"] = "Switzerland";
219
+ Countries["SyrianArabRepublic"] = "Syrian Arab Republic";
220
+ Countries["Taiwan"] = "Taiwan";
221
+ Countries["Tajikistan"] = "Tajikistan";
222
+ Countries["Tanzania"] = "Tanzania";
223
+ Countries["Thailand"] = "Thailand";
224
+ Countries["TheRepublicOfSouthKorea"] = "The Republic of South Korea";
225
+ Countries["Togo"] = "Togo";
226
+ Countries["Tokelau"] = "Tokelau";
227
+ Countries["Tonga"] = "Tonga";
228
+ Countries["TrinidadAndTobago"] = "Trinidad And Tobago";
229
+ Countries["Tunisia"] = "Tunisia";
230
+ Countries["Turkey"] = "Turkey";
231
+ Countries["Turkmenistan"] = "Turkmenistan";
232
+ Countries["TurksAndCaicosIslands"] = "Turks And Caicos Islands";
233
+ Countries["Tuvalu"] = "Tuvalu";
234
+ Countries["USVirginIslands"] = "US Virgin Islands";
235
+ Countries["Uganda"] = "Uganda";
236
+ Countries["Ukraine"] = "Ukraine";
237
+ Countries["UnitedArabEmirates"] = "United Arab Emirates";
238
+ Countries["UnitedKingdom"] = "United Kingdom";
239
+ Countries["UnitedStatesMinorOutlyingIslands"] = "United States Minor Outlying Islands";
240
+ Countries["UnitedStatesOfAmerica"] = "United States of America";
241
+ Countries["Uruguay"] = "Uruguay";
242
+ Countries["Uzbekistan"] = "Uzbekistan";
243
+ Countries["Vanuatu"] = "Vanuatu";
244
+ Countries["Venezuela"] = "Venezuela";
245
+ Countries["Vietnam"] = "Vietnam";
246
+ Countries["WallisAndFutuna"] = "Wallis And Futuna";
247
+ Countries["WesternSahara"] = "Western Sahara";
248
+ Countries["Yemen"] = "Yemen";
249
+ Countries["Zambia"] = "Zambia";
250
+ Countries["Zimbabwe"] = "Zimbabwe";
251
+ })(Countries = exports.Countries || (exports.Countries = {}));
252
+ var HousingStatusList;
253
+ (function (HousingStatusList) {
254
+ HousingStatusList["Boarding"] = "Boarding";
255
+ HousingStatusList["Caravan"] = "Caravan";
256
+ HousingStatusList["Other"] = "Other";
257
+ HousingStatusList["OwnHome"] = "Own Home";
258
+ HousingStatusList["OwnHomeMortgage"] = "Own Home Mortgage";
259
+ HousingStatusList["Renting"] = "Renting";
260
+ HousingStatusList["SuppliedByEmployer"] = "Supplied by Employer";
261
+ HousingStatusList["WithParents"] = "With Parents";
262
+ })(HousingStatusList = exports.HousingStatusList || (exports.HousingStatusList = {}));
263
+ /**
264
+ * current credit status of the applicant (Customer declared value)
265
+ */
266
+ var CreditStatus;
267
+ (function (CreditStatus) {
268
+ CreditStatus["Average"] = "AVERAGE";
269
+ CreditStatus["Excellent"] = "EXCELLENT";
270
+ CreditStatus["Fair"] = "FAIR";
271
+ CreditStatus["Unknown"] = "UNKNOWN";
272
+ })(CreditStatus = exports.CreditStatus || (exports.CreditStatus = {}));
273
+ /**
274
+ * applicant's employment type
275
+ */
276
+ var EmploymentType;
277
+ (function (EmploymentType) {
278
+ EmploymentType["Employee"] = "EMPLOYEE";
279
+ EmploymentType["SelfEmployed"] = "SELF_EMPLOYED";
280
+ EmploymentType["Unknown"] = "UNKNOWN";
281
+ })(EmploymentType = exports.EmploymentType || (exports.EmploymentType = {}));
282
+ /**
283
+ * applicant's entity. For a person applicant this is 'PERSON'
284
+ */
285
+ var Entity;
286
+ (function (Entity) {
287
+ Entity["Company"] = "COMPANY";
288
+ Entity["Person"] = "PERSON";
289
+ })(Entity = exports.Entity || (exports.Entity = {}));
290
+ var Gender;
291
+ (function (Gender) {
292
+ Gender["Female"] = "FEMALE";
293
+ Gender["Male"] = "MALE";
294
+ Gender["Undisclosed"] = "UNDISCLOSED";
295
+ Gender["Unknown"] = "UNKNOWN";
296
+ })(Gender = exports.Gender || (exports.Gender = {}));
297
+ /**
298
+ * different invitation statuses an applicant can have
299
+ */
300
+ var InvitationStatus;
301
+ (function (InvitationStatus) {
302
+ InvitationStatus["Accepted"] = "ACCEPTED";
303
+ InvitationStatus["Cancelled"] = "CANCELLED";
304
+ InvitationStatus["Expired"] = "EXPIRED";
305
+ InvitationStatus["Pending"] = "PENDING";
306
+ })(InvitationStatus = exports.InvitationStatus || (exports.InvitationStatus = {}));
307
+ var MaritalStatus;
308
+ (function (MaritalStatus) {
309
+ MaritalStatus["DeFacto"] = "DE_FACTO";
310
+ MaritalStatus["Divorced"] = "DIVORCED";
311
+ MaritalStatus["Married"] = "MARRIED";
312
+ MaritalStatus["Single"] = "SINGLE";
313
+ MaritalStatus["Unknown"] = "UNKNOWN";
314
+ })(MaritalStatus = exports.MaritalStatus || (exports.MaritalStatus = {}));
315
+ /**
316
+ * role of the user that made the action
317
+ */
318
+ var ActionedByRole;
319
+ (function (ActionedByRole) {
320
+ ActionedByRole["Customer"] = "customer";
321
+ ActionedByRole["Team"] = "team";
322
+ })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
323
+ var ResidencyStatus;
324
+ (function (ResidencyStatus) {
325
+ ResidencyStatus["AustralianCitizen"] = "AUSTRALIAN_CITIZEN";
326
+ ResidencyStatus["PermanentResident"] = "PERMANENT_RESIDENT";
327
+ ResidencyStatus["TemporaryResident"] = "TEMPORARY_RESIDENT";
328
+ ResidencyStatus["Unknown"] = "UNKNOWN";
329
+ })(ResidencyStatus = exports.ResidencyStatus || (exports.ResidencyStatus = {}));
330
+ var Title;
331
+ (function (Title) {
332
+ Title["DR"] = "DR";
333
+ Title["MS"] = "MS";
334
+ Title["Miss"] = "MISS";
335
+ Title["Mr"] = "MR";
336
+ Title["Mrs"] = "MRS";
337
+ Title["Unknown"] = "UNKNOWN";
338
+ })(Title = exports.Title || (exports.Title = {}));
339
+ var Type;
340
+ (function (Type) {
341
+ Type["CreateApplicant"] = "CreateApplicant";
342
+ Type["UpdateApplicant"] = "UpdateApplicant";
343
+ })(Type = exports.Type || (exports.Type = {}));
@@ -0,0 +1,145 @@
1
+ /**
2
+ * main object
3
+ */
4
+ export interface PublicApplication {
5
+ payload: Payload;
6
+ type: PublicApplicationType;
7
+ /**
8
+ * schema version
9
+ */
10
+ version: string;
11
+ }
12
+ export interface Payload {
13
+ brand?: Brand;
14
+ brokerPrimaryPurpose?: BrokerPrimaryPurpose;
15
+ clonedFromApplicationId?: string;
16
+ customerId?: string;
17
+ hidden?: boolean;
18
+ id: string;
19
+ meta?: ApplicationMeta;
20
+ name?: string;
21
+ preliminary: Preliminary;
22
+ }
23
+ export declare enum Brand {
24
+ Domain = "domain",
25
+ DomainVariation = "domain variation",
26
+ Lendi = "lendi",
27
+ LendiVariation = "lendi variation"
28
+ }
29
+ /**
30
+ * Additional data point for broker to capture primary purpose, other than the preliminary
31
+ * primary purpose associated with current user journey for new purchase or refinance
32
+ */
33
+ export declare enum BrokerPrimaryPurpose {
34
+ Commercial = "COMMERCIAL",
35
+ Construction = "CONSTRUCTION",
36
+ ConstructionAndPurchase = "CONSTRUCTION_AND_PURCHASE",
37
+ ConstructionAndRefinance = "CONSTRUCTION_AND_REFINANCE",
38
+ InternalRefinance = "INTERNAL_REFINANCE",
39
+ NewPurchase = "NEW_PURCHASE",
40
+ PreApproval = "PRE_APPROVAL",
41
+ Purchase = "PURCHASE",
42
+ PurchaseAndRefinance = "PURCHASE_AND_REFINANCE",
43
+ Refinance = "REFINANCE",
44
+ Slr = "SLR",
45
+ TopUp = "TOP_UP",
46
+ Variation = "VARIATION"
47
+ }
48
+ /**
49
+ * The metadata of the application
50
+ */
51
+ export interface ApplicationMeta {
52
+ /**
53
+ * uuid of user who made the action (create/update/delete)
54
+ */
55
+ actionedBy?: string;
56
+ /**
57
+ * role of the user that made the action
58
+ */
59
+ actionedByRole?: ActionedByRole;
60
+ /**
61
+ * date of action (create/update/delete)
62
+ */
63
+ actionedOn?: string;
64
+ }
65
+ /**
66
+ * role of the user that made the action
67
+ */
68
+ export declare enum ActionedByRole {
69
+ Customer = "customer",
70
+ Team = "team"
71
+ }
72
+ export interface Preliminary {
73
+ cashoutAmount?: number;
74
+ consolidateAmount?: number;
75
+ contributions?: Contribution[];
76
+ desiredFeatures?: DesiredFeature[];
77
+ eligibleForFHOG?: EligibleForFHOG;
78
+ hasConstructionWithin6Months?: boolean;
79
+ hasSelfEmploymentProof?: boolean;
80
+ isSellingExistingProperty?: boolean;
81
+ numberOfDependants?: number;
82
+ paymentType?: PaymentType;
83
+ primaryPurpose?: PrimaryPurpose;
84
+ purchaseReason?: PurchaseReason;
85
+ purchaseSituation?: PurchaseSituation;
86
+ refinancingReasons?: RefinancingReason[];
87
+ totalMonthlyExpenses?: number;
88
+ urgency?: Urgency;
89
+ }
90
+ export interface Contribution {
91
+ amount?: number;
92
+ type?: ContributionType;
93
+ }
94
+ export declare enum ContributionType {
95
+ Deposit = "DEPOSIT"
96
+ }
97
+ export declare enum DesiredFeature {
98
+ FixedRate = "FIXED_RATE",
99
+ MajorLender = "MAJOR_LENDER",
100
+ MobileApp = "MOBILE_APP",
101
+ OffsetOrRedraw = "OFFSET_OR_REDRAW"
102
+ }
103
+ /**
104
+ * First Home Owner Grant
105
+ */
106
+ export declare enum EligibleForFHOG {
107
+ No = "NO",
108
+ NotSure = "NOT_SURE",
109
+ Yes = "YES"
110
+ }
111
+ export declare enum PaymentType {
112
+ InterestOnly = "INTEREST_ONLY",
113
+ PrincipalAndInterest = "PRINCIPAL_AND_INTEREST",
114
+ StillDeciding = "STILL_DECIDING"
115
+ }
116
+ export declare enum PrimaryPurpose {
117
+ NewPurchase = "NEW_PURCHASE",
118
+ Refinance = "REFINANCE"
119
+ }
120
+ export declare enum PurchaseReason {
121
+ LoanAffordability = "LOAN_AFFORDABILITY",
122
+ LoanApproval = "LOAN_APPROVAL",
123
+ LoanEligibility = "LOAN_ELIGIBILITY"
124
+ }
125
+ export declare enum PurchaseSituation {
126
+ BuyingSoon = "BUYING_SOON",
127
+ ContractsExchanged = "CONTRACTS_EXCHANGED",
128
+ ExploringOptions = "EXPLORING_OPTIONS",
129
+ OfferMade = "OFFER_MADE"
130
+ }
131
+ export declare enum RefinancingReason {
132
+ ConsolidateCashout = "CONSOLIDATE_CASHOUT",
133
+ Construction = "CONSTRUCTION",
134
+ DecreaseRepayments = "DECREASE_REPAYMENTS",
135
+ FasterPayoff = "FASTER_PAYOFF"
136
+ }
137
+ export declare enum Urgency {
138
+ NotUrgent = "NOT_URGENT",
139
+ Urgent = "URGENT"
140
+ }
141
+ export declare enum PublicApplicationType {
142
+ CreateApplication = "CreateApplication",
143
+ MigrateApplication = "MigrateApplication",
144
+ UpdateApplication = "UpdateApplication"
145
+ }
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.PublicApplicationType = exports.Urgency = exports.RefinancingReason = exports.PurchaseSituation = exports.PurchaseReason = exports.PrimaryPurpose = exports.PaymentType = exports.EligibleForFHOG = exports.DesiredFeature = exports.ContributionType = exports.ActionedByRole = exports.BrokerPrimaryPurpose = exports.Brand = void 0;
4
+ var Brand;
5
+ (function (Brand) {
6
+ Brand["Domain"] = "domain";
7
+ Brand["DomainVariation"] = "domain variation";
8
+ Brand["Lendi"] = "lendi";
9
+ Brand["LendiVariation"] = "lendi variation";
10
+ })(Brand = exports.Brand || (exports.Brand = {}));
11
+ /**
12
+ * Additional data point for broker to capture primary purpose, other than the preliminary
13
+ * primary purpose associated with current user journey for new purchase or refinance
14
+ */
15
+ var BrokerPrimaryPurpose;
16
+ (function (BrokerPrimaryPurpose) {
17
+ BrokerPrimaryPurpose["Commercial"] = "COMMERCIAL";
18
+ BrokerPrimaryPurpose["Construction"] = "CONSTRUCTION";
19
+ BrokerPrimaryPurpose["ConstructionAndPurchase"] = "CONSTRUCTION_AND_PURCHASE";
20
+ BrokerPrimaryPurpose["ConstructionAndRefinance"] = "CONSTRUCTION_AND_REFINANCE";
21
+ BrokerPrimaryPurpose["InternalRefinance"] = "INTERNAL_REFINANCE";
22
+ BrokerPrimaryPurpose["NewPurchase"] = "NEW_PURCHASE";
23
+ BrokerPrimaryPurpose["PreApproval"] = "PRE_APPROVAL";
24
+ BrokerPrimaryPurpose["Purchase"] = "PURCHASE";
25
+ BrokerPrimaryPurpose["PurchaseAndRefinance"] = "PURCHASE_AND_REFINANCE";
26
+ BrokerPrimaryPurpose["Refinance"] = "REFINANCE";
27
+ BrokerPrimaryPurpose["Slr"] = "SLR";
28
+ BrokerPrimaryPurpose["TopUp"] = "TOP_UP";
29
+ BrokerPrimaryPurpose["Variation"] = "VARIATION";
30
+ })(BrokerPrimaryPurpose = exports.BrokerPrimaryPurpose || (exports.BrokerPrimaryPurpose = {}));
31
+ /**
32
+ * role of the user that made the action
33
+ */
34
+ var ActionedByRole;
35
+ (function (ActionedByRole) {
36
+ ActionedByRole["Customer"] = "customer";
37
+ ActionedByRole["Team"] = "team";
38
+ })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
39
+ var ContributionType;
40
+ (function (ContributionType) {
41
+ ContributionType["Deposit"] = "DEPOSIT";
42
+ })(ContributionType = exports.ContributionType || (exports.ContributionType = {}));
43
+ var DesiredFeature;
44
+ (function (DesiredFeature) {
45
+ DesiredFeature["FixedRate"] = "FIXED_RATE";
46
+ DesiredFeature["MajorLender"] = "MAJOR_LENDER";
47
+ DesiredFeature["MobileApp"] = "MOBILE_APP";
48
+ DesiredFeature["OffsetOrRedraw"] = "OFFSET_OR_REDRAW";
49
+ })(DesiredFeature = exports.DesiredFeature || (exports.DesiredFeature = {}));
50
+ /**
51
+ * First Home Owner Grant
52
+ */
53
+ var EligibleForFHOG;
54
+ (function (EligibleForFHOG) {
55
+ EligibleForFHOG["No"] = "NO";
56
+ EligibleForFHOG["NotSure"] = "NOT_SURE";
57
+ EligibleForFHOG["Yes"] = "YES";
58
+ })(EligibleForFHOG = exports.EligibleForFHOG || (exports.EligibleForFHOG = {}));
59
+ var PaymentType;
60
+ (function (PaymentType) {
61
+ PaymentType["InterestOnly"] = "INTEREST_ONLY";
62
+ PaymentType["PrincipalAndInterest"] = "PRINCIPAL_AND_INTEREST";
63
+ PaymentType["StillDeciding"] = "STILL_DECIDING";
64
+ })(PaymentType = exports.PaymentType || (exports.PaymentType = {}));
65
+ var PrimaryPurpose;
66
+ (function (PrimaryPurpose) {
67
+ PrimaryPurpose["NewPurchase"] = "NEW_PURCHASE";
68
+ PrimaryPurpose["Refinance"] = "REFINANCE";
69
+ })(PrimaryPurpose = exports.PrimaryPurpose || (exports.PrimaryPurpose = {}));
70
+ var PurchaseReason;
71
+ (function (PurchaseReason) {
72
+ PurchaseReason["LoanAffordability"] = "LOAN_AFFORDABILITY";
73
+ PurchaseReason["LoanApproval"] = "LOAN_APPROVAL";
74
+ PurchaseReason["LoanEligibility"] = "LOAN_ELIGIBILITY";
75
+ })(PurchaseReason = exports.PurchaseReason || (exports.PurchaseReason = {}));
76
+ var PurchaseSituation;
77
+ (function (PurchaseSituation) {
78
+ PurchaseSituation["BuyingSoon"] = "BUYING_SOON";
79
+ PurchaseSituation["ContractsExchanged"] = "CONTRACTS_EXCHANGED";
80
+ PurchaseSituation["ExploringOptions"] = "EXPLORING_OPTIONS";
81
+ PurchaseSituation["OfferMade"] = "OFFER_MADE";
82
+ })(PurchaseSituation = exports.PurchaseSituation || (exports.PurchaseSituation = {}));
83
+ var RefinancingReason;
84
+ (function (RefinancingReason) {
85
+ RefinancingReason["ConsolidateCashout"] = "CONSOLIDATE_CASHOUT";
86
+ RefinancingReason["Construction"] = "CONSTRUCTION";
87
+ RefinancingReason["DecreaseRepayments"] = "DECREASE_REPAYMENTS";
88
+ RefinancingReason["FasterPayoff"] = "FASTER_PAYOFF";
89
+ })(RefinancingReason = exports.RefinancingReason || (exports.RefinancingReason = {}));
90
+ var Urgency;
91
+ (function (Urgency) {
92
+ Urgency["NotUrgent"] = "NOT_URGENT";
93
+ Urgency["Urgent"] = "URGENT";
94
+ })(Urgency = exports.Urgency || (exports.Urgency = {}));
95
+ var PublicApplicationType;
96
+ (function (PublicApplicationType) {
97
+ PublicApplicationType["CreateApplication"] = "CreateApplication";
98
+ PublicApplicationType["MigrateApplication"] = "MigrateApplication";
99
+ PublicApplicationType["UpdateApplication"] = "UpdateApplication";
100
+ })(PublicApplicationType = exports.PublicApplicationType || (exports.PublicApplicationType = {}));
@@ -0,0 +1,52 @@
1
+ /**
2
+ * The AssetAndLiabilityRelationCreated event schema
3
+ */
4
+ export interface PublicAssetLiabilityRelation {
5
+ payload: AssetAndLiabilityRelation;
6
+ type: Type;
7
+ /**
8
+ * schema version
9
+ */
10
+ version: string;
11
+ }
12
+ /**
13
+ * create Asset And Liability Relation payload
14
+ */
15
+ export interface AssetAndLiabilityRelation {
16
+ applicationId: string;
17
+ meta?: Meta;
18
+ relation: Relation;
19
+ }
20
+ /**
21
+ * The metadata of the alieo
22
+ */
23
+ export interface Meta {
24
+ /**
25
+ * uuid of user who made the action (create/update/delete)
26
+ */
27
+ actionedBy: string;
28
+ /**
29
+ * role of the user that made the action
30
+ */
31
+ actionedByRole: ActionedByRole;
32
+ }
33
+ /**
34
+ * role of the user that made the action
35
+ */
36
+ export declare enum ActionedByRole {
37
+ Customer = "customer",
38
+ Team = "team"
39
+ }
40
+ export interface Relation {
41
+ /**
42
+ * uuid of asset
43
+ */
44
+ assetId: string;
45
+ /**
46
+ * uuid of liability
47
+ */
48
+ liabilityId: string;
49
+ }
50
+ export declare enum Type {
51
+ AssetAndLiabilityRelationCreated = "AssetAndLiabilityRelationCreated"
52
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.Type = exports.ActionedByRole = void 0;
4
+ /**
5
+ * role of the user that made the action
6
+ */
7
+ var ActionedByRole;
8
+ (function (ActionedByRole) {
9
+ ActionedByRole["Customer"] = "customer";
10
+ ActionedByRole["Team"] = "team";
11
+ })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
12
+ var Type;
13
+ (function (Type) {
14
+ Type["AssetAndLiabilityRelationCreated"] = "AssetAndLiabilityRelationCreated";
15
+ })(Type = exports.Type || (exports.Type = {}));