@dynamatix/gb-schemas 1.3.314 → 1.3.315
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.
- package/README.md +286 -286
- package/dist/applicants/applicant-additional-income.model.d.ts +2 -36
- package/dist/applicants/applicant-additional-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-additional-income.type.d.ts +0 -28
- package/dist/applicants/applicant-additional-income.type.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts +2 -39
- package/dist/applicants/applicant-commitment-creditCard.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-loan.model.d.ts +2 -36
- package/dist/applicants/applicant-commitment-loan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts +2 -36
- package/dist/applicants/applicant-commitment-mortgage.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-residence.model.d.ts +2 -42
- package/dist/applicants/applicant-commitment-residence.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts +2 -36
- package/dist/applicants/applicant-commitment-secureLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts +2 -36
- package/dist/applicants/applicant-commitment-unsecuredLoan.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-data.model.d.ts +1 -29
- package/dist/applicants/applicant-credit-data.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-profile.model.d.ts +1 -29
- package/dist/applicants/applicant-credit-profile.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-report.model.d.ts +2 -30
- package/dist/applicants/applicant-credit-report.model.d.ts.map +1 -1
- package/dist/applicants/applicant-credit-report.type.d.ts +0 -28
- package/dist/applicants/applicant-credit-report.type.d.ts.map +1 -1
- package/dist/applicants/applicant-direct-debit.model.d.ts +1 -29
- package/dist/applicants/applicant-direct-debit.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.model.d.ts +2 -33
- package/dist/applicants/applicant-employment-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-employment-income.type.d.ts +0 -28
- package/dist/applicants/applicant-employment-income.type.d.ts.map +1 -1
- package/dist/applicants/applicant-employment.model.d.ts +2 -42
- package/dist/applicants/applicant-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.model.d.ts +2 -30
- package/dist/applicants/applicant-expenditure.model.d.ts.map +1 -1
- package/dist/applicants/applicant-expenditure.type.d.ts +0 -28
- package/dist/applicants/applicant-expenditure.type.d.ts.map +1 -1
- package/dist/applicants/applicant-income-settings.model.d.ts +2 -30
- package/dist/applicants/applicant-income-settings.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income-settings.type.d.ts +0 -28
- package/dist/applicants/applicant-income-settings.type.d.ts.map +1 -1
- package/dist/applicants/applicant-income-source.model.d.ts +26 -0
- package/dist/applicants/applicant-income-source.model.d.ts.map +1 -0
- package/dist/applicants/applicant-income-summary.model.d.ts +2 -66
- package/dist/applicants/applicant-income-summary.model.d.ts.map +1 -1
- package/dist/applicants/applicant-income-summary.type.d.ts +0 -28
- package/dist/applicants/applicant-income-summary.type.d.ts.map +1 -1
- package/dist/applicants/applicant-income.model.d.ts +118 -2516
- package/dist/applicants/applicant-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-other-income.model.d.ts +85 -0
- package/dist/applicants/applicant-other-income.model.d.ts.map +1 -0
- package/dist/applicants/applicant-pension-income.model.d.ts +2 -39
- package/dist/applicants/applicant-pension-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-pension-income.type.d.ts +0 -28
- package/dist/applicants/applicant-pension-income.type.d.ts.map +1 -1
- package/dist/applicants/applicant-property-income.model.d.ts +2 -48
- package/dist/applicants/applicant-property-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-risk-narrative.model.d.ts +1 -29
- package/dist/applicants/applicant-risk-narrative.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.model.d.ts +2 -33
- package/dist/applicants/applicant-self-employed-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employed-income.type.d.ts +0 -28
- package/dist/applicants/applicant-self-employed-income.type.d.ts.map +1 -1
- package/dist/applicants/applicant-self-employment.model.d.ts +2 -30
- package/dist/applicants/applicant-self-employment.model.d.ts.map +1 -1
- package/dist/applicants/applicant-sole-trader-income.model.d.ts +2 -33
- package/dist/applicants/applicant-sole-trader-income.model.d.ts.map +1 -1
- package/dist/applicants/applicant-sole-trader-income.type.d.ts +0 -28
- package/dist/applicants/applicant-sole-trader-income.type.d.ts.map +1 -1
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts +2 -39
- package/dist/applicants/applicant-uk-tax-credits.model.d.ts.map +1 -1
- package/dist/applicants/applicant-uk-tax-credits.type.d.ts +0 -28
- package/dist/applicants/applicant-uk-tax-credits.type.d.ts.map +1 -1
- package/dist/applicants/applicant.model.d.ts +20 -57
- package/dist/applicants/applicant.model.d.ts.map +1 -1
- package/dist/applicants/applicant.type.d.ts +0 -28
- package/dist/applicants/applicant.type.d.ts.map +1 -1
- package/dist/applications/application-audit.model.d.ts +2 -30
- package/dist/applications/application-audit.model.d.ts.map +1 -1
- package/dist/applications/application-checklist-Item.model.d.ts +2 -30
- package/dist/applications/application-checklist-Item.model.d.ts.map +1 -1
- package/dist/applications/application-company-model.d.ts +20 -66
- package/dist/applications/application-company-model.d.ts.map +1 -1
- package/dist/applications/application-credit-profile.model.d.ts +1 -29
- package/dist/applications/application-credit-profile.model.d.ts.map +1 -1
- package/dist/applications/application-direct-debit.model.d.ts +20 -51
- package/dist/applications/application-direct-debit.model.d.ts.map +1 -1
- package/dist/applications/application-document.model.d.ts +2 -30
- package/dist/applications/application-document.model.d.ts.map +1 -1
- package/dist/applications/application-euc.model.d.ts +2 -30
- package/dist/applications/application-euc.model.d.ts.map +1 -1
- package/dist/applications/application-fieldconfig.model.d.ts +2 -30
- package/dist/applications/application-fieldconfig.model.d.ts.map +1 -1
- package/dist/applications/application-illustration-model.d.ts +2 -30
- package/dist/applications/application-illustration-model.d.ts.map +1 -1
- package/dist/applications/application-legal.model.d.ts +2 -30
- package/dist/applications/application-legal.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.model.d.ts +2 -30
- package/dist/applications/application-mortgage.model.d.ts.map +1 -1
- package/dist/applications/application-mortgage.type.d.ts +48 -0
- package/dist/applications/application-mortgage.type.d.ts.map +1 -0
- package/dist/applications/application-mortgage.type.js +1 -0
- package/dist/applications/application-note.model.d.ts +2 -30
- package/dist/applications/application-note.model.d.ts.map +1 -1
- package/dist/applications/application-note.type.d.ts +0 -28
- package/dist/applications/application-note.type.d.ts.map +1 -1
- package/dist/applications/application-offer.model.d.ts +2 -30
- package/dist/applications/application-offer.model.d.ts.map +1 -1
- package/dist/applications/application-onboarding.model.d.ts +2 -30
- package/dist/applications/application-onboarding.model.d.ts.map +1 -1
- package/dist/applications/application-product.model.d.ts +2 -30
- package/dist/applications/application-product.model.d.ts.map +1 -1
- package/dist/applications/application-product.type.d.ts +0 -28
- package/dist/applications/application-product.type.d.ts.map +1 -1
- package/dist/applications/application-productfeatures.model.d.ts +2 -30
- package/dist/applications/application-productfeatures.model.d.ts.map +1 -1
- package/dist/applications/application-productfeatures.type.d.ts +0 -28
- package/dist/applications/application-productfeatures.type.d.ts.map +1 -1
- package/dist/applications/application-rationale.model.d.ts +2 -30
- package/dist/applications/application-rationale.model.d.ts.map +1 -1
- package/dist/applications/application-rationale.type.d.ts +0 -28
- package/dist/applications/application-rationale.type.d.ts.map +1 -1
- package/dist/applications/application-risk-narrative.model.d.ts +2 -30
- package/dist/applications/application-risk-narrative.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.model.d.ts +2 -42
- package/dist/applications/application-valuation.model.d.ts.map +1 -1
- package/dist/applications/application-valuation.type.d.ts +0 -28
- package/dist/applications/application-valuation.type.d.ts.map +1 -1
- package/dist/applications/application.model.d.ts +8 -30
- package/dist/applications/application.model.d.ts.map +1 -1
- package/dist/applications/application.model.js +4 -18
- package/dist/applications/applications-task.model.d.ts +2 -30
- package/dist/applications/applications-task.model.d.ts.map +1 -1
- package/dist/applications/applications-task.type.d.ts +0 -28
- package/dist/applications/applications-task.type.d.ts.map +1 -1
- package/dist/applications/broker.model.d.ts +2 -30
- package/dist/applications/broker.model.d.ts.map +1 -1
- package/dist/applications/document.model.d.ts +2 -30
- package/dist/applications/document.model.d.ts.map +1 -1
- package/dist/applications/index.d.ts +1 -0
- package/dist/applications/index.d.ts.map +1 -1
- package/dist/applications/productfeatures.model.d.ts +368 -0
- package/dist/applications/productfeatures.model.d.ts.map +1 -0
- package/dist/applications/solicitor.model.d.ts +2 -30
- package/dist/applications/solicitor.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-catalogue.model.d.ts +2 -30
- package/dist/product-catalogues/product-catalogue.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-definitions.model.d.ts +2 -30
- package/dist/product-catalogues/product-definitions.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-definitions.type.d.ts +0 -28
- package/dist/product-catalogues/product-definitions.type.d.ts.map +1 -1
- package/dist/product-catalogues/product-variant.model.d.ts +2 -30
- package/dist/product-catalogues/product-variant.model.d.ts.map +1 -1
- package/dist/product-catalogues/product-variant.type.d.ts +0 -28
- package/dist/product-catalogues/product-variant.type.d.ts.map +1 -1
- package/dist/properties/property.model.d.ts +20 -63
- package/dist/properties/property.model.d.ts.map +1 -1
- package/dist/properties/security.model.d.ts +2 -30
- package/dist/properties/security.model.d.ts.map +1 -1
- package/dist/shared/alert.model.d.ts +2 -30
- package/dist/shared/alert.model.d.ts.map +1 -1
- package/dist/shared/apprivo-sync-journey.model.d.ts +2 -30
- package/dist/shared/apprivo-sync-journey.model.d.ts.map +1 -1
- package/dist/shared/checklist.model.d.ts +2 -30
- package/dist/shared/checklist.model.d.ts.map +1 -1
- package/dist/shared/document-type-model.d.ts +2 -30
- package/dist/shared/document-type-model.d.ts.map +1 -1
- package/dist/shared/job-run.model.d.ts +2 -30
- package/dist/shared/job-run.model.d.ts.map +1 -1
- package/dist/shared/job-setting.model.d.ts +2 -30
- package/dist/shared/job-setting.model.d.ts.map +1 -1
- package/dist/shared/lookup-group.model.d.ts +2 -30
- package/dist/shared/lookup-group.model.d.ts.map +1 -1
- package/dist/shared/lookup.model.d.ts +2 -30
- package/dist/shared/lookup.model.d.ts.map +1 -1
- package/dist/shared/schema-doc.model.d.ts +2 -30
- package/dist/shared/schema-doc.model.d.ts.map +1 -1
- package/dist/shared/system-parameter.model.d.ts +2 -30
- package/dist/shared/system-parameter.model.d.ts.map +1 -1
- package/dist/shared/task-document.model.d.ts +2 -30
- package/dist/shared/task-document.model.d.ts.map +1 -1
- package/dist/shared/task.model.d.ts +2 -30
- package/dist/shared/task.model.d.ts.map +1 -1
- package/dist/types/base.types.d.ts +0 -28
- package/dist/types/base.types.d.ts.map +1 -1
- package/dist/underwriter/underwriter.model.d.ts +2 -30
- package/dist/underwriter/underwriter.model.d.ts.map +1 -1
- package/dist/users/auth-log.model.d.ts +2 -30
- package/dist/users/auth-log.model.d.ts.map +1 -1
- package/dist/users/permission.model.d.ts +2 -30
- package/dist/users/permission.model.d.ts.map +1 -1
- package/dist/users/role-group.model.d.ts +2 -30
- package/dist/users/role-group.model.d.ts.map +1 -1
- package/dist/users/role.model.d.ts +2 -30
- package/dist/users/role.model.d.ts.map +1 -1
- package/dist/users/tasks.model.d.ts +2 -30
- package/dist/users/tasks.model.d.ts.map +1 -1
- package/dist/users/user.model.d.ts +2 -30
- package/dist/users/user.model.d.ts.map +1 -1
- package/dist/value-objects/account-number.d.ts +0 -27
- package/dist/value-objects/account-number.d.ts.map +1 -1
- package/dist/value-objects/pound.d.ts +0 -27
- package/dist/value-objects/pound.d.ts.map +1 -1
- package/dist/value-objects/sort-code.d.ts +0 -27
- package/dist/value-objects/sort-code.d.ts.map +1 -1
- package/package.json +81 -81
package/README.md
CHANGED
|
@@ -1,287 +1,287 @@
|
|
|
1
|
-
# GB Schemas (@dynamatix/gb-schemas)
|
|
2
|
-
|
|
3
|
-
A comprehensive TypeScript/Mongoose schema library for Gatehouse Bank backend systems, providing data models for mortgage applications, applicants, properties, and related financial services.
|
|
4
|
-
|
|
5
|
-
## 🏗️ Project Overview
|
|
6
|
-
|
|
7
|
-
This package contains all the schemas and data models used in Gatehouse Bank's backend systems. It provides a robust foundation for managing mortgage applications, applicant data, property information, and various financial commitments through well-defined Mongoose schemas with TypeScript support.
|
|
8
|
-
|
|
9
|
-
## 📦 Package Information
|
|
10
|
-
|
|
11
|
-
- **Name**: `@dynamatix/gb-schemas`
|
|
12
|
-
- **Version**: 1.3.305
|
|
13
|
-
- **Description**: All the schemas for Gatehouse Bank back-end
|
|
14
|
-
- **Type**: ES Module
|
|
15
|
-
- **Main**: `dist/index.js`
|
|
16
|
-
- **Types**: `dist/index.d.ts`
|
|
17
|
-
|
|
18
|
-
## 🚀 Features
|
|
19
|
-
|
|
20
|
-
- **TypeScript Support**: Full TypeScript definitions and type safety
|
|
21
|
-
- **Mongoose Integration**: Built on Mongoose ODM for MongoDB
|
|
22
|
-
- **Audit Middleware**: Built-in audit trail support via `@dynamatix/cat-shared`
|
|
23
|
-
- **Custom Value Objects**: Specialized types for financial data (Pound, Account Number, Sort Code)
|
|
24
|
-
- **Modular Architecture**: Organized into logical domains (applications, applicants, properties, etc.)
|
|
25
|
-
- **Migration Scripts**: Comprehensive data migration and maintenance tools
|
|
26
|
-
|
|
27
|
-
## 📁 Project Structure
|
|
28
|
-
|
|
29
|
-
```
|
|
30
|
-
gb-schemas-node/
|
|
31
|
-
├── applicants/ # Applicant-related schemas and models
|
|
32
|
-
├── applications/ # Application management schemas
|
|
33
|
-
├── properties/ # Property and security schemas
|
|
34
|
-
├── product-catalogues/ # Product definition schemas
|
|
35
|
-
├── shared/ # Common/shared schemas and utilities
|
|
36
|
-
├── users/ # User management schemas
|
|
37
|
-
├── underwriter/ # Underwriting-related schemas
|
|
38
|
-
├── value-objects/ # Custom Mongoose types
|
|
39
|
-
├── api-models/ # API-specific model definitions
|
|
40
|
-
├── entities/ # Entity layer schemas
|
|
41
|
-
├── examples/ # Usage examples
|
|
42
|
-
├── scripts/ # Migration and utility scripts
|
|
43
|
-
└── schema-docs/ # Schema documentation generation
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
## 🔧 Installation
|
|
47
|
-
|
|
48
|
-
```bash
|
|
49
|
-
npm install @dynamatix/gb-schemas
|
|
50
|
-
```
|
|
51
|
-
|
|
52
|
-
## 📚 Usage
|
|
53
|
-
|
|
54
|
-
### Basic Import
|
|
55
|
-
|
|
56
|
-
```typescript
|
|
57
|
-
import {
|
|
58
|
-
ApplicantModel,
|
|
59
|
-
ApplicationModel,
|
|
60
|
-
PropertyModel
|
|
61
|
-
} from '@dynamatix/gb-schemas';
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
### Modular Imports
|
|
65
|
-
|
|
66
|
-
```typescript
|
|
67
|
-
// Import specific modules
|
|
68
|
-
import { ApplicantModel } from '@dynamatix/gb-schemas/applicants';
|
|
69
|
-
import { ApplicationModel } from '@dynamatix/gb-schemas/applications';
|
|
70
|
-
import { PropertyModel } from '@dynamatix/gb-schemas/properties';
|
|
71
|
-
```
|
|
72
|
-
|
|
73
|
-
### Example: Adding Applicant Income
|
|
74
|
-
|
|
75
|
-
```typescript
|
|
76
|
-
import mongoose from 'mongoose';
|
|
77
|
-
import ApplicantIncomeModel from '@dynamatix/gb-schemas/applicants/applicant-income.model';
|
|
78
|
-
|
|
79
|
-
// Connect to MongoDB
|
|
80
|
-
await mongoose.connect(MONGODB_URI);
|
|
81
|
-
|
|
82
|
-
// Create new applicant income record
|
|
83
|
-
const newIncome = new ApplicantIncomeModel({
|
|
84
|
-
applicantId: 'your-applicant-id',
|
|
85
|
-
selfEmployedIncomeRationale: 'Based on last 2 years of accounts'
|
|
86
|
-
});
|
|
87
|
-
|
|
88
|
-
const savedIncome = await newIncome.save();
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
## 🏛️ Core Schemas
|
|
92
|
-
|
|
93
|
-
### Applicants
|
|
94
|
-
- **Applicant**: Core applicant information (personal details, addresses, employment status)
|
|
95
|
-
- **Applicant Income**: Various income types (employment, self-employed, pension, property)
|
|
96
|
-
- **Applicant Commitments**: Financial commitments (mortgages, loans, credit cards)
|
|
97
|
-
- **Applicant Credit Data**: Credit profile and credit report information
|
|
98
|
-
- **Applicant Expenditure**: Spending patterns and financial outgoings
|
|
99
|
-
|
|
100
|
-
### Applications
|
|
101
|
-
- **Application**: Main application record with workflow and status tracking
|
|
102
|
-
- **Application Mortgage**: Mortgage-specific application details
|
|
103
|
-
- **Application Credit Profile**: Credit assessment information
|
|
104
|
-
- **Application Legal**: Legal documentation and compliance data
|
|
105
|
-
- **Application Notes**: Application-related notes and comments
|
|
106
|
-
|
|
107
|
-
### Properties
|
|
108
|
-
- **Property**: Property details and characteristics
|
|
109
|
-
- **Security**: Security and collateral information
|
|
110
|
-
|
|
111
|
-
### Product Catalogues
|
|
112
|
-
- **Product Catalogue**: Product definitions and variants
|
|
113
|
-
- **Product Definitions**: Detailed product specifications
|
|
114
|
-
- **Product Variants**: Product customization options
|
|
115
|
-
|
|
116
|
-
### Shared Models
|
|
117
|
-
- **Lookup**: Reference data and lookup values
|
|
118
|
-
- **System Parameters**: Configuration and system settings
|
|
119
|
-
- **Tasks**: Workflow task management
|
|
120
|
-
- **Alerts**: System notification system
|
|
121
|
-
|
|
122
|
-
## 💰 Custom Value Objects
|
|
123
|
-
|
|
124
|
-
### Pound Type
|
|
125
|
-
Custom Mongoose type for handling UK currency values with automatic formatting and validation.
|
|
126
|
-
|
|
127
|
-
```typescript
|
|
128
|
-
import { Pound, formatPound } from '@dynamatix/gb-schemas/value-objects/pound';
|
|
129
|
-
|
|
130
|
-
// Automatically handles currency formatting and validation
|
|
131
|
-
const amount = new Pound('1,234.56'); // Returns 1234.56
|
|
132
|
-
const formatted = formatPound(1234.56); // Returns "£1,234.56"
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
### Account Number & Sort Code
|
|
136
|
-
Specialized types for UK banking information with validation.
|
|
137
|
-
|
|
138
|
-
## 🔄 Migration Scripts
|
|
139
|
-
|
|
140
|
-
The project includes comprehensive migration and maintenance scripts:
|
|
141
|
-
|
|
142
|
-
### Available Scripts
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
# Income migration
|
|
146
|
-
npm run migrate:applicant-income
|
|
147
|
-
|
|
148
|
-
# Self-employed ID migration
|
|
149
|
-
npm run migrate:self-employed-id
|
|
150
|
-
|
|
151
|
-
# Employment verification
|
|
152
|
-
npm run check:applicants-employment
|
|
153
|
-
|
|
154
|
-
# Application cleanup
|
|
155
|
-
npm run delete:applications-by-type
|
|
156
|
-
|
|
157
|
-
# API config updates
|
|
158
|
-
npm run update:apiconfigs-paths
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
### Key Migration Scripts
|
|
162
|
-
|
|
163
|
-
- **`migrate-applicant-income.js`**: Migrates from old income model to new separated models
|
|
164
|
-
- **`migrate-self-employed-id.js`**: Updates self-employed applicant references
|
|
165
|
-
- **`check-applicants-without-employment.js`**: Validates employment data integrity
|
|
166
|
-
- **`update-apiconfigs-paths.js`**: Updates API configuration paths
|
|
167
|
-
|
|
168
|
-
## 🛠️ Development
|
|
169
|
-
|
|
170
|
-
### Prerequisites
|
|
171
|
-
|
|
172
|
-
- Node.js (v18+)
|
|
173
|
-
- TypeScript 5.3+
|
|
174
|
-
- MongoDB 6.14+
|
|
175
|
-
|
|
176
|
-
### Setup
|
|
177
|
-
|
|
178
|
-
```bash
|
|
179
|
-
# Install dependencies
|
|
180
|
-
npm install
|
|
181
|
-
|
|
182
|
-
# Build the project
|
|
183
|
-
npm run build
|
|
184
|
-
|
|
185
|
-
# Generate documentation
|
|
186
|
-
npm run generate-docs
|
|
187
|
-
|
|
188
|
-
# Run examples
|
|
189
|
-
npm run example:income
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
### Build Configuration
|
|
193
|
-
|
|
194
|
-
The project uses TypeScript with ES2020 modules and generates declaration files:
|
|
195
|
-
|
|
196
|
-
```json
|
|
197
|
-
{
|
|
198
|
-
"target": "ES2020",
|
|
199
|
-
"module": "ES2020",
|
|
200
|
-
"outDir": "./dist",
|
|
201
|
-
"declaration": true,
|
|
202
|
-
"declarationMap": true
|
|
203
|
-
}
|
|
204
|
-
```
|
|
205
|
-
|
|
206
|
-
## 📖 API Reference
|
|
207
|
-
|
|
208
|
-
### Main Exports
|
|
209
|
-
|
|
210
|
-
```typescript
|
|
211
|
-
// Core models
|
|
212
|
-
export * from './applications';
|
|
213
|
-
export * from './applicants';
|
|
214
|
-
export * from './properties';
|
|
215
|
-
export * from './shared';
|
|
216
|
-
export * from './users';
|
|
217
|
-
export * from './product-catalogues';
|
|
218
|
-
export * from './underwriter';
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
### Model Relationships
|
|
222
|
-
|
|
223
|
-
- **Applications** → **Applicants** (one-to-many)
|
|
224
|
-
- **Applications** → **Properties** (one-to-many)
|
|
225
|
-
- **Applications** → **Product** (many-to-one)
|
|
226
|
-
- **Applicants** → **Income Models** (one-to-many)
|
|
227
|
-
- **Applicants** → **Commitment Models** (one-to-many)
|
|
228
|
-
|
|
229
|
-
## 🔒 Security & Compliance
|
|
230
|
-
|
|
231
|
-
- **GDPR Support**: Built-in GDPR consent tracking
|
|
232
|
-
- **Audit Trail**: Comprehensive audit logging via middleware
|
|
233
|
-
- **Data Validation**: Strict schema validation and type checking
|
|
234
|
-
- **Access Control**: User permission and role-based access models
|
|
235
|
-
|
|
236
|
-
## 🧪 Testing & Examples
|
|
237
|
-
|
|
238
|
-
### Example Scripts
|
|
239
|
-
|
|
240
|
-
- **`add-applicant-income.ts`**: Demonstrates creating applicant income records
|
|
241
|
-
- **Migration Scripts**: Show real-world data migration patterns
|
|
242
|
-
|
|
243
|
-
### Running Examples
|
|
244
|
-
|
|
245
|
-
```bash
|
|
246
|
-
# Run income example
|
|
247
|
-
npm run example:income
|
|
248
|
-
|
|
249
|
-
# Generate documentation
|
|
250
|
-
npm run generate-docs
|
|
251
|
-
```
|
|
252
|
-
|
|
253
|
-
## 📝 Documentation
|
|
254
|
-
|
|
255
|
-
- **Schema Documentation**: Auto-generated via `npm run generate-docs`
|
|
256
|
-
- **Migration Guides**: Detailed README files in the `scripts/` directory
|
|
257
|
-
- **API Models**: Type-safe API model definitions
|
|
258
|
-
|
|
259
|
-
## 🤝 Contributing
|
|
260
|
-
|
|
261
|
-
1. Fork the repository
|
|
262
|
-
2. Create a feature branch
|
|
263
|
-
3. Make your changes
|
|
264
|
-
4. Ensure TypeScript compilation passes
|
|
265
|
-
5. Submit a pull request
|
|
266
|
-
|
|
267
|
-
## 📄 License
|
|
268
|
-
|
|
269
|
-
ISC License - see package.json for details
|
|
270
|
-
|
|
271
|
-
## 🆘 Support
|
|
272
|
-
|
|
273
|
-
- **Issues**: [GitHub Issues](https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas/issues)
|
|
274
|
-
- **Repository**: [GitHub Repository](https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas)
|
|
275
|
-
- **Author**: Dynamatix
|
|
276
|
-
|
|
277
|
-
## 🔄 Version History
|
|
278
|
-
|
|
279
|
-
- **Current**: 1.3.305
|
|
280
|
-
- **Dependencies**:
|
|
281
|
-
- `@dynamatix/cat-shared`: ^0.0.119
|
|
282
|
-
- `mongoose`: ^8.9.5
|
|
283
|
-
- `mongodb`: ^6.14.2
|
|
284
|
-
|
|
285
|
-
---
|
|
286
|
-
|
|
1
|
+
# GB Schemas (@dynamatix/gb-schemas)
|
|
2
|
+
|
|
3
|
+
A comprehensive TypeScript/Mongoose schema library for Gatehouse Bank backend systems, providing data models for mortgage applications, applicants, properties, and related financial services.
|
|
4
|
+
|
|
5
|
+
## 🏗️ Project Overview
|
|
6
|
+
|
|
7
|
+
This package contains all the schemas and data models used in Gatehouse Bank's backend systems. It provides a robust foundation for managing mortgage applications, applicant data, property information, and various financial commitments through well-defined Mongoose schemas with TypeScript support.
|
|
8
|
+
|
|
9
|
+
## 📦 Package Information
|
|
10
|
+
|
|
11
|
+
- **Name**: `@dynamatix/gb-schemas`
|
|
12
|
+
- **Version**: 1.3.305
|
|
13
|
+
- **Description**: All the schemas for Gatehouse Bank back-end
|
|
14
|
+
- **Type**: ES Module
|
|
15
|
+
- **Main**: `dist/index.js`
|
|
16
|
+
- **Types**: `dist/index.d.ts`
|
|
17
|
+
|
|
18
|
+
## 🚀 Features
|
|
19
|
+
|
|
20
|
+
- **TypeScript Support**: Full TypeScript definitions and type safety
|
|
21
|
+
- **Mongoose Integration**: Built on Mongoose ODM for MongoDB
|
|
22
|
+
- **Audit Middleware**: Built-in audit trail support via `@dynamatix/cat-shared`
|
|
23
|
+
- **Custom Value Objects**: Specialized types for financial data (Pound, Account Number, Sort Code)
|
|
24
|
+
- **Modular Architecture**: Organized into logical domains (applications, applicants, properties, etc.)
|
|
25
|
+
- **Migration Scripts**: Comprehensive data migration and maintenance tools
|
|
26
|
+
|
|
27
|
+
## 📁 Project Structure
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
gb-schemas-node/
|
|
31
|
+
├── applicants/ # Applicant-related schemas and models
|
|
32
|
+
├── applications/ # Application management schemas
|
|
33
|
+
├── properties/ # Property and security schemas
|
|
34
|
+
├── product-catalogues/ # Product definition schemas
|
|
35
|
+
├── shared/ # Common/shared schemas and utilities
|
|
36
|
+
├── users/ # User management schemas
|
|
37
|
+
├── underwriter/ # Underwriting-related schemas
|
|
38
|
+
├── value-objects/ # Custom Mongoose types
|
|
39
|
+
├── api-models/ # API-specific model definitions
|
|
40
|
+
├── entities/ # Entity layer schemas
|
|
41
|
+
├── examples/ # Usage examples
|
|
42
|
+
├── scripts/ # Migration and utility scripts
|
|
43
|
+
└── schema-docs/ # Schema documentation generation
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## 🔧 Installation
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
npm install @dynamatix/gb-schemas
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## 📚 Usage
|
|
53
|
+
|
|
54
|
+
### Basic Import
|
|
55
|
+
|
|
56
|
+
```typescript
|
|
57
|
+
import {
|
|
58
|
+
ApplicantModel,
|
|
59
|
+
ApplicationModel,
|
|
60
|
+
PropertyModel
|
|
61
|
+
} from '@dynamatix/gb-schemas';
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Modular Imports
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
// Import specific modules
|
|
68
|
+
import { ApplicantModel } from '@dynamatix/gb-schemas/applicants';
|
|
69
|
+
import { ApplicationModel } from '@dynamatix/gb-schemas/applications';
|
|
70
|
+
import { PropertyModel } from '@dynamatix/gb-schemas/properties';
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
### Example: Adding Applicant Income
|
|
74
|
+
|
|
75
|
+
```typescript
|
|
76
|
+
import mongoose from 'mongoose';
|
|
77
|
+
import ApplicantIncomeModel from '@dynamatix/gb-schemas/applicants/applicant-income.model';
|
|
78
|
+
|
|
79
|
+
// Connect to MongoDB
|
|
80
|
+
await mongoose.connect(MONGODB_URI);
|
|
81
|
+
|
|
82
|
+
// Create new applicant income record
|
|
83
|
+
const newIncome = new ApplicantIncomeModel({
|
|
84
|
+
applicantId: 'your-applicant-id',
|
|
85
|
+
selfEmployedIncomeRationale: 'Based on last 2 years of accounts'
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
const savedIncome = await newIncome.save();
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## 🏛️ Core Schemas
|
|
92
|
+
|
|
93
|
+
### Applicants
|
|
94
|
+
- **Applicant**: Core applicant information (personal details, addresses, employment status)
|
|
95
|
+
- **Applicant Income**: Various income types (employment, self-employed, pension, property)
|
|
96
|
+
- **Applicant Commitments**: Financial commitments (mortgages, loans, credit cards)
|
|
97
|
+
- **Applicant Credit Data**: Credit profile and credit report information
|
|
98
|
+
- **Applicant Expenditure**: Spending patterns and financial outgoings
|
|
99
|
+
|
|
100
|
+
### Applications
|
|
101
|
+
- **Application**: Main application record with workflow and status tracking
|
|
102
|
+
- **Application Mortgage**: Mortgage-specific application details
|
|
103
|
+
- **Application Credit Profile**: Credit assessment information
|
|
104
|
+
- **Application Legal**: Legal documentation and compliance data
|
|
105
|
+
- **Application Notes**: Application-related notes and comments
|
|
106
|
+
|
|
107
|
+
### Properties
|
|
108
|
+
- **Property**: Property details and characteristics
|
|
109
|
+
- **Security**: Security and collateral information
|
|
110
|
+
|
|
111
|
+
### Product Catalogues
|
|
112
|
+
- **Product Catalogue**: Product definitions and variants
|
|
113
|
+
- **Product Definitions**: Detailed product specifications
|
|
114
|
+
- **Product Variants**: Product customization options
|
|
115
|
+
|
|
116
|
+
### Shared Models
|
|
117
|
+
- **Lookup**: Reference data and lookup values
|
|
118
|
+
- **System Parameters**: Configuration and system settings
|
|
119
|
+
- **Tasks**: Workflow task management
|
|
120
|
+
- **Alerts**: System notification system
|
|
121
|
+
|
|
122
|
+
## 💰 Custom Value Objects
|
|
123
|
+
|
|
124
|
+
### Pound Type
|
|
125
|
+
Custom Mongoose type for handling UK currency values with automatic formatting and validation.
|
|
126
|
+
|
|
127
|
+
```typescript
|
|
128
|
+
import { Pound, formatPound } from '@dynamatix/gb-schemas/value-objects/pound';
|
|
129
|
+
|
|
130
|
+
// Automatically handles currency formatting and validation
|
|
131
|
+
const amount = new Pound('1,234.56'); // Returns 1234.56
|
|
132
|
+
const formatted = formatPound(1234.56); // Returns "£1,234.56"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Account Number & Sort Code
|
|
136
|
+
Specialized types for UK banking information with validation.
|
|
137
|
+
|
|
138
|
+
## 🔄 Migration Scripts
|
|
139
|
+
|
|
140
|
+
The project includes comprehensive migration and maintenance scripts:
|
|
141
|
+
|
|
142
|
+
### Available Scripts
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
# Income migration
|
|
146
|
+
npm run migrate:applicant-income
|
|
147
|
+
|
|
148
|
+
# Self-employed ID migration
|
|
149
|
+
npm run migrate:self-employed-id
|
|
150
|
+
|
|
151
|
+
# Employment verification
|
|
152
|
+
npm run check:applicants-employment
|
|
153
|
+
|
|
154
|
+
# Application cleanup
|
|
155
|
+
npm run delete:applications-by-type
|
|
156
|
+
|
|
157
|
+
# API config updates
|
|
158
|
+
npm run update:apiconfigs-paths
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
### Key Migration Scripts
|
|
162
|
+
|
|
163
|
+
- **`migrate-applicant-income.js`**: Migrates from old income model to new separated models
|
|
164
|
+
- **`migrate-self-employed-id.js`**: Updates self-employed applicant references
|
|
165
|
+
- **`check-applicants-without-employment.js`**: Validates employment data integrity
|
|
166
|
+
- **`update-apiconfigs-paths.js`**: Updates API configuration paths
|
|
167
|
+
|
|
168
|
+
## 🛠️ Development
|
|
169
|
+
|
|
170
|
+
### Prerequisites
|
|
171
|
+
|
|
172
|
+
- Node.js (v18+)
|
|
173
|
+
- TypeScript 5.3+
|
|
174
|
+
- MongoDB 6.14+
|
|
175
|
+
|
|
176
|
+
### Setup
|
|
177
|
+
|
|
178
|
+
```bash
|
|
179
|
+
# Install dependencies
|
|
180
|
+
npm install
|
|
181
|
+
|
|
182
|
+
# Build the project
|
|
183
|
+
npm run build
|
|
184
|
+
|
|
185
|
+
# Generate documentation
|
|
186
|
+
npm run generate-docs
|
|
187
|
+
|
|
188
|
+
# Run examples
|
|
189
|
+
npm run example:income
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Build Configuration
|
|
193
|
+
|
|
194
|
+
The project uses TypeScript with ES2020 modules and generates declaration files:
|
|
195
|
+
|
|
196
|
+
```json
|
|
197
|
+
{
|
|
198
|
+
"target": "ES2020",
|
|
199
|
+
"module": "ES2020",
|
|
200
|
+
"outDir": "./dist",
|
|
201
|
+
"declaration": true,
|
|
202
|
+
"declarationMap": true
|
|
203
|
+
}
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## 📖 API Reference
|
|
207
|
+
|
|
208
|
+
### Main Exports
|
|
209
|
+
|
|
210
|
+
```typescript
|
|
211
|
+
// Core models
|
|
212
|
+
export * from './applications';
|
|
213
|
+
export * from './applicants';
|
|
214
|
+
export * from './properties';
|
|
215
|
+
export * from './shared';
|
|
216
|
+
export * from './users';
|
|
217
|
+
export * from './product-catalogues';
|
|
218
|
+
export * from './underwriter';
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Model Relationships
|
|
222
|
+
|
|
223
|
+
- **Applications** → **Applicants** (one-to-many)
|
|
224
|
+
- **Applications** → **Properties** (one-to-many)
|
|
225
|
+
- **Applications** → **Product** (many-to-one)
|
|
226
|
+
- **Applicants** → **Income Models** (one-to-many)
|
|
227
|
+
- **Applicants** → **Commitment Models** (one-to-many)
|
|
228
|
+
|
|
229
|
+
## 🔒 Security & Compliance
|
|
230
|
+
|
|
231
|
+
- **GDPR Support**: Built-in GDPR consent tracking
|
|
232
|
+
- **Audit Trail**: Comprehensive audit logging via middleware
|
|
233
|
+
- **Data Validation**: Strict schema validation and type checking
|
|
234
|
+
- **Access Control**: User permission and role-based access models
|
|
235
|
+
|
|
236
|
+
## 🧪 Testing & Examples
|
|
237
|
+
|
|
238
|
+
### Example Scripts
|
|
239
|
+
|
|
240
|
+
- **`add-applicant-income.ts`**: Demonstrates creating applicant income records
|
|
241
|
+
- **Migration Scripts**: Show real-world data migration patterns
|
|
242
|
+
|
|
243
|
+
### Running Examples
|
|
244
|
+
|
|
245
|
+
```bash
|
|
246
|
+
# Run income example
|
|
247
|
+
npm run example:income
|
|
248
|
+
|
|
249
|
+
# Generate documentation
|
|
250
|
+
npm run generate-docs
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
## 📝 Documentation
|
|
254
|
+
|
|
255
|
+
- **Schema Documentation**: Auto-generated via `npm run generate-docs`
|
|
256
|
+
- **Migration Guides**: Detailed README files in the `scripts/` directory
|
|
257
|
+
- **API Models**: Type-safe API model definitions
|
|
258
|
+
|
|
259
|
+
## 🤝 Contributing
|
|
260
|
+
|
|
261
|
+
1. Fork the repository
|
|
262
|
+
2. Create a feature branch
|
|
263
|
+
3. Make your changes
|
|
264
|
+
4. Ensure TypeScript compilation passes
|
|
265
|
+
5. Submit a pull request
|
|
266
|
+
|
|
267
|
+
## 📄 License
|
|
268
|
+
|
|
269
|
+
ISC License - see package.json for details
|
|
270
|
+
|
|
271
|
+
## 🆘 Support
|
|
272
|
+
|
|
273
|
+
- **Issues**: [GitHub Issues](https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas/issues)
|
|
274
|
+
- **Repository**: [GitHub Repository](https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas)
|
|
275
|
+
- **Author**: Dynamatix
|
|
276
|
+
|
|
277
|
+
## 🔄 Version History
|
|
278
|
+
|
|
279
|
+
- **Current**: 1.3.305
|
|
280
|
+
- **Dependencies**:
|
|
281
|
+
- `@dynamatix/cat-shared`: ^0.0.119
|
|
282
|
+
- `mongoose`: ^8.9.5
|
|
283
|
+
- `mongodb`: ^6.14.2
|
|
284
|
+
|
|
285
|
+
---
|
|
286
|
+
|
|
287
287
|
*This package provides the foundational data layer for Gatehouse Bank's mortgage and financial services backend systems.*
|
|
@@ -1,31 +1,3 @@
|
|
|
1
|
-
/// <reference path="../value-objects/pound.d.ts" />
|
|
2
|
-
/// <reference path="../value-objects/account-number.d.ts" />
|
|
3
|
-
/// <reference path="../value-objects/sort-code.d.ts" />
|
|
4
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
5
|
-
/// <reference types="mongoose/types/callback" />
|
|
6
|
-
/// <reference types="mongoose/types/collection" />
|
|
7
|
-
/// <reference types="mongoose/types/connection" />
|
|
8
|
-
/// <reference types="mongoose/types/cursor" />
|
|
9
|
-
/// <reference types="mongoose/types/document" />
|
|
10
|
-
/// <reference types="mongoose/types/error" />
|
|
11
|
-
/// <reference types="mongoose/types/expressions" />
|
|
12
|
-
/// <reference types="mongoose/types/helpers" />
|
|
13
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
14
|
-
/// <reference types="mongoose/types/indexes" />
|
|
15
|
-
/// <reference types="mongoose/types/models" />
|
|
16
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
17
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
18
|
-
/// <reference types="mongoose/types/populate" />
|
|
19
|
-
/// <reference types="mongoose/types/query" />
|
|
20
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
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/schematypes" />
|
|
27
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
28
|
-
/// <reference types="mongoose/types/inferrawdoctype" />
|
|
29
1
|
import mongoose from "mongoose";
|
|
30
2
|
import { Pound } from "../value-objects/pound";
|
|
31
3
|
declare const ApplicantAdditionalIncomeModel: mongoose.Model<{
|
|
@@ -74,7 +46,6 @@ declare const ApplicantAdditionalIncomeModel: mongoose.Model<{
|
|
|
74
46
|
instance?: unknown;
|
|
75
47
|
isRequired?: unknown;
|
|
76
48
|
path?: unknown;
|
|
77
|
-
toJSONSchema?: {} | null | undefined;
|
|
78
49
|
validateAll?: {} | null | undefined;
|
|
79
50
|
defaultOptions?: unknown;
|
|
80
51
|
} | null | undefined;
|
|
@@ -124,7 +95,6 @@ declare const ApplicantAdditionalIncomeModel: mongoose.Model<{
|
|
|
124
95
|
instance?: unknown;
|
|
125
96
|
isRequired?: unknown;
|
|
126
97
|
path?: unknown;
|
|
127
|
-
toJSONSchema?: {} | null | undefined;
|
|
128
98
|
validateAll?: {} | null | undefined;
|
|
129
99
|
defaultOptions?: unknown;
|
|
130
100
|
} | null | undefined;
|
|
@@ -176,7 +146,6 @@ declare const ApplicantAdditionalIncomeModel: mongoose.Model<{
|
|
|
176
146
|
instance?: unknown;
|
|
177
147
|
isRequired?: unknown;
|
|
178
148
|
path?: unknown;
|
|
179
|
-
toJSONSchema?: {} | null | undefined;
|
|
180
149
|
validateAll?: {} | null | undefined;
|
|
181
150
|
defaultOptions?: unknown;
|
|
182
151
|
} | null | undefined;
|
|
@@ -226,13 +195,12 @@ declare const ApplicantAdditionalIncomeModel: mongoose.Model<{
|
|
|
226
195
|
instance?: unknown;
|
|
227
196
|
isRequired?: unknown;
|
|
228
197
|
path?: unknown;
|
|
229
|
-
toJSONSchema?: {} | null | undefined;
|
|
230
198
|
validateAll?: {} | null | undefined;
|
|
231
199
|
defaultOptions?: unknown;
|
|
232
200
|
} | null | undefined;
|
|
233
201
|
payFrequencyLid?: mongoose.Types.ObjectId | null | undefined;
|
|
234
202
|
guaranteed?: unknown;
|
|
235
|
-
}
|
|
203
|
+
}> & {
|
|
236
204
|
applicantId?: mongoose.Types.ObjectId | null | undefined;
|
|
237
205
|
amount?: {
|
|
238
206
|
validators: mongoose.Types.DocumentArray<{
|
|
@@ -278,7 +246,6 @@ declare const ApplicantAdditionalIncomeModel: mongoose.Model<{
|
|
|
278
246
|
instance?: unknown;
|
|
279
247
|
isRequired?: unknown;
|
|
280
248
|
path?: unknown;
|
|
281
|
-
toJSONSchema?: {} | null | undefined;
|
|
282
249
|
validateAll?: {} | null | undefined;
|
|
283
250
|
defaultOptions?: unknown;
|
|
284
251
|
} | null | undefined;
|
|
@@ -328,7 +295,6 @@ declare const ApplicantAdditionalIncomeModel: mongoose.Model<{
|
|
|
328
295
|
instance?: unknown;
|
|
329
296
|
isRequired?: unknown;
|
|
330
297
|
path?: unknown;
|
|
331
|
-
toJSONSchema?: {} | null | undefined;
|
|
332
298
|
validateAll?: {} | null | undefined;
|
|
333
299
|
defaultOptions?: unknown;
|
|
334
300
|
} | null | undefined;
|
|
@@ -361,7 +327,7 @@ declare const ApplicantAdditionalIncomeModel: mongoose.Model<{
|
|
|
361
327
|
netAmount: Pound;
|
|
362
328
|
payFrequencyLid: mongoose.Types.ObjectId;
|
|
363
329
|
guaranteed: boolean;
|
|
364
|
-
}
|
|
330
|
+
}>> & mongoose.FlatRecord<{
|
|
365
331
|
applicantId: mongoose.Types.ObjectId;
|
|
366
332
|
amount: Pound;
|
|
367
333
|
apprivoSoucrceNumberLid: mongoose.Types.ObjectId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-additional-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-additional-income.model.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"applicant-additional-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-additional-income.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAe,MAAM,wBAAwB,CAAC;AA2B5D,QAAA,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiF,CAAC;AAEtH,eAAe,8BAA8B,CAAC"}
|