@dynamatix/gb-schemas 1.2.97 → 1.2.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/dist/applicants/applicant-additional-income.model.d.ts +47 -927
  2. package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -1
  3. package/dist/applicants/applicant-additional-income.model.js +3 -23
  4. package/dist/applicants/applicant-commitment-creditCard.model.d.ts +32 -0
  5. package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
  6. package/dist/applicants/applicant-commitment-creditCard.model.js +1 -0
  7. package/dist/applicants/applicant-commitment-loan.model.d.ts +32 -0
  8. package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
  9. package/dist/applicants/applicant-commitment-loan.model.js +1 -0
  10. package/dist/applicants/applicant-commitment-mortgage.model.d.ts +32 -0
  11. package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
  12. package/dist/applicants/applicant-commitment-mortgage.model.js +1 -0
  13. package/dist/applicants/applicant-commitment-residence.model.d.ts +26 -0
  14. package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -1
  15. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +26 -0
  16. package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
  17. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +26 -0
  18. package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
  19. package/dist/applicants/applicant-credit-data.model.d.ts +27 -0
  20. package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -1
  21. package/dist/applicants/applicant-credit-profile.model.d.ts +27 -0
  22. package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -1
  23. package/dist/applicants/applicant-direct-debit.model.d.ts +27 -0
  24. package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -1
  25. package/dist/applicants/applicant-employment-income.model.d.ts +26 -0
  26. package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -1
  27. package/dist/applicants/applicant-employment.model.d.ts +1260 -6
  28. package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
  29. package/dist/applicants/applicant-employment.model.js +4 -6
  30. package/dist/applicants/applicant-expenditure.model.d.ts +26 -0
  31. package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
  32. package/dist/applicants/applicant-income-source.model.d.ts +27 -0
  33. package/dist/applicants/applicant-income-source.model.d.ts.map +1 -1
  34. package/dist/applicants/applicant-income.model.d.ts +26 -12
  35. package/dist/applicants/applicant-income.model.d.ts.map +1 -1
  36. package/dist/applicants/applicant-pension-income.model.d.ts +314 -0
  37. package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -1
  38. package/dist/applicants/applicant-pension-income.model.js +13 -0
  39. package/dist/applicants/applicant-property-income.model.d.ts +26 -0
  40. package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
  41. package/dist/applicants/applicant-risk-narrative.model.d.ts +27 -0
  42. package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -1
  43. package/dist/applicants/applicant-uk-tax-credits.model.d.ts +314 -0
  44. package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -1
  45. package/dist/applicants/applicant-uk-tax-credits.model.js +2 -0
  46. package/dist/applicants/applicant.model.d.ts +27 -0
  47. package/dist/applicants/applicant.model.d.ts.map +1 -1
  48. package/dist/applicants/applicant.model.js +0 -2
  49. package/dist/applicants/index.d.ts +1 -0
  50. package/dist/applicants/index.d.ts.map +1 -1
  51. package/dist/applicants/index.js +1 -0
  52. package/dist/applications/application-audit.model.d.ts +27 -0
  53. package/dist/applications/application-audit.model.d.ts.map +1 -1
  54. package/dist/applications/application-checklist-Item.model.d.ts +27 -0
  55. package/dist/applications/application-checklist-Item.model.d.ts.map +1 -1
  56. package/dist/applications/application-company-model.d.ts +26 -0
  57. package/dist/applications/application-company-model.d.ts.map +1 -1
  58. package/dist/applications/application-credit-profile.model.d.ts +27 -0
  59. package/dist/applications/application-credit-profile.model.d.ts.map +1 -1
  60. package/dist/applications/application-direct-debit.model.d.ts +26 -0
  61. package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
  62. package/dist/applications/application-document.model.d.ts +27 -0
  63. package/dist/applications/application-document.model.d.ts.map +1 -1
  64. package/dist/applications/application-fieldconfig.model.d.ts +27 -0
  65. package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
  66. package/dist/applications/application-illustration-model.d.ts +27 -0
  67. package/dist/applications/application-illustration-model.d.ts.map +1 -1
  68. package/dist/applications/application-legal.model.d.ts +27 -0
  69. package/dist/applications/application-legal.model.d.ts.map +1 -1
  70. package/dist/applications/application-mortgage.model.d.ts +26 -0
  71. package/dist/applications/application-mortgage.model.d.ts.map +1 -1
  72. package/dist/applications/application-note.model.d.ts +27 -0
  73. package/dist/applications/application-note.model.d.ts.map +1 -1
  74. package/dist/applications/application-offer.model.d.ts +27 -0
  75. package/dist/applications/application-offer.model.d.ts.map +1 -1
  76. package/dist/applications/application-onboarding.model.d.ts +27 -0
  77. package/dist/applications/application-onboarding.model.d.ts.map +1 -1
  78. package/dist/applications/application-product.model.d.ts +27 -0
  79. package/dist/applications/application-product.model.d.ts.map +1 -1
  80. package/dist/applications/application-productfeatures.model.d.ts +27 -0
  81. package/dist/applications/application-productfeatures.model.d.ts.map +1 -1
  82. package/dist/applications/application-rationale.model.d.ts +27 -0
  83. package/dist/applications/application-rationale.model.d.ts.map +1 -1
  84. package/dist/applications/application-risk-narrative.model.d.ts +27 -0
  85. package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
  86. package/dist/applications/application-valuation.model.d.ts +27 -0
  87. package/dist/applications/application-valuation.model.d.ts.map +1 -1
  88. package/dist/applications/application.model.d.ts +27 -0
  89. package/dist/applications/application.model.d.ts.map +1 -1
  90. package/dist/applications/broker.model.d.ts +27 -0
  91. package/dist/applications/broker.model.d.ts.map +1 -1
  92. package/dist/applications/document.model.d.ts +27 -0
  93. package/dist/applications/document.model.d.ts.map +1 -1
  94. package/dist/applications/solicitor.model.d.ts +26 -0
  95. package/dist/applications/solicitor.model.d.ts.map +1 -1
  96. package/dist/entities/applications/application-direct-debit.entity.d.ts +5 -3
  97. package/dist/entities/applications/application-direct-debit.entity.d.ts.map +1 -1
  98. package/dist/entities/applications/application-mortgage.entity.d.ts +2 -3
  99. package/dist/entities/applications/application-mortgage.entity.d.ts.map +1 -1
  100. package/dist/index.d.ts +0 -1
  101. package/dist/index.d.ts.map +1 -1
  102. package/dist/product-catalogues/product-catalogue.model.d.ts +27 -0
  103. package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -1
  104. package/dist/product-catalogues/product-definitions.model.d.ts +27 -0
  105. package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -1
  106. package/dist/product-catalogues/product-variant.model.d.ts +27 -0
  107. package/dist/product-catalogues/product-variant.model.d.ts.map +1 -1
  108. package/dist/properties/property.model.d.ts +26 -0
  109. package/dist/properties/property.model.d.ts.map +1 -1
  110. package/dist/properties/security.model.d.ts +27 -0
  111. package/dist/properties/security.model.d.ts.map +1 -1
  112. package/dist/shared/alert.model.d.ts +27 -0
  113. package/dist/shared/alert.model.d.ts.map +1 -1
  114. package/dist/shared/apprivo-sync-journey.model.d.ts +27 -0
  115. package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -1
  116. package/dist/shared/checklist.model.d.ts +27 -0
  117. package/dist/shared/checklist.model.d.ts.map +1 -1
  118. package/dist/shared/document-type-model.d.ts +27 -0
  119. package/dist/shared/document-type-model.d.ts.map +1 -1
  120. package/dist/shared/job-run.model.d.ts +27 -0
  121. package/dist/shared/job-run.model.d.ts.map +1 -1
  122. package/dist/shared/job-setting.model.d.ts +27 -0
  123. package/dist/shared/job-setting.model.d.ts.map +1 -1
  124. package/dist/shared/lookup-group.model.d.ts +27 -0
  125. package/dist/shared/lookup-group.model.d.ts.map +1 -1
  126. package/dist/shared/lookup.model.d.ts +27 -0
  127. package/dist/shared/lookup.model.d.ts.map +1 -1
  128. package/dist/shared/schema-doc.model.d.ts +27 -0
  129. package/dist/shared/schema-doc.model.d.ts.map +1 -1
  130. package/dist/shared/system-parameter.model.d.ts +27 -0
  131. package/dist/shared/system-parameter.model.d.ts.map +1 -1
  132. package/dist/shared/task-document.model.d.ts +27 -0
  133. package/dist/shared/task-document.model.d.ts.map +1 -1
  134. package/dist/shared/task.model.d.ts +27 -0
  135. package/dist/shared/task.model.d.ts.map +1 -1
  136. package/dist/underwriter/underwriter.model.d.ts +27 -0
  137. package/dist/underwriter/underwriter.model.d.ts.map +1 -1
  138. package/dist/users/auth-log.model.d.ts +27 -0
  139. package/dist/users/auth-log.model.d.ts.map +1 -1
  140. package/dist/users/permission.model.d.ts +27 -0
  141. package/dist/users/permission.model.d.ts.map +1 -1
  142. package/dist/users/role-group.model.d.ts +27 -0
  143. package/dist/users/role-group.model.d.ts.map +1 -1
  144. package/dist/users/role.model.d.ts +27 -0
  145. package/dist/users/role.model.d.ts.map +1 -1
  146. package/dist/users/tasks.model.d.ts +27 -0
  147. package/dist/users/tasks.model.d.ts.map +1 -1
  148. package/dist/users/user.model.d.ts +27 -0
  149. package/dist/users/user.model.d.ts.map +1 -1
  150. package/dist/value-objects/pound.d.ts +26 -0
  151. package/dist/value-objects/pound.d.ts.map +1 -1
  152. package/dist/value-objects/sort-code.d.ts +26 -0
  153. package/dist/value-objects/sort-code.d.ts.map +1 -1
  154. package/package.json +1 -1
  155. package/dist/applicants/applicant-other-income.model.js +0 -46
  156. package/dist/applications/productfeatures.model.js +0 -94
@@ -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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "1.2.97",
3
+ "version": "1.2.99",
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,46 +0,0 @@
1
- import mongoose from "mongoose";
2
- import { Pound } from "../value-objects/pound";
3
- const applicantOtherIncomeSchema = new mongoose.Schema({
4
- // Income Source 1
5
- sourceDetails1: { type: String, default: null },
6
- amount1: { type: Pound, default: 0.00 },
7
- payFrequency1Lid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
8
- guaranteed1: {
9
- type: Boolean,
10
- default: false,
11
- },
12
- // Income Source 2
13
- sourceDetails2: { type: String, default: null },
14
- amount2: { type: Pound, default: 0.00 },
15
- payFrequency2Lid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
16
- guaranteed2: {
17
- type: Boolean,
18
- default: false,
19
- },
20
- // Income Source 3
21
- sourceDetails3: { type: String, default: null },
22
- amount3: { type: Pound, default: 0.00 },
23
- payFrequency3Lid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
24
- guaranteed3: {
25
- type: Boolean,
26
- default: false,
27
- },
28
- // Income Source 4
29
- sourceDetails4: { type: String, default: null },
30
- amount4: { type: Pound, default: 0.00 },
31
- payFrequency4Lid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", default: null },
32
- guaranteed4: {
33
- type: Boolean,
34
- default: false,
35
- },
36
- taxCredits: { type: Pound, default: 0.00 },
37
- maintenance: { type: Pound, default: 0.00 },
38
- otherBenefits: { type: Pound, default: 0.00 },
39
- grossPensionIncome: { type: Pound, default: 0.00 },
40
- privatePensionIncome: { type: Pound, default: 0.00 },
41
- statePensionIncome: { type: Pound, default: 0.00 },
42
- }, {
43
- toJSON: { getters: true },
44
- toObject: { getters: true }
45
- });
46
- export default applicantOtherIncomeSchema;
@@ -1,94 +0,0 @@
1
- import mongoose from "mongoose";
2
- const feeSchema = new mongoose.Schema({
3
- feeType: { type: String, required: true },
4
- description: { type: String, required: true },
5
- feeAmount: { type: String, required: true },
6
- rate: { type: String, default: 0 },
7
- addedToLoan: { type: String, default: false },
8
- allowOverride: { type: String, default: false },
9
- additionalData: { type: mongoose.Schema.Types.Mixed, default: null }
10
- });
11
- const cashflowPeriodSchema = new mongoose.Schema({
12
- from: { type: String, default: null },
13
- to: { type: String, default: null },
14
- instalmentAmount: { type: String, default: null },
15
- instalmentInterest: { type: String, default: null },
16
- instalmentCapitalRepaid: { type: String, default: null },
17
- otherCosts: { type: String, default: 0 },
18
- outstandingCapital: { type: String, default: null }
19
- });
20
- const calculationsSchema = new mongoose.Schema({
21
- ltv: { type: String, default: null },
22
- rentalCoverageRatioRate: { type: String, default: null },
23
- bankContributionRate: { type: String, default: null },
24
- bankInitialShareRate: { type: String, default: null },
25
- totalAmountPayable: { type: String, default: null },
26
- fixedMonthlyPayment: { type: String, default: null },
27
- fixedMonthlyCapital: { type: String, default: null },
28
- fixedMonthlyInterest: { type: String, default: null },
29
- variableMonthlyPayment: { type: String, default: null },
30
- summaryTotal: { type: String, default: null },
31
- reimbursementPerPound: { type: String, default: null },
32
- stressedPayment: { type: String, default: null },
33
- stressedPaymentRate: { type: String, default: null },
34
- rentalCoverage: { type: String, default: null },
35
- rentalCoverageWithoutTopUp: { type: String, default: null }
36
- });
37
- const productFeaturesSchema = new mongoose.Schema({
38
- name: { type: String, required: true },
39
- clientAdvance: { type: String, required: true },
40
- ltv: { type: String, required: true },
41
- repayment: { type: String, required: true },
42
- variableRepayment: { type: String, required: true },
43
- reversionRateWithoutBaseRate: { type: String, default: null },
44
- totalReversionRate: { type: String, default: null },
45
- initialRate: { type: String, required: true },
46
- fixedTerm: { type: String, required: true },
47
- fixedTermEndDate: { type: String, default: null },
48
- baseRate: { type: String, default: null },
49
- productRate: { type: String, default: null },
50
- apr: { type: String, default: null },
51
- rentalCoverage: { type: String, default: null },
52
- repaymentType: { type: String, default: null },
53
- applicationCategory: { type: String, default: null },
54
- securityType: { type: String, default: null },
55
- erc: { type: String, default: null },
56
- loanType: { type: String, default: null },
57
- maxLtvLimit: { type: String, default: null },
58
- reimbursement: { type: String, default: null },
59
- reimbursementPerPound: { type: String, default: null },
60
- stressedApr: { type: String, default: null },
61
- stressedRate: { type: String, default: null },
62
- stressedRepayment: { type: String, default: null },
63
- liborFloorRate: { type: String, default: null },
64
- totalTermInMonths: { type: String, default: null },
65
- chargeType: { type: String, default: '' },
66
- productCategory: { type: String, default: '' },
67
- ercCode: { type: String, default: '' },
68
- variableTerm: { type: String, default: null },
69
- totalFeePayable: { type: String, default: null },
70
- dipIssueDate: { type: String, default: null },
71
- estimatedCompletionDate: { type: String, default: null },
72
- dipExpiryDate: { type: String, default: null },
73
- fixedRepaymentUntillDate: { type: String, default: null },
74
- rentalReviewDate: { type: String, default: null },
75
- totalReimbursementWithFee: { type: String, default: null },
76
- finalRentPayment: { type: String, default: null },
77
- clientDeposit: { type: String, default: null },
78
- firstRentPayment: { type: String, default: null },
79
- fees: [feeSchema],
80
- ercFeatures: { type: mongoose.Schema.Types.Mixed, default: null },
81
- cashflowPeriods: {
82
- totalNoOfPayments: { type: String, default: null },
83
- fixed: cashflowPeriodSchema,
84
- variable: cashflowPeriodSchema,
85
- total: cashflowPeriodSchema
86
- },
87
- icr: { type: String, default: null },
88
- ufssProductCode: { type: String, default: null },
89
- ufssInterestRateCode: { type: String, default: null },
90
- stressedPayment: { type: String, default: null },
91
- stressedPaymentRate: { type: String, default: null },
92
- calculations: calculationsSchema
93
- });
94
- export default productFeaturesSchema;