@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,319 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.Type = exports.ActionedByRole = exports.ZoneType = exports.AssetType = exports.PropertyType = exports.PropertyStatus = exports.PrimaryPurpose = exports.Proportions = exports.Countries = void 0;
4
+ var Countries;
5
+ (function (Countries) {
6
+ Countries["Afghanistan"] = "Afghanistan";
7
+ Countries["Albania"] = "Albania";
8
+ Countries["Algeria"] = "Algeria";
9
+ Countries["AmericanSamoa"] = "American Samoa";
10
+ Countries["Andorra"] = "Andorra";
11
+ Countries["Angola"] = "Angola";
12
+ Countries["Anguilla"] = "Anguilla";
13
+ Countries["Antarctica"] = "Antarctica";
14
+ Countries["AntiguaAndBarbuda"] = "Antigua And Barbuda";
15
+ Countries["Argentina"] = "Argentina";
16
+ Countries["Armenia"] = "Armenia";
17
+ Countries["Aruba"] = "Aruba";
18
+ Countries["Australia"] = "Australia";
19
+ Countries["Austria"] = "Austria";
20
+ Countries["Azerbaijan"] = "Azerbaijan";
21
+ Countries["Bahamas"] = "Bahamas";
22
+ Countries["Bahrain"] = "Bahrain";
23
+ Countries["Bangladesh"] = "Bangladesh";
24
+ Countries["Barbados"] = "Barbados";
25
+ Countries["Belarus"] = "Belarus";
26
+ Countries["Belgium"] = "Belgium";
27
+ Countries["Belize"] = "Belize";
28
+ Countries["Benin"] = "Benin";
29
+ Countries["Bermuda"] = "Bermuda";
30
+ Countries["Bhutan"] = "Bhutan";
31
+ Countries["Bolivia"] = "Bolivia";
32
+ Countries["BosniaAndHerzegovina"] = "Bosnia And Herzegovina";
33
+ Countries["Botswana"] = "Botswana";
34
+ Countries["BouvetIsland"] = "Bouvet Island";
35
+ Countries["Brazil"] = "Brazil";
36
+ Countries["BritishIndianOceanTerritory"] = "British Indian Ocean Territory";
37
+ Countries["BritishVirginIslands"] = "British Virgin Islands";
38
+ Countries["BruneiDarussalam"] = "Brunei Darussalam";
39
+ Countries["Bulgaria"] = "Bulgaria";
40
+ Countries["BurkinaFaso"] = "Burkina Faso";
41
+ Countries["Burundi"] = "Burundi";
42
+ Countries["Cambodia"] = "Cambodia";
43
+ Countries["Cameroon"] = "Cameroon";
44
+ Countries["Canada"] = "Canada";
45
+ Countries["CapeVerde"] = "Cape Verde";
46
+ Countries["CaymanIslands"] = "Cayman Islands";
47
+ Countries["CentralAfricanRepublic"] = "Central African Republic";
48
+ Countries["Chad"] = "Chad";
49
+ Countries["Chile"] = "Chile";
50
+ Countries["China"] = "China";
51
+ Countries["ChristmasIsland"] = "Christmas Island";
52
+ Countries["CocosKeelingIslands"] = "Cocos (Keeling) Islands";
53
+ Countries["Colombia"] = "Colombia";
54
+ Countries["Comoros"] = "Comoros";
55
+ Countries["CookIslands"] = "Cook Islands";
56
+ Countries["CostaRica"] = "Costa Rica";
57
+ Countries["CoteDIvoire"] = "Cote D'ivoire";
58
+ Countries["Croatia"] = "Croatia";
59
+ Countries["Cuba"] = "Cuba";
60
+ Countries["Cyprus"] = "Cyprus";
61
+ Countries["CzechRepublic"] = "Czech Republic";
62
+ Countries["DemocraticPeopleSRepublicOfKorea"] = "Democratic People's Republic of Korea";
63
+ Countries["DemocraticRepublicOfTheCongo"] = "Democratic Republic Of The Congo";
64
+ Countries["Denmark"] = "Denmark";
65
+ Countries["Djibouti"] = "Djibouti";
66
+ Countries["Dominica"] = "Dominica";
67
+ Countries["DominicanRepublic"] = "Dominican Republic";
68
+ Countries["EastTimor"] = "East Timor";
69
+ Countries["Ecuador"] = "Ecuador";
70
+ Countries["Egypt"] = "Egypt";
71
+ Countries["ElSalvador"] = "El Salvador";
72
+ Countries["EquatorialGuinea"] = "Equatorial Guinea";
73
+ Countries["Eritrea"] = "Eritrea";
74
+ Countries["Estonia"] = "Estonia";
75
+ Countries["Ethiopia"] = "Ethiopia";
76
+ Countries["FalklandIslands"] = "Falkland Islands";
77
+ Countries["FaroeIslands"] = "Faroe Islands";
78
+ Countries["FederatedStatesOfMicronesia"] = "Federated States Of Micronesia";
79
+ Countries["Fiji"] = "Fiji";
80
+ Countries["Finland"] = "Finland";
81
+ Countries["France"] = "France";
82
+ Countries["FrenchGuiana"] = "French Guiana";
83
+ Countries["FrenchPolynesia"] = "French Polynesia";
84
+ Countries["FrenchSouthernTerritories"] = "French Southern Territories";
85
+ Countries["Gabon"] = "Gabon";
86
+ Countries["Gambia"] = "Gambia";
87
+ Countries["Georgia"] = "Georgia";
88
+ Countries["Germany"] = "Germany";
89
+ Countries["Ghana"] = "Ghana";
90
+ Countries["Gibraltar"] = "Gibraltar";
91
+ Countries["Greece"] = "Greece";
92
+ Countries["Greenland"] = "Greenland";
93
+ Countries["Grenada"] = "Grenada";
94
+ Countries["Guadeloupe"] = "Guadeloupe";
95
+ Countries["Guam"] = "Guam";
96
+ Countries["Guatemala"] = "Guatemala";
97
+ Countries["Guinea"] = "Guinea";
98
+ Countries["GuineaBissau"] = "Guinea-bissau";
99
+ Countries["Guyana"] = "Guyana";
100
+ Countries["Haiti"] = "Haiti";
101
+ Countries["HeardIslandAndMcdonaldIslands"] = "Heard Island And Mcdonald Islands";
102
+ Countries["HolySeeVaticanCityState"] = "Holy See (Vatican City State)";
103
+ Countries["Honduras"] = "Honduras";
104
+ Countries["HongKong"] = "Hong Kong";
105
+ Countries["Hungary"] = "Hungary";
106
+ Countries["Iceland"] = "Iceland";
107
+ Countries["India"] = "India";
108
+ Countries["Indonesia"] = "Indonesia";
109
+ Countries["Iran"] = "Iran";
110
+ Countries["Iraq"] = "Iraq";
111
+ Countries["Ireland"] = "Ireland";
112
+ Countries["Israel"] = "Israel";
113
+ Countries["Italy"] = "Italy";
114
+ Countries["Jamaica"] = "Jamaica";
115
+ Countries["Japan"] = "Japan";
116
+ Countries["Jordan"] = "Jordan";
117
+ Countries["Kazakstan"] = "Kazakstan";
118
+ Countries["Kenya"] = "Kenya";
119
+ Countries["Kiribati"] = "Kiribati";
120
+ Countries["Kosovo"] = "Kosovo";
121
+ Countries["Kuwait"] = "Kuwait";
122
+ Countries["Kyrgyzstan"] = "Kyrgyzstan";
123
+ Countries["Laos"] = "Laos";
124
+ Countries["Latvia"] = "Latvia";
125
+ Countries["Lebanon"] = "Lebanon";
126
+ Countries["Lesotho"] = "Lesotho";
127
+ Countries["Liberia"] = "Liberia";
128
+ Countries["LibyanArabJamahiriya"] = "Libyan Arab Jamahiriya";
129
+ Countries["Liechtenstein"] = "Liechtenstein";
130
+ Countries["Lithuania"] = "Lithuania";
131
+ Countries["Luxembourg"] = "Luxembourg";
132
+ Countries["Macau"] = "Macau";
133
+ Countries["Macedonia"] = "Macedonia";
134
+ Countries["Madagascar"] = "Madagascar";
135
+ Countries["Malawi"] = "Malawi";
136
+ Countries["Malaysia"] = "Malaysia";
137
+ Countries["Maldives"] = "Maldives";
138
+ Countries["Mali"] = "Mali";
139
+ Countries["Malta"] = "Malta";
140
+ Countries["MarshallIslands"] = "Marshall Islands";
141
+ Countries["Martinique"] = "Martinique";
142
+ Countries["Mauritania"] = "Mauritania";
143
+ Countries["Mauritius"] = "Mauritius";
144
+ Countries["Mayotte"] = "Mayotte";
145
+ Countries["Mexico"] = "Mexico";
146
+ Countries["Monaco"] = "Monaco";
147
+ Countries["Mongolia"] = "Mongolia";
148
+ Countries["Montenegro"] = "Montenegro";
149
+ Countries["Montserrat"] = "Montserrat";
150
+ Countries["Morocco"] = "Morocco";
151
+ Countries["Mozambique"] = "Mozambique";
152
+ Countries["Myanmar"] = "Myanmar";
153
+ Countries["Namibia"] = "Namibia";
154
+ Countries["Nauru"] = "Nauru";
155
+ Countries["Nepal"] = "Nepal";
156
+ Countries["Netherlands"] = "Netherlands";
157
+ Countries["NetherlandsAntilles"] = "Netherlands Antilles";
158
+ Countries["NewCaledonia"] = "New Caledonia";
159
+ Countries["NewZealand"] = "New Zealand";
160
+ Countries["Nicaragua"] = "Nicaragua";
161
+ Countries["Niger"] = "Niger";
162
+ Countries["Nigeria"] = "Nigeria";
163
+ Countries["Niue"] = "Niue";
164
+ Countries["NorfolkIsland"] = "Norfolk Island";
165
+ Countries["NorthernMarianaIslands"] = "Northern Mariana Islands";
166
+ Countries["Norway"] = "Norway";
167
+ Countries["Oman"] = "Oman";
168
+ Countries["Pakistan"] = "Pakistan";
169
+ Countries["Palau"] = "Palau";
170
+ Countries["PalestinianTerritory"] = "Palestinian Territory";
171
+ Countries["Panama"] = "Panama";
172
+ Countries["PapuaNewGuinea"] = "Papua New Guinea";
173
+ Countries["Paraguay"] = "Paraguay";
174
+ Countries["Peru"] = "Peru";
175
+ Countries["Philippines"] = "Philippines";
176
+ Countries["Pitcairn"] = "Pitcairn";
177
+ Countries["Poland"] = "Poland";
178
+ Countries["Portugal"] = "Portugal";
179
+ Countries["PuertoRico"] = "Puerto Rico";
180
+ Countries["Qatar"] = "Qatar";
181
+ Countries["RepublicOfMoldova"] = "Republic Of Moldova";
182
+ Countries["Romania"] = "Romania";
183
+ Countries["RussianFederation"] = "Russian Federation";
184
+ Countries["Rwanda"] = "Rwanda";
185
+ Countries["SANMarino"] = "San Marino";
186
+ Countries["SaintHelena"] = "Saint Helena";
187
+ Countries["SaintKittsAndNevis"] = "Saint Kitts And Nevis";
188
+ Countries["SaintLucia"] = "Saint Lucia";
189
+ Countries["SaintPierreAndMiquelon"] = "Saint Pierre And Miquelon";
190
+ Countries["SaintVincentAndTheGrenadines"] = "Saint Vincent And The Grenadines";
191
+ Countries["Samoa"] = "Samoa";
192
+ Countries["SaoTomeAndPrincipe"] = "Sao Tome And Principe";
193
+ Countries["SaudiArabia"] = "Saudi Arabia";
194
+ Countries["Senegal"] = "Senegal";
195
+ Countries["Serbia"] = "Serbia";
196
+ Countries["Seychelles"] = "Seychelles";
197
+ Countries["SierraLeone"] = "Sierra Leone";
198
+ Countries["Singapore"] = "Singapore";
199
+ Countries["Slovakia"] = "Slovakia";
200
+ Countries["Slovenia"] = "Slovenia";
201
+ Countries["SolomonIslands"] = "Solomon Islands";
202
+ Countries["Somalia"] = "Somalia";
203
+ Countries["SouthAfrica"] = "South Africa";
204
+ Countries["SouthGeorgiaAndTheSouthSandwichIslands"] = "South Georgia And The South Sandwich Islands";
205
+ Countries["Spain"] = "Spain";
206
+ Countries["SriLanka"] = "Sri Lanka";
207
+ Countries["Sudan"] = "Sudan";
208
+ Countries["Suriname"] = "Suriname";
209
+ Countries["SvalbardAndJanMayen"] = "Svalbard And Jan Mayen";
210
+ Countries["Swaziland"] = "Swaziland";
211
+ Countries["Sweden"] = "Sweden";
212
+ Countries["Switzerland"] = "Switzerland";
213
+ Countries["SyrianArabRepublic"] = "Syrian Arab Republic";
214
+ Countries["Taiwan"] = "Taiwan";
215
+ Countries["Tajikistan"] = "Tajikistan";
216
+ Countries["Tanzania"] = "Tanzania";
217
+ Countries["Thailand"] = "Thailand";
218
+ Countries["TheRepublicOfSouthKorea"] = "The Republic of South Korea";
219
+ Countries["Togo"] = "Togo";
220
+ Countries["Tokelau"] = "Tokelau";
221
+ Countries["Tonga"] = "Tonga";
222
+ Countries["TrinidadAndTobago"] = "Trinidad And Tobago";
223
+ Countries["Tunisia"] = "Tunisia";
224
+ Countries["Turkey"] = "Turkey";
225
+ Countries["Turkmenistan"] = "Turkmenistan";
226
+ Countries["TurksAndCaicosIslands"] = "Turks And Caicos Islands";
227
+ Countries["Tuvalu"] = "Tuvalu";
228
+ Countries["USVirginIslands"] = "US Virgin Islands";
229
+ Countries["Uganda"] = "Uganda";
230
+ Countries["Ukraine"] = "Ukraine";
231
+ Countries["UnitedArabEmirates"] = "United Arab Emirates";
232
+ Countries["UnitedKingdom"] = "United Kingdom";
233
+ Countries["UnitedStatesMinorOutlyingIslands"] = "United States Minor Outlying Islands";
234
+ Countries["UnitedStatesOfAmerica"] = "United States of America";
235
+ Countries["Uruguay"] = "Uruguay";
236
+ Countries["Uzbekistan"] = "Uzbekistan";
237
+ Countries["Vanuatu"] = "Vanuatu";
238
+ Countries["Venezuela"] = "Venezuela";
239
+ Countries["Vietnam"] = "Vietnam";
240
+ Countries["WallisAndFutuna"] = "Wallis And Futuna";
241
+ Countries["WesternSahara"] = "Western Sahara";
242
+ Countries["Yemen"] = "Yemen";
243
+ Countries["Zambia"] = "Zambia";
244
+ Countries["Zimbabwe"] = "Zimbabwe";
245
+ })(Countries = exports.Countries || (exports.Countries = {}));
246
+ /**
247
+ * Indicate whether ownership proportions are equal, specified individually for each one or
248
+ * not specified.
249
+ */
250
+ var Proportions;
251
+ (function (Proportions) {
252
+ Proportions["Equal"] = "EQUAL";
253
+ Proportions["NotSpecified"] = "NOT_SPECIFIED";
254
+ Proportions["Specified"] = "SPECIFIED";
255
+ })(Proportions = exports.Proportions || (exports.Proportions = {}));
256
+ var PrimaryPurpose;
257
+ (function (PrimaryPurpose) {
258
+ PrimaryPurpose["Investment"] = "INVESTMENT";
259
+ PrimaryPurpose["OwnerOccupied"] = "OWNER_OCCUPIED";
260
+ })(PrimaryPurpose = exports.PrimaryPurpose || (exports.PrimaryPurpose = {}));
261
+ var PropertyStatus;
262
+ (function (PropertyStatus) {
263
+ PropertyStatus["Established"] = "ESTABLISHED";
264
+ PropertyStatus["NewBuilding"] = "NEW_BUILDING";
265
+ PropertyStatus["OffThePlan"] = "OFF_THE_PLAN";
266
+ PropertyStatus["VacantLand"] = "VACANT_LAND";
267
+ })(PropertyStatus = exports.PropertyStatus || (exports.PropertyStatus = {}));
268
+ var PropertyType;
269
+ (function (PropertyType) {
270
+ PropertyType["ApartmentUnitLessThan50M2"] = "APARTMENT_UNIT_LESS_THAN_50M2";
271
+ PropertyType["ApartmentUnitMoreThan50M2"] = "APARTMENT_UNIT_MORE_THAN_50M2";
272
+ PropertyType["Duplex"] = "DUPLEX";
273
+ PropertyType["FullyDetachedHouse"] = "FULLY_DETACHED_HOUSE";
274
+ PropertyType["KitHome"] = "KIT_HOME";
275
+ PropertyType["Land"] = "LAND";
276
+ PropertyType["MultiDwellingSingleTitle"] = "MULTI_DWELLING_SINGLE_TITLE";
277
+ PropertyType["PropertyOver10_Ha"] = "PROPERTY_OVER_10_HA";
278
+ PropertyType["SemiDetachedHouse"] = "SEMI_DETACHED_HOUSE";
279
+ PropertyType["ServicedApartment"] = "SERVICED_APARTMENT";
280
+ PropertyType["StudentAccommodation"] = "STUDENT_ACCOMMODATION";
281
+ PropertyType["Studio"] = "STUDIO";
282
+ PropertyType["Terrace"] = "TERRACE";
283
+ PropertyType["Townhouse"] = "TOWNHOUSE";
284
+ PropertyType["Villa"] = "VILLA";
285
+ PropertyType["WarehouseApartment"] = "WAREHOUSE_APARTMENT";
286
+ })(PropertyType = exports.PropertyType || (exports.PropertyType = {}));
287
+ var AssetType;
288
+ (function (AssetType) {
289
+ AssetType["Gifts"] = "GIFTS";
290
+ AssetType["HomeContents"] = "HOME_CONTENTS";
291
+ AssetType["ManagedFunds"] = "MANAGED_FUNDS";
292
+ AssetType["OtherAsset"] = "OTHER_ASSET";
293
+ AssetType["Property"] = "PROPERTY";
294
+ AssetType["SavingCheckAccount"] = "SAVING_CHECK_ACCOUNT";
295
+ AssetType["Shares"] = "SHARES";
296
+ AssetType["Superannuation"] = "SUPERANNUATION";
297
+ AssetType["TermDeposit"] = "TERM_DEPOSIT";
298
+ AssetType["Vehicle"] = "VEHICLE";
299
+ })(AssetType = exports.AssetType || (exports.AssetType = {}));
300
+ var ZoneType;
301
+ (function (ZoneType) {
302
+ ZoneType["Commercial"] = "COMMERCIAL";
303
+ ZoneType["Industrial"] = "INDUSTRIAL";
304
+ ZoneType["Residential"] = "RESIDENTIAL";
305
+ ZoneType["Rural"] = "RURAL";
306
+ })(ZoneType = exports.ZoneType || (exports.ZoneType = {}));
307
+ /**
308
+ * role of the user that made the action
309
+ */
310
+ var ActionedByRole;
311
+ (function (ActionedByRole) {
312
+ ActionedByRole["Customer"] = "customer";
313
+ ActionedByRole["Team"] = "team";
314
+ })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
315
+ var Type;
316
+ (function (Type) {
317
+ Type["AssetCreated"] = "AssetCreated";
318
+ Type["AssetUpdated"] = "AssetUpdated";
319
+ })(Type = exports.Type || (exports.Type = {}));
@@ -0,0 +1,190 @@
1
+ /**
2
+ * Create or update
3
+ */
4
+ export interface PublicEmployment {
5
+ payload: Payload;
6
+ type: PublicEmploymentType;
7
+ /**
8
+ * schema version
9
+ */
10
+ version: string;
11
+ }
12
+ /**
13
+ * create employment payload
14
+ */
15
+ export interface Payload {
16
+ abn?: number;
17
+ abnVerified?: boolean;
18
+ /**
19
+ * uuid of applicant
20
+ */
21
+ applicantId: string;
22
+ /**
23
+ * uuid of application
24
+ */
25
+ applicationId: string;
26
+ businessName?: string;
27
+ businessStructure?: BusinessStructure;
28
+ /**
29
+ * uuid of client
30
+ */
31
+ clientId?: string;
32
+ companyType?: CompanyType;
33
+ employerAddress?: EmployerAddress;
34
+ employmentBasis?: EmploymentBasis;
35
+ employmentType?: EmploymentType;
36
+ endDate?: null | string;
37
+ foreignEmployed?: boolean;
38
+ /**
39
+ * uuid of employment
40
+ */
41
+ id: string;
42
+ maternityLeaveReturnBasis?: MaternityLeaveReturnBasis;
43
+ maternityLeaveReturnDate?: string;
44
+ meta?: Meta;
45
+ onProbation?: boolean;
46
+ privateOrPublic?: CompanyType;
47
+ role?: Role;
48
+ startDate?: string;
49
+ type: PayloadType;
50
+ }
51
+ export declare enum BusinessStructure {
52
+ Company = "COMPANY",
53
+ Partnership = "PARTNERSHIP",
54
+ SoleTrader = "SOLE_TRADER",
55
+ Trust = "TRUST"
56
+ }
57
+ export declare enum CompanyType {
58
+ Private = "PRIVATE",
59
+ Public = "PUBLIC"
60
+ }
61
+ export interface EmployerAddress {
62
+ city?: string;
63
+ country?: string;
64
+ formatted?: string;
65
+ postcode?: string;
66
+ standard?: AddressStandard;
67
+ state?: AustralianStates;
68
+ }
69
+ /**
70
+ * The address standard
71
+ */
72
+ export interface AddressStandard {
73
+ /**
74
+ * The building name
75
+ */
76
+ buildingName?: string;
77
+ /**
78
+ * The level of the unit/apartment
79
+ */
80
+ level?: string;
81
+ /**
82
+ * The lot number
83
+ */
84
+ lotSection?: string;
85
+ /**
86
+ * The street name
87
+ */
88
+ streetName?: string;
89
+ /**
90
+ * The street number
91
+ */
92
+ streetNumber?: string;
93
+ /**
94
+ * The type of the street i.e. road
95
+ */
96
+ streetType?: string;
97
+ /**
98
+ * The unit number
99
+ */
100
+ unit?: string;
101
+ }
102
+ export declare enum AustralianStates {
103
+ Act = "ACT",
104
+ NT = "NT",
105
+ Nsw = "NSW",
106
+ Qld = "QLD",
107
+ Sa = "SA",
108
+ Tas = "TAS",
109
+ Vic = "VIC",
110
+ Wa = "WA"
111
+ }
112
+ export declare enum EmploymentBasis {
113
+ Casual = "CASUAL",
114
+ Contractor = "CONTRACTOR",
115
+ FullTime = "FULL_TIME",
116
+ MaternityLeave = "MATERNITY_LEAVE",
117
+ PartTime = "PART_TIME"
118
+ }
119
+ export declare enum EmploymentType {
120
+ Employee = "EMPLOYEE",
121
+ NotWorking = "NOT_WORKING",
122
+ SelfEmployed = "SELF_EMPLOYED"
123
+ }
124
+ /**
125
+ * Employment basis after returning from maternity leave.
126
+ */
127
+ export declare enum MaternityLeaveReturnBasis {
128
+ Casual = "CASUAL",
129
+ Contractor = "CONTRACTOR",
130
+ FullTime = "FULL_TIME",
131
+ PartTime = "PART_TIME"
132
+ }
133
+ /**
134
+ * The metadata of the alieo
135
+ */
136
+ export interface Meta {
137
+ /**
138
+ * uuid of user who made the action (create/update/delete)
139
+ */
140
+ actionedBy: string;
141
+ /**
142
+ * role of the user that made the action
143
+ */
144
+ actionedByRole: ActionedByRole;
145
+ }
146
+ /**
147
+ * role of the user that made the action
148
+ */
149
+ export declare enum ActionedByRole {
150
+ Customer = "customer",
151
+ Team = "team"
152
+ }
153
+ /**
154
+ * ANZSCO role. Complete list can be found as anzsco property here
155
+ * https://bitbucket.org/lendi-dev/lists/src/master/src/services/occupations/occupations.ts.
156
+ * Official reference: http://anzsco.ozhome.info/anzsco-complete-occupation-list.
157
+ */
158
+ export interface Role {
159
+ anzsco?: Anzsco;
160
+ /**
161
+ * ASCO role. Complete list can be found as asco property here
162
+ * https://bitbucket.org/lendi-dev/lists/src/master/src/services/occupations/occupations.ts.
163
+ * Official reference: http://anzsco.ozhome.info/anzsco-complete-occupation-list.
164
+ */
165
+ asco?: Asco;
166
+ }
167
+ export interface Anzsco {
168
+ category?: string;
169
+ code?: number;
170
+ occupation?: string;
171
+ }
172
+ /**
173
+ * ASCO role. Complete list can be found as asco property here
174
+ * https://bitbucket.org/lendi-dev/lists/src/master/src/services/occupations/occupations.ts.
175
+ * Official reference: http://anzsco.ozhome.info/anzsco-complete-occupation-list.
176
+ */
177
+ export interface Asco {
178
+ category?: string;
179
+ code?: string;
180
+ occupation?: string;
181
+ }
182
+ export declare enum PayloadType {
183
+ Previous = "PREVIOUS",
184
+ Primary = "PRIMARY",
185
+ Secondary = "SECONDARY"
186
+ }
187
+ export declare enum PublicEmploymentType {
188
+ EmploymentCreated = "EmploymentCreated",
189
+ EmploymentUpdated = "EmploymentUpdated"
190
+ }
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ exports.__esModule = true;
3
+ exports.PublicEmploymentType = exports.PayloadType = exports.ActionedByRole = exports.MaternityLeaveReturnBasis = exports.EmploymentType = exports.EmploymentBasis = exports.AustralianStates = exports.CompanyType = exports.BusinessStructure = void 0;
4
+ var BusinessStructure;
5
+ (function (BusinessStructure) {
6
+ BusinessStructure["Company"] = "COMPANY";
7
+ BusinessStructure["Partnership"] = "PARTNERSHIP";
8
+ BusinessStructure["SoleTrader"] = "SOLE_TRADER";
9
+ BusinessStructure["Trust"] = "TRUST";
10
+ })(BusinessStructure = exports.BusinessStructure || (exports.BusinessStructure = {}));
11
+ var CompanyType;
12
+ (function (CompanyType) {
13
+ CompanyType["Private"] = "PRIVATE";
14
+ CompanyType["Public"] = "PUBLIC";
15
+ })(CompanyType = exports.CompanyType || (exports.CompanyType = {}));
16
+ var AustralianStates;
17
+ (function (AustralianStates) {
18
+ AustralianStates["Act"] = "ACT";
19
+ AustralianStates["NT"] = "NT";
20
+ AustralianStates["Nsw"] = "NSW";
21
+ AustralianStates["Qld"] = "QLD";
22
+ AustralianStates["Sa"] = "SA";
23
+ AustralianStates["Tas"] = "TAS";
24
+ AustralianStates["Vic"] = "VIC";
25
+ AustralianStates["Wa"] = "WA";
26
+ })(AustralianStates = exports.AustralianStates || (exports.AustralianStates = {}));
27
+ var EmploymentBasis;
28
+ (function (EmploymentBasis) {
29
+ EmploymentBasis["Casual"] = "CASUAL";
30
+ EmploymentBasis["Contractor"] = "CONTRACTOR";
31
+ EmploymentBasis["FullTime"] = "FULL_TIME";
32
+ EmploymentBasis["MaternityLeave"] = "MATERNITY_LEAVE";
33
+ EmploymentBasis["PartTime"] = "PART_TIME";
34
+ })(EmploymentBasis = exports.EmploymentBasis || (exports.EmploymentBasis = {}));
35
+ var EmploymentType;
36
+ (function (EmploymentType) {
37
+ EmploymentType["Employee"] = "EMPLOYEE";
38
+ EmploymentType["NotWorking"] = "NOT_WORKING";
39
+ EmploymentType["SelfEmployed"] = "SELF_EMPLOYED";
40
+ })(EmploymentType = exports.EmploymentType || (exports.EmploymentType = {}));
41
+ /**
42
+ * Employment basis after returning from maternity leave.
43
+ */
44
+ var MaternityLeaveReturnBasis;
45
+ (function (MaternityLeaveReturnBasis) {
46
+ MaternityLeaveReturnBasis["Casual"] = "CASUAL";
47
+ MaternityLeaveReturnBasis["Contractor"] = "CONTRACTOR";
48
+ MaternityLeaveReturnBasis["FullTime"] = "FULL_TIME";
49
+ MaternityLeaveReturnBasis["PartTime"] = "PART_TIME";
50
+ })(MaternityLeaveReturnBasis = exports.MaternityLeaveReturnBasis || (exports.MaternityLeaveReturnBasis = {}));
51
+ /**
52
+ * role of the user that made the action
53
+ */
54
+ var ActionedByRole;
55
+ (function (ActionedByRole) {
56
+ ActionedByRole["Customer"] = "customer";
57
+ ActionedByRole["Team"] = "team";
58
+ })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
59
+ var PayloadType;
60
+ (function (PayloadType) {
61
+ PayloadType["Previous"] = "PREVIOUS";
62
+ PayloadType["Primary"] = "PRIMARY";
63
+ PayloadType["Secondary"] = "SECONDARY";
64
+ })(PayloadType = exports.PayloadType || (exports.PayloadType = {}));
65
+ var PublicEmploymentType;
66
+ (function (PublicEmploymentType) {
67
+ PublicEmploymentType["EmploymentCreated"] = "EmploymentCreated";
68
+ PublicEmploymentType["EmploymentUpdated"] = "EmploymentUpdated";
69
+ })(PublicEmploymentType = exports.PublicEmploymentType || (exports.PublicEmploymentType = {}));
@@ -0,0 +1,83 @@
1
+ /**
2
+ * Create, update or delete
3
+ */
4
+ export interface PublicExpense {
5
+ payload: Payload;
6
+ type: PublicExpenseType;
7
+ /**
8
+ * schema version
9
+ */
10
+ version: string;
11
+ }
12
+ export interface Payload {
13
+ applicantId: string;
14
+ applicationId: string;
15
+ expenses: Expense[];
16
+ /**
17
+ * uuid of Expense
18
+ */
19
+ id: string;
20
+ meta?: Meta;
21
+ }
22
+ export interface Expense {
23
+ amount?: number;
24
+ comments?: string;
25
+ frequency: Frequency;
26
+ type: ExpenseType;
27
+ }
28
+ export declare enum Frequency {
29
+ Fortnightly = "FORTNIGHTLY",
30
+ Monthly = "MONTHLY",
31
+ Quarterly = "QUARTERLY",
32
+ Weekly = "WEEKLY",
33
+ Yearly = "YEARLY"
34
+ }
35
+ export declare enum ExpenseType {
36
+ Board = "BOARD",
37
+ BodyCorporateFeesStrataFeesAndLandTax = "BODY_CORPORATE_FEES_STRATA_FEES_AND_LAND_TAX",
38
+ ChildAndSpousalMaintenance = "CHILD_AND_SPOUSAL_MAINTENANCE",
39
+ Childcare = "CHILDCARE",
40
+ ClothingAndPersonalCare = "CLOTHING_AND_PERSONAL_CARE",
41
+ Groceries = "GROCERIES",
42
+ HealthInsurance = "HEALTH_INSURANCE",
43
+ HigherVocationalTrainingEducation = "HIGHER_VOCATIONAL_TRAINING_EDUCATION",
44
+ Insurance = "INSURANCE",
45
+ InvestmentPropertyRunningCosts = "INVESTMENT_PROPERTY_RUNNING_COSTS",
46
+ LifeInsurance = "LIFE_INSURANCE",
47
+ LivingExpensesEstimate = "LIVING_EXPENSES_ESTIMATE",
48
+ MedicalAndHealth = "MEDICAL_AND_HEALTH",
49
+ Other = "OTHER",
50
+ PetCare = "PET_CARE",
51
+ PrimaryResidenceRunningCosts = "PRIMARY_RESIDENCE_RUNNING_COSTS",
52
+ PrimarySecondaryEducation = "PRIMARY_SECONDARY_EDUCATION",
53
+ PrivateSchoolingAndTuition = "PRIVATE_SCHOOLING_AND_TUITION",
54
+ RecreationAndEntertainment = "RECREATION_AND_ENTERTAINMENT",
55
+ Rent = "RENT",
56
+ SecondaryResidenceRunningCosts = "SECONDARY_RESIDENCE_RUNNING_COSTS",
57
+ TelephoneInternetPayTvAndMediaStreamingSubscriptions = "TELEPHONE_INTERNET_PAY_TV_AND_MEDIA_STREAMING_SUBSCRIPTIONS",
58
+ Transport = "TRANSPORT"
59
+ }
60
+ /**
61
+ * The metadata of the alieo
62
+ */
63
+ export interface Meta {
64
+ /**
65
+ * uuid of user who made the action (create/update/delete)
66
+ */
67
+ actionedBy?: string;
68
+ /**
69
+ * role of the user that made the action
70
+ */
71
+ actionedByRole?: ActionedByRole;
72
+ }
73
+ /**
74
+ * role of the user that made the action
75
+ */
76
+ export declare enum ActionedByRole {
77
+ Customer = "customer",
78
+ Team = "team"
79
+ }
80
+ export declare enum PublicExpenseType {
81
+ ExpenseCreated = "ExpenseCreated",
82
+ ExpenseUpdated = "ExpenseUpdated"
83
+ }