@lendi/act-credit-decisions-transform 1.9.0

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 (204) hide show
  1. package/README.md +31 -0
  2. package/lib/index.d.ts +11 -0
  3. package/lib/index.js +28 -0
  4. package/lib/logger.d.ts +1 -0
  5. package/lib/logger.js +5 -0
  6. package/lib/schemas/application-workflow-event.json +240 -0
  7. package/lib/schemas/credit-report-retrieved-event.json +57 -0
  8. package/lib/schemas/public-applicant-event.json +910 -0
  9. package/lib/schemas/public-application-event.json +250 -0
  10. package/lib/schemas/public-asset-event.json +679 -0
  11. package/lib/schemas/public-asset-liability-relation-delete-event.json +74 -0
  12. package/lib/schemas/public-asset-liability-relation-event.json +73 -0
  13. package/lib/schemas/public-create-applicant-event.json +609 -0
  14. package/lib/schemas/public-delete-applicant-event.json +66 -0
  15. package/lib/schemas/public-delete-asset-event.json +53 -0
  16. package/lib/schemas/public-delete-income-event.json +55 -0
  17. package/lib/schemas/public-employment-delete-event.json +31 -0
  18. package/lib/schemas/public-employment-event.json +278 -0
  19. package/lib/schemas/public-expense-delete-event.json +41 -0
  20. package/lib/schemas/public-expense-event.json +133 -0
  21. package/lib/schemas/public-funding-position-event.json +419 -0
  22. package/lib/schemas/public-income-event.json +242 -0
  23. package/lib/schemas/public-liability-delete-event.json +37 -0
  24. package/lib/schemas/public-liability-event.json +262 -0
  25. package/lib/schemas/public-required-document-event.json +366 -0
  26. package/lib/schemas/public-update-applicant-event.json +606 -0
  27. package/lib/schemas/sf-opportunity-event-out.json +138 -0
  28. package/lib/transform-events/generate-asset-liability-link.d.ts +10 -0
  29. package/lib/transform-events/generate-asset-liability-link.js +29 -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/transform-applicant.d.ts +8 -0
  33. package/lib/transform-events/transform-applicant.js +180 -0
  34. package/lib/transform-events/transform-application-workflow.d.ts +8 -0
  35. package/lib/transform-events/transform-application-workflow.js +30 -0
  36. package/lib/transform-events/transform-application.d.ts +20 -0
  37. package/lib/transform-events/transform-application.js +67 -0
  38. package/lib/transform-events/transform-asset-address.d.ts +25 -0
  39. package/lib/transform-events/transform-asset-address.js +87 -0
  40. package/lib/transform-events/transform-asset.d.ts +58 -0
  41. package/lib/transform-events/transform-asset.js +337 -0
  42. package/lib/transform-events/transform-employment.d.ts +8 -0
  43. package/lib/transform-events/transform-employment.js +106 -0
  44. package/lib/transform-events/transform-expenses.d.ts +41 -0
  45. package/lib/transform-events/transform-expenses.js +121 -0
  46. package/lib/transform-events/transform-funding-position.d.ts +21 -0
  47. package/lib/transform-events/transform-funding-position.js +107 -0
  48. package/lib/transform-events/transform-income.d.ts +48 -0
  49. package/lib/transform-events/transform-income.js +260 -0
  50. package/lib/transform-events/transform-liability.d.ts +12 -0
  51. package/lib/transform-events/transform-liability.js +117 -0
  52. package/lib/transform-events/transform-percent-owned.d.ts +10 -0
  53. package/lib/transform-events/transform-percent-owned.js +22 -0
  54. package/lib/transform-events/transform-required-document.d.ts +67 -0
  55. package/lib/transform-events/transform-required-document.js +148 -0
  56. package/lib/types/enum-mappings/alieo-frequency.d.ts +15 -0
  57. package/lib/types/enum-mappings/alieo-frequency.js +25 -0
  58. package/lib/types/enum-mappings/applicant-gender.d.ts +6 -0
  59. package/lib/types/enum-mappings/applicant-gender.js +11 -0
  60. package/lib/types/enum-mappings/applicant-type.d.ts +6 -0
  61. package/lib/types/enum-mappings/applicant-type.js +10 -0
  62. package/lib/types/enum-mappings/asset-type.d.ts +3 -0
  63. package/lib/types/enum-mappings/asset-type.js +17 -0
  64. package/lib/types/enum-mappings/builder-type.d.ts +7 -0
  65. package/lib/types/enum-mappings/builder-type.js +9 -0
  66. package/lib/types/enum-mappings/company-structure.d.ts +7 -0
  67. package/lib/types/enum-mappings/company-structure.js +10 -0
  68. package/lib/types/enum-mappings/company-type.d.ts +7 -0
  69. package/lib/types/enum-mappings/company-type.js +11 -0
  70. package/lib/types/enum-mappings/construction-type.d.ts +7 -0
  71. package/lib/types/enum-mappings/construction-type.js +10 -0
  72. package/lib/types/enum-mappings/country-code.d.ts +7 -0
  73. package/lib/types/enum-mappings/country-code.js +246 -0
  74. package/lib/types/enum-mappings/employment-basis.d.ts +7 -0
  75. package/lib/types/enum-mappings/employment-basis.js +12 -0
  76. package/lib/types/enum-mappings/expense-frequency.d.ts +7 -0
  77. package/lib/types/enum-mappings/expense-frequency.js +11 -0
  78. package/lib/types/enum-mappings/funding-position.d.ts +18 -0
  79. package/lib/types/enum-mappings/funding-position.js +36 -0
  80. package/lib/types/enum-mappings/government-benefits.d.ts +7 -0
  81. package/lib/types/enum-mappings/government-benefits.js +10 -0
  82. package/lib/types/enum-mappings/guarantor-relationship-type.d.ts +3 -0
  83. package/lib/types/enum-mappings/guarantor-relationship-type.js +16 -0
  84. package/lib/types/enum-mappings/housing-status.d.ts +7 -0
  85. package/lib/types/enum-mappings/housing-status.js +15 -0
  86. package/lib/types/enum-mappings/income-type.d.ts +7 -0
  87. package/lib/types/enum-mappings/income-type.js +16 -0
  88. package/lib/types/enum-mappings/index.d.ts +27 -0
  89. package/lib/types/enum-mappings/index.js +43 -0
  90. package/lib/types/enum-mappings/liability-payment-type.d.ts +7 -0
  91. package/lib/types/enum-mappings/liability-payment-type.js +9 -0
  92. package/lib/types/enum-mappings/liability-type.d.ts +7 -0
  93. package/lib/types/enum-mappings/liability-type.js +21 -0
  94. package/lib/types/enum-mappings/living-expense.d.ts +7 -0
  95. package/lib/types/enum-mappings/living-expense.js +31 -0
  96. package/lib/types/enum-mappings/marital-status.d.ts +7 -0
  97. package/lib/types/enum-mappings/marital-status.js +12 -0
  98. package/lib/types/enum-mappings/postcode.d.ts +6 -0
  99. package/lib/types/enum-mappings/postcode.js +15 -0
  100. package/lib/types/enum-mappings/preferred-repayment.d.ts +7 -0
  101. package/lib/types/enum-mappings/preferred-repayment.js +10 -0
  102. package/lib/types/enum-mappings/proof-of-identity.d.ts +7 -0
  103. package/lib/types/enum-mappings/proof-of-identity.js +10 -0
  104. package/lib/types/enum-mappings/property-expense-category.d.ts +7 -0
  105. package/lib/types/enum-mappings/property-expense-category.js +11 -0
  106. package/lib/types/enum-mappings/public-financial-asset.d.ts +7 -0
  107. package/lib/types/enum-mappings/public-financial-asset.js +12 -0
  108. package/lib/types/enum-mappings/public-primary-purpose.d.ts +7 -0
  109. package/lib/types/enum-mappings/public-primary-purpose.js +9 -0
  110. package/lib/types/enum-mappings/public-property-status.d.ts +7 -0
  111. package/lib/types/enum-mappings/public-property-status.js +11 -0
  112. package/lib/types/enum-mappings/public-property-type.d.ts +7 -0
  113. package/lib/types/enum-mappings/public-property-type.js +23 -0
  114. package/lib/types/enum-mappings/residency-status.d.ts +7 -0
  115. package/lib/types/enum-mappings/residency-status.js +11 -0
  116. package/lib/types/enum-mappings/title-gender.d.ts +7 -0
  117. package/lib/types/enum-mappings/title-gender.js +13 -0
  118. package/lib/types/enum-mappings/title.d.ts +7 -0
  119. package/lib/types/enum-mappings/title.js +13 -0
  120. package/lib/types/enum-mappings/to-be-purchased.d.ts +5 -0
  121. package/lib/types/enum-mappings/to-be-purchased.js +8 -0
  122. package/lib/types/enum-mappings/to-be-used-as-security.d.ts +5 -0
  123. package/lib/types/enum-mappings/to-be-used-as-security.js +8 -0
  124. package/lib/types/enum-mappings/transaction-type.d.ts +7 -0
  125. package/lib/types/enum-mappings/transaction-type.js +9 -0
  126. package/lib/types/enum-mappings/trust.d.ts +7 -0
  127. package/lib/types/enum-mappings/trust.js +14 -0
  128. package/lib/types/enum-mappings/verification.d.ts +3 -0
  129. package/lib/types/enum-mappings/verification.js +13 -0
  130. package/lib/types/events/applicant-delete.d.ts +42 -0
  131. package/lib/types/events/applicant-delete.js +15 -0
  132. package/lib/types/events/application-workflow.d.ts +233 -0
  133. package/lib/types/events/application-workflow.js +172 -0
  134. package/lib/types/events/asset-delete.d.ts +33 -0
  135. package/lib/types/events/asset-delete.js +15 -0
  136. package/lib/types/events/asset-liability-relation-delete.d.ts +52 -0
  137. package/lib/types/events/asset-liability-relation-delete.js +15 -0
  138. package/lib/types/events/credit-report-retrieved.d.ts +36 -0
  139. package/lib/types/events/credit-report-retrieved.js +15 -0
  140. package/lib/types/events/employment-delete.d.ts +19 -0
  141. package/lib/types/events/employment-delete.js +7 -0
  142. package/lib/types/events/expense-delete.d.ts +21 -0
  143. package/lib/types/events/expense-delete.js +7 -0
  144. package/lib/types/events/funding-position.d.ts +116 -0
  145. package/lib/types/events/funding-position.js +34 -0
  146. package/lib/types/events/income-delete.d.ts +33 -0
  147. package/lib/types/events/income-delete.js +15 -0
  148. package/lib/types/events/liability-delete.d.ts +17 -0
  149. package/lib/types/events/liability-delete.js +7 -0
  150. package/lib/types/events/opportunity.d.ts +102 -0
  151. package/lib/types/events/opportunity.js +47 -0
  152. package/lib/types/events/public-applicant.d.ts +628 -0
  153. package/lib/types/events/public-applicant.js +411 -0
  154. package/lib/types/events/public-application.d.ts +151 -0
  155. package/lib/types/events/public-application.js +103 -0
  156. package/lib/types/events/public-asset-liability-relation.d.ts +52 -0
  157. package/lib/types/events/public-asset-liability-relation.js +15 -0
  158. package/lib/types/events/public-asset.d.ts +502 -0
  159. package/lib/types/events/public-asset.js +348 -0
  160. package/lib/types/events/public-employment.d.ts +121 -0
  161. package/lib/types/events/public-employment.js +46 -0
  162. package/lib/types/events/public-expense.d.ts +84 -0
  163. package/lib/types/events/public-expense.js +51 -0
  164. package/lib/types/events/public-funding-position.d.ts +341 -0
  165. package/lib/types/events/public-funding-position.js +20 -0
  166. package/lib/types/events/public-income.d.ts +144 -0
  167. package/lib/types/events/public-income.js +65 -0
  168. package/lib/types/events/public-liability.d.ts +140 -0
  169. package/lib/types/events/public-liability.js +68 -0
  170. package/lib/types/events/public-required-document.d.ts +374 -0
  171. package/lib/types/events/public-required-document.js +297 -0
  172. package/lib/types/partial-application.d.ts +3 -0
  173. package/lib/types/partial-application.js +2 -0
  174. package/lib/types/recursive-partial.d.ts +3 -0
  175. package/lib/types/recursive-partial.js +2 -0
  176. package/lib/update-application/merge-application.d.ts +14 -0
  177. package/lib/update-application/merge-application.js +175 -0
  178. package/lib/update-application/remove-ids-not-required.d.ts +11 -0
  179. package/lib/update-application/remove-ids-not-required.js +63 -0
  180. package/lib/update-application/update-primary-applicant.d.ts +27 -0
  181. package/lib/update-application/update-primary-applicant.js +46 -0
  182. package/lib/utils/address-tools.d.ts +84 -0
  183. package/lib/utils/address-tools.js +176 -0
  184. package/lib/utils/clean-up.d.ts +7 -0
  185. package/lib/utils/clean-up.js +24 -0
  186. package/lib/utils/errors.d.ts +28 -0
  187. package/lib/utils/errors.js +43 -0
  188. package/lib/utils/formatYesNo.d.ts +8 -0
  189. package/lib/utils/formatYesNo.js +12 -0
  190. package/lib/utils/generate-address.d.ts +19 -0
  191. package/lib/utils/generate-address.js +97 -0
  192. package/lib/utils/get-financial-institution.d.ts +8 -0
  193. package/lib/utils/get-financial-institution.js +17 -0
  194. package/lib/utils/is-asset-type.d.ts +25 -0
  195. package/lib/utils/is-asset-type.js +46 -0
  196. package/lib/utils/is-income-type.d.ts +73 -0
  197. package/lib/utils/is-income-type.js +134 -0
  198. package/lib/utils/iso-date.d.ts +7 -0
  199. package/lib/utils/iso-date.js +12 -0
  200. package/lib/utils/normalise-date.d.ts +8 -0
  201. package/lib/utils/normalise-date.js +17 -0
  202. package/lib/utils/round-decimal.d.ts +6 -0
  203. package/lib/utils/round-decimal.js +12 -0
  204. package/package.json +78 -0
@@ -0,0 +1,411 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Type = exports.YearsOfTrading = exports.TrustType = exports.Title = exports.ResidencyStatus = exports.AustralianStates = exports.ActionedByRole = exports.MaritalStatus = exports.YesNoIntend = exports.InvitationStatus = exports.GuarantorRelationshipToBorrowerType = exports.Gender = exports.Entity = exports.EmploymentType = exports.CreditStatus = exports.HousingStatusList = exports.CompanyType = exports.CompanyStructure = 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 CompanyStructure;
253
+ (function (CompanyStructure) {
254
+ CompanyStructure["Corporation"] = "CORPORATION";
255
+ CompanyStructure["Partnership"] = "PARTNERSHIP";
256
+ CompanyStructure["SoleTrader"] = "SOLE_TRADER";
257
+ CompanyStructure["Trust"] = "TRUST";
258
+ })(CompanyStructure = exports.CompanyStructure || (exports.CompanyStructure = {}));
259
+ var CompanyType;
260
+ (function (CompanyType) {
261
+ CompanyType["Incorporated"] = "INCORPORATED";
262
+ CompanyType["Ltd"] = "LTD";
263
+ CompanyType["Nl"] = "NL";
264
+ CompanyType["PtyLtd"] = "PTY_LTD";
265
+ })(CompanyType = exports.CompanyType || (exports.CompanyType = {}));
266
+ var HousingStatusList;
267
+ (function (HousingStatusList) {
268
+ HousingStatusList["Boarding"] = "Boarding";
269
+ HousingStatusList["Caravan"] = "Caravan";
270
+ HousingStatusList["Other"] = "Other";
271
+ HousingStatusList["OwnHome"] = "Own Home";
272
+ HousingStatusList["OwnHomeMortgage"] = "Own Home Mortgage";
273
+ HousingStatusList["Renting"] = "Renting";
274
+ HousingStatusList["SuppliedByEmployer"] = "Supplied by Employer";
275
+ HousingStatusList["WithParents"] = "With Parents";
276
+ })(HousingStatusList = exports.HousingStatusList || (exports.HousingStatusList = {}));
277
+ /**
278
+ * current credit status of the applicant (Customer declared value)
279
+ */
280
+ var CreditStatus;
281
+ (function (CreditStatus) {
282
+ CreditStatus["Average"] = "AVERAGE";
283
+ CreditStatus["Excellent"] = "EXCELLENT";
284
+ CreditStatus["Fair"] = "FAIR";
285
+ CreditStatus["Unknown"] = "UNKNOWN";
286
+ })(CreditStatus = exports.CreditStatus || (exports.CreditStatus = {}));
287
+ /**
288
+ * applicant's employment type
289
+ */
290
+ var EmploymentType;
291
+ (function (EmploymentType) {
292
+ EmploymentType["Employee"] = "EMPLOYEE";
293
+ EmploymentType["SelfEmployed"] = "SELF_EMPLOYED";
294
+ EmploymentType["Unknown"] = "UNKNOWN";
295
+ })(EmploymentType = exports.EmploymentType || (exports.EmploymentType = {}));
296
+ /**
297
+ * applicant's entity. For a person applicant this is 'PERSON'
298
+ */
299
+ var Entity;
300
+ (function (Entity) {
301
+ Entity["Company"] = "COMPANY";
302
+ Entity["Person"] = "PERSON";
303
+ Entity["Trust"] = "TRUST";
304
+ })(Entity = exports.Entity || (exports.Entity = {}));
305
+ var Gender;
306
+ (function (Gender) {
307
+ Gender["Female"] = "FEMALE";
308
+ Gender["Male"] = "MALE";
309
+ Gender["Undisclosed"] = "UNDISCLOSED";
310
+ Gender["Unknown"] = "UNKNOWN";
311
+ })(Gender = exports.Gender || (exports.Gender = {}));
312
+ /**
313
+ * The relationship between borrower and guarantor.
314
+ */
315
+ var GuarantorRelationshipToBorrowerType;
316
+ (function (GuarantorRelationshipToBorrowerType) {
317
+ GuarantorRelationshipToBorrowerType["Brother"] = "Brother";
318
+ GuarantorRelationshipToBorrowerType["Daughter"] = "Daughter";
319
+ GuarantorRelationshipToBorrowerType["Father"] = "Father";
320
+ GuarantorRelationshipToBorrowerType["Mother"] = "Mother";
321
+ GuarantorRelationshipToBorrowerType["Other"] = "Other";
322
+ GuarantorRelationshipToBorrowerType["OtherRelative"] = "Other Relative";
323
+ GuarantorRelationshipToBorrowerType["Sister"] = "Sister";
324
+ GuarantorRelationshipToBorrowerType["Son"] = "Son";
325
+ GuarantorRelationshipToBorrowerType["Spouse"] = "Spouse";
326
+ })(GuarantorRelationshipToBorrowerType = exports.GuarantorRelationshipToBorrowerType || (exports.GuarantorRelationshipToBorrowerType = {}));
327
+ /**
328
+ * different invitation statuses an applicant can have
329
+ */
330
+ var InvitationStatus;
331
+ (function (InvitationStatus) {
332
+ InvitationStatus["Accepted"] = "ACCEPTED";
333
+ InvitationStatus["Cancelled"] = "CANCELLED";
334
+ InvitationStatus["Expired"] = "EXPIRED";
335
+ InvitationStatus["Pending"] = "PENDING";
336
+ })(InvitationStatus = exports.InvitationStatus || (exports.InvitationStatus = {}));
337
+ var YesNoIntend;
338
+ (function (YesNoIntend) {
339
+ YesNoIntend["Intend"] = "Intend";
340
+ YesNoIntend["No"] = "No";
341
+ YesNoIntend["Yes"] = "Yes";
342
+ })(YesNoIntend = exports.YesNoIntend || (exports.YesNoIntend = {}));
343
+ var MaritalStatus;
344
+ (function (MaritalStatus) {
345
+ MaritalStatus["DeFacto"] = "DE_FACTO";
346
+ MaritalStatus["Divorced"] = "DIVORCED";
347
+ MaritalStatus["Married"] = "MARRIED";
348
+ MaritalStatus["Single"] = "SINGLE";
349
+ MaritalStatus["Unknown"] = "UNKNOWN";
350
+ })(MaritalStatus = exports.MaritalStatus || (exports.MaritalStatus = {}));
351
+ /**
352
+ * role of the user that made the action
353
+ */
354
+ var ActionedByRole;
355
+ (function (ActionedByRole) {
356
+ ActionedByRole["Customer"] = "customer";
357
+ ActionedByRole["Team"] = "team";
358
+ })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
359
+ var AustralianStates;
360
+ (function (AustralianStates) {
361
+ AustralianStates["Act"] = "ACT";
362
+ AustralianStates["NT"] = "NT";
363
+ AustralianStates["Nsw"] = "NSW";
364
+ AustralianStates["Qld"] = "QLD";
365
+ AustralianStates["Sa"] = "SA";
366
+ AustralianStates["Tas"] = "TAS";
367
+ AustralianStates["Vic"] = "VIC";
368
+ AustralianStates["Wa"] = "WA";
369
+ })(AustralianStates = exports.AustralianStates || (exports.AustralianStates = {}));
370
+ var ResidencyStatus;
371
+ (function (ResidencyStatus) {
372
+ ResidencyStatus["AustralianCitizen"] = "AUSTRALIAN_CITIZEN";
373
+ ResidencyStatus["PermanentResident"] = "PERMANENT_RESIDENT";
374
+ ResidencyStatus["TemporaryResident"] = "TEMPORARY_RESIDENT";
375
+ ResidencyStatus["Unknown"] = "UNKNOWN";
376
+ })(ResidencyStatus = exports.ResidencyStatus || (exports.ResidencyStatus = {}));
377
+ var Title;
378
+ (function (Title) {
379
+ Title["DR"] = "DR";
380
+ Title["MS"] = "MS";
381
+ Title["Miss"] = "MISS";
382
+ Title["Mr"] = "MR";
383
+ Title["Mrs"] = "MRS";
384
+ Title["Unknown"] = "UNKNOWN";
385
+ })(Title = exports.Title || (exports.Title = {}));
386
+ var TrustType;
387
+ (function (TrustType) {
388
+ TrustType["CashManagementTrust"] = "CASH_MANAGEMENT_TRUST";
389
+ TrustType["DiscretionaryTrust"] = "DISCRETIONARY_TRUST";
390
+ TrustType["Fixed"] = "FIXED";
391
+ TrustType["Hybrid"] = "HYBRID";
392
+ TrustType["Other"] = "OTHER";
393
+ TrustType["SimpleOrBare"] = "SIMPLE_OR_BARE";
394
+ TrustType["SuperannuationTrusts"] = "SUPERANNUATION_TRUSTS";
395
+ TrustType["Unit"] = "UNIT";
396
+ })(TrustType = exports.TrustType || (exports.TrustType = {}));
397
+ var YearsOfTrading;
398
+ (function (YearsOfTrading) {
399
+ YearsOfTrading["The1"] = "1";
400
+ YearsOfTrading["The10"] = ">10";
401
+ YearsOfTrading["The2"] = "2";
402
+ YearsOfTrading["The3"] = "3";
403
+ YearsOfTrading["The4"] = "4";
404
+ YearsOfTrading["The5"] = "5";
405
+ YearsOfTrading["The510"] = "5-10";
406
+ })(YearsOfTrading = exports.YearsOfTrading || (exports.YearsOfTrading = {}));
407
+ var Type;
408
+ (function (Type) {
409
+ Type["CreateApplicant"] = "CreateApplicant";
410
+ Type["UpdateApplicant"] = "UpdateApplicant";
411
+ })(Type = exports.Type || (exports.Type = {}));
@@ -0,0 +1,151 @@
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
+ hasOptedInRateLock?: boolean;
18
+ hidden?: boolean;
19
+ highIntent?: boolean;
20
+ id: string;
21
+ isFastRefi?: boolean;
22
+ meta?: ApplicationMeta;
23
+ name?: string;
24
+ preliminary: Preliminary;
25
+ }
26
+ export declare enum Brand {
27
+ Aussie = "aussie",
28
+ Domain = "domain",
29
+ DomainVariation = "domain variation",
30
+ Lendi = "lendi",
31
+ LendiVariation = "lendi variation"
32
+ }
33
+ /**
34
+ * Additional data point for broker to capture primary purpose, other than the preliminary
35
+ * primary purpose associated with current user journey for new purchase or refinance
36
+ */
37
+ export declare enum BrokerPrimaryPurpose {
38
+ Commercial = "COMMERCIAL",
39
+ Construction = "CONSTRUCTION",
40
+ ConstructionAndPurchase = "CONSTRUCTION_AND_PURCHASE",
41
+ ConstructionAndRefinance = "CONSTRUCTION_AND_REFINANCE",
42
+ InternalRefinance = "INTERNAL_REFINANCE",
43
+ NewPurchase = "NEW_PURCHASE",
44
+ PreApproval = "PRE_APPROVAL",
45
+ Purchase = "PURCHASE",
46
+ PurchaseAndRefinance = "PURCHASE_AND_REFINANCE",
47
+ Refinance = "REFINANCE",
48
+ Slr = "SLR",
49
+ TopUp = "TOP_UP",
50
+ Variation = "VARIATION",
51
+ VariationCreditCritical = "VARIATION_CREDIT_CRITICAL",
52
+ VariationNonCreditCritical = "VARIATION_NON_CREDIT_CRITICAL"
53
+ }
54
+ /**
55
+ * The metadata of the application
56
+ */
57
+ export interface ApplicationMeta {
58
+ /**
59
+ * uuid of user who made the action (create/update/delete)
60
+ */
61
+ actionedBy?: string;
62
+ /**
63
+ * role of the user that made the action
64
+ */
65
+ actionedByRole?: ActionedByRole;
66
+ /**
67
+ * date of action (create/update/delete)
68
+ */
69
+ actionedOn?: string;
70
+ }
71
+ /**
72
+ * role of the user that made the action
73
+ */
74
+ export declare enum ActionedByRole {
75
+ Customer = "customer",
76
+ Team = "team"
77
+ }
78
+ export interface Preliminary {
79
+ cashoutAmount?: number;
80
+ consolidateAmount?: number;
81
+ contributions?: Contribution[];
82
+ desiredFeatures?: DesiredFeature[];
83
+ eligibleForFHOG?: EligibleForFHOG;
84
+ hasConstructionWithin6Months?: boolean;
85
+ hasSelfEmploymentProof?: boolean;
86
+ isSellingExistingProperty?: boolean;
87
+ numberOfDependants?: number;
88
+ paymentType?: PaymentType;
89
+ primaryPurpose?: PrimaryPurpose;
90
+ purchaseReason?: PurchaseReason;
91
+ purchaseSituation?: PurchaseSituation;
92
+ refinancingReasons?: RefinancingReason[];
93
+ totalMonthlyExpenses?: number;
94
+ urgency?: Urgency;
95
+ }
96
+ export interface Contribution {
97
+ amount?: number;
98
+ type?: ContributionType;
99
+ }
100
+ export declare enum ContributionType {
101
+ Deposit = "DEPOSIT"
102
+ }
103
+ export declare enum DesiredFeature {
104
+ FixedRate = "FIXED_RATE",
105
+ MajorLender = "MAJOR_LENDER",
106
+ MobileApp = "MOBILE_APP",
107
+ OffsetOrRedraw = "OFFSET_OR_REDRAW"
108
+ }
109
+ /**
110
+ * First Home Owner Grant
111
+ */
112
+ export declare enum EligibleForFHOG {
113
+ No = "NO",
114
+ NotSure = "NOT_SURE",
115
+ Yes = "YES"
116
+ }
117
+ export declare enum PaymentType {
118
+ InterestOnly = "INTEREST_ONLY",
119
+ PrincipalAndInterest = "PRINCIPAL_AND_INTEREST",
120
+ StillDeciding = "STILL_DECIDING"
121
+ }
122
+ export declare enum PrimaryPurpose {
123
+ NewPurchase = "NEW_PURCHASE",
124
+ Refinance = "REFINANCE"
125
+ }
126
+ export declare enum PurchaseReason {
127
+ LoanAffordability = "LOAN_AFFORDABILITY",
128
+ LoanApproval = "LOAN_APPROVAL",
129
+ LoanEligibility = "LOAN_ELIGIBILITY"
130
+ }
131
+ export declare enum PurchaseSituation {
132
+ BuyingSoon = "BUYING_SOON",
133
+ ContractsExchanged = "CONTRACTS_EXCHANGED",
134
+ ExploringOptions = "EXPLORING_OPTIONS",
135
+ OfferMade = "OFFER_MADE"
136
+ }
137
+ export declare enum RefinancingReason {
138
+ ConsolidateCashout = "CONSOLIDATE_CASHOUT",
139
+ Construction = "CONSTRUCTION",
140
+ DecreaseRepayments = "DECREASE_REPAYMENTS",
141
+ FasterPayoff = "FASTER_PAYOFF"
142
+ }
143
+ export declare enum Urgency {
144
+ NotUrgent = "NOT_URGENT",
145
+ Urgent = "URGENT"
146
+ }
147
+ export declare enum PublicApplicationType {
148
+ CreateApplication = "CreateApplication",
149
+ MigrateApplication = "MigrateApplication",
150
+ UpdateApplication = "UpdateApplication"
151
+ }
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: 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["Aussie"] = "aussie";
7
+ Brand["Domain"] = "domain";
8
+ Brand["DomainVariation"] = "domain variation";
9
+ Brand["Lendi"] = "lendi";
10
+ Brand["LendiVariation"] = "lendi variation";
11
+ })(Brand = exports.Brand || (exports.Brand = {}));
12
+ /**
13
+ * Additional data point for broker to capture primary purpose, other than the preliminary
14
+ * primary purpose associated with current user journey for new purchase or refinance
15
+ */
16
+ var BrokerPrimaryPurpose;
17
+ (function (BrokerPrimaryPurpose) {
18
+ BrokerPrimaryPurpose["Commercial"] = "COMMERCIAL";
19
+ BrokerPrimaryPurpose["Construction"] = "CONSTRUCTION";
20
+ BrokerPrimaryPurpose["ConstructionAndPurchase"] = "CONSTRUCTION_AND_PURCHASE";
21
+ BrokerPrimaryPurpose["ConstructionAndRefinance"] = "CONSTRUCTION_AND_REFINANCE";
22
+ BrokerPrimaryPurpose["InternalRefinance"] = "INTERNAL_REFINANCE";
23
+ BrokerPrimaryPurpose["NewPurchase"] = "NEW_PURCHASE";
24
+ BrokerPrimaryPurpose["PreApproval"] = "PRE_APPROVAL";
25
+ BrokerPrimaryPurpose["Purchase"] = "PURCHASE";
26
+ BrokerPrimaryPurpose["PurchaseAndRefinance"] = "PURCHASE_AND_REFINANCE";
27
+ BrokerPrimaryPurpose["Refinance"] = "REFINANCE";
28
+ BrokerPrimaryPurpose["Slr"] = "SLR";
29
+ BrokerPrimaryPurpose["TopUp"] = "TOP_UP";
30
+ BrokerPrimaryPurpose["Variation"] = "VARIATION";
31
+ BrokerPrimaryPurpose["VariationCreditCritical"] = "VARIATION_CREDIT_CRITICAL";
32
+ BrokerPrimaryPurpose["VariationNonCreditCritical"] = "VARIATION_NON_CREDIT_CRITICAL";
33
+ })(BrokerPrimaryPurpose = exports.BrokerPrimaryPurpose || (exports.BrokerPrimaryPurpose = {}));
34
+ /**
35
+ * role of the user that made the action
36
+ */
37
+ var ActionedByRole;
38
+ (function (ActionedByRole) {
39
+ ActionedByRole["Customer"] = "customer";
40
+ ActionedByRole["Team"] = "team";
41
+ })(ActionedByRole = exports.ActionedByRole || (exports.ActionedByRole = {}));
42
+ var ContributionType;
43
+ (function (ContributionType) {
44
+ ContributionType["Deposit"] = "DEPOSIT";
45
+ })(ContributionType = exports.ContributionType || (exports.ContributionType = {}));
46
+ var DesiredFeature;
47
+ (function (DesiredFeature) {
48
+ DesiredFeature["FixedRate"] = "FIXED_RATE";
49
+ DesiredFeature["MajorLender"] = "MAJOR_LENDER";
50
+ DesiredFeature["MobileApp"] = "MOBILE_APP";
51
+ DesiredFeature["OffsetOrRedraw"] = "OFFSET_OR_REDRAW";
52
+ })(DesiredFeature = exports.DesiredFeature || (exports.DesiredFeature = {}));
53
+ /**
54
+ * First Home Owner Grant
55
+ */
56
+ var EligibleForFHOG;
57
+ (function (EligibleForFHOG) {
58
+ EligibleForFHOG["No"] = "NO";
59
+ EligibleForFHOG["NotSure"] = "NOT_SURE";
60
+ EligibleForFHOG["Yes"] = "YES";
61
+ })(EligibleForFHOG = exports.EligibleForFHOG || (exports.EligibleForFHOG = {}));
62
+ var PaymentType;
63
+ (function (PaymentType) {
64
+ PaymentType["InterestOnly"] = "INTEREST_ONLY";
65
+ PaymentType["PrincipalAndInterest"] = "PRINCIPAL_AND_INTEREST";
66
+ PaymentType["StillDeciding"] = "STILL_DECIDING";
67
+ })(PaymentType = exports.PaymentType || (exports.PaymentType = {}));
68
+ var PrimaryPurpose;
69
+ (function (PrimaryPurpose) {
70
+ PrimaryPurpose["NewPurchase"] = "NEW_PURCHASE";
71
+ PrimaryPurpose["Refinance"] = "REFINANCE";
72
+ })(PrimaryPurpose = exports.PrimaryPurpose || (exports.PrimaryPurpose = {}));
73
+ var PurchaseReason;
74
+ (function (PurchaseReason) {
75
+ PurchaseReason["LoanAffordability"] = "LOAN_AFFORDABILITY";
76
+ PurchaseReason["LoanApproval"] = "LOAN_APPROVAL";
77
+ PurchaseReason["LoanEligibility"] = "LOAN_ELIGIBILITY";
78
+ })(PurchaseReason = exports.PurchaseReason || (exports.PurchaseReason = {}));
79
+ var PurchaseSituation;
80
+ (function (PurchaseSituation) {
81
+ PurchaseSituation["BuyingSoon"] = "BUYING_SOON";
82
+ PurchaseSituation["ContractsExchanged"] = "CONTRACTS_EXCHANGED";
83
+ PurchaseSituation["ExploringOptions"] = "EXPLORING_OPTIONS";
84
+ PurchaseSituation["OfferMade"] = "OFFER_MADE";
85
+ })(PurchaseSituation = exports.PurchaseSituation || (exports.PurchaseSituation = {}));
86
+ var RefinancingReason;
87
+ (function (RefinancingReason) {
88
+ RefinancingReason["ConsolidateCashout"] = "CONSOLIDATE_CASHOUT";
89
+ RefinancingReason["Construction"] = "CONSTRUCTION";
90
+ RefinancingReason["DecreaseRepayments"] = "DECREASE_REPAYMENTS";
91
+ RefinancingReason["FasterPayoff"] = "FASTER_PAYOFF";
92
+ })(RefinancingReason = exports.RefinancingReason || (exports.RefinancingReason = {}));
93
+ var Urgency;
94
+ (function (Urgency) {
95
+ Urgency["NotUrgent"] = "NOT_URGENT";
96
+ Urgency["Urgent"] = "URGENT";
97
+ })(Urgency = exports.Urgency || (exports.Urgency = {}));
98
+ var PublicApplicationType;
99
+ (function (PublicApplicationType) {
100
+ PublicApplicationType["CreateApplication"] = "CreateApplication";
101
+ PublicApplicationType["MigrateApplication"] = "MigrateApplication";
102
+ PublicApplicationType["UpdateApplication"] = "UpdateApplication";
103
+ })(PublicApplicationType = exports.PublicApplicationType || (exports.PublicApplicationType = {}));