@dynamatix/gb-schemas 1.2.80 → 1.2.81

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 (228) hide show
  1. package/dist/applicants/applicant-employment-income.model.d.ts +201 -0
  2. package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -0
  3. package/dist/applicants/applicant-employment-income.model.js +9 -0
  4. package/dist/applicants/applicant-employment.model.d.ts +0 -18
  5. package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
  6. package/dist/applicants/applicant-employment.model.js +0 -6
  7. package/dist/applicants/applicant-income.model.d.ts +12 -0
  8. package/dist/applicants/applicant-income.model.d.ts.map +1 -1
  9. package/dist/applicants/applicant-income.model.js +5 -1
  10. package/dist/applicants/applicant.model.d.ts +0 -26
  11. package/dist/applicants/applicant.model.d.ts.map +1 -1
  12. package/dist/entities/applicants/applicant.entity.d.ts +148 -0
  13. package/dist/entities/applicants/applicant.entity.d.ts.map +1 -0
  14. package/dist/entities/applicants/applicant.entity.js +51 -0
  15. package/dist/entities/applicants/credit-card-commitment.entity.d.ts +16 -0
  16. package/dist/entities/applicants/credit-card-commitment.entity.d.ts.map +1 -0
  17. package/dist/entities/applicants/credit-card-commitment.entity.js +5 -0
  18. package/dist/entities/applicants/credit-data.entity.d.ts +19 -0
  19. package/dist/entities/applicants/credit-data.entity.d.ts.map +1 -0
  20. package/dist/entities/applicants/credit-data.entity.js +5 -0
  21. package/dist/entities/applicants/credit-profile.entity.d.ts +11 -0
  22. package/dist/entities/applicants/credit-profile.entity.d.ts.map +1 -0
  23. package/dist/entities/applicants/credit-profile.entity.js +5 -0
  24. package/dist/entities/applicants/direct-debit.entity.d.ts +25 -0
  25. package/dist/entities/applicants/direct-debit.entity.d.ts.map +1 -0
  26. package/dist/entities/applicants/direct-debit.entity.js +5 -0
  27. package/dist/entities/applicants/employment.entity.d.ts +61 -0
  28. package/dist/entities/applicants/employment.entity.d.ts.map +1 -0
  29. package/dist/entities/applicants/employment.entity.js +10 -0
  30. package/dist/entities/applicants/expenditure.entity.d.ts +24 -0
  31. package/dist/entities/applicants/expenditure.entity.d.ts.map +1 -0
  32. package/dist/entities/applicants/expenditure.entity.js +5 -0
  33. package/dist/entities/applicants/income-source.entity.d.ts +17 -0
  34. package/dist/entities/applicants/income-source.entity.d.ts.map +1 -0
  35. package/dist/entities/applicants/income-source.entity.js +5 -0
  36. package/dist/entities/applicants/income.entity.d.ts +54 -0
  37. package/dist/entities/applicants/income.entity.d.ts.map +1 -0
  38. package/dist/entities/applicants/income.entity.js +5 -0
  39. package/dist/entities/applicants/index.d.ts +20 -0
  40. package/dist/entities/applicants/index.d.ts.map +1 -0
  41. package/dist/entities/applicants/index.js +18 -0
  42. package/dist/entities/applicants/loan-commitment.entity.d.ts +20 -0
  43. package/dist/entities/applicants/loan-commitment.entity.d.ts.map +1 -0
  44. package/dist/entities/applicants/loan-commitment.entity.js +5 -0
  45. package/dist/entities/applicants/lookup.entity.d.ts +10 -0
  46. package/dist/entities/applicants/lookup.entity.d.ts.map +1 -0
  47. package/dist/entities/applicants/lookup.entity.js +5 -0
  48. package/dist/entities/applicants/mortgage-commitment.entity.d.ts +37 -0
  49. package/dist/entities/applicants/mortgage-commitment.entity.d.ts.map +1 -0
  50. package/dist/entities/applicants/mortgage-commitment.entity.js +19 -0
  51. package/dist/entities/applicants/other-income.entity.d.ts +41 -0
  52. package/dist/entities/applicants/other-income.entity.d.ts.map +1 -0
  53. package/dist/entities/applicants/other-income.entity.js +19 -0
  54. package/dist/entities/applicants/property-income.entity.d.ts +17 -0
  55. package/dist/entities/applicants/property-income.entity.d.ts.map +1 -0
  56. package/dist/entities/applicants/property-income.entity.js +5 -0
  57. package/dist/entities/applicants/residence-commitment.entity.d.ts +44 -0
  58. package/dist/entities/applicants/residence-commitment.entity.d.ts.map +1 -0
  59. package/dist/entities/applicants/residence-commitment.entity.js +19 -0
  60. package/dist/entities/applicants/risk-narrative.entity.d.ts +23 -0
  61. package/dist/entities/applicants/risk-narrative.entity.d.ts.map +1 -0
  62. package/dist/entities/applicants/risk-narrative.entity.js +5 -0
  63. package/dist/entities/applicants/secure-loan-commitment.entity.d.ts +21 -0
  64. package/dist/entities/applicants/secure-loan-commitment.entity.d.ts.map +1 -0
  65. package/dist/entities/applicants/secure-loan-commitment.entity.js +9 -0
  66. package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts +20 -0
  67. package/dist/entities/applicants/unsecured-loan-commitment.entity.d.ts.map +1 -0
  68. package/dist/entities/applicants/unsecured-loan-commitment.entity.js +10 -0
  69. package/dist/entities/applications/application-audit.entity.d.ts +18 -0
  70. package/dist/entities/applications/application-audit.entity.d.ts.map +1 -0
  71. package/dist/entities/applications/application-audit.entity.js +5 -0
  72. package/dist/entities/applications/application-company.entity.d.ts +12 -0
  73. package/dist/entities/applications/application-company.entity.d.ts.map +1 -0
  74. package/dist/entities/applications/application-company.entity.js +5 -0
  75. package/dist/entities/applications/application-direct-debit.entity.d.ts +12 -0
  76. package/dist/entities/applications/application-direct-debit.entity.d.ts.map +1 -0
  77. package/dist/entities/applications/application-direct-debit.entity.js +5 -0
  78. package/dist/entities/applications/application-document.entity.d.ts +28 -0
  79. package/dist/entities/applications/application-document.entity.d.ts.map +1 -0
  80. package/dist/entities/applications/application-document.entity.js +5 -0
  81. package/dist/entities/applications/application-fieldconfig.entity.d.ts +9 -0
  82. package/dist/entities/applications/application-fieldconfig.entity.d.ts.map +1 -0
  83. package/dist/entities/applications/application-fieldconfig.entity.js +5 -0
  84. package/dist/entities/applications/application-illustration.entity.d.ts +8 -0
  85. package/dist/entities/applications/application-illustration.entity.d.ts.map +1 -0
  86. package/dist/entities/applications/application-illustration.entity.js +5 -0
  87. package/dist/entities/applications/application-legal.entity.d.ts +9 -0
  88. package/dist/entities/applications/application-legal.entity.d.ts.map +1 -0
  89. package/dist/entities/applications/application-legal.entity.js +5 -0
  90. package/dist/entities/applications/application-mortgage.entity.d.ts +55 -0
  91. package/dist/entities/applications/application-mortgage.entity.d.ts.map +1 -0
  92. package/dist/entities/applications/application-mortgage.entity.js +27 -0
  93. package/dist/entities/applications/application-note.entity.d.ts +36 -0
  94. package/dist/entities/applications/application-note.entity.d.ts.map +1 -0
  95. package/dist/entities/applications/application-note.entity.js +5 -0
  96. package/dist/entities/applications/application-offer.entity.d.ts +8 -0
  97. package/dist/entities/applications/application-offer.entity.d.ts.map +1 -0
  98. package/dist/entities/applications/application-offer.entity.js +5 -0
  99. package/dist/entities/applications/application-onboarding.entity.d.ts +11 -0
  100. package/dist/entities/applications/application-onboarding.entity.d.ts.map +1 -0
  101. package/dist/entities/applications/application-onboarding.entity.js +5 -0
  102. package/dist/entities/applications/application-product.entity.d.ts +33 -0
  103. package/dist/entities/applications/application-product.entity.d.ts.map +1 -0
  104. package/dist/entities/applications/application-product.entity.js +5 -0
  105. package/dist/entities/applications/application-rationale.entity.d.ts +51 -0
  106. package/dist/entities/applications/application-rationale.entity.d.ts.map +1 -0
  107. package/dist/entities/applications/application-rationale.entity.js +5 -0
  108. package/dist/entities/applications/application-risk-narrative.entity.d.ts +17 -0
  109. package/dist/entities/applications/application-risk-narrative.entity.d.ts.map +1 -0
  110. package/dist/entities/applications/application-risk-narrative.entity.js +5 -0
  111. package/dist/entities/applications/application-valuation.entity.d.ts +18 -0
  112. package/dist/entities/applications/application-valuation.entity.d.ts.map +1 -0
  113. package/dist/entities/applications/application-valuation.entity.js +5 -0
  114. package/dist/entities/applications/application.entity.d.ts +99 -0
  115. package/dist/entities/applications/application.entity.d.ts.map +1 -0
  116. package/dist/entities/applications/application.entity.js +66 -0
  117. package/dist/entities/applications/broker.entity.d.ts +23 -0
  118. package/dist/entities/applications/broker.entity.d.ts.map +1 -0
  119. package/dist/entities/applications/broker.entity.js +5 -0
  120. package/dist/entities/applications/checklist-item.entity.d.ts +47 -0
  121. package/dist/entities/applications/checklist-item.entity.d.ts.map +1 -0
  122. package/dist/entities/applications/checklist-item.entity.js +5 -0
  123. package/dist/entities/applications/company.entity.d.ts +77 -0
  124. package/dist/entities/applications/company.entity.d.ts.map +1 -0
  125. package/dist/entities/applications/company.entity.js +23 -0
  126. package/dist/entities/applications/credit-profile.entity.d.ts +11 -0
  127. package/dist/entities/applications/credit-profile.entity.d.ts.map +1 -0
  128. package/dist/entities/applications/credit-profile.entity.js +5 -0
  129. package/dist/entities/applications/index.d.ts +25 -0
  130. package/dist/entities/applications/index.d.ts.map +1 -0
  131. package/dist/entities/applications/index.js +23 -0
  132. package/dist/entities/applications/product-features.entity.d.ts +54 -0
  133. package/dist/entities/applications/product-features.entity.d.ts.map +1 -0
  134. package/dist/entities/applications/product-features.entity.js +5 -0
  135. package/dist/entities/applications/solicitor.entity.d.ts +33 -0
  136. package/dist/entities/applications/solicitor.entity.d.ts.map +1 -0
  137. package/dist/entities/applications/solicitor.entity.js +5 -0
  138. package/dist/entities/index.d.ts +10 -0
  139. package/dist/entities/index.d.ts.map +1 -0
  140. package/dist/entities/index.js +10 -0
  141. package/dist/entities/prisma.d.ts +3 -0
  142. package/dist/entities/prisma.d.ts.map +1 -0
  143. package/dist/entities/prisma.js +10 -0
  144. package/dist/entities/product-catalogues/index.d.ts +8 -0
  145. package/dist/entities/product-catalogues/index.d.ts.map +1 -0
  146. package/dist/entities/product-catalogues/index.js +6 -0
  147. package/dist/entities/product-catalogues/product-catalogue.entity.d.ts +22 -0
  148. package/dist/entities/product-catalogues/product-catalogue.entity.d.ts.map +1 -0
  149. package/dist/entities/product-catalogues/product-catalogue.entity.js +5 -0
  150. package/dist/entities/product-catalogues/product-definition.entity.d.ts +16 -0
  151. package/dist/entities/product-catalogues/product-definition.entity.d.ts.map +1 -0
  152. package/dist/entities/product-catalogues/product-definition.entity.js +5 -0
  153. package/dist/entities/product-catalogues/product-variant.entity.d.ts +14 -0
  154. package/dist/entities/product-catalogues/product-variant.entity.d.ts.map +1 -0
  155. package/dist/entities/product-catalogues/product-variant.entity.js +5 -0
  156. package/dist/entities/product-catalogues/product.entity.d.ts +11 -0
  157. package/dist/entities/product-catalogues/product.entity.d.ts.map +1 -0
  158. package/dist/entities/product-catalogues/product.entity.js +5 -0
  159. package/dist/entities/product-catalogues/rule.entity.d.ts +21 -0
  160. package/dist/entities/product-catalogues/rule.entity.d.ts.map +1 -0
  161. package/dist/entities/product-catalogues/rule.entity.js +5 -0
  162. package/dist/entities/properties/data-street.entity.d.ts +22 -0
  163. package/dist/entities/properties/data-street.entity.d.ts.map +1 -0
  164. package/dist/entities/properties/data-street.entity.js +5 -0
  165. package/dist/entities/properties/index.d.ts +6 -0
  166. package/dist/entities/properties/index.d.ts.map +1 -0
  167. package/dist/entities/properties/index.js +4 -0
  168. package/dist/entities/properties/property.entity.d.ts +30 -0
  169. package/dist/entities/properties/property.entity.d.ts.map +1 -0
  170. package/dist/entities/properties/property.entity.js +5 -0
  171. package/dist/entities/properties/security.entity.d.ts +57 -0
  172. package/dist/entities/properties/security.entity.d.ts.map +1 -0
  173. package/dist/entities/properties/security.entity.js +5 -0
  174. package/dist/entities/shared/alert.entity.d.ts +14 -0
  175. package/dist/entities/shared/alert.entity.d.ts.map +1 -0
  176. package/dist/entities/shared/alert.entity.js +5 -0
  177. package/dist/entities/shared/apprivo-sync-journey.entity.d.ts +16 -0
  178. package/dist/entities/shared/apprivo-sync-journey.entity.d.ts.map +1 -0
  179. package/dist/entities/shared/apprivo-sync-journey.entity.js +5 -0
  180. package/dist/entities/shared/checklist.entity.d.ts +15 -0
  181. package/dist/entities/shared/checklist.entity.d.ts.map +1 -0
  182. package/dist/entities/shared/checklist.entity.js +5 -0
  183. package/dist/entities/shared/document-type.entity.d.ts +9 -0
  184. package/dist/entities/shared/document-type.entity.d.ts.map +1 -0
  185. package/dist/entities/shared/document-type.entity.js +5 -0
  186. package/dist/entities/shared/index.d.ts +12 -0
  187. package/dist/entities/shared/index.d.ts.map +1 -0
  188. package/dist/entities/shared/index.js +10 -0
  189. package/dist/entities/shared/job-run.entity.d.ts +11 -0
  190. package/dist/entities/shared/job-run.entity.d.ts.map +1 -0
  191. package/dist/entities/shared/job-run.entity.js +5 -0
  192. package/dist/entities/shared/job-setting.entity.d.ts +11 -0
  193. package/dist/entities/shared/job-setting.entity.d.ts.map +1 -0
  194. package/dist/entities/shared/job-setting.entity.js +5 -0
  195. package/dist/entities/shared/lookup-group.entity.d.ts +11 -0
  196. package/dist/entities/shared/lookup-group.entity.d.ts.map +1 -0
  197. package/dist/entities/shared/lookup-group.entity.js +5 -0
  198. package/dist/entities/shared/lookup.entity.d.ts +14 -0
  199. package/dist/entities/shared/lookup.entity.d.ts.map +1 -0
  200. package/dist/entities/shared/lookup.entity.js +5 -0
  201. package/dist/entities/shared/system-parameter.entity.d.ts +10 -0
  202. package/dist/entities/shared/system-parameter.entity.d.ts.map +1 -0
  203. package/dist/entities/shared/system-parameter.entity.js +5 -0
  204. package/dist/entities/underwriter/index.d.ts +4 -0
  205. package/dist/entities/underwriter/index.d.ts.map +1 -0
  206. package/dist/entities/underwriter/index.js +2 -0
  207. package/dist/entities/underwriter/underwriter.entity.d.ts +16 -0
  208. package/dist/entities/underwriter/underwriter.entity.d.ts.map +1 -0
  209. package/dist/entities/underwriter/underwriter.entity.js +5 -0
  210. package/dist/entities/users/auth-log.entity.d.ts +11 -0
  211. package/dist/entities/users/auth-log.entity.d.ts.map +1 -0
  212. package/dist/entities/users/auth-log.entity.js +5 -0
  213. package/dist/entities/users/index.d.ts +8 -0
  214. package/dist/entities/users/index.d.ts.map +1 -0
  215. package/dist/entities/users/index.js +6 -0
  216. package/dist/entities/users/permission.entity.d.ts +12 -0
  217. package/dist/entities/users/permission.entity.d.ts.map +1 -0
  218. package/dist/entities/users/permission.entity.js +5 -0
  219. package/dist/entities/users/role-group.entity.d.ts +12 -0
  220. package/dist/entities/users/role-group.entity.d.ts.map +1 -0
  221. package/dist/entities/users/role-group.entity.js +5 -0
  222. package/dist/entities/users/role.entity.d.ts +14 -0
  223. package/dist/entities/users/role.entity.d.ts.map +1 -0
  224. package/dist/entities/users/role.entity.js +5 -0
  225. package/dist/entities/users/user.entity.d.ts +35 -0
  226. package/dist/entities/users/user.entity.d.ts.map +1 -0
  227. package/dist/entities/users/user.entity.js +10 -0
  228. package/package.json +1 -1
@@ -0,0 +1,5 @@
1
+ export class ApplicationRiskNarrativeEntity {
2
+ constructor(partial) {
3
+ Object.assign(this, partial);
4
+ }
5
+ }
@@ -0,0 +1,18 @@
1
+ export declare class ApplicationValuationEntity {
2
+ id: string;
3
+ amount?: string;
4
+ epcRating: string;
5
+ epcScore?: string;
6
+ estimatedRentalValue?: string;
7
+ instructionId: string;
8
+ instructionStatus: string;
9
+ instructionStatusComment: string;
10
+ isManual: string;
11
+ squareMetres?: string;
12
+ valuerNotes: string;
13
+ version: string;
14
+ createdAt: Date;
15
+ updatedAt: Date;
16
+ constructor(partial: Partial<ApplicationValuationEntity>);
17
+ }
18
+ //# sourceMappingURL=application-valuation.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application-valuation.entity.d.ts","sourceRoot":"","sources":["../../../entities/applications/application-valuation.entity.ts"],"names":[],"mappings":"AAAA,qBAAa,0BAA0B;IACnC,EAAE,EAAG,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAG,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,aAAa,EAAG,MAAM,CAAC;IACvB,iBAAiB,EAAG,MAAM,CAAC;IAC3B,wBAAwB,EAAG,MAAM,CAAC;IAClC,QAAQ,EAAG,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,EAAG,MAAM,CAAC;IACrB,OAAO,EAAG,MAAM,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;gBAEL,OAAO,EAAE,OAAO,CAAC,0BAA0B,CAAC;CAG3D"}
@@ -0,0 +1,5 @@
1
+ export class ApplicationValuationEntity {
2
+ constructor(partial) {
3
+ Object.assign(this, partial);
4
+ }
5
+ }
@@ -0,0 +1,99 @@
1
+ import { LookupEntity } from '../shared/lookup.entity';
2
+ import { BrokerEntity } from './broker.entity';
3
+ import { SecurityEntity } from '../properties/security.entity';
4
+ import { SolicitorEntity } from './solicitor.entity';
5
+ import { ProductEntity } from '../product-catalogues/product.entity';
6
+ import { ApplicationDirectDebitEntity } from './application-direct-debit.entity';
7
+ import { ApplicationMortgageEntity } from './application-mortgage.entity';
8
+ import { ApplicationCompanyEntity } from './application-company.entity';
9
+ import { ApplicationRationaleEntity } from './application-rationale.entity';
10
+ import { ApplicantEntity } from '../applicants/applicant.entity';
11
+ import { PropertyEntity } from '../properties/property.entity';
12
+ export declare class ApplicationEntity {
13
+ id: string;
14
+ queueId: string[];
15
+ assignedToUserId?: string;
16
+ applicationId: string;
17
+ isApplicationFeePaid: string;
18
+ applicationNumber: string;
19
+ applicationTypeLid: string;
20
+ bankSolicitor: string;
21
+ brokerId: string;
22
+ caseManager: string;
23
+ caseManagerAccepted: string;
24
+ completedReason: string;
25
+ isIntendToOccupy: string;
26
+ introducer: string;
27
+ isIntroducerSubmission: string;
28
+ isBrokerAssigned: string;
29
+ isFinanceRecommendedToApplicant: string;
30
+ isWorkflowTaskCreated: string;
31
+ lastUpdated?: string;
32
+ lendingTypeLid: string;
33
+ networkClubName: string;
34
+ isNetworkClubSubmission: string;
35
+ newReason: string;
36
+ purchaseTypeLid: string;
37
+ rejectedReason: string;
38
+ repaymentTypeLid: string;
39
+ selectedProduct?: string;
40
+ sourceOfWealthLids: string[];
41
+ sowBusiness: string;
42
+ sowInheritance: string;
43
+ sowOther: string;
44
+ sowProperty: string;
45
+ sowSalary: string;
46
+ statusLid: string;
47
+ submitReason: string;
48
+ submittedDate?: string;
49
+ underwriter: string;
50
+ isValuationFeePaid: string;
51
+ withdrawalReason: string;
52
+ withdrawalReasonCode: string;
53
+ productId?: string;
54
+ securityId: string;
55
+ solicitorId: string;
56
+ isActive: string;
57
+ isUkResident: string;
58
+ riskRating?: string;
59
+ directDebitId?: string;
60
+ mortgageId?: string;
61
+ companyId?: string;
62
+ rationaleId?: string;
63
+ newAuditRecordsCount: string;
64
+ currentApprivoAuditId?: string;
65
+ propertyIds: string[];
66
+ createdAt: Date;
67
+ updatedAt: Date;
68
+ applicationType?: LookupEntity;
69
+ lendingType?: LookupEntity;
70
+ purchaseType?: LookupEntity;
71
+ status?: LookupEntity;
72
+ repaymentType?: LookupEntity;
73
+ broker?: BrokerEntity;
74
+ security?: SecurityEntity;
75
+ solicitor?: SolicitorEntity;
76
+ product?: ProductEntity;
77
+ directDebit?: ApplicationDirectDebitEntity;
78
+ mortgage?: ApplicationMortgageEntity;
79
+ company?: ApplicationCompanyEntity;
80
+ rationale?: ApplicationRationaleEntity;
81
+ applicants?: ApplicantEntity[];
82
+ sourceOfWealth?: LookupEntity[];
83
+ properties?: PropertyEntity[];
84
+ constructor(partial: Partial<ApplicationEntity>);
85
+ get noOfApplicants(): number;
86
+ get applicationTypeName(): string | null;
87
+ get lendingTypeName(): string | null;
88
+ get purchaseTypeName(): string | null;
89
+ get statusName(): string | null;
90
+ get ltv(): string | null;
91
+ get submittedDateFormatted(): string | null;
92
+ get brokerName(): string | null;
93
+ get brokerEmail(): string | null;
94
+ get solicitorName(): string | null;
95
+ get solicitorEmail(): string | null;
96
+ get brokerPhone(): string | null;
97
+ get solicitorPhone(): string | null;
98
+ }
99
+ //# sourceMappingURL=application.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"application.entity.d.ts","sourceRoot":"","sources":["../../../entities/applications/application.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CA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SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,WAAW,CAAC,EAAE,4BAA4B,CAAC;IAC3C,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IACrC,OAAO,CAAC,EAAE,wBAAwB,CAAC;IACnC,SAAS,CAAC,EAAE,0BAA0B,CAAC;IACvC,UAAU,CAAC,EAAE,eAAe,EAAE,CAAC;IAC/B,cAAc,CAAC,EAAE,YAAY,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;gBAElB,OAAO,EAAE,OAAO,CAAC,iBAAiB,CAAC;IAK/C,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED,IAAI,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAEvC;IAED,IAAI,eAAe,IAAI,MAAM,GAAG,IAAI,CAEnC;IAED,IAAI,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAEpC;IAED,IAAI,UAAU,IAAI,MAAM,GAAG,IAAI,CAE9B;IAED,IAAI,GAAG,IAAI,MAAM,GAAG,IAAI,CAevB;IAED,IAAI,sBAAsB,IAAI,MAAM,GAAG,IAAI,CAO1C;IAED,IAAI,UAAU,IAAI,MAAM,GAAG,IAAI,CAK9B;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,IAAI,CAE/B;IAED,IAAI,aAAa,IAAI,MAAM,GAAG,IAAI,CAEjC;IAED,IAAI,cAAc,IAAI,MAAM,GAAG,IAAI,CAElC;IAED,IAAI,WAAW,IAAI,MAAM,GAAG,IAAI,CAE/B;IAED,IAAI,cAAc,IAAI,MAAM,GAAG,IAAI,CAElC;CACJ"}
@@ -0,0 +1,66 @@
1
+ export class ApplicationEntity {
2
+ constructor(partial) {
3
+ Object.assign(this, partial);
4
+ }
5
+ // Virtual properties from Mongoose model
6
+ get noOfApplicants() {
7
+ return this.applicants?.length ?? 0;
8
+ }
9
+ get applicationTypeName() {
10
+ return this.applicationType?.name ?? null;
11
+ }
12
+ get lendingTypeName() {
13
+ return this.lendingType?.name ?? null;
14
+ }
15
+ get purchaseTypeName() {
16
+ return this.purchaseType?.name ?? null;
17
+ }
18
+ get statusName() {
19
+ return this.status?.name ?? null;
20
+ }
21
+ get ltv() {
22
+ if (this.mortgage?.purchasePrice && this.mortgage?.loanRequired) {
23
+ const parseCurrency = (value) => {
24
+ if (typeof value === 'string') {
25
+ return parseFloat(value.replace(/[^0-9.-]+/g, ""));
26
+ }
27
+ return value;
28
+ };
29
+ const parsedPurchasePrice = parseCurrency(this.mortgage.purchasePrice);
30
+ const parsedLoanRequired = parseCurrency(this.mortgage.loanRequired);
31
+ const ltv = (parsedLoanRequired / parsedPurchasePrice) * 100;
32
+ return ltv.toFixed(2) + "%";
33
+ }
34
+ return null;
35
+ }
36
+ get submittedDateFormatted() {
37
+ if (!this.submittedDate)
38
+ return null;
39
+ const date = new Date(this.submittedDate);
40
+ const day = String(date.getDate()).padStart(2, '0');
41
+ const month = String(date.getMonth() + 1).padStart(2, '0');
42
+ const year = date.getFullYear();
43
+ return `${day}-${month}-${year}`;
44
+ }
45
+ get brokerName() {
46
+ if (this.broker?.firstName && this.broker?.lastName) {
47
+ return `${this.broker.firstName} ${this.broker.lastName}`;
48
+ }
49
+ return null;
50
+ }
51
+ get brokerEmail() {
52
+ return this.broker?.email ?? null;
53
+ }
54
+ get solicitorName() {
55
+ return this.solicitor?.nameOfAccountHolder ?? null;
56
+ }
57
+ get solicitorEmail() {
58
+ return this.solicitor?.email ?? null;
59
+ }
60
+ get brokerPhone() {
61
+ return this.broker?.mobileTelephone ?? null;
62
+ }
63
+ get solicitorPhone() {
64
+ return this.solicitor?.telephone ?? null;
65
+ }
66
+ }
@@ -0,0 +1,23 @@
1
+ export declare class BrokerEntity {
2
+ id: string;
3
+ brokerId?: string;
4
+ landlinePhone?: string;
5
+ mobileTelephone?: string;
6
+ addressPostCode?: string;
7
+ addressLine1?: string;
8
+ addressLine2?: string;
9
+ addressLine3?: string;
10
+ addressCity?: string;
11
+ addressCountry?: string;
12
+ tradingName?: string;
13
+ fcaNumber?: string;
14
+ brokerType?: string;
15
+ email?: string;
16
+ network?: string;
17
+ firstName?: string;
18
+ lastName?: string;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ constructor(partial: Partial<BrokerEntity>);
22
+ }
23
+ //# sourceMappingURL=broker.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"broker.entity.d.ts","sourceRoot":"","sources":["../../../entities/applications/broker.entity.ts"],"names":[],"mappings":"AAAA,qBAAa,YAAY;IACrB,EAAE,EAAG,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;gBAEL,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC;CAG7C"}
@@ -0,0 +1,5 @@
1
+ export class BrokerEntity {
2
+ constructor(partial) {
3
+ Object.assign(this, partial);
4
+ }
5
+ }
@@ -0,0 +1,47 @@
1
+ export declare class ChecklistItemEntity {
2
+ id: string;
3
+ additionalOfferConditions: string;
4
+ appFormSignedNotes: string;
5
+ applicationCompletionDate?: string;
6
+ buildingInsuranceInsurerName: string;
7
+ buildingInsurancePolicyNumber: string;
8
+ buildingInsuranceReceived: string;
9
+ buildingInsuranceRenewalDate?: string;
10
+ dateOfValuationReceived?: string;
11
+ feePaidDocumentsDownloaded: string;
12
+ feePaidNotes: string;
13
+ fundsNotes: string;
14
+ fundsReleasedDate?: string;
15
+ hasAllDocsReviewedAndAccepted: string;
16
+ idnPorReceived: string;
17
+ legalCompletionDate?: string;
18
+ legalDocsReceived: string;
19
+ legalNotes: string;
20
+ ninetyDaysValuationAmount: string;
21
+ offerConditionsItems: string;
22
+ offerConditionsMet: string;
23
+ offerNotes: string;
24
+ offerOfferPrepared: string;
25
+ offerOfferReviewed: string;
26
+ offerSignedNotes: string;
27
+ offerSolicitorInstructedDate?: string;
28
+ packagingNotes: string;
29
+ preOfferNotes: string;
30
+ reinstatementAmount: string;
31
+ rotReceived: string;
32
+ rotReceivedDate?: string;
33
+ salesContractReceived: string;
34
+ underwritingNotes: string;
35
+ underwritingValuationNotes: string;
36
+ valuationAccepted?: string;
37
+ valuationFurtherConditions: string;
38
+ valuationNotes: string;
39
+ valuationReceived?: string;
40
+ valuationRequestedDate?: string;
41
+ valuationScheduledDate?: string;
42
+ valuationSurveyorDetails: string;
43
+ createdAt: Date;
44
+ updatedAt: Date;
45
+ constructor(partial: Partial<ChecklistItemEntity>);
46
+ }
47
+ //# sourceMappingURL=checklist-item.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checklist-item.entity.d.ts","sourceRoot":"","sources":["../../../entities/applications/checklist-item.entity.ts"],"names":[],"mappings":"AAAA,qBAAa,mBAAmB;IAC5B,EAAE,EAAG,MAAM,CAAC;IACZ,yBAAyB,EAAG,MAAM,CAAC;IACnC,kBAAkB,EAAG,MAAM,CAAC;IAC5B,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,4BAA4B,EAAG,MAAM,CAAC;IACtC,6BAA6B,EAAG,M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jB,SAAS,EAAG,IAAI,CAAC;gBAEL,OAAO,EAAE,OAAO,CAAC,mBAAmB,CAAC;CAGpD"}
@@ -0,0 +1,5 @@
1
+ export class ChecklistItemEntity {
2
+ constructor(partial) {
3
+ Object.assign(this, partial);
4
+ }
5
+ }
@@ -0,0 +1,77 @@
1
+ import { ApplicantEntity } from '../applicants/applicant.entity';
2
+ import { LookupEntity } from '../shared/lookup.entity';
3
+ import { ApplicationEntity } from "./application.entity";
4
+ export declare class ApplicantShareholdingEntity {
5
+ id: string;
6
+ companyId: string;
7
+ applicantId: string;
8
+ applicantName: string;
9
+ directorShareholderLid?: string;
10
+ shareholding?: number;
11
+ createdAt: Date;
12
+ updatedAt: Date;
13
+ company?: CompanyEntity;
14
+ applicant?: ApplicantEntity;
15
+ directorShareholder?: LookupEntity;
16
+ constructor(partial: Partial<ApplicantShareholdingEntity>);
17
+ }
18
+ export declare class CompanyEntity {
19
+ id: string;
20
+ applicationId: string;
21
+ pageValidFlag: boolean;
22
+ registeredName: string;
23
+ businessTypeLid: string;
24
+ registeredNumber: number;
25
+ taxJurisdictionLid: string;
26
+ tradingSince?: string;
27
+ natureOfBusiness: string;
28
+ yearEnd?: string;
29
+ addressPostCode: string;
30
+ addressLine1: string;
31
+ addressLine2?: string;
32
+ addressLine3?: string;
33
+ addressCity?: string;
34
+ addressCountryLid: string;
35
+ applicationTypeLid: string;
36
+ yearEnd1: number;
37
+ turnoverYear1: number;
38
+ netProfitYear1: number;
39
+ yearEnd2: number;
40
+ turnoverYear2: number;
41
+ netProfitYear2: number;
42
+ yearEnd3: number;
43
+ turnoverYear3: number;
44
+ netProfitYear3: number;
45
+ companyCreditDefaults: string;
46
+ companyCountyCourtJudgment: string;
47
+ companySecuredArrears: string;
48
+ companyUnsecuredArrears: string;
49
+ companyBankruptcy: string;
50
+ companyBankruptcyYes: boolean;
51
+ companyBankruptcyNo: boolean;
52
+ companyCCJInLastThreeYearYes: boolean;
53
+ companyCCJInLastThreeYearNo: boolean;
54
+ companyDefaultsInLastYearYes: boolean;
55
+ companyDefaultsInLastYearNo: boolean;
56
+ companyAnyVoluntaryEnforcedPossessionYes: boolean;
57
+ companyAnyVoluntaryEnforcedPossessionNo: boolean;
58
+ doYouKnowRegisteredNumber: boolean;
59
+ sicCodes: string[];
60
+ epc: string;
61
+ remainingLease: string;
62
+ dateOfIncorporation?: string;
63
+ createdAt: Date;
64
+ updatedAt: Date;
65
+ application?: ApplicationEntity;
66
+ businessType?: LookupEntity;
67
+ taxJurisdiction?: LookupEntity;
68
+ addressCountry?: LookupEntity;
69
+ applicationType?: LookupEntity;
70
+ applicantShareholdings?: ApplicantShareholdingEntity[];
71
+ constructor(partial: Partial<CompanyEntity>);
72
+ get businessTypeName(): string | null;
73
+ get taxJurisdictionName(): string | null;
74
+ get addressCountryName(): string | null;
75
+ get applicationTypeName(): string | null;
76
+ }
77
+ //# sourceMappingURL=company.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"company.entity.d.ts","sourceRoot":"","sources":["../../../entities/applications/company.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzD,qBAAa,2BAA2B;IACpC,EAAE,EAAG,MAAM,CAAC;IACZ,SAAS,EAAG,MAAM,CAAC;IACnB,WAAW,EAAG,MAAM,CAAC;IACrB,aAAa,EAAG,MAAM,CAAC;IACvB,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IAGjB,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,mBAAmB,CAAC,EAAE,YAAY,CAAC;gBAEvB,OAAO,EAAE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EAAG,OAAO,CAAC;IACtC,wCAAwC,EAAG,OAAO,CAAC;IACnD,uCAAuC,EAAG,OAAO,CAAC;IAClD,yBAAyB,EAAG,OAAO,CAAC;IACpC,QAAQ,EAAG,MAAM,EAAE,CAAC;IACpB,GAAG,EAAG,MAAM,CAAC;IACb,cAAc,EAAG,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IAGjB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B,cAAc,CAAC,EAAE,YAAY,CAAC;IAC9B,eAAe,CAAC,EAAE,YAAY,CAAC;IAC/B,sBAAsB,CAAC,EAAE,2BAA2B,EAAE,CAAC;gBAE3C,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC;IAK3C,IAAI,gBAAgB,IAAI,MAAM,GAAG,IAAI,CAEpC;IAED,IAAI,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAEvC;IAED,IAAI,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAEtC;IAED,IAAI,mBAAmB,IAAI,MAAM,GAAG,IAAI,CAEvC;CACJ"}
@@ -0,0 +1,23 @@
1
+ export class ApplicantShareholdingEntity {
2
+ constructor(partial) {
3
+ Object.assign(this, partial);
4
+ }
5
+ }
6
+ export class CompanyEntity {
7
+ constructor(partial) {
8
+ Object.assign(this, partial);
9
+ }
10
+ // Virtual fields from Mongoose model
11
+ get businessTypeName() {
12
+ return this.businessType?.name ?? null;
13
+ }
14
+ get taxJurisdictionName() {
15
+ return this.taxJurisdiction?.name ?? null;
16
+ }
17
+ get addressCountryName() {
18
+ return this.addressCountry?.name ?? null;
19
+ }
20
+ get applicationTypeName() {
21
+ return this.applicationType?.name ?? null;
22
+ }
23
+ }
@@ -0,0 +1,11 @@
1
+ export declare class CreditProfileEntity {
2
+ id: string;
3
+ anyVoluntaryEnforcedPossessionNo: string;
4
+ bankruptcyNo: string;
5
+ ccjInLastThreeYearNo: string;
6
+ defaultsInLastYearNo: string;
7
+ createdAt: Date;
8
+ updatedAt: Date;
9
+ constructor(partial: Partial<CreditProfileEntity>);
10
+ }
11
+ //# sourceMappingURL=credit-profile.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credit-profile.entity.d.ts","sourceRoot":"","sources":["../../../entities/applications/credit-profile.entity.ts"],"names":[],"mappings":"AAAA,qBAAa,mBAAmB;IAC5B,EAAE,EAAG,MAAM,CAAC;IACZ,gCAAgC,EAAG,MAAM,CAAC;IAC1C,YAAY,EAAG,MAAM,CAAC;IACtB,oBAAoB,EAAG,MAAM,CAAC;IAC9B,oBAAoB,EAAG,MAAM,CAAC;IAC9B,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;gBAEL,OAAO,EAAE,OAAO,CAAC,mBAAmB,CAAC;CAGpD"}
@@ -0,0 +1,5 @@
1
+ export class CreditProfileEntity {
2
+ constructor(partial) {
3
+ Object.assign(this, partial);
4
+ }
5
+ }
@@ -0,0 +1,25 @@
1
+ import type { Application, ProductFeatures, Solicitor, Broker, ChecklistItem, Company, CreditProfile, ApplicationRationale, ApplicationRiskNarrative, ApplicationValuation, ApplicationProduct, ApplicationNote, ApplicationOffer, ApplicationOnboarding, ApplicationIllustration, ApplicationLegal, ApplicationMortgage, ApplicationDocument, ApplicationFieldConfig, ApplicationAudit, ApplicationCompany, ApplicationDirectDebit } from '@prisma/client';
2
+ export type { Application, ProductFeatures, Solicitor, Broker, ChecklistItem, Company, CreditProfile, ApplicationRationale, ApplicationRiskNarrative, ApplicationValuation, ApplicationProduct, ApplicationNote, ApplicationOffer, ApplicationOnboarding, ApplicationIllustration, ApplicationLegal, ApplicationMortgage, ApplicationDocument, ApplicationFieldConfig, ApplicationAudit, ApplicationCompany, ApplicationDirectDebit };
3
+ export * from './application.entity';
4
+ export * from './product-features.entity';
5
+ export * from './solicitor.entity';
6
+ export * from './broker.entity';
7
+ export * from './checklist-item.entity';
8
+ export * from './company.entity';
9
+ export * from './credit-profile.entity';
10
+ export * from './application-rationale.entity';
11
+ export * from './application-risk-narrative.entity';
12
+ export * from './application-valuation.entity';
13
+ export * from './application-product.entity';
14
+ export * from './application-note.entity';
15
+ export * from './application-offer.entity';
16
+ export * from './application-onboarding.entity';
17
+ export * from './application-illustration.entity';
18
+ export * from './application-legal.entity';
19
+ export * from './application-mortgage.entity';
20
+ export * from './application-document.entity';
21
+ export * from './application-fieldconfig.entity';
22
+ export * from './application-audit.entity';
23
+ export * from './application-company.entity';
24
+ export * from './application-direct-debit.entity';
25
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../entities/applications/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACR,WAAW,EACX,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,OAAO,EACP,aAAa,EACb,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACzB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EACR,WAAW,EACX,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,OAAO,EACP,aAAa,EACb,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,EACvB,gBAAgB,EAChB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,sBAAsB,EACzB,CAAC;AAGF,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mCAAmC,CAAC"}
@@ -0,0 +1,23 @@
1
+ // Export entity classes
2
+ export * from './application.entity';
3
+ export * from './product-features.entity';
4
+ export * from './solicitor.entity';
5
+ export * from './broker.entity';
6
+ export * from './checklist-item.entity';
7
+ export * from './company.entity';
8
+ export * from './credit-profile.entity';
9
+ export * from './application-rationale.entity';
10
+ export * from './application-risk-narrative.entity';
11
+ export * from './application-valuation.entity';
12
+ export * from './application-product.entity';
13
+ export * from './application-note.entity';
14
+ export * from './application-offer.entity';
15
+ export * from './application-onboarding.entity';
16
+ export * from './application-illustration.entity';
17
+ export * from './application-legal.entity';
18
+ export * from './application-mortgage.entity';
19
+ export * from './application-document.entity';
20
+ export * from './application-fieldconfig.entity';
21
+ export * from './application-audit.entity';
22
+ export * from './application-company.entity';
23
+ export * from './application-direct-debit.entity';
@@ -0,0 +1,54 @@
1
+ export declare class ProductFeaturesEntity {
2
+ id: string;
3
+ name: string;
4
+ clientAdvance: string;
5
+ ltv: string;
6
+ repayment: string;
7
+ variableRepayment: string;
8
+ reversionRateWithoutBaseRate?: string;
9
+ totalReversionRate?: string;
10
+ initialRate: string;
11
+ fixedTerm: string;
12
+ fixedTermEndDate?: string;
13
+ baseRate?: string;
14
+ productRate?: string;
15
+ apr?: string;
16
+ rentalCoverage?: string;
17
+ repaymentType?: string;
18
+ applicationCategory?: string;
19
+ securityType?: string;
20
+ erc?: string;
21
+ loanType?: string;
22
+ maxLtvLimit?: string;
23
+ reimbursement?: string;
24
+ reimbursementPerPound?: string;
25
+ stressedApr?: string;
26
+ stressedRate?: string;
27
+ stressedRepayment?: string;
28
+ liborFloorRate?: string;
29
+ totalTermInMonths?: string;
30
+ chargeType: string;
31
+ productCategory: string;
32
+ ercCode: string;
33
+ variableTerm?: string;
34
+ totalFeePayable?: string;
35
+ dipIssueDate?: string;
36
+ estimatedCompletionDate?: string;
37
+ dipExpiryDate?: string;
38
+ fixedRepaymentUntillDate?: string;
39
+ rentalReviewDate?: string;
40
+ totalReimbursementWithFee?: string;
41
+ finalRentPayment?: string;
42
+ clientDeposit?: string;
43
+ firstRentPayment?: string;
44
+ ercFeatures?: any;
45
+ icr?: string;
46
+ ufssProductCode?: string;
47
+ ufssInterestRateCode?: string;
48
+ stressedPayment?: string;
49
+ stressedPaymentRate?: string;
50
+ createdAt: Date;
51
+ updatedAt: Date;
52
+ constructor(partial: Partial<ProductFeaturesEntity>);
53
+ }
54
+ //# sourceMappingURL=product-features.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"product-features.entity.d.ts","sourceRoot":"","sources":["../../../entities/applications/product-features.entity.ts"],"names":[],"mappings":"AAAA,qBAAa,qBAAqB;IAC9B,EAAE,EAAG,MAAM,CAAC;IACZ,IAAI,EAAG,MAAM,CAAC;IACd,aAAa,EAAG,MAAM,CAAC;IACvB,GAAG,EAAG,MAAM,CAAC;IACb,SAAS,EAAG,MAAM,CAAC;IACnB,iBAAiB,EAAG,MAAM,CAAC;IAC3B,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,WA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AAW,CAAC,EAAE,GAAG,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;gBAEL,OAAO,EAAE,OAAO,CAAC,qBAAqB,CAAC;CAGtD"}
@@ -0,0 +1,5 @@
1
+ export class ProductFeaturesEntity {
2
+ constructor(partial) {
3
+ Object.assign(this, partial);
4
+ }
5
+ }
@@ -0,0 +1,33 @@
1
+ import { LookupEntity } from '../shared/lookup.entity';
2
+ import { ApplicationEntity } from "./application.entity";
3
+ export declare class SolicitorEntity {
4
+ id: string;
5
+ applicationId: string;
6
+ pageValidFlag: boolean;
7
+ accountNumber?: number;
8
+ addressCity?: string;
9
+ addressCountryLid?: string;
10
+ addressLine1?: string;
11
+ addressLine2?: string;
12
+ addressLine3?: string;
13
+ addressPostCode?: string;
14
+ bankAddressLine1?: string;
15
+ bankAddressLine2?: string;
16
+ bankBranch?: string;
17
+ bankCity?: string;
18
+ contactPostcode?: string;
19
+ email?: string;
20
+ institution?: string;
21
+ nameOfAccountHolder?: string;
22
+ nameOfFirm?: string;
23
+ signatory?: string;
24
+ solicitorActing?: string;
25
+ sortCode?: string;
26
+ telephone?: string;
27
+ createdAt: Date;
28
+ updatedAt: Date;
29
+ application?: ApplicationEntity;
30
+ addressCountry?: LookupEntity;
31
+ constructor(partial: Partial<SolicitorEntity>);
32
+ }
33
+ //# sourceMappingURL=solicitor.entity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"solicitor.entity.d.ts","sourceRoot":"","sources":["../../../entities/applications/solicitor.entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAEzD,qBAAa,eAAe;IACxB,EAAE,EAAG,MAAM,CAAC;IACZ,aAAa,EAAG,MAAM,CAAC;IACvB,aAAa,EAAG,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAG,IAAI,CAAC;IACjB,SAAS,EAAG,IAAI,CAAC;IAGjB,WAAW,CAAC,EAAE,iBAAiB,CAAC;IAChC,cAAc,CAAC,EAAE,YAAY,CAAC;gBAElB,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC;CAGhD"}
@@ -0,0 +1,5 @@
1
+ export class SolicitorEntity {
2
+ constructor(partial) {
3
+ Object.assign(this, partial);
4
+ }
5
+ }
@@ -0,0 +1,10 @@
1
+ export { prisma } from './prisma';
2
+ export * as ApplicantEntities from './applicants';
3
+ export * as ApplicationEntities from './applications';
4
+ export * as ProductCatalogueEntities from './product-catalogues';
5
+ export * as PropertyEntities from './properties';
6
+ export * as SharedEntities from './shared';
7
+ export * as UnderwriterEntities from './underwriter';
8
+ export * as UserEntities from './users';
9
+ export type { PrismaClient } from '@prisma/client';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../entities/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,KAAK,iBAAiB,MAAM,cAAc,CAAC;AAClD,OAAO,KAAK,mBAAmB,MAAM,gBAAgB,CAAC;AACtD,OAAO,KAAK,wBAAwB,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,gBAAgB,MAAM,cAAc,CAAC;AACjD,OAAO,KAAK,cAAc,MAAM,UAAU,CAAC;AAC3C,OAAO,KAAK,mBAAmB,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,YAAY,MAAM,SAAS,CAAC;AAGxC,YAAY,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,10 @@
1
+ // Export Prisma client
2
+ export { prisma } from './prisma';
3
+ // Export all entities from each domain
4
+ export * as ApplicantEntities from './applicants';
5
+ export * as ApplicationEntities from './applications';
6
+ export * as ProductCatalogueEntities from './product-catalogues';
7
+ export * as PropertyEntities from './properties';
8
+ export * as SharedEntities from './shared';
9
+ export * as UnderwriterEntities from './underwriter';
10
+ export * as UserEntities from './users';
@@ -0,0 +1,3 @@
1
+ import { PrismaClient } from '@prisma/client';
2
+ export declare const prisma: PrismaClient<import(".prisma/client").Prisma.PrismaClientOptions, never, import("@prisma/client/runtime/library").DefaultArgs>;
3
+ //# sourceMappingURL=prisma.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prisma.d.ts","sourceRoot":"","sources":["../../entities/prisma.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAM9C,eAAO,MAAM,MAAM,gIAIb,CAAC"}