@dynamatix/gb-schemas 2.0.34 → 2.0.35

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 (436) hide show
  1. package/dist/applicants/applicant-additional-income.model.d.ts +1094 -0
  2. package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -0
  3. package/dist/applicants/applicant-additional-income.model.js +33 -0
  4. package/dist/applicants/applicant-commitment-creditCard.model.d.ts +508 -0
  5. package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -0
  6. package/dist/applicants/applicant-commitment-creditCard.model.js +34 -0
  7. package/dist/applicants/applicant-commitment-loan.model.d.ts +394 -0
  8. package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -0
  9. package/dist/applicants/applicant-commitment-loan.model.js +38 -0
  10. package/dist/applicants/applicant-commitment-mortgage.model.d.ts +472 -0
  11. package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -0
  12. package/dist/applicants/applicant-commitment-mortgage.model.js +69 -0
  13. package/dist/applicants/applicant-commitment-residence.model.d.ts +728 -0
  14. package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -0
  15. package/dist/applicants/applicant-commitment-residence.model.js +50 -0
  16. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +368 -0
  17. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -0
  18. package/dist/applicants/applicant-commitment-secureLoan.model.js +29 -0
  19. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +362 -0
  20. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -0
  21. package/dist/applicants/applicant-commitment-unsecuredLoan.model.js +28 -0
  22. package/dist/applicants/applicant-credit-data.model.d.ts +32 -0
  23. package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -0
  24. package/dist/applicants/applicant-credit-data.model.js +11 -0
  25. package/dist/applicants/applicant-credit-profile.model.d.ts +23 -0
  26. package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -0
  27. package/dist/applicants/applicant-credit-profile.model.js +20 -0
  28. package/dist/applicants/applicant-direct-debit.model.d.ts +61 -0
  29. package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -0
  30. package/dist/applicants/applicant-direct-debit.model.js +17 -0
  31. package/dist/applicants/applicant-employment-income.model.d.ts +175 -0
  32. package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -0
  33. package/dist/applicants/applicant-employment-income.model.js +9 -0
  34. package/dist/applicants/applicant-employment.model.d.ts +136 -0
  35. package/dist/applicants/applicant-employment.model.d.ts.map +1 -0
  36. package/dist/applicants/applicant-employment.model.js +50 -0
  37. package/dist/applicants/applicant-expenditure.model.d.ts +87 -0
  38. package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -0
  39. package/dist/applicants/applicant-expenditure.model.js +54 -0
  40. package/dist/applicants/applicant-income-source.model.d.ts +26 -0
  41. package/dist/applicants/applicant-income-source.model.d.ts.map +1 -0
  42. package/dist/applicants/applicant-income-source.model.js +9 -0
  43. package/dist/applicants/applicant-income.model.d.ts +220 -0
  44. package/dist/applicants/applicant-income.model.d.ts.map +1 -0
  45. package/dist/applicants/applicant-income.model.js +81 -0
  46. package/dist/applicants/applicant-pension-income.model.d.ts +457 -0
  47. package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -0
  48. package/dist/applicants/applicant-pension-income.model.js +14 -0
  49. package/dist/applicants/applicant-property-income.model.d.ts +907 -0
  50. package/dist/applicants/applicant-property-income.model.d.ts.map +1 -0
  51. package/dist/applicants/applicant-property-income.model.js +23 -0
  52. package/dist/applicants/applicant-risk-narrative.model.d.ts +38 -0
  53. package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -0
  54. package/dist/applicants/applicant-risk-narrative.model.js +13 -0
  55. package/dist/applicants/applicant-uk-tax-credits.model.d.ts +463 -0
  56. package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -0
  57. package/dist/applicants/applicant-uk-tax-credits.model.js +11 -0
  58. package/dist/applicants/applicant.model.d.ts +134 -0
  59. package/dist/applicants/applicant.model.d.ts.map +1 -0
  60. package/dist/applicants/applicant.model.js +223 -0
  61. package/dist/applicants/index.d.ts +14 -0
  62. package/dist/applicants/index.d.ts.map +1 -0
  63. package/dist/applicants/index.js +13 -0
  64. package/dist/applications/application-audit.model.d.ts +92 -0
  65. package/dist/applications/application-audit.model.d.ts.map +1 -0
  66. package/dist/applications/application-audit.model.js +42 -0
  67. package/dist/applications/application-checklist-Item.model.d.ts +258 -0
  68. package/dist/applications/application-checklist-Item.model.d.ts.map +1 -0
  69. package/dist/applications/application-checklist-Item.model.js +45 -0
  70. package/dist/applications/application-company-model.d.ts +1484 -0
  71. package/dist/applications/application-company-model.d.ts.map +1 -0
  72. package/dist/applications/application-company-model.js +120 -0
  73. package/dist/applications/application-credit-profile.model.d.ts +35 -0
  74. package/dist/applications/application-credit-profile.model.d.ts.map +1 -0
  75. package/dist/applications/application-credit-profile.model.js +12 -0
  76. package/dist/applications/application-direct-debit.model.d.ts +545 -0
  77. package/dist/applications/application-direct-debit.model.d.ts.map +1 -0
  78. package/dist/applications/application-direct-debit.model.js +92 -0
  79. package/dist/applications/application-document.model.d.ts +158 -0
  80. package/dist/applications/application-document.model.d.ts.map +1 -0
  81. package/dist/applications/application-document.model.js +35 -0
  82. package/dist/applications/application-fieldconfig.model.d.ts +30 -0
  83. package/dist/applications/application-fieldconfig.model.d.ts.map +1 -0
  84. package/dist/applications/application-fieldconfig.model.js +7 -0
  85. package/dist/applications/application-illustration-model.d.ts +24 -0
  86. package/dist/applications/application-illustration-model.d.ts.map +1 -0
  87. package/dist/applications/application-illustration-model.js +6 -0
  88. package/dist/applications/application-legal.model.d.ts +30 -0
  89. package/dist/applications/application-legal.model.d.ts.map +1 -0
  90. package/dist/applications/application-legal.model.js +7 -0
  91. package/dist/applications/application-mortgage.model.d.ts +1203 -0
  92. package/dist/applications/application-mortgage.model.d.ts.map +1 -0
  93. package/dist/applications/application-mortgage.model.js +271 -0
  94. package/dist/applications/application-note.model.d.ts +144 -0
  95. package/dist/applications/application-note.model.d.ts.map +1 -0
  96. package/dist/applications/application-note.model.js +78 -0
  97. package/dist/applications/application-offer.model.d.ts +24 -0
  98. package/dist/applications/application-offer.model.d.ts.map +1 -0
  99. package/dist/applications/application-offer.model.js +6 -0
  100. package/dist/applications/application-onboarding.model.d.ts +42 -0
  101. package/dist/applications/application-onboarding.model.d.ts.map +1 -0
  102. package/dist/applications/application-onboarding.model.js +9 -0
  103. package/dist/applications/application-product.model.d.ts +120 -0
  104. package/dist/applications/application-product.model.d.ts.map +1 -0
  105. package/dist/applications/application-product.model.js +67 -0
  106. package/dist/applications/application-productfeatures.model.d.ts +738 -0
  107. package/dist/applications/application-productfeatures.model.d.ts.map +1 -0
  108. package/dist/applications/application-productfeatures.model.js +96 -0
  109. package/dist/applications/application-rationale.model.d.ts +216 -0
  110. package/dist/applications/application-rationale.model.d.ts.map +1 -0
  111. package/dist/applications/application-rationale.model.js +38 -0
  112. package/dist/applications/application-risk-narrative.model.d.ts +60 -0
  113. package/dist/applications/application-risk-narrative.model.d.ts.map +1 -0
  114. package/dist/applications/application-risk-narrative.model.js +12 -0
  115. package/dist/applications/application-valuation.model.d.ts +44 -0
  116. package/dist/applications/application-valuation.model.d.ts.map +1 -0
  117. package/dist/applications/application-valuation.model.js +15 -0
  118. package/dist/applications/application.model.d.ts +428 -0
  119. package/dist/applications/application.model.d.ts.map +1 -0
  120. package/dist/applications/application.model.js +153 -0
  121. package/dist/applications/broker.model.d.ts +134 -0
  122. package/dist/applications/broker.model.d.ts.map +1 -0
  123. package/dist/applications/broker.model.js +21 -0
  124. package/dist/applications/document.model.d.ts +158 -0
  125. package/dist/applications/document.model.d.ts.map +1 -0
  126. package/dist/applications/document.model.js +35 -0
  127. package/dist/applications/index.d.ts +21 -0
  128. package/dist/applications/index.d.ts.map +1 -0
  129. package/dist/applications/index.js +20 -0
  130. package/dist/applications/solicitor.model.d.ts +177 -0
  131. package/dist/applications/solicitor.model.d.ts.map +1 -0
  132. package/dist/applications/solicitor.model.js +114 -0
  133. package/dist/entities/applicants/applicant-credit-data.entity.d.ts +19 -0
  134. package/dist/entities/applicants/applicant-credit-data.entity.d.ts.map +1 -0
  135. package/dist/entities/applicants/applicant-credit-data.entity.js +5 -0
  136. package/dist/entities/applicants/applicant-credit-profile.entity.d.ts +14 -0
  137. package/dist/entities/applicants/applicant-credit-profile.entity.d.ts.map +1 -0
  138. package/dist/entities/applicants/applicant-credit-profile.entity.js +5 -0
  139. package/dist/entities/applicants/applicant-employment-income.entity.d.ts +14 -0
  140. package/dist/entities/applicants/applicant-employment-income.entity.d.ts.map +1 -0
  141. package/dist/entities/applicants/applicant-employment-income.entity.js +5 -0
  142. package/dist/entities/applicants/applicant-employment.entity.d.ts +54 -0
  143. package/dist/entities/applicants/applicant-employment.entity.d.ts.map +1 -0
  144. package/dist/entities/applicants/applicant-employment.entity.js +5 -0
  145. package/dist/entities/applicants/applicant-expenditure.entity.d.ts +14 -0
  146. package/dist/entities/applicants/applicant-expenditure.entity.d.ts.map +1 -0
  147. package/dist/entities/applicants/applicant-expenditure.entity.js +5 -0
  148. package/dist/entities/applicants/applicant-income-source.entity.d.ts +17 -0
  149. package/dist/entities/applicants/applicant-income-source.entity.d.ts.map +1 -0
  150. package/dist/entities/applicants/applicant-income-source.entity.js +5 -0
  151. package/dist/entities/applicants/applicant-income.entity.d.ts +59 -0
  152. package/dist/entities/applicants/applicant-income.entity.d.ts.map +1 -0
  153. package/dist/entities/applicants/applicant-income.entity.js +2 -0
  154. package/dist/entities/applicants/applicant.entity.d.ts +143 -0
  155. package/dist/entities/applicants/applicant.entity.d.ts.map +1 -0
  156. package/dist/entities/applicants/applicant.entity.js +48 -0
  157. package/dist/entities/applicants/credit-card-commitment.entity.d.ts +16 -0
  158. package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +1 -0
  159. package/dist/entities/applicants/credit-card-commitment.entity.js +5 -0
  160. package/dist/entities/applicants/index.d.ts +19 -0
  161. package/dist/entities/applicants/index.d.ts.map +1 -0
  162. package/dist/entities/applicants/index.js +17 -0
  163. package/dist/entities/applicants/loan-commitment.entity.d.ts +20 -0
  164. package/dist/entities/applicants/loan-commitment.entity.d.ts.map +1 -0
  165. package/dist/entities/applicants/loan-commitment.entity.js +5 -0
  166. package/dist/entities/applicants/mortgage-commitment.entity.d.ts +37 -0
  167. package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +1 -0
  168. package/dist/entities/applicants/mortgage-commitment.entity.js +19 -0
  169. package/dist/entities/applicants/other-income.entity.d.ts +41 -0
  170. package/dist/entities/applicants/other-income.entity.d.ts.map +1 -0
  171. package/dist/entities/applicants/other-income.entity.js +19 -0
  172. package/dist/entities/applicants/property-income.entity.d.ts +17 -0
  173. package/dist/entities/applicants/property-income.entity.d.ts.map +1 -0
  174. package/dist/entities/applicants/property-income.entity.js +5 -0
  175. package/dist/entities/applicants/residence-commitment.entity.d.ts +44 -0
  176. package/dist/entities/applicants/residence-commitment.entity.d.ts.map +1 -0
  177. package/dist/entities/applicants/residence-commitment.entity.js +19 -0
  178. package/dist/entities/applicants/secure-loan-commitment.entity.d.ts +21 -0
  179. package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +1 -0
  180. package/dist/entities/applicants/secure-loan-commitment.entity.js +9 -0
  181. package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +20 -0
  182. package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +1 -0
  183. package/dist/entities/applicants/unsecured-loan-commitment.entity.js +10 -0
  184. package/dist/entities/applications/application-audit.entity.d.ts +18 -0
  185. package/dist/entities/applications/application-audit.entity.d.ts.map +1 -0
  186. package/dist/entities/applications/application-audit.entity.js +5 -0
  187. package/dist/entities/applications/application-company.entity.d.ts +12 -0
  188. package/dist/entities/applications/application-company.entity.d.ts.map +1 -0
  189. package/dist/entities/applications/application-company.entity.js +5 -0
  190. package/dist/entities/applications/application-credit-profile.entity.d.ts +11 -0
  191. package/dist/entities/applications/application-credit-profile.entity.d.ts.map +1 -0
  192. package/dist/entities/applications/application-credit-profile.entity.js +5 -0
  193. package/dist/entities/applications/application-direct-debit.entity.d.ts +24 -0
  194. package/dist/entities/applications/application-direct-debit.entity.d.ts.map +1 -0
  195. package/dist/entities/applications/application-direct-debit.entity.js +5 -0
  196. package/dist/entities/applications/application-document.entity.d.ts +28 -0
  197. package/dist/entities/applications/application-document.entity.d.ts.map +1 -0
  198. package/dist/entities/applications/application-document.entity.js +5 -0
  199. package/dist/entities/applications/application-fieldconfig.entity.d.ts +9 -0
  200. package/dist/entities/applications/application-fieldconfig.entity.d.ts.map +1 -0
  201. package/dist/entities/applications/application-fieldconfig.entity.js +5 -0
  202. package/dist/entities/applications/application-illustration.entity.d.ts +8 -0
  203. package/dist/entities/applications/application-illustration.entity.d.ts.map +1 -0
  204. package/dist/entities/applications/application-illustration.entity.js +5 -0
  205. package/dist/entities/applications/application-legal.entity.d.ts +9 -0
  206. package/dist/entities/applications/application-legal.entity.d.ts.map +1 -0
  207. package/dist/entities/applications/application-legal.entity.js +5 -0
  208. package/dist/entities/applications/application-mortgage.entity.d.ts +55 -0
  209. package/dist/entities/applications/application-mortgage.entity.d.ts.map +1 -0
  210. package/dist/entities/applications/application-mortgage.entity.js +27 -0
  211. package/dist/entities/applications/application-note.entity.d.ts +37 -0
  212. package/dist/entities/applications/application-note.entity.d.ts.map +1 -0
  213. package/dist/entities/applications/application-note.entity.js +5 -0
  214. package/dist/entities/applications/application-offer.entity.d.ts +8 -0
  215. package/dist/entities/applications/application-offer.entity.d.ts.map +1 -0
  216. package/dist/entities/applications/application-offer.entity.js +5 -0
  217. package/dist/entities/applications/application-onboarding.entity.d.ts +11 -0
  218. package/dist/entities/applications/application-onboarding.entity.d.ts.map +1 -0
  219. package/dist/entities/applications/application-onboarding.entity.js +5 -0
  220. package/dist/entities/applications/application-product.entity.d.ts +33 -0
  221. package/dist/entities/applications/application-product.entity.d.ts.map +1 -0
  222. package/dist/entities/applications/application-product.entity.js +5 -0
  223. package/dist/entities/applications/application-rationale.entity.d.ts +51 -0
  224. package/dist/entities/applications/application-rationale.entity.d.ts.map +1 -0
  225. package/dist/entities/applications/application-rationale.entity.js +5 -0
  226. package/dist/entities/applications/application.entity.d.ts +103 -0
  227. package/dist/entities/applications/application.entity.d.ts.map +1 -0
  228. package/dist/entities/applications/application.entity.js +66 -0
  229. package/dist/entities/applications/broker.entity.d.ts +23 -0
  230. package/dist/entities/applications/broker.entity.d.ts.map +1 -0
  231. package/dist/entities/applications/broker.entity.js +5 -0
  232. package/dist/entities/applications/checklist-item.entity.d.ts +47 -0
  233. package/dist/entities/applications/checklist-item.entity.d.ts.map +1 -0
  234. package/dist/entities/applications/checklist-item.entity.js +5 -0
  235. package/dist/entities/applications/company.entity.d.ts +77 -0
  236. package/dist/entities/applications/company.entity.d.ts.map +1 -0
  237. package/dist/entities/applications/company.entity.js +23 -0
  238. package/dist/entities/applications/index.d.ts +23 -0
  239. package/dist/entities/applications/index.d.ts.map +1 -0
  240. package/dist/entities/applications/index.js +21 -0
  241. package/dist/entities/applications/product-features.entity.d.ts +54 -0
  242. package/dist/entities/applications/product-features.entity.d.ts.map +1 -0
  243. package/dist/entities/applications/product-features.entity.js +5 -0
  244. package/dist/entities/applications/solicitor.entity.d.ts +33 -0
  245. package/dist/entities/applications/solicitor.entity.d.ts.map +1 -0
  246. package/dist/entities/applications/solicitor.entity.js +5 -0
  247. package/dist/entities/index.d.ts +10 -0
  248. package/dist/entities/index.d.ts.map +1 -0
  249. package/dist/entities/index.js +10 -0
  250. package/dist/entities/prisma.d.ts +3 -0
  251. package/dist/entities/prisma.d.ts.map +1 -0
  252. package/dist/entities/prisma.js +10 -0
  253. package/dist/entities/product-catalogues/index.d.ts +8 -0
  254. package/dist/entities/product-catalogues/index.d.ts.map +1 -0
  255. package/dist/entities/product-catalogues/index.js +6 -0
  256. package/dist/entities/product-catalogues/product-catalogue.entity.d.ts +22 -0
  257. package/dist/entities/product-catalogues/product-catalogue.entity.d.ts.map +1 -0
  258. package/dist/entities/product-catalogues/product-catalogue.entity.js +5 -0
  259. package/dist/entities/product-catalogues/product-definition.entity.d.ts +16 -0
  260. package/dist/entities/product-catalogues/product-definition.entity.d.ts.map +1 -0
  261. package/dist/entities/product-catalogues/product-definition.entity.js +5 -0
  262. package/dist/entities/product-catalogues/product-variant.entity.d.ts +14 -0
  263. package/dist/entities/product-catalogues/product-variant.entity.d.ts.map +1 -0
  264. package/dist/entities/product-catalogues/product-variant.entity.js +5 -0
  265. package/dist/entities/product-catalogues/product.entity.d.ts +11 -0
  266. package/dist/entities/product-catalogues/product.entity.d.ts.map +1 -0
  267. package/dist/entities/product-catalogues/product.entity.js +5 -0
  268. package/dist/entities/product-catalogues/rule.entity.d.ts +21 -0
  269. package/dist/entities/product-catalogues/rule.entity.d.ts.map +1 -0
  270. package/dist/entities/product-catalogues/rule.entity.js +5 -0
  271. package/dist/entities/properties/data-street.entity.d.ts +22 -0
  272. package/dist/entities/properties/data-street.entity.d.ts.map +1 -0
  273. package/dist/entities/properties/data-street.entity.js +5 -0
  274. package/dist/entities/properties/index.d.ts +6 -0
  275. package/dist/entities/properties/index.d.ts.map +1 -0
  276. package/dist/entities/properties/index.js +4 -0
  277. package/dist/entities/properties/property.entity.d.ts +30 -0
  278. package/dist/entities/properties/property.entity.d.ts.map +1 -0
  279. package/dist/entities/properties/property.entity.js +5 -0
  280. package/dist/entities/properties/security.entity.d.ts +57 -0
  281. package/dist/entities/properties/security.entity.d.ts.map +1 -0
  282. package/dist/entities/properties/security.entity.js +5 -0
  283. package/dist/entities/shared/alert.entity.d.ts +14 -0
  284. package/dist/entities/shared/alert.entity.d.ts.map +1 -0
  285. package/dist/entities/shared/alert.entity.js +5 -0
  286. package/dist/entities/shared/apprivo-sync-journey.entity.d.ts +19 -0
  287. package/dist/entities/shared/apprivo-sync-journey.entity.d.ts.map +1 -0
  288. package/dist/entities/shared/apprivo-sync-journey.entity.js +5 -0
  289. package/dist/entities/shared/checklist.entity.d.ts +15 -0
  290. package/dist/entities/shared/checklist.entity.d.ts.map +1 -0
  291. package/dist/entities/shared/checklist.entity.js +5 -0
  292. package/dist/entities/shared/document-type.entity.d.ts +9 -0
  293. package/dist/entities/shared/document-type.entity.d.ts.map +1 -0
  294. package/dist/entities/shared/document-type.entity.js +5 -0
  295. package/dist/entities/shared/index.d.ts +12 -0
  296. package/dist/entities/shared/index.d.ts.map +1 -0
  297. package/dist/entities/shared/index.js +10 -0
  298. package/dist/entities/shared/job-run.entity.d.ts +15 -0
  299. package/dist/entities/shared/job-run.entity.d.ts.map +1 -0
  300. package/dist/entities/shared/job-run.entity.js +5 -0
  301. package/dist/entities/shared/job-run.model.d.ts +11 -0
  302. package/dist/entities/shared/job-run.model.d.ts.map +1 -0
  303. package/dist/entities/shared/job-run.model.js +1 -0
  304. package/dist/entities/shared/job-setting.entity.d.ts +11 -0
  305. package/dist/entities/shared/job-setting.entity.d.ts.map +1 -0
  306. package/dist/entities/shared/job-setting.entity.js +5 -0
  307. package/dist/entities/shared/lookup-group.entity.d.ts +11 -0
  308. package/dist/entities/shared/lookup-group.entity.d.ts.map +1 -0
  309. package/dist/entities/shared/lookup-group.entity.js +5 -0
  310. package/dist/entities/shared/lookup.entity.d.ts +14 -0
  311. package/dist/entities/shared/lookup.entity.d.ts.map +1 -0
  312. package/dist/entities/shared/lookup.entity.js +5 -0
  313. package/dist/entities/shared/system-parameter.entity.d.ts +10 -0
  314. package/dist/entities/shared/system-parameter.entity.d.ts.map +1 -0
  315. package/dist/entities/shared/system-parameter.entity.js +5 -0
  316. package/dist/entities/underwriter/index.d.ts +4 -0
  317. package/dist/entities/underwriter/index.d.ts.map +1 -0
  318. package/dist/entities/underwriter/index.js +2 -0
  319. package/dist/entities/underwriter/underwriter.entity.d.ts +16 -0
  320. package/dist/entities/underwriter/underwriter.entity.d.ts.map +1 -0
  321. package/dist/entities/underwriter/underwriter.entity.js +5 -0
  322. package/dist/entities/users/auth-log.entity.d.ts +11 -0
  323. package/dist/entities/users/auth-log.entity.d.ts.map +1 -0
  324. package/dist/entities/users/auth-log.entity.js +5 -0
  325. package/dist/entities/users/index.d.ts +8 -0
  326. package/dist/entities/users/index.d.ts.map +1 -0
  327. package/dist/entities/users/index.js +6 -0
  328. package/dist/entities/users/permission.entity.d.ts +12 -0
  329. package/dist/entities/users/permission.entity.d.ts.map +1 -0
  330. package/dist/entities/users/permission.entity.js +5 -0
  331. package/dist/entities/users/role-group.entity.d.ts +12 -0
  332. package/dist/entities/users/role-group.entity.d.ts.map +1 -0
  333. package/dist/entities/users/role-group.entity.js +5 -0
  334. package/dist/entities/users/role.entity.d.ts +14 -0
  335. package/dist/entities/users/role.entity.d.ts.map +1 -0
  336. package/dist/entities/users/role.entity.js +5 -0
  337. package/dist/entities/users/user.entity.d.ts +35 -0
  338. package/dist/entities/users/user.entity.d.ts.map +1 -0
  339. package/dist/entities/users/user.entity.js +10 -0
  340. package/dist/index.d.ts +9 -0
  341. package/dist/index.d.ts.map +1 -0
  342. package/dist/index.js +9 -0
  343. package/dist/product-catalogues/index.d.ts +4 -0
  344. package/dist/product-catalogues/index.d.ts.map +1 -0
  345. package/dist/product-catalogues/index.js +3 -0
  346. package/dist/product-catalogues/product-catalogue.model.d.ts +104 -0
  347. package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -0
  348. package/dist/product-catalogues/product-catalogue.model.js +18 -0
  349. package/dist/product-catalogues/product-definitions.model.d.ts +290 -0
  350. package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -0
  351. package/dist/product-catalogues/product-definitions.model.js +26 -0
  352. package/dist/product-catalogues/product-variant.model.d.ts +68 -0
  353. package/dist/product-catalogues/product-variant.model.d.ts.map +1 -0
  354. package/dist/product-catalogues/product-variant.model.js +12 -0
  355. package/dist/properties/index.d.ts +3 -0
  356. package/dist/properties/index.d.ts.map +1 -0
  357. package/dist/properties/index.js +2 -0
  358. package/dist/properties/property.model.d.ts +1131 -0
  359. package/dist/properties/property.model.d.ts.map +1 -0
  360. package/dist/properties/property.model.js +144 -0
  361. package/dist/properties/security.model.d.ts +285 -0
  362. package/dist/properties/security.model.d.ts.map +1 -0
  363. package/dist/properties/security.model.js +143 -0
  364. package/dist/shared/alert.model.d.ts +74 -0
  365. package/dist/shared/alert.model.d.ts.map +1 -0
  366. package/dist/shared/alert.model.js +24 -0
  367. package/dist/shared/apprivo-sync-journey.model.d.ts +86 -0
  368. package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -0
  369. package/dist/shared/apprivo-sync-journey.model.js +17 -0
  370. package/dist/shared/checklist.model.d.ts +74 -0
  371. package/dist/shared/checklist.model.d.ts.map +1 -0
  372. package/dist/shared/checklist.model.js +30 -0
  373. package/dist/shared/document-type-model.d.ts +48 -0
  374. package/dist/shared/document-type-model.d.ts.map +1 -0
  375. package/dist/shared/document-type-model.js +10 -0
  376. package/dist/shared/index.d.ts +13 -0
  377. package/dist/shared/index.d.ts.map +1 -0
  378. package/dist/shared/index.js +12 -0
  379. package/dist/shared/job-run.model.d.ts +48 -0
  380. package/dist/shared/job-run.model.d.ts.map +1 -0
  381. package/dist/shared/job-run.model.js +14 -0
  382. package/dist/shared/job-setting.model.d.ts +42 -0
  383. package/dist/shared/job-setting.model.d.ts.map +1 -0
  384. package/dist/shared/job-setting.model.js +11 -0
  385. package/dist/shared/lookup-group.model.d.ts +30 -0
  386. package/dist/shared/lookup-group.model.d.ts.map +1 -0
  387. package/dist/shared/lookup-group.model.js +16 -0
  388. package/dist/shared/lookup.model.d.ts +42 -0
  389. package/dist/shared/lookup.model.d.ts.map +1 -0
  390. package/dist/shared/lookup.model.js +20 -0
  391. package/dist/shared/schema-doc.model.d.ts +48 -0
  392. package/dist/shared/schema-doc.model.d.ts.map +1 -0
  393. package/dist/shared/schema-doc.model.js +11 -0
  394. package/dist/shared/system-parameter.model.d.ts +60 -0
  395. package/dist/shared/system-parameter.model.d.ts.map +1 -0
  396. package/dist/shared/system-parameter.model.js +32 -0
  397. package/dist/shared/task-document.model.d.ts +42 -0
  398. package/dist/shared/task-document.model.d.ts.map +1 -0
  399. package/dist/shared/task-document.model.js +23 -0
  400. package/dist/shared/task.model.d.ts +206 -0
  401. package/dist/shared/task.model.d.ts.map +1 -0
  402. package/dist/shared/task.model.js +15 -0
  403. package/dist/underwriter/index.d.ts +2 -0
  404. package/dist/underwriter/index.d.ts.map +1 -0
  405. package/dist/underwriter/index.js +1 -0
  406. package/dist/underwriter/underwriter.model.d.ts +98 -0
  407. package/dist/underwriter/underwriter.model.d.ts.map +1 -0
  408. package/dist/underwriter/underwriter.model.js +17 -0
  409. package/dist/users/auth-log.model.d.ts +42 -0
  410. package/dist/users/auth-log.model.d.ts.map +1 -0
  411. package/dist/users/auth-log.model.js +21 -0
  412. package/dist/users/index.d.ts +7 -0
  413. package/dist/users/index.d.ts.map +1 -0
  414. package/dist/users/index.js +6 -0
  415. package/dist/users/permission.model.d.ts +56 -0
  416. package/dist/users/permission.model.d.ts.map +1 -0
  417. package/dist/users/permission.model.js +10 -0
  418. package/dist/users/role-group.model.d.ts +62 -0
  419. package/dist/users/role-group.model.d.ts.map +1 -0
  420. package/dist/users/role-group.model.js +14 -0
  421. package/dist/users/role.model.d.ts +62 -0
  422. package/dist/users/role.model.d.ts.map +1 -0
  423. package/dist/users/role.model.js +13 -0
  424. package/dist/users/tasks.model.d.ts +86 -0
  425. package/dist/users/tasks.model.d.ts.map +1 -0
  426. package/dist/users/tasks.model.js +15 -0
  427. package/dist/users/user.model.d.ts +188 -0
  428. package/dist/users/user.model.d.ts.map +1 -0
  429. package/dist/users/user.model.js +30 -0
  430. package/dist/value-objects/pound.d.ts +15 -0
  431. package/dist/value-objects/pound.d.ts.map +1 -0
  432. package/dist/value-objects/pound.js +26 -0
  433. package/dist/value-objects/sort-code.d.ts +15 -0
  434. package/dist/value-objects/sort-code.d.ts.map +1 -0
  435. package/dist/value-objects/sort-code.js +25 -0
  436. package/package.json +1 -1
@@ -0,0 +1 @@
1
+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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA6C,CAAC;AACjE,eAAe,aAAa,CAAC"}
@@ -0,0 +1,144 @@
1
+ import mongoose from 'mongoose';
2
+ import { Pound } from '../value-objects/pound';
3
+ const propertySchema = new mongoose.Schema({
4
+ applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application",
5
+ description: "Unique identifier for the application",
6
+ required: true
7
+ },
8
+ pageValidFlag: {
9
+ type: Boolean,
10
+ default: true,
11
+ description: "Flag indicating if the page is valid",
12
+ },
13
+ propertyId: {
14
+ type: String,
15
+ required: true,
16
+ unique: true,
17
+ description: "Unique identifier for the property"
18
+ },
19
+ addressLine1: {
20
+ type: String,
21
+ required: true,
22
+ maxLength: 35,
23
+ description: "First line of the property address"
24
+ },
25
+ addressLine2: {
26
+ type: String,
27
+ required: false,
28
+ maxLength: 35,
29
+ description: "Second line of the property address"
30
+ },
31
+ addressLine3: {
32
+ type: String,
33
+ required: false,
34
+ maxLength: 35,
35
+ description: "Third line of the property address"
36
+ },
37
+ associatedLoanPartiesIds: {
38
+ type: [mongoose.Schema.Types.ObjectId],
39
+ required: false,
40
+ description: "List of associated loan parties (either applicant or company)"
41
+ },
42
+ city: {
43
+ type: String,
44
+ required: false,
45
+ maxLength: 30,
46
+ description: "City where the property is located"
47
+ },
48
+ countryLid: {
49
+ type: mongoose.Schema.Types.ObjectId,
50
+ ref: 'Lookup',
51
+ required: true,
52
+ description: "Country where the property is located",
53
+ },
54
+ lender: {
55
+ type: String,
56
+ required: true,
57
+ maxLength: 35,
58
+ description: "Lender providing the loan for the property"
59
+ },
60
+ marketValue: {
61
+ type: Pound,
62
+ required: true,
63
+ default: 0.00,
64
+ description: "The market value of the property",
65
+ },
66
+ monthlyRent: {
67
+ type: Pound,
68
+ required: true,
69
+ default: 0.00,
70
+ description: "The monthly rent value of the property"
71
+ },
72
+ monthlyRepayment: {
73
+ type: Pound,
74
+ required: true,
75
+ default: 0.00,
76
+ description: "The monthly repayment value for the property"
77
+ },
78
+ originalLoanBalance: {
79
+ type: Pound,
80
+ required: true,
81
+ default: 0.00,
82
+ description: "The original loan balance for the property"
83
+ },
84
+ outstandingBalance: {
85
+ type: Pound,
86
+ required: true,
87
+ default: 0.00,
88
+ description: "The remaining outstanding balance of the property loan"
89
+ },
90
+ otherOwnershipParties: {
91
+ type: String,
92
+ required: false,
93
+ maxLength: 500,
94
+ description: "Other parties that own the property"
95
+ },
96
+ postCode: {
97
+ type: String,
98
+ required: true,
99
+ maxLength: 50,
100
+ description: "The postCode for the property"
101
+ },
102
+ remainingTerm: {
103
+ type: Number,
104
+ required: true,
105
+ max: 4,
106
+ description: "The remaining term of the loan in years"
107
+ },
108
+ portfolioFile: {
109
+ type: String,
110
+ required: false,
111
+ description: "File containing the portfolio details"
112
+ }
113
+ }, {
114
+ timestamps: true,
115
+ toJSON: { virtuals: true },
116
+ toObject: { virtuals: true }
117
+ });
118
+ propertySchema.virtual('country').get(function () {
119
+ return this.countryLid instanceof mongoose.Types.ObjectId ? null : this.countryLid?.name || null;
120
+ });
121
+ propertySchema.virtual('stressedRCR').get(function () {
122
+ const monthlyRentValue = this.monthlyRent ? parseFloat(this.monthlyRent.toString()) : 0.00;
123
+ const monthlyRepaymentValue = this.monthlyRepayment ? parseFloat(this.monthlyRepayment.toString()) : 0.00;
124
+ // Avoid division by zero
125
+ if (monthlyRepaymentValue === 0) {
126
+ return '0.00'; // Return 0.00 if monthlyRepayment is zero
127
+ }
128
+ const stressedRCR = (monthlyRentValue / monthlyRepaymentValue) * 100;
129
+ return stressedRCR.toFixed(2);
130
+ });
131
+ // virtual property 'applicationType'
132
+ propertySchema.virtual('applicationType').get(function () {
133
+ return this.applicationId?.applicationTypeLid instanceof mongoose.Types.ObjectId
134
+ ? null
135
+ : this.applicationId?.applicationTypeLid?.name || null;
136
+ });
137
+ // virtual property 'lendingType'
138
+ propertySchema.virtual('lendingType').get(function () {
139
+ return this.applicationId?.lendingTypeLid instanceof mongoose.Types.ObjectId
140
+ ? null
141
+ : this.applicationId?.lendingTypeLid?.name || null;
142
+ });
143
+ const PropertyModel = mongoose.model('Property', propertySchema);
144
+ export default PropertyModel;
@@ -0,0 +1,285 @@
1
+ import mongoose from "mongoose";
2
+ declare const SecurityModel: mongoose.Model<{
3
+ applicationId: any;
4
+ pageValidFlag: any;
5
+ haveAnyBuyToLetProperties: any;
6
+ isPropertyInEnglandOrWales: any;
7
+ noOfBuyToLetProperties: any;
8
+ totalMonthlyRentalIncome: any;
9
+ totalMonthlyRepayment: any;
10
+ totalOutstandingBalance: any;
11
+ areAllBedRoomsOver10sqm: any;
12
+ isBrickTileConstruction: any;
13
+ constructionDetails: any;
14
+ isExLAExclusion: any;
15
+ isFlatLift: any;
16
+ flatNumberOfBedrooms: any;
17
+ isGreenEPC: any;
18
+ isGroundRent: any;
19
+ isHouseLicensed: any;
20
+ houseNumberOfFloors: any;
21
+ houseNumberOfKitchens: any;
22
+ houseNumberOfLivingRooms: any;
23
+ houseNumberOfBathrooms: any;
24
+ houseNumberOfTenancies: any;
25
+ hasHousePlanningPermission: any;
26
+ isGarage: any;
27
+ isNewBuild: any;
28
+ propertyAddressCity: any;
29
+ propertyAddressCountryLid: any;
30
+ propertyAddressLine1: any;
31
+ propertyAddressLine2: any;
32
+ propertyAddressLine3: any;
33
+ propertyAddressPostCode: any;
34
+ propertyTenureLid: any;
35
+ propertyTypeLid: any;
36
+ propertyYearBuilt: any;
37
+ receiptOfAnyDiscount: any;
38
+ receiptOfDiscountDetails: any;
39
+ sectorExperience: any;
40
+ serviceCharge: any;
41
+ unexpiredRemainingLease: any;
42
+ yearLeaseExpires: any;
43
+ energyEfficiencyRating: any;
44
+ energyEfficiencyRatingValue: any;
45
+ dataStreetSchema: any;
46
+ }, {}, {}, {}, mongoose.Document<unknown, {}, {
47
+ applicationId: any;
48
+ pageValidFlag: any;
49
+ haveAnyBuyToLetProperties: any;
50
+ isPropertyInEnglandOrWales: any;
51
+ noOfBuyToLetProperties: any;
52
+ totalMonthlyRentalIncome: any;
53
+ totalMonthlyRepayment: any;
54
+ totalOutstandingBalance: any;
55
+ areAllBedRoomsOver10sqm: any;
56
+ isBrickTileConstruction: any;
57
+ constructionDetails: any;
58
+ isExLAExclusion: any;
59
+ isFlatLift: any;
60
+ flatNumberOfBedrooms: any;
61
+ isGreenEPC: any;
62
+ isGroundRent: any;
63
+ isHouseLicensed: any;
64
+ houseNumberOfFloors: any;
65
+ houseNumberOfKitchens: any;
66
+ houseNumberOfLivingRooms: any;
67
+ houseNumberOfBathrooms: any;
68
+ houseNumberOfTenancies: any;
69
+ hasHousePlanningPermission: any;
70
+ isGarage: any;
71
+ isNewBuild: any;
72
+ propertyAddressCity: any;
73
+ propertyAddressCountryLid: any;
74
+ propertyAddressLine1: any;
75
+ propertyAddressLine2: any;
76
+ propertyAddressLine3: any;
77
+ propertyAddressPostCode: any;
78
+ propertyTenureLid: any;
79
+ propertyTypeLid: any;
80
+ propertyYearBuilt: any;
81
+ receiptOfAnyDiscount: any;
82
+ receiptOfDiscountDetails: any;
83
+ sectorExperience: any;
84
+ serviceCharge: any;
85
+ unexpiredRemainingLease: any;
86
+ yearLeaseExpires: any;
87
+ energyEfficiencyRating: any;
88
+ energyEfficiencyRatingValue: any;
89
+ dataStreetSchema: any;
90
+ }> & {
91
+ applicationId: any;
92
+ pageValidFlag: any;
93
+ haveAnyBuyToLetProperties: any;
94
+ isPropertyInEnglandOrWales: any;
95
+ noOfBuyToLetProperties: any;
96
+ totalMonthlyRentalIncome: any;
97
+ totalMonthlyRepayment: any;
98
+ totalOutstandingBalance: any;
99
+ areAllBedRoomsOver10sqm: any;
100
+ isBrickTileConstruction: any;
101
+ constructionDetails: any;
102
+ isExLAExclusion: any;
103
+ isFlatLift: any;
104
+ flatNumberOfBedrooms: any;
105
+ isGreenEPC: any;
106
+ isGroundRent: any;
107
+ isHouseLicensed: any;
108
+ houseNumberOfFloors: any;
109
+ houseNumberOfKitchens: any;
110
+ houseNumberOfLivingRooms: any;
111
+ houseNumberOfBathrooms: any;
112
+ houseNumberOfTenancies: any;
113
+ hasHousePlanningPermission: any;
114
+ isGarage: any;
115
+ isNewBuild: any;
116
+ propertyAddressCity: any;
117
+ propertyAddressCountryLid: any;
118
+ propertyAddressLine1: any;
119
+ propertyAddressLine2: any;
120
+ propertyAddressLine3: any;
121
+ propertyAddressPostCode: any;
122
+ propertyTenureLid: any;
123
+ propertyTypeLid: any;
124
+ propertyYearBuilt: any;
125
+ receiptOfAnyDiscount: any;
126
+ receiptOfDiscountDetails: any;
127
+ sectorExperience: any;
128
+ serviceCharge: any;
129
+ unexpiredRemainingLease: any;
130
+ yearLeaseExpires: any;
131
+ energyEfficiencyRating: any;
132
+ energyEfficiencyRatingValue: any;
133
+ dataStreetSchema: any;
134
+ } & {
135
+ _id: mongoose.Types.ObjectId;
136
+ } & {
137
+ __v: number;
138
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
139
+ toJSON: {
140
+ getters: true;
141
+ virtuals: true;
142
+ };
143
+ toObject: {
144
+ getters: true;
145
+ virtuals: true;
146
+ };
147
+ }, {
148
+ applicationId: any;
149
+ pageValidFlag: any;
150
+ haveAnyBuyToLetProperties: any;
151
+ isPropertyInEnglandOrWales: any;
152
+ noOfBuyToLetProperties: any;
153
+ totalMonthlyRentalIncome: any;
154
+ totalMonthlyRepayment: any;
155
+ totalOutstandingBalance: any;
156
+ areAllBedRoomsOver10sqm: any;
157
+ isBrickTileConstruction: any;
158
+ constructionDetails: any;
159
+ isExLAExclusion: any;
160
+ isFlatLift: any;
161
+ flatNumberOfBedrooms: any;
162
+ isGreenEPC: any;
163
+ isGroundRent: any;
164
+ isHouseLicensed: any;
165
+ houseNumberOfFloors: any;
166
+ houseNumberOfKitchens: any;
167
+ houseNumberOfLivingRooms: any;
168
+ houseNumberOfBathrooms: any;
169
+ houseNumberOfTenancies: any;
170
+ hasHousePlanningPermission: any;
171
+ isGarage: any;
172
+ isNewBuild: any;
173
+ propertyAddressCity: any;
174
+ propertyAddressCountryLid: any;
175
+ propertyAddressLine1: any;
176
+ propertyAddressLine2: any;
177
+ propertyAddressLine3: any;
178
+ propertyAddressPostCode: any;
179
+ propertyTenureLid: any;
180
+ propertyTypeLid: any;
181
+ propertyYearBuilt: any;
182
+ receiptOfAnyDiscount: any;
183
+ receiptOfDiscountDetails: any;
184
+ sectorExperience: any;
185
+ serviceCharge: any;
186
+ unexpiredRemainingLease: any;
187
+ yearLeaseExpires: any;
188
+ energyEfficiencyRating: any;
189
+ energyEfficiencyRatingValue: any;
190
+ dataStreetSchema: any;
191
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
192
+ applicationId: any;
193
+ pageValidFlag: any;
194
+ haveAnyBuyToLetProperties: any;
195
+ isPropertyInEnglandOrWales: any;
196
+ noOfBuyToLetProperties: any;
197
+ totalMonthlyRentalIncome: any;
198
+ totalMonthlyRepayment: any;
199
+ totalOutstandingBalance: any;
200
+ areAllBedRoomsOver10sqm: any;
201
+ isBrickTileConstruction: any;
202
+ constructionDetails: any;
203
+ isExLAExclusion: any;
204
+ isFlatLift: any;
205
+ flatNumberOfBedrooms: any;
206
+ isGreenEPC: any;
207
+ isGroundRent: any;
208
+ isHouseLicensed: any;
209
+ houseNumberOfFloors: any;
210
+ houseNumberOfKitchens: any;
211
+ houseNumberOfLivingRooms: any;
212
+ houseNumberOfBathrooms: any;
213
+ houseNumberOfTenancies: any;
214
+ hasHousePlanningPermission: any;
215
+ isGarage: any;
216
+ isNewBuild: any;
217
+ propertyAddressCity: any;
218
+ propertyAddressCountryLid: any;
219
+ propertyAddressLine1: any;
220
+ propertyAddressLine2: any;
221
+ propertyAddressLine3: any;
222
+ propertyAddressPostCode: any;
223
+ propertyTenureLid: any;
224
+ propertyTypeLid: any;
225
+ propertyYearBuilt: any;
226
+ receiptOfAnyDiscount: any;
227
+ receiptOfDiscountDetails: any;
228
+ sectorExperience: any;
229
+ serviceCharge: any;
230
+ unexpiredRemainingLease: any;
231
+ yearLeaseExpires: any;
232
+ energyEfficiencyRating: any;
233
+ energyEfficiencyRatingValue: any;
234
+ dataStreetSchema: any;
235
+ }>> & mongoose.FlatRecord<{
236
+ applicationId: any;
237
+ pageValidFlag: any;
238
+ haveAnyBuyToLetProperties: any;
239
+ isPropertyInEnglandOrWales: any;
240
+ noOfBuyToLetProperties: any;
241
+ totalMonthlyRentalIncome: any;
242
+ totalMonthlyRepayment: any;
243
+ totalOutstandingBalance: any;
244
+ areAllBedRoomsOver10sqm: any;
245
+ isBrickTileConstruction: any;
246
+ constructionDetails: any;
247
+ isExLAExclusion: any;
248
+ isFlatLift: any;
249
+ flatNumberOfBedrooms: any;
250
+ isGreenEPC: any;
251
+ isGroundRent: any;
252
+ isHouseLicensed: any;
253
+ houseNumberOfFloors: any;
254
+ houseNumberOfKitchens: any;
255
+ houseNumberOfLivingRooms: any;
256
+ houseNumberOfBathrooms: any;
257
+ houseNumberOfTenancies: any;
258
+ hasHousePlanningPermission: any;
259
+ isGarage: any;
260
+ isNewBuild: any;
261
+ propertyAddressCity: any;
262
+ propertyAddressCountryLid: any;
263
+ propertyAddressLine1: any;
264
+ propertyAddressLine2: any;
265
+ propertyAddressLine3: any;
266
+ propertyAddressPostCode: any;
267
+ propertyTenureLid: any;
268
+ propertyTypeLid: any;
269
+ propertyYearBuilt: any;
270
+ receiptOfAnyDiscount: any;
271
+ receiptOfDiscountDetails: any;
272
+ sectorExperience: any;
273
+ serviceCharge: any;
274
+ unexpiredRemainingLease: any;
275
+ yearLeaseExpires: any;
276
+ energyEfficiencyRating: any;
277
+ energyEfficiencyRatingValue: any;
278
+ dataStreetSchema: any;
279
+ }> & {
280
+ _id: mongoose.Types.ObjectId;
281
+ } & {
282
+ __v: number;
283
+ }>>;
284
+ export default SecurityModel;
285
+ //# sourceMappingURL=security.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"security.model.d.ts","sourceRoot":"","sources":["../../properties/security.model.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA0JhC,QAAA,MAAM,aAAa;mBAlGT,GAAG;mBAC2C,GAAG;+BACyB,GAAG;gCACF,GAAG;4BAE5B,GAAG;8BACgB,GAAG;2BACN,GAAG;6BACD,GAAG;6BACC,GAAG;6BACH,GAAG;yBACX,GAAG;qBACH,GAAG;gBACR,GAAG;0BACE,GAAG;gBACxB,GAAG;kBAK/C,GAAG;qBAC8D,GAAG;yBACJ,GAAG;2BACD,GAAG;8BACA,GAAG;4BACL,GAAG;4BACH,GAAG;gCACM,GAAG;cACrC,GAAG;gBACe,GAAG;yBACC,GAAG;+BAC8B,GAAG;0BACnB,GAAG;0BACnB,GAAG;0BACH,GAAG;6BACgB,GAAG;uBACE,GAAG;qBACrB,GAAG;uBACD,GAAG;0BACN,GAAG;8BACa,GAAG;sBAC3B,GAAG;mBAKjE,GAAG;6BAC4E,GAAG;sBACrB,GAAG;4BACzB,GAAG;iCACE,GAAG;sBACd,GAAG;;mBAnDnC,GAAG;mBAC2C,GAAG;+BACyB,GAAG;gCACF,GAAG;4BAE5B,GAAG;8BACgB,GAAG;2BACN,GAAG;6BACD,GAAG;6BACC,GAAG;6BACH,GAAG;yBACX,GAAG;qBACH,GAAG;gBACR,GAAG;0BACE,GAAG;gBACxB,GAAG;kBAK/C,GAAG;qBAC8D,GAAG;yBACJ,GAAG;2BACD,GAAG;8BACA,GAAG;4BACL,GAAG;4BACH,GAAG;gCACM,GAAG;cACrC,GAAG;gBACe,GAAG;yBACC,GAAG;+BAC8B,GAAG;0BACnB,GAAG;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C"}
@@ -0,0 +1,143 @@
1
+ // security.model.ts
2
+ import mongoose from "mongoose";
3
+ import { Pound } from "../value-objects/pound";
4
+ const dataStreetSchema = new mongoose.Schema({
5
+ floorArea: { type: String, default: '' },
6
+ propertyType: { type: String, default: '' },
7
+ noOfBedrooms: { type: String, default: 0 },
8
+ noOfBathrooms: { type: String, default: 0 },
9
+ lats: { type: String, },
10
+ longs: { type: String, },
11
+ lmkKey: { type: String, default: '' },
12
+ matchConfidence: { type: String, default: 0 },
13
+ transactions: [{
14
+ transactionDate: String,
15
+ epc: String,
16
+ price: String,
17
+ isNewBuild: String,
18
+ }],
19
+ nearByListings: [{
20
+ listedDate: String,
21
+ price: String,
22
+ noOfBedrooms: String,
23
+ noOfBathrooms: String,
24
+ internalArea: String,
25
+ distance: String,
26
+ address: String,
27
+ propertyType: String
28
+ }],
29
+ nearByCompletedTransactions: [{
30
+ transactionDate: String,
31
+ price: String,
32
+ noOfBedrooms: String,
33
+ noOfBathrooms: String,
34
+ internalArea: String,
35
+ distance: String,
36
+ address: String,
37
+ }],
38
+ risk: {
39
+ conservationArea: String,
40
+ listedBuildingsOnPlot: String,
41
+ nearByListedBuildings: [{
42
+ name: String,
43
+ listedDate: String,
44
+ grade: String,
45
+ disatanceInMetres: String
46
+ }],
47
+ floodRisk: {
48
+ riverAndSeaRisk: String,
49
+ surfaceWaterRisk: String,
50
+ }
51
+ }
52
+ });
53
+ const securitySchema = new mongoose.Schema({
54
+ applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true,
55
+ description: "Unique identifier for the application"
56
+ }, // not-form securityData
57
+ pageValidFlag: { type: Boolean, default: true, }, //form
58
+ haveAnyBuyToLetProperties: { type: Boolean, required: true, default: false }, // not-form propertyData - not in Property form
59
+ isPropertyInEnglandOrWales: { type: Boolean, required: true, default: false }, // not-form propertyData - not in Property form
60
+ // price: { type: Pound, required: true, default: 0.00} as any, // *already in Purchase Form -> not-form mortgateData - pounds
61
+ noOfBuyToLetProperties: { type: Number, default: 0 }, // not-form propertyData - not in Property form
62
+ totalMonthlyRentalIncome: { type: Pound, required: true, default: 0.00 }, // not-form pound propertyData - not in Property form
63
+ totalMonthlyRepayment: { type: Pound, required: true, default: 0.00 }, // not-form pound propertyData - not in Property form
64
+ totalOutstandingBalance: { type: Pound, required: true, default: 0.00 }, // not-form pound propertyData - not in Property form
65
+ areAllBedRoomsOver10sqm: { type: Boolean, required: true, default: false }, // form
66
+ isBrickTileConstruction: { type: Boolean, required: true, default: false }, // form
67
+ constructionDetails: { type: String, required: true, default: '' }, // form
68
+ isExLAExclusion: { type: Boolean, required: true, default: false }, // form
69
+ isFlatLift: { type: Boolean, required: true, default: false }, // form
70
+ flatNumberOfBedrooms: { type: Number, required: true, default: 0 }, // form
71
+ isGreenEPC: { type: Boolean, default: false }, // form
72
+ isGroundRent: {
73
+ type: Pound,
74
+ required: true,
75
+ default: 0.00 // Default value in correct format
76
+ }, // form - pounds
77
+ isHouseLicensed: { type: Boolean, required: true, default: false }, // form
78
+ houseNumberOfFloors: { type: Number, required: true, default: 0 }, // form
79
+ houseNumberOfKitchens: { type: Number, required: true, default: 0 }, // form
80
+ houseNumberOfLivingRooms: { type: Number, required: true, default: 0 }, // form
81
+ houseNumberOfBathrooms: { type: Number, required: true, default: 0 }, // form
82
+ houseNumberOfTenancies: { type: Number, required: true, default: 0 }, // form
83
+ hasHousePlanningPermission: { type: Boolean, required: true, default: false }, // not-form securityData
84
+ isGarage: { type: Boolean, default: false }, // form
85
+ isNewBuild: { type: Boolean, required: true, default: false }, // form
86
+ propertyAddressCity: { type: String, default: '', maxlength: 30 }, // form
87
+ propertyAddressCountryLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
88
+ propertyAddressLine1: { type: String, required: true, maxlength: 35, default: '' }, // form
89
+ propertyAddressLine2: { type: String, default: '', maxlength: 35 }, // form
90
+ propertyAddressLine3: { type: String, default: '', maxlength: 35 }, // form
91
+ propertyAddressPostCode: { type: String, required: true, maxlength: 50, default: '' }, // form
92
+ propertyTenureLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", required: true }, // form
93
+ propertyTypeLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup" }, // form
94
+ propertyYearBuilt: { type: Number, required: true, max: 9999, default: 0 }, // form
95
+ receiptOfAnyDiscount: { type: Boolean, required: true, default: false }, // form
96
+ receiptOfDiscountDetails: { type: String, required: true, default: '', maxlength: 100 }, // form
97
+ sectorExperience: { type: String, required: true, default: '' }, // form
98
+ serviceCharge: {
99
+ type: Pound,
100
+ required: true,
101
+ default: 0.00 // Default value in correct format
102
+ }, // form - pounds
103
+ unexpiredRemainingLease: { type: Number, required: true, max: 9999, default: 0 }, // form
104
+ yearLeaseExpires: { type: Number, required: true, default: 0 }, // not-form securityData
105
+ energyEfficiencyRating: { type: String }, // not-form data-street
106
+ energyEfficiencyRatingValue: { type: String }, // not-form data-street
107
+ dataStreetSchema: dataStreetSchema, // not-form data-street
108
+ }, {
109
+ toJSON: { getters: true, virtuals: true },
110
+ toObject: { getters: true, virtuals: true }
111
+ });
112
+ // Virtual for 'tenure'
113
+ const virtualTenure = securitySchema.virtual('tenure', {
114
+ ref: 'Lookup',
115
+ localField: 'propertyTenureLid',
116
+ foreignField: '_id',
117
+ justOne: true,
118
+ options: { select: 'label' },
119
+ });
120
+ virtualTenure.description = 'Populated lookup value for the property tenure';
121
+ // Virtual for 'type'
122
+ const virtualType = securitySchema.virtual('type', {
123
+ ref: 'Lookup',
124
+ localField: 'propertyTypeLid',
125
+ foreignField: '_id',
126
+ justOne: true,
127
+ options: { select: 'label' },
128
+ });
129
+ virtualType.description = 'Populated lookup value for the property type';
130
+ // virtual property 'applicationType'
131
+ securitySchema.virtual('applicationType').get(function () {
132
+ return this.applicationId?.applicationTypeLid instanceof mongoose.Types.ObjectId
133
+ ? null
134
+ : this.applicationId?.applicationTypeLid?.name || null;
135
+ });
136
+ // virtual property 'lendingType'
137
+ securitySchema.virtual('lendingType').get(function () {
138
+ return this.applicationId?.lendingTypeLid instanceof mongoose.Types.ObjectId
139
+ ? null
140
+ : this.applicationId?.lendingTypeLid?.name || null;
141
+ });
142
+ const SecurityModel = mongoose.model("Security", securitySchema);
143
+ export default SecurityModel;
@@ -0,0 +1,74 @@
1
+ import mongoose from "mongoose";
2
+ declare const AlertModel: mongoose.Model<{
3
+ createdAt: NativeDate;
4
+ updatedAt: NativeDate;
5
+ } & {
6
+ applicationId: mongoose.Types.ObjectId;
7
+ isActive: string;
8
+ documentId?: mongoose.Types.ObjectId | null | undefined;
9
+ statusLid?: mongoose.Types.ObjectId | null | undefined;
10
+ alertTypeLid?: mongoose.Types.ObjectId | null | undefined;
11
+ alertMessage?: string | null | undefined;
12
+ }, {}, {}, {}, mongoose.Document<unknown, {}, {
13
+ createdAt: NativeDate;
14
+ updatedAt: NativeDate;
15
+ } & {
16
+ applicationId: mongoose.Types.ObjectId;
17
+ isActive: string;
18
+ documentId?: mongoose.Types.ObjectId | null | undefined;
19
+ statusLid?: mongoose.Types.ObjectId | null | undefined;
20
+ alertTypeLid?: mongoose.Types.ObjectId | null | undefined;
21
+ alertMessage?: string | null | undefined;
22
+ }> & {
23
+ createdAt: NativeDate;
24
+ updatedAt: NativeDate;
25
+ } & {
26
+ applicationId: mongoose.Types.ObjectId;
27
+ isActive: string;
28
+ documentId?: mongoose.Types.ObjectId | null | undefined;
29
+ statusLid?: mongoose.Types.ObjectId | null | undefined;
30
+ alertTypeLid?: mongoose.Types.ObjectId | null | undefined;
31
+ alertMessage?: string | null | undefined;
32
+ } & {
33
+ _id: mongoose.Types.ObjectId;
34
+ } & {
35
+ __v: number;
36
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
37
+ timestamps: true;
38
+ }, {
39
+ createdAt: NativeDate;
40
+ updatedAt: NativeDate;
41
+ } & {
42
+ applicationId: mongoose.Types.ObjectId;
43
+ isActive: string;
44
+ documentId?: mongoose.Types.ObjectId | null | undefined;
45
+ statusLid?: mongoose.Types.ObjectId | null | undefined;
46
+ alertTypeLid?: mongoose.Types.ObjectId | null | undefined;
47
+ alertMessage?: string | null | undefined;
48
+ }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
49
+ createdAt: NativeDate;
50
+ updatedAt: NativeDate;
51
+ } & {
52
+ applicationId: mongoose.Types.ObjectId;
53
+ isActive: string;
54
+ documentId?: mongoose.Types.ObjectId | null | undefined;
55
+ statusLid?: mongoose.Types.ObjectId | null | undefined;
56
+ alertTypeLid?: mongoose.Types.ObjectId | null | undefined;
57
+ alertMessage?: string | null | undefined;
58
+ }>> & mongoose.FlatRecord<{
59
+ createdAt: NativeDate;
60
+ updatedAt: NativeDate;
61
+ } & {
62
+ applicationId: mongoose.Types.ObjectId;
63
+ isActive: string;
64
+ documentId?: mongoose.Types.ObjectId | null | undefined;
65
+ statusLid?: mongoose.Types.ObjectId | null | undefined;
66
+ alertTypeLid?: mongoose.Types.ObjectId | null | undefined;
67
+ alertMessage?: string | null | undefined;
68
+ }> & {
69
+ _id: mongoose.Types.ObjectId;
70
+ } & {
71
+ __v: number;
72
+ }>>;
73
+ export default AlertModel;
74
+ //# sourceMappingURL=alert.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alert.model.d.ts","sourceRoot":"","sources":["../../shared/alert.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAyBhC,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuC,CAAC;AAExD,eAAe,UAAU,CAAC"}
@@ -0,0 +1,24 @@
1
+ import mongoose from "mongoose";
2
+ const alertSchema = new mongoose.Schema({
3
+ alertTypeLid: {
4
+ type: mongoose.Schema.Types.ObjectId,
5
+ ref: "Lookup"
6
+ },
7
+ applicationId: {
8
+ type: mongoose.Schema.Types.ObjectId,
9
+ ref: "Application",
10
+ required: true
11
+ },
12
+ alertMessage: { type: String },
13
+ documentId: {
14
+ type: mongoose.Schema.Types.ObjectId,
15
+ ref: "Document",
16
+ },
17
+ statusLid: {
18
+ type: mongoose.Schema.Types.ObjectId,
19
+ ref: "Lookup"
20
+ },
21
+ isActive: { type: String, default: true },
22
+ }, { timestamps: true });
23
+ const AlertModel = mongoose.model("Alert", alertSchema);
24
+ export default AlertModel;