@dynamatix/gb-schemas 2.0.0 → 2.0.2

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 (210) hide show
  1. package/dist/applicants/applicant-commitment-creditCard.model.d.ts +26 -0
  2. package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
  3. package/dist/applicants/applicant-commitment-loan.model.d.ts +26 -0
  4. package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
  5. package/dist/applicants/applicant-commitment-mortgage.model.d.ts +26 -0
  6. package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
  7. package/dist/applicants/applicant-commitment-residence.model.d.ts +26 -0
  8. package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -1
  9. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +26 -0
  10. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
  11. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +26 -0
  12. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
  13. package/dist/applicants/applicant-credit-data.model.d.ts +27 -0
  14. package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -1
  15. package/dist/applicants/applicant-credit-profile.model.d.ts +27 -0
  16. package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -1
  17. package/dist/applicants/applicant-direct-debit.model.d.ts +27 -0
  18. package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -1
  19. package/dist/applicants/applicant-employment-income.model.d.ts +201 -0
  20. package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -0
  21. package/dist/applicants/applicant-employment-income.model.js +9 -0
  22. package/dist/applicants/applicant-employment.model.d.ts +26 -18
  23. package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
  24. package/dist/applicants/applicant-employment.model.js +0 -6
  25. package/dist/applicants/applicant-expenditure.model.d.ts +99 -50
  26. package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
  27. package/dist/applicants/applicant-expenditure.model.js +49 -18
  28. package/dist/applicants/applicant-income-source.model.d.ts +27 -0
  29. package/dist/applicants/applicant-income-source.model.d.ts.map +1 -1
  30. package/dist/applicants/applicant-income.model.d.ts +38 -0
  31. package/dist/applicants/applicant-income.model.d.ts.map +1 -1
  32. package/dist/applicants/applicant-income.model.js +5 -1
  33. package/dist/applicants/applicant-other-income.model.d.ts +26 -0
  34. package/dist/applicants/applicant-other-income.model.d.ts.map +1 -1
  35. package/dist/applicants/applicant-property-income.model.d.ts +26 -0
  36. package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
  37. package/dist/applicants/applicant-risk-narrative.model.d.ts +27 -0
  38. package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -1
  39. package/dist/applicants/applicant.model.d.ts +716 -3096
  40. package/dist/applicants/applicant.model.d.ts.map +1 -1
  41. package/dist/applicants/applicant.model.js +0 -2
  42. package/dist/applicants/index.d.ts +2 -0
  43. package/dist/applicants/index.d.ts.map +1 -1
  44. package/dist/applicants/index.js +2 -0
  45. package/dist/applications/application-audit.model.d.ts +27 -0
  46. package/dist/applications/application-audit.model.d.ts.map +1 -1
  47. package/dist/applications/application-checklist-Item.model.d.ts +27 -0
  48. package/dist/applications/application-checklist-Item.model.d.ts.map +1 -1
  49. package/dist/applications/application-company-model.d.ts +26 -0
  50. package/dist/applications/application-company-model.d.ts.map +1 -1
  51. package/dist/applications/application-credit-profile.model.d.ts +27 -0
  52. package/dist/applications/application-credit-profile.model.d.ts.map +1 -1
  53. package/dist/applications/application-direct-debit.model.d.ts +26 -0
  54. package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
  55. package/dist/applications/application-document.model.d.ts +27 -0
  56. package/dist/applications/application-document.model.d.ts.map +1 -1
  57. package/dist/applications/application-fieldconfig.model.d.ts +27 -0
  58. package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
  59. package/dist/applications/application-illustration-model.d.ts +27 -0
  60. package/dist/applications/application-illustration-model.d.ts.map +1 -1
  61. package/dist/applications/application-legal.model.d.ts +27 -0
  62. package/dist/applications/application-legal.model.d.ts.map +1 -1
  63. package/dist/applications/application-mortgage.model.d.ts +26 -0
  64. package/dist/applications/application-mortgage.model.d.ts.map +1 -1
  65. package/dist/applications/application-note.model.d.ts +27 -0
  66. package/dist/applications/application-note.model.d.ts.map +1 -1
  67. package/dist/applications/application-offer.model.d.ts +27 -0
  68. package/dist/applications/application-offer.model.d.ts.map +1 -1
  69. package/dist/applications/application-onboarding.model.d.ts +27 -0
  70. package/dist/applications/application-onboarding.model.d.ts.map +1 -1
  71. package/dist/applications/application-product.model.d.ts +27 -0
  72. package/dist/applications/application-product.model.d.ts.map +1 -1
  73. package/dist/applications/application-rationale.model.d.ts +27 -0
  74. package/dist/applications/application-rationale.model.d.ts.map +1 -1
  75. package/dist/applications/application-risk-narrative.model.d.ts +27 -0
  76. package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
  77. package/dist/applications/application-valuation.model.d.ts +27 -0
  78. package/dist/applications/application-valuation.model.d.ts.map +1 -1
  79. package/dist/applications/application.model.d.ts +27 -0
  80. package/dist/applications/application.model.d.ts.map +1 -1
  81. package/dist/applications/broker.model.d.ts +27 -0
  82. package/dist/applications/broker.model.d.ts.map +1 -1
  83. package/dist/applications/document.model.d.ts +27 -0
  84. package/dist/applications/document.model.d.ts.map +1 -1
  85. package/dist/applications/productfeatures.model.d.ts +27 -0
  86. package/dist/applications/productfeatures.model.d.ts.map +1 -1
  87. package/dist/applications/solicitor.model.d.ts +26 -0
  88. package/dist/applications/solicitor.model.d.ts.map +1 -1
  89. package/dist/entities/applicants/applicant.entity.d.ts +0 -3
  90. package/dist/entities/applicants/applicant.entity.d.ts.map +1 -1
  91. package/dist/entities/applicants/applicant.entity.js +0 -3
  92. package/dist/entities/applicants/employment.entity.d.ts +1 -3
  93. package/dist/entities/applicants/employment.entity.d.ts.map +1 -1
  94. package/dist/entities/applicants/employment.entity.js +1 -9
  95. package/dist/entities/applications/company.entity.d.ts +2 -2
  96. package/dist/entities/applications/solicitor.entity.d.ts +1 -1
  97. package/dist/entities/properties/property.entity.d.ts +2 -2
  98. package/dist/entities/properties/property.entity.d.ts.map +1 -1
  99. package/dist/product-catalogues/product-catalogue.model.d.ts +27 -0
  100. package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -1
  101. package/dist/product-catalogues/product-definitions.model.d.ts +27 -0
  102. package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -1
  103. package/dist/product-catalogues/product-variant.model.d.ts +27 -0
  104. package/dist/product-catalogues/product-variant.model.d.ts.map +1 -1
  105. package/dist/properties/property.model.d.ts +26 -0
  106. package/dist/properties/property.model.d.ts.map +1 -1
  107. package/dist/properties/security.model.d.ts +27 -0
  108. package/dist/properties/security.model.d.ts.map +1 -1
  109. package/dist/shared/alert.model.d.ts +27 -0
  110. package/dist/shared/alert.model.d.ts.map +1 -1
  111. package/dist/shared/apprivo-sync-journey.model.d.ts +27 -0
  112. package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -1
  113. package/dist/shared/checklist.model.d.ts +27 -0
  114. package/dist/shared/checklist.model.d.ts.map +1 -1
  115. package/dist/shared/document-type-model.d.ts +27 -0
  116. package/dist/shared/document-type-model.d.ts.map +1 -1
  117. package/dist/shared/job-run.model.d.ts +27 -0
  118. package/dist/shared/job-run.model.d.ts.map +1 -1
  119. package/dist/shared/job-setting.model.d.ts +27 -0
  120. package/dist/shared/job-setting.model.d.ts.map +1 -1
  121. package/dist/shared/lookup-group.model.d.ts +27 -0
  122. package/dist/shared/lookup-group.model.d.ts.map +1 -1
  123. package/dist/shared/lookup.model.d.ts +27 -0
  124. package/dist/shared/lookup.model.d.ts.map +1 -1
  125. package/dist/shared/schema-doc.model.d.ts +27 -0
  126. package/dist/shared/schema-doc.model.d.ts.map +1 -1
  127. package/dist/shared/system-parameter.model.d.ts +27 -0
  128. package/dist/shared/system-parameter.model.d.ts.map +1 -1
  129. package/dist/shared/task-document.model.d.ts +27 -0
  130. package/dist/shared/task-document.model.d.ts.map +1 -1
  131. package/dist/shared/task.model.d.ts +27 -0
  132. package/dist/shared/task.model.d.ts.map +1 -1
  133. package/dist/underwriter/underwriter.model.d.ts +27 -0
  134. package/dist/underwriter/underwriter.model.d.ts.map +1 -1
  135. package/dist/users/auth-log.model.d.ts +27 -0
  136. package/dist/users/auth-log.model.d.ts.map +1 -1
  137. package/dist/users/permission.model.d.ts +27 -0
  138. package/dist/users/permission.model.d.ts.map +1 -1
  139. package/dist/users/role-group.model.d.ts +27 -0
  140. package/dist/users/role-group.model.d.ts.map +1 -1
  141. package/dist/users/role.model.d.ts +27 -0
  142. package/dist/users/role.model.d.ts.map +1 -1
  143. package/dist/users/tasks.model.d.ts +27 -0
  144. package/dist/users/tasks.model.d.ts.map +1 -1
  145. package/dist/users/user.model.d.ts +27 -0
  146. package/dist/users/user.model.d.ts.map +1 -1
  147. package/dist/value-objects/pound.d.ts +26 -0
  148. package/dist/value-objects/pound.d.ts.map +1 -1
  149. package/dist/value-objects/sort-code.d.ts +26 -0
  150. package/dist/value-objects/sort-code.d.ts.map +1 -1
  151. package/entities/applicants/{credit-data.entity.ts → applicant-credit-data.entity.ts} +2 -2
  152. package/entities/{applications/credit-profile.entity.ts → applicants/applicant-credit-profile.entity.ts} +8 -2
  153. package/entities/applicants/applicant-employment-income.entity.ts +14 -0
  154. package/entities/applicants/{employment.entity.ts → applicant-employment.entity.ts} +1 -17
  155. package/entities/applicants/applicant-expenditure.entity.ts +15 -0
  156. package/entities/applicants/{income-source.entity.ts → applicant-income-source.entity.ts} +2 -2
  157. package/entities/applicants/{income.entity.ts → applicant-income.entity.ts} +9 -6
  158. package/entities/applicants/applicant.entity.ts +11 -17
  159. package/entities/applicants/index.ts +6 -6
  160. package/entities/{applicants/credit-profile.entity.ts → applications/application-credit-profile.entity.ts} +2 -2
  161. package/entities/applications/company.entity.ts +2 -2
  162. package/entities/applications/index.ts +1 -1
  163. package/entities/applications/solicitor.entity.ts +1 -1
  164. package/entities/properties/property.entity.ts +2 -2
  165. package/package.json +1 -1
  166. package/prisma/applicants/{credit-data.prisma → applicant-credit-data.prisma} +3 -3
  167. package/prisma/applicants/{credit-profile.prisma → applicant-credit-profile.prisma} +3 -2
  168. package/prisma/applicants/applicant-employment-income.prisma +14 -0
  169. package/prisma/applicants/applicant-employment.prisma +54 -0
  170. package/prisma/applicants/applicant-expenditure.prisma +14 -0
  171. package/prisma/applicants/{income-source.prisma → applicant-income-source.prisma} +3 -3
  172. package/prisma/applicants/{income.prisma → applicant-income.prisma} +10 -4
  173. package/prisma/applicants/{other-income.prisma → applicant-other-income.prisma} +2 -2
  174. package/prisma/applicants/applicant-property-income.prisma +21 -0
  175. package/prisma/applicants/applicant.prisma +17 -12
  176. package/prisma/applicants/credit-card-commitment.prisma +1 -1
  177. package/prisma/applicants/loan-commitment.prisma +2 -1
  178. package/prisma/applicants/mortgage-commitment.prisma +7 -6
  179. package/prisma/applicants/residence-commitment.prisma +7 -6
  180. package/prisma/applicants/secured-loan-commitment.prisma +1 -1
  181. package/prisma/applicants/unsecured-loan-commitment.prisma +1 -1
  182. package/prisma/applications/application-company.prisma +7 -5
  183. package/prisma/applications/{credit-profile.prisma → application-credit-profile.prisma} +6 -2
  184. package/prisma/applications/application-direct-debit.prisma +7 -5
  185. package/prisma/applications/application-mortgage.prisma +1 -1
  186. package/prisma/applications/application-product.prisma +1 -1
  187. package/prisma/applications/application-rationale.prisma +1 -1
  188. package/prisma/applications/application.prisma +28 -12
  189. package/prisma/applications/broker.prisma +4 -0
  190. package/prisma/applications/company.prisma +7 -7
  191. package/prisma/broker.entity.ts +8 -0
  192. package/prisma/migrations/{20250430085825_initial_migration → 20250501070203_initial_migration}/migration.sql +355 -401
  193. package/prisma/properties/property.prisma +1 -1
  194. package/prisma/schema.prisma +1229 -1283
  195. package/prisma/shared/alert.prisma +1 -1
  196. package/prisma/shared/lookup.prisma +19 -24
  197. package/prisma/underwriter/underwriter.prisma +2 -2
  198. package/prisma/users/user.prisma +2 -2
  199. package/entities/applicants/direct-debit.entity.ts +0 -30
  200. package/entities/applicants/expenditure.entity.ts +0 -29
  201. package/entities/applicants/risk-narrative.entity.ts +0 -28
  202. package/entities/applications/application-risk-narrative.entity.ts +0 -22
  203. package/entities/applications/application-valuation.entity.ts +0 -20
  204. package/prisma/applicants/direct-debit.prisma +0 -25
  205. package/prisma/applicants/employment.prisma +0 -59
  206. package/prisma/applicants/expenditure.prisma +0 -26
  207. package/prisma/applicants/property-income.prisma +0 -17
  208. package/prisma/applicants/risk-narrative.prisma +0 -23
  209. package/prisma/applications/application-risk-narrative.prisma +0 -18
  210. package/prisma/applications/application-valuation.prisma +0 -18
@@ -1,3 +1,30 @@
1
+ /// <reference path="../value-objects/pound.d.ts" />
2
+ /// <reference path="../value-objects/sort-code.d.ts" />
3
+ /// <reference types="mongoose/types/aggregate" />
4
+ /// <reference types="mongoose/types/callback" />
5
+ /// <reference types="mongoose/types/collection" />
6
+ /// <reference types="mongoose/types/connection" />
7
+ /// <reference types="mongoose/types/cursor" />
8
+ /// <reference types="mongoose/types/document" />
9
+ /// <reference types="mongoose/types/error" />
10
+ /// <reference types="mongoose/types/expressions" />
11
+ /// <reference types="mongoose/types/helpers" />
12
+ /// <reference types="mongoose/types/middlewares" />
13
+ /// <reference types="mongoose/types/indexes" />
14
+ /// <reference types="mongoose/types/models" />
15
+ /// <reference types="mongoose/types/mongooseoptions" />
16
+ /// <reference types="mongoose/types/pipelinestage" />
17
+ /// <reference types="mongoose/types/populate" />
18
+ /// <reference types="mongoose/types/query" />
19
+ /// <reference types="mongoose/types/schemaoptions" />
20
+ /// <reference types="mongoose/types/schematypes" />
21
+ /// <reference types="mongoose/types/session" />
22
+ /// <reference types="mongoose/types/types" />
23
+ /// <reference types="mongoose/types/utility" />
24
+ /// <reference types="mongoose/types/validation" />
25
+ /// <reference types="mongoose/types/virtuals" />
26
+ /// <reference types="mongoose/types/inferschematype" />
27
+ /// <reference types="mongoose/types/inferrawdoctype" />
1
28
  import mongoose from "mongoose";
2
29
  declare const AuthLogModel: mongoose.Model<{
3
30
  userEmail: string;
@@ -1 +1 @@
1
- {"version":3,"file":"auth-log.model.d.ts","sourceRoot":"","sources":["../../users/auth-log.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAqBhC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2C,CAAC;AAE9D,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"auth-log.model.d.ts","sourceRoot":"","sources":["../../users/auth-log.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAqBhC,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA2C,CAAC;AAE9D,eAAe,YAAY,CAAC"}
@@ -1,3 +1,30 @@
1
+ /// <reference path="../value-objects/pound.d.ts" />
2
+ /// <reference path="../value-objects/sort-code.d.ts" />
3
+ /// <reference types="mongoose/types/aggregate" />
4
+ /// <reference types="mongoose/types/callback" />
5
+ /// <reference types="mongoose/types/collection" />
6
+ /// <reference types="mongoose/types/connection" />
7
+ /// <reference types="mongoose/types/cursor" />
8
+ /// <reference types="mongoose/types/document" />
9
+ /// <reference types="mongoose/types/error" />
10
+ /// <reference types="mongoose/types/expressions" />
11
+ /// <reference types="mongoose/types/helpers" />
12
+ /// <reference types="mongoose/types/middlewares" />
13
+ /// <reference types="mongoose/types/indexes" />
14
+ /// <reference types="mongoose/types/models" />
15
+ /// <reference types="mongoose/types/mongooseoptions" />
16
+ /// <reference types="mongoose/types/pipelinestage" />
17
+ /// <reference types="mongoose/types/populate" />
18
+ /// <reference types="mongoose/types/query" />
19
+ /// <reference types="mongoose/types/schemaoptions" />
20
+ /// <reference types="mongoose/types/schematypes" />
21
+ /// <reference types="mongoose/types/session" />
22
+ /// <reference types="mongoose/types/types" />
23
+ /// <reference types="mongoose/types/utility" />
24
+ /// <reference types="mongoose/types/validation" />
25
+ /// <reference types="mongoose/types/virtuals" />
26
+ /// <reference types="mongoose/types/inferschematype" />
27
+ /// <reference types="mongoose/types/inferrawdoctype" />
1
28
  import mongoose from "mongoose";
2
29
  declare const PermissionModel: mongoose.Model<{
3
30
  createdAt: NativeDate;
@@ -1 +1 @@
1
- {"version":3,"file":"permission.model.d.ts","sourceRoot":"","sources":["../../users/permission.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAWhC,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiD,CAAC;AAEvE,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"permission.model.d.ts","sourceRoot":"","sources":["../../users/permission.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAWhC,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiD,CAAC;AAEvE,eAAe,eAAe,CAAC"}
@@ -1,3 +1,30 @@
1
+ /// <reference path="../value-objects/pound.d.ts" />
2
+ /// <reference path="../value-objects/sort-code.d.ts" />
3
+ /// <reference types="mongoose/types/aggregate" />
4
+ /// <reference types="mongoose/types/callback" />
5
+ /// <reference types="mongoose/types/collection" />
6
+ /// <reference types="mongoose/types/connection" />
7
+ /// <reference types="mongoose/types/cursor" />
8
+ /// <reference types="mongoose/types/document" />
9
+ /// <reference types="mongoose/types/error" />
10
+ /// <reference types="mongoose/types/expressions" />
11
+ /// <reference types="mongoose/types/helpers" />
12
+ /// <reference types="mongoose/types/middlewares" />
13
+ /// <reference types="mongoose/types/indexes" />
14
+ /// <reference types="mongoose/types/models" />
15
+ /// <reference types="mongoose/types/mongooseoptions" />
16
+ /// <reference types="mongoose/types/pipelinestage" />
17
+ /// <reference types="mongoose/types/populate" />
18
+ /// <reference types="mongoose/types/query" />
19
+ /// <reference types="mongoose/types/schemaoptions" />
20
+ /// <reference types="mongoose/types/schematypes" />
21
+ /// <reference types="mongoose/types/session" />
22
+ /// <reference types="mongoose/types/types" />
23
+ /// <reference types="mongoose/types/utility" />
24
+ /// <reference types="mongoose/types/validation" />
25
+ /// <reference types="mongoose/types/virtuals" />
26
+ /// <reference types="mongoose/types/inferschematype" />
27
+ /// <reference types="mongoose/types/inferrawdoctype" />
1
28
  import mongoose from "mongoose";
2
29
  declare const RoleGroupModel: mongoose.Model<{
3
30
  createdAt: NativeDate;
@@ -1 +1 @@
1
- {"version":3,"file":"role-group.model.d.ts","sourceRoot":"","sources":["../../users/role-group.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAehC,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA+C,CAAC;AACpE,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"role-group.model.d.ts","sourceRoot":"","sources":["../../users/role-group.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAehC,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA+C,CAAC;AACpE,eAAe,cAAc,CAAC"}
@@ -1,3 +1,30 @@
1
+ /// <reference path="../value-objects/pound.d.ts" />
2
+ /// <reference path="../value-objects/sort-code.d.ts" />
3
+ /// <reference types="mongoose/types/aggregate" />
4
+ /// <reference types="mongoose/types/callback" />
5
+ /// <reference types="mongoose/types/collection" />
6
+ /// <reference types="mongoose/types/connection" />
7
+ /// <reference types="mongoose/types/cursor" />
8
+ /// <reference types="mongoose/types/document" />
9
+ /// <reference types="mongoose/types/error" />
10
+ /// <reference types="mongoose/types/expressions" />
11
+ /// <reference types="mongoose/types/helpers" />
12
+ /// <reference types="mongoose/types/middlewares" />
13
+ /// <reference types="mongoose/types/indexes" />
14
+ /// <reference types="mongoose/types/models" />
15
+ /// <reference types="mongoose/types/mongooseoptions" />
16
+ /// <reference types="mongoose/types/pipelinestage" />
17
+ /// <reference types="mongoose/types/populate" />
18
+ /// <reference types="mongoose/types/query" />
19
+ /// <reference types="mongoose/types/schemaoptions" />
20
+ /// <reference types="mongoose/types/schematypes" />
21
+ /// <reference types="mongoose/types/session" />
22
+ /// <reference types="mongoose/types/types" />
23
+ /// <reference types="mongoose/types/utility" />
24
+ /// <reference types="mongoose/types/validation" />
25
+ /// <reference types="mongoose/types/virtuals" />
26
+ /// <reference types="mongoose/types/inferschematype" />
27
+ /// <reference types="mongoose/types/inferrawdoctype" />
1
28
  import mongoose from "mongoose";
2
29
  declare const RoleModel: mongoose.Model<{
3
30
  createdAt: NativeDate;
@@ -1 +1 @@
1
- {"version":3,"file":"role.model.d.ts","sourceRoot":"","sources":["../../users/role.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAchC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqC,CAAC;AAErD,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"role.model.d.ts","sourceRoot":"","sources":["../../users/role.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAchC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqC,CAAC;AAErD,eAAe,SAAS,CAAC"}
@@ -1,3 +1,30 @@
1
+ /// <reference path="../value-objects/pound.d.ts" />
2
+ /// <reference path="../value-objects/sort-code.d.ts" />
3
+ /// <reference types="mongoose/types/aggregate" />
4
+ /// <reference types="mongoose/types/callback" />
5
+ /// <reference types="mongoose/types/collection" />
6
+ /// <reference types="mongoose/types/connection" />
7
+ /// <reference types="mongoose/types/cursor" />
8
+ /// <reference types="mongoose/types/document" />
9
+ /// <reference types="mongoose/types/error" />
10
+ /// <reference types="mongoose/types/expressions" />
11
+ /// <reference types="mongoose/types/helpers" />
12
+ /// <reference types="mongoose/types/middlewares" />
13
+ /// <reference types="mongoose/types/indexes" />
14
+ /// <reference types="mongoose/types/models" />
15
+ /// <reference types="mongoose/types/mongooseoptions" />
16
+ /// <reference types="mongoose/types/pipelinestage" />
17
+ /// <reference types="mongoose/types/populate" />
18
+ /// <reference types="mongoose/types/query" />
19
+ /// <reference types="mongoose/types/schemaoptions" />
20
+ /// <reference types="mongoose/types/schematypes" />
21
+ /// <reference types="mongoose/types/session" />
22
+ /// <reference types="mongoose/types/types" />
23
+ /// <reference types="mongoose/types/utility" />
24
+ /// <reference types="mongoose/types/validation" />
25
+ /// <reference types="mongoose/types/virtuals" />
26
+ /// <reference types="mongoose/types/inferschematype" />
27
+ /// <reference types="mongoose/types/inferrawdoctype" />
1
28
  import mongoose from "mongoose";
2
29
  declare const TasksModel: mongoose.Model<{
3
30
  createdAt: NativeDate;
@@ -1 +1 @@
1
- {"version":3,"file":"tasks.model.d.ts","sourceRoot":"","sources":["../../users/tasks.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAgBhC,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuC,CAAC;AAExD,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"tasks.model.d.ts","sourceRoot":"","sources":["../../users/tasks.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAgBhC,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuC,CAAC;AAExD,eAAe,UAAU,CAAC"}
@@ -1,3 +1,30 @@
1
+ /// <reference path="../value-objects/pound.d.ts" />
2
+ /// <reference path="../value-objects/sort-code.d.ts" />
3
+ /// <reference types="mongoose/types/aggregate" />
4
+ /// <reference types="mongoose/types/callback" />
5
+ /// <reference types="mongoose/types/collection" />
6
+ /// <reference types="mongoose/types/connection" />
7
+ /// <reference types="mongoose/types/cursor" />
8
+ /// <reference types="mongoose/types/document" />
9
+ /// <reference types="mongoose/types/error" />
10
+ /// <reference types="mongoose/types/expressions" />
11
+ /// <reference types="mongoose/types/helpers" />
12
+ /// <reference types="mongoose/types/middlewares" />
13
+ /// <reference types="mongoose/types/indexes" />
14
+ /// <reference types="mongoose/types/models" />
15
+ /// <reference types="mongoose/types/mongooseoptions" />
16
+ /// <reference types="mongoose/types/pipelinestage" />
17
+ /// <reference types="mongoose/types/populate" />
18
+ /// <reference types="mongoose/types/query" />
19
+ /// <reference types="mongoose/types/schemaoptions" />
20
+ /// <reference types="mongoose/types/schematypes" />
21
+ /// <reference types="mongoose/types/session" />
22
+ /// <reference types="mongoose/types/types" />
23
+ /// <reference types="mongoose/types/utility" />
24
+ /// <reference types="mongoose/types/validation" />
25
+ /// <reference types="mongoose/types/virtuals" />
26
+ /// <reference types="mongoose/types/inferschematype" />
27
+ /// <reference types="mongoose/types/inferrawdoctype" />
1
28
  import mongoose from "mongoose";
2
29
  declare const UserModel: mongoose.Model<{
3
30
  createdAt: NativeDate;
@@ -1 +1 @@
1
- {"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../users/user.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAgChC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqC,CAAC;AAErD,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"user.model.d.ts","sourceRoot":"","sources":["../../users/user.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAgChC,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAqC,CAAC;AAErD,eAAe,SAAS,CAAC"}
@@ -1,3 +1,29 @@
1
+ /// <reference path="sort-code.d.ts" />
2
+ /// <reference types="mongoose/types/aggregate" />
3
+ /// <reference types="mongoose/types/callback" />
4
+ /// <reference types="mongoose/types/collection" />
5
+ /// <reference types="mongoose/types/connection" />
6
+ /// <reference types="mongoose/types/cursor" />
7
+ /// <reference types="mongoose/types/document" />
8
+ /// <reference types="mongoose/types/error" />
9
+ /// <reference types="mongoose/types/expressions" />
10
+ /// <reference types="mongoose/types/helpers" />
11
+ /// <reference types="mongoose/types/middlewares" />
12
+ /// <reference types="mongoose/types/indexes" />
13
+ /// <reference types="mongoose/types/models" />
14
+ /// <reference types="mongoose/types/mongooseoptions" />
15
+ /// <reference types="mongoose/types/pipelinestage" />
16
+ /// <reference types="mongoose/types/populate" />
17
+ /// <reference types="mongoose/types/query" />
18
+ /// <reference types="mongoose/types/schemaoptions" />
19
+ /// <reference types="mongoose/types/schematypes" />
20
+ /// <reference types="mongoose/types/session" />
21
+ /// <reference types="mongoose/types/types" />
22
+ /// <reference types="mongoose/types/utility" />
23
+ /// <reference types="mongoose/types/validation" />
24
+ /// <reference types="mongoose/types/virtuals" />
25
+ /// <reference types="mongoose/types/inferschematype" />
26
+ /// <reference types="mongoose/types/inferrawdoctype" />
1
27
  import mongoose from 'mongoose';
2
28
  declare module 'mongoose' {
3
29
  namespace Schema {
@@ -1 +1 @@
1
- {"version":3,"file":"pound.d.ts","sourceRoot":"","sources":["../../value-objects/pound.ts"],"names":[],"mappings":"AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,OAAO,QAAQ,UAAU,CAAC;IACtB,UAAU,MAAM,CAAC;QACb,UAAU,KAAK,CAAC;YACZ,MAAM,KAAM,SAAQ,UAAU;aAAI;SACrC;KACJ;CACJ;AAED,cAAM,KAAM,SAAQ,QAAQ,CAAC,UAAU;gBACvB,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS;IAKhE,IAAI,CAAC,GAAG,EAAE,GAAG;CA4BhB;AAKD,OAAO,EAAE,KAAK,EAAE,CAAC"}
1
+ {"version":3,"file":"pound.d.ts","sourceRoot":"","sources":["../../value-objects/pound.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAGhC,OAAO,QAAQ,UAAU,CAAC;IACtB,UAAU,MAAM,CAAC;QACb,UAAU,KAAK,CAAC;YACZ,MAAM,KAAM,SAAQ,UAAU;aAAI;SACrC;KACJ;CACJ;AAED,cAAM,KAAM,SAAQ,QAAQ,CAAC,UAAU;gBACvB,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS;IAKhE,IAAI,CAAC,GAAG,EAAE,GAAG;CA4BhB;AAKD,OAAO,EAAE,KAAK,EAAE,CAAC"}
@@ -1,3 +1,29 @@
1
+ /// <reference path="pound.d.ts" />
2
+ /// <reference types="mongoose/types/aggregate" />
3
+ /// <reference types="mongoose/types/callback" />
4
+ /// <reference types="mongoose/types/collection" />
5
+ /// <reference types="mongoose/types/connection" />
6
+ /// <reference types="mongoose/types/cursor" />
7
+ /// <reference types="mongoose/types/document" />
8
+ /// <reference types="mongoose/types/error" />
9
+ /// <reference types="mongoose/types/expressions" />
10
+ /// <reference types="mongoose/types/helpers" />
11
+ /// <reference types="mongoose/types/middlewares" />
12
+ /// <reference types="mongoose/types/indexes" />
13
+ /// <reference types="mongoose/types/models" />
14
+ /// <reference types="mongoose/types/mongooseoptions" />
15
+ /// <reference types="mongoose/types/pipelinestage" />
16
+ /// <reference types="mongoose/types/populate" />
17
+ /// <reference types="mongoose/types/query" />
18
+ /// <reference types="mongoose/types/schemaoptions" />
19
+ /// <reference types="mongoose/types/schematypes" />
20
+ /// <reference types="mongoose/types/session" />
21
+ /// <reference types="mongoose/types/types" />
22
+ /// <reference types="mongoose/types/utility" />
23
+ /// <reference types="mongoose/types/validation" />
24
+ /// <reference types="mongoose/types/virtuals" />
25
+ /// <reference types="mongoose/types/inferschematype" />
26
+ /// <reference types="mongoose/types/inferrawdoctype" />
1
27
  import mongoose from 'mongoose';
2
28
  declare module 'mongoose' {
3
29
  namespace Schema {
@@ -1 +1 @@
1
- {"version":3,"file":"sort-code.d.ts","sourceRoot":"","sources":["../../value-objects/sort-code.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,QAAQ,UAAU,CAAC;IACtB,UAAU,MAAM,CAAC;QACb,UAAU,KAAK,CAAC;YACZ,MAAM,QAAS,SAAQ,UAAU;aAAI;SACxC;KACJ;CACJ;AAED,cAAM,QAAS,SAAQ,QAAQ,CAAC,UAAU;gBAC1B,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS;IAIhE,IAAI,CAAC,GAAG,EAAE,GAAG;CA+BhB;AAKD,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"sort-code.d.ts","sourceRoot":"","sources":["../../value-objects/sort-code.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,OAAO,QAAQ,UAAU,CAAC;IACtB,UAAU,MAAM,CAAC;QACb,UAAU,KAAK,CAAC;YACZ,MAAM,QAAS,SAAQ,UAAU;aAAI;SACxC;KACJ;CACJ;AAED,cAAM,QAAS,SAAQ,QAAQ,CAAC,UAAU;gBAC1B,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,CAAC,SAAS,GAAG,SAAS;IAIhE,IAAI,CAAC,GAAG,EAAE,GAAG;CA+BhB;AAKD,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { ApplicantEntity } from './applicant.entity';
2
2
  import { LookupEntity } from '../shared/lookup.entity';
3
3
 
4
- export class CreditDataEntity {
4
+ export class ApplicantCreditDataEntity {
5
5
  id!: string;
6
6
  bankruptcy!: string;
7
7
  countyCourtJudgment!: string;
@@ -18,7 +18,7 @@ export class CreditDataEntity {
18
18
  applicant?: ApplicantEntity;
19
19
  status?: LookupEntity;
20
20
 
21
- constructor(partial: Partial<CreditDataEntity>) {
21
+ constructor(partial: Partial<ApplicantCreditDataEntity>) {
22
22
  Object.assign(this, partial);
23
23
  }
24
24
  }
@@ -1,4 +1,6 @@
1
- export class CreditProfileEntity {
1
+ import { ApplicantEntity } from "./applicant.entity";
2
+
3
+ export class ApplicantCreditProfileEntity {
2
4
  id!: string;
3
5
  anyVoluntaryEnforcedPossessionNo!: string;
4
6
  bankruptcyNo!: string;
@@ -6,8 +8,12 @@ export class CreditProfileEntity {
6
8
  defaultsInLastYearNo!: string;
7
9
  createdAt!: Date;
8
10
  updatedAt!: Date;
11
+ applicantId!: string;
12
+
13
+ // Relations
14
+ applicant?: ApplicantEntity;
9
15
 
10
- constructor(partial: Partial<CreditProfileEntity>) {
16
+ constructor(partial: Partial<ApplicantCreditProfileEntity>) {
11
17
  Object.assign(this, partial);
12
18
  }
13
19
  }
@@ -0,0 +1,14 @@
1
+ import { ApplicantEntity } from "./applicant.entity";
2
+ import { LookupEntity } from "../shared/lookup.entity";
3
+
4
+ export class ApplicantEmploymentIncomeEntity {
5
+ id!: string;
6
+ applicantId!: string;
7
+ incomeTypeLid!: string;
8
+ amount!: number;
9
+ createdAt!: Date;
10
+ updatedAt!: Date;
11
+
12
+ applicant!: ApplicantEntity;
13
+ incomeType!: LookupEntity;
14
+ }
@@ -1,7 +1,7 @@
1
1
  import { ApplicantEntity } from './applicant.entity';
2
2
  import { LookupEntity } from '../shared/lookup.entity';
3
3
 
4
- export class EmploymentEntity {
4
+ export class ApplicantEmploymentEntity {
5
5
  id!: string;
6
6
  pageValidFlag!: boolean;
7
7
  acceptableIncomeLids!: string[];
@@ -13,10 +13,6 @@ export class EmploymentEntity {
13
13
  addressPostCode!: string;
14
14
  averageBonusPreviousTwoYears!: number;
15
15
  basicGrossIncome!: number;
16
- basicPay!: number;
17
- carAllowance!: number;
18
- childBenefit!: number;
19
- childBenefitOrSchoolAllowance!: number;
20
16
  contractRemaining?: string;
21
17
  dateJoined!: string;
22
18
  disabilityLiving!: number;
@@ -45,8 +41,6 @@ export class EmploymentEntity {
45
41
  previousNatureOfBusiness!: string;
46
42
  referenceContact?: string;
47
43
  referenceContactEmail!: string;
48
- secondJob!: number;
49
- travelAllowance!: number;
50
44
  underTerminationNoticeNote?: string;
51
45
  applicantId!: string;
52
46
  createdAt!: Date;
@@ -58,14 +52,4 @@ export class EmploymentEntity {
58
52
  industry?: LookupEntity;
59
53
  jobTitle?: LookupEntity;
60
54
  acceptableIncomeTypes?: LookupEntity[];
61
-
62
- constructor(partial: Partial<EmploymentEntity>) {
63
- Object.assign(this, partial);
64
- }
65
-
66
- // Virtual fields from Mongoose model
67
- // These are computed properties that were previously virtual in Mongoose
68
- get isUnderTerminationNoticeDisplay(): string {
69
- return this.isUnderTerminationNotice ? "Yes" : "No";
70
- }
71
55
  }
@@ -0,0 +1,15 @@
1
+ import { ApplicantEntity } from './applicant.entity';
2
+ import { LookupEntity } from '../shared/lookup.entity';
3
+
4
+ export class ApplicantExpenditureEntity {
5
+ id!: string;
6
+ applicantId!: string;
7
+ expenditureTypeLid!: string;
8
+ amount!: number;
9
+ createdAt!: Date;
10
+ updatedAt!: Date;
11
+
12
+ // Relations
13
+ applicant?: ApplicantEntity;
14
+ expenditureType?: LookupEntity;
15
+ }
@@ -1,7 +1,7 @@
1
1
  import { ApplicantEntity } from './applicant.entity';
2
2
  import { LookupEntity } from '../shared/lookup.entity';
3
3
 
4
- export class IncomeSourceEntity {
4
+ export class ApplicantIncomeSourceEntity {
5
5
  id!: string;
6
6
  employmentStatusLid?: string;
7
7
  incomeFromEmployment?: string;
@@ -16,7 +16,7 @@ export class IncomeSourceEntity {
16
16
  applicant?: ApplicantEntity;
17
17
  employmentStatus?: LookupEntity;
18
18
 
19
- constructor(partial: Partial<IncomeSourceEntity>) {
19
+ constructor(partial: Partial<ApplicantIncomeSourceEntity>) {
20
20
  Object.assign(this, partial);
21
21
  }
22
22
  }
@@ -1,4 +1,6 @@
1
- export class IncomeEntity {
1
+ import { LookupEntity } from '../shared/lookup.entity';
2
+
3
+ export class ApplicantIncomeEntity {
2
4
  id!: string;
3
5
  accountantsAddressLine1!: string;
4
6
  accountantsAddressLine2!: string;
@@ -50,9 +52,10 @@ export class IncomeEntity {
50
52
  createdAt!: Date;
51
53
  updatedAt!: Date;
52
54
 
53
- constructor(partial: Partial<IncomeEntity>) {
54
- Object.assign(this, partial);
55
- }
56
-
57
- // Add virtual fields in Mapper {accountantsCountry, businessCountry, businessType, charteredCertifiedOrOther, registeredCountry} etc
55
+ // Relations
56
+ accountantsCountry?: LookupEntity;
57
+ businessCountry?: LookupEntity;
58
+ businessType?: LookupEntity;
59
+ charteredCertifiedOrOther?: LookupEntity;
60
+ registeredCountry?: LookupEntity;
58
61
  }
@@ -2,14 +2,13 @@ import { ApplicationEntity } from '../applications/application.entity';
2
2
  import { LookupEntity } from '../shared/lookup.entity';
3
3
  import { RiskNarrativeEntity } from './risk-narrative.entity';
4
4
  import { OtherIncomeEntity } from './other-income.entity';
5
- import { IncomeSourceEntity } from './income-source.entity';
6
- import { ExpenditureEntity } from './expenditure.entity';
7
- import { EmploymentEntity } from './employment.entity';
8
- import { DirectDebitEntity } from './direct-debit.entity';
9
- import { CreditProfileEntity } from './credit-profile.entity';
5
+ import { IncomeSourceEntity } from './applicant-income-source.entity';
6
+ import { ApplicantExpenditureEntity } from './applicant-expenditure.entity';
7
+ import { ApplicantCreditProfileEntity } from './applicant-credit-profile.entity';
10
8
  import { PropertyIncomeEntity } from './property-income.entity';
11
- import { IncomeEntity } from './income.entity';
12
- import { CreditDataEntity } from './credit-data.entity';
9
+ import { ApplicantIncomeEntity } from './applicant-income.entity';
10
+ import { ApplicantCreditDataEntity } from './applicant-credit-data.entity';
11
+ import { ApplicantEmploymentEntity } from './applicant-employment.entity';
13
12
 
14
13
  export class ApplicantEntity {
15
14
  id!: string;
@@ -123,16 +122,15 @@ export class ApplicantEntity {
123
122
  vulnerabilityTypes?: LookupEntity[];
124
123
 
125
124
  // Nested schemas
126
- creditData?: CreditDataEntity;
125
+ creditData?: ApplicantCreditDataEntity;
127
126
  riskNarrative?: RiskNarrativeEntity;
128
127
  otherIncome?: OtherIncomeEntity;
129
128
  incomeSource?: IncomeSourceEntity;
130
- expenditure?: ExpenditureEntity;
131
- employment?: EmploymentEntity;
132
- directDebit?: DirectDebitEntity;
133
- creditProfile?: CreditProfileEntity;
129
+ expenditure?: ApplicantExpenditureEntity;
130
+ creditProfile?: ApplicantCreditProfileEntity;
134
131
  propertyIncome?: PropertyIncomeEntity;
135
- income?: IncomeEntity;
132
+ income?: ApplicantIncomeEntity;
133
+ employment?: ApplicantEmploymentEntity;
136
134
 
137
135
  constructor(partial: Partial<ApplicantEntity>) {
138
136
  Object.assign(this, partial);
@@ -147,10 +145,6 @@ export class ApplicantEntity {
147
145
  return this.countryOfResidence?.name ?? null;
148
146
  }
149
147
 
150
- get industryName(): string | null {
151
- return this.employment?.industry?.name ?? null;
152
- }
153
-
154
148
  get employmentClassName(): string | null {
155
149
  return this.class?.name ?? null;
156
150
  }
@@ -48,12 +48,12 @@ export * from './residence-commitment.entity';
48
48
  export * from './risk-narrative.entity';
49
49
  export * from './mortgage-commitment.entity';
50
50
  export * from './other-income.entity';
51
- export * from './income-source.entity';
52
- export * from './income.entity';
51
+ export * from './applicant-income-source.entity';
52
+ export * from './applicant-income.entity';
53
53
  export * from './loan-commitment.entity';
54
- export * from './credit-profile.entity';
54
+ export * from './applicant-credit-profile.entity';
55
55
  export * from './direct-debit.entity';
56
- export * from './employment.entity';
57
- export * from './expenditure.entity';
56
+ export * from './applicant-employment.entity';
57
+ export * from './applicant-expenditure.entity';
58
58
  export * from './credit-card-commitment.entity';
59
- export * from './credit-data.entity';
59
+ export * from './applicant-credit-data.entity';
@@ -1,4 +1,4 @@
1
- export class CreditProfileEntity {
1
+ export class ApplicationCreditProfileEntity {
2
2
  id!: string;
3
3
  anyVoluntaryEnforcedPossessionNo!: string;
4
4
  bankruptcyNo!: string;
@@ -7,7 +7,7 @@ export class CreditProfileEntity {
7
7
  createdAt!: Date;
8
8
  updatedAt!: Date;
9
9
 
10
- constructor(partial: Partial<CreditProfileEntity>) {
10
+ constructor(partial: Partial<ApplicationCreditProfileEntity>) {
11
11
  Object.assign(this, partial);
12
12
  }
13
13
  }
@@ -1,5 +1,5 @@
1
- import { ApplicantEntity } from '../applicants/applicant.entity';
2
- import { LookupEntity } from '../shared/lookup.entity';
1
+ import { ApplicantEntity } from "../applicants/applicant.entity";
2
+ import { LookupEntity } from "../shared/lookup.entity";
3
3
  import { ApplicationEntity } from "./application.entity";
4
4
 
5
5
 
@@ -56,7 +56,7 @@ export * from './solicitor.entity';
56
56
  export * from './broker.entity';
57
57
  export * from './checklist-item.entity';
58
58
  export * from './company.entity';
59
- export * from './credit-profile.entity';
59
+ export * from './application-credit-profile.entity';
60
60
  export * from './application-rationale.entity';
61
61
  export * from './application-risk-narrative.entity';
62
62
  export * from './application-valuation.entity';
@@ -1,4 +1,4 @@
1
- import { LookupEntity } from '../shared/lookup.entity';
1
+ import { LookupEntity } from "../shared/lookup.entity";
2
2
  import { ApplicationEntity } from "./application.entity";
3
3
 
4
4
  export class SolicitorEntity {
@@ -1,5 +1,5 @@
1
- import { LookupEntity } from '../shared/lookup.entity';
2
- import { ApplicationEntity } from "../applications";
1
+ import { ApplicationEntity } from "../applications/application.entity";
2
+ import { LookupEntity } from "../shared/lookup.entity";
3
3
 
4
4
 
5
5
  export class PropertyEntity {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,4 +1,4 @@
1
- model CreditData {
1
+ model ApplicantCreditData {
2
2
  id String @id @default(uuid())
3
3
  bankruptcy String
4
4
  countyCourtJudgment String
@@ -12,8 +12,8 @@ model CreditData {
12
12
  updatedAt DateTime @updatedAt @map("updated_at")
13
13
 
14
14
  // Relations
15
- applicant Applicant @relation(fields: [applicantId], references: [id])
16
- status Lookup @relation(fields: [statusLid], references: [id])
15
+ applicant Applicant @relation("ApplicantCreditData", fields: [applicantId], references: [id])
16
+ status Lookup @relation("CreditDataStatus", fields: [statusLid], references: [id])
17
17
 
18
18
  @@map("applicant_credit_data")
19
19
  }