@dynamatix/gb-schemas 2.3.356 → 2.3.358
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 +308 -308
- package/dist/applicants/applicant-welcome-call.model.js +9 -9
- package/dist/applications/application-euc.model.d.ts +6 -6
- package/dist/applications/application-euc.model.js +1 -1
- package/dist/shared/audit-log.model.d.ts +180 -0
- package/dist/shared/audit-log.model.d.ts.map +1 -0
- package/dist/shared/audit-log.model.js +43 -0
- package/dist/shared/document.model.d.ts +180 -0
- package/dist/shared/document.model.d.ts.map +1 -0
- package/dist/shared/document.model.js +40 -0
- package/dist/shared/queue.model.d.ts +180 -0
- package/dist/shared/queue.model.d.ts.map +1 -0
- package/dist/shared/queue.model.js +42 -0
- package/package.json +87 -87
- package/dist/applicants/applicant-income-source.model.d.ts +0 -26
- package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
- package/dist/applicants/applicant-income.model.d.ts +0 -160
- package/dist/applicants/applicant-income.model.d.ts.map +0 -1
- package/dist/applicants/applicant-other-income.model.d.ts +0 -85
- package/dist/applicants/applicant-other-income.model.d.ts.map +0 -1
- package/dist/applications/application-document.model.d.ts +0 -158
- package/dist/applications/application-document.model.d.ts.map +0 -1
- package/dist/applications/document.model.d.ts +0 -158
- package/dist/applications/document.model.d.ts.map +0 -1
- package/dist/applications/productfeatures.model.d.ts +0 -368
- package/dist/applications/productfeatures.model.d.ts.map +0 -1
- package/dist/shared/document-type-model.d.ts +0 -48
- package/dist/shared/document-type-model.d.ts.map +0 -1
|
@@ -0,0 +1,180 @@
|
|
|
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
|
+
import mongoose from "mongoose";
|
|
30
|
+
declare const QueueModel: mongoose.Model<{
|
|
31
|
+
createdAt: NativeDate;
|
|
32
|
+
updatedAt: NativeDate;
|
|
33
|
+
} & {
|
|
34
|
+
isActive: boolean;
|
|
35
|
+
name: string;
|
|
36
|
+
retryAttempts: number;
|
|
37
|
+
retryDelay: number;
|
|
38
|
+
priority: number;
|
|
39
|
+
maxConcurrency: number;
|
|
40
|
+
processingTimeout: number;
|
|
41
|
+
assignedUsers: mongoose.Types.ObjectId[];
|
|
42
|
+
description?: string | null | undefined;
|
|
43
|
+
departmentId?: mongoose.Types.ObjectId | null | undefined;
|
|
44
|
+
workflowId?: mongoose.Types.ObjectId | null | undefined;
|
|
45
|
+
settings?: any;
|
|
46
|
+
statistics?: {
|
|
47
|
+
totalProcessed: number;
|
|
48
|
+
totalFailed: number;
|
|
49
|
+
averageProcessingTime: number;
|
|
50
|
+
lastProcessedAt?: NativeDate | null | undefined;
|
|
51
|
+
} | null | undefined;
|
|
52
|
+
}, {}, {}, {}, mongoose.Document<unknown, {}, {
|
|
53
|
+
createdAt: NativeDate;
|
|
54
|
+
updatedAt: NativeDate;
|
|
55
|
+
} & {
|
|
56
|
+
isActive: boolean;
|
|
57
|
+
name: string;
|
|
58
|
+
retryAttempts: number;
|
|
59
|
+
retryDelay: number;
|
|
60
|
+
priority: number;
|
|
61
|
+
maxConcurrency: number;
|
|
62
|
+
processingTimeout: number;
|
|
63
|
+
assignedUsers: mongoose.Types.ObjectId[];
|
|
64
|
+
description?: string | null | undefined;
|
|
65
|
+
departmentId?: mongoose.Types.ObjectId | null | undefined;
|
|
66
|
+
workflowId?: mongoose.Types.ObjectId | null | undefined;
|
|
67
|
+
settings?: any;
|
|
68
|
+
statistics?: {
|
|
69
|
+
totalProcessed: number;
|
|
70
|
+
totalFailed: number;
|
|
71
|
+
averageProcessingTime: number;
|
|
72
|
+
lastProcessedAt?: NativeDate | null | undefined;
|
|
73
|
+
} | null | undefined;
|
|
74
|
+
}, {}> & {
|
|
75
|
+
createdAt: NativeDate;
|
|
76
|
+
updatedAt: NativeDate;
|
|
77
|
+
} & {
|
|
78
|
+
isActive: boolean;
|
|
79
|
+
name: string;
|
|
80
|
+
retryAttempts: number;
|
|
81
|
+
retryDelay: number;
|
|
82
|
+
priority: number;
|
|
83
|
+
maxConcurrency: number;
|
|
84
|
+
processingTimeout: number;
|
|
85
|
+
assignedUsers: mongoose.Types.ObjectId[];
|
|
86
|
+
description?: string | null | undefined;
|
|
87
|
+
departmentId?: mongoose.Types.ObjectId | null | undefined;
|
|
88
|
+
workflowId?: mongoose.Types.ObjectId | null | undefined;
|
|
89
|
+
settings?: any;
|
|
90
|
+
statistics?: {
|
|
91
|
+
totalProcessed: number;
|
|
92
|
+
totalFailed: number;
|
|
93
|
+
averageProcessingTime: number;
|
|
94
|
+
lastProcessedAt?: NativeDate | null | undefined;
|
|
95
|
+
} | null | undefined;
|
|
96
|
+
} & {
|
|
97
|
+
_id: mongoose.Types.ObjectId;
|
|
98
|
+
} & {
|
|
99
|
+
__v: number;
|
|
100
|
+
}, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
101
|
+
timestamps: true;
|
|
102
|
+
toJSON: {
|
|
103
|
+
virtuals: true;
|
|
104
|
+
};
|
|
105
|
+
toObject: {
|
|
106
|
+
virtuals: true;
|
|
107
|
+
};
|
|
108
|
+
}, {
|
|
109
|
+
createdAt: NativeDate;
|
|
110
|
+
updatedAt: NativeDate;
|
|
111
|
+
} & {
|
|
112
|
+
isActive: boolean;
|
|
113
|
+
name: string;
|
|
114
|
+
retryAttempts: number;
|
|
115
|
+
retryDelay: number;
|
|
116
|
+
priority: number;
|
|
117
|
+
maxConcurrency: number;
|
|
118
|
+
processingTimeout: number;
|
|
119
|
+
assignedUsers: mongoose.Types.ObjectId[];
|
|
120
|
+
description?: string | null | undefined;
|
|
121
|
+
departmentId?: mongoose.Types.ObjectId | null | undefined;
|
|
122
|
+
workflowId?: mongoose.Types.ObjectId | null | undefined;
|
|
123
|
+
settings?: any;
|
|
124
|
+
statistics?: {
|
|
125
|
+
totalProcessed: number;
|
|
126
|
+
totalFailed: number;
|
|
127
|
+
averageProcessingTime: number;
|
|
128
|
+
lastProcessedAt?: NativeDate | null | undefined;
|
|
129
|
+
} | null | undefined;
|
|
130
|
+
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
131
|
+
createdAt: NativeDate;
|
|
132
|
+
updatedAt: NativeDate;
|
|
133
|
+
} & {
|
|
134
|
+
isActive: boolean;
|
|
135
|
+
name: string;
|
|
136
|
+
retryAttempts: number;
|
|
137
|
+
retryDelay: number;
|
|
138
|
+
priority: number;
|
|
139
|
+
maxConcurrency: number;
|
|
140
|
+
processingTimeout: number;
|
|
141
|
+
assignedUsers: mongoose.Types.ObjectId[];
|
|
142
|
+
description?: string | null | undefined;
|
|
143
|
+
departmentId?: mongoose.Types.ObjectId | null | undefined;
|
|
144
|
+
workflowId?: mongoose.Types.ObjectId | null | undefined;
|
|
145
|
+
settings?: any;
|
|
146
|
+
statistics?: {
|
|
147
|
+
totalProcessed: number;
|
|
148
|
+
totalFailed: number;
|
|
149
|
+
averageProcessingTime: number;
|
|
150
|
+
lastProcessedAt?: NativeDate | null | undefined;
|
|
151
|
+
} | null | undefined;
|
|
152
|
+
}>, {}> & mongoose.FlatRecord<{
|
|
153
|
+
createdAt: NativeDate;
|
|
154
|
+
updatedAt: NativeDate;
|
|
155
|
+
} & {
|
|
156
|
+
isActive: boolean;
|
|
157
|
+
name: string;
|
|
158
|
+
retryAttempts: number;
|
|
159
|
+
retryDelay: number;
|
|
160
|
+
priority: number;
|
|
161
|
+
maxConcurrency: number;
|
|
162
|
+
processingTimeout: number;
|
|
163
|
+
assignedUsers: mongoose.Types.ObjectId[];
|
|
164
|
+
description?: string | null | undefined;
|
|
165
|
+
departmentId?: mongoose.Types.ObjectId | null | undefined;
|
|
166
|
+
workflowId?: mongoose.Types.ObjectId | null | undefined;
|
|
167
|
+
settings?: any;
|
|
168
|
+
statistics?: {
|
|
169
|
+
totalProcessed: number;
|
|
170
|
+
totalFailed: number;
|
|
171
|
+
averageProcessingTime: number;
|
|
172
|
+
lastProcessedAt?: NativeDate | null | undefined;
|
|
173
|
+
} | null | undefined;
|
|
174
|
+
}> & {
|
|
175
|
+
_id: mongoose.Types.ObjectId;
|
|
176
|
+
} & {
|
|
177
|
+
__v: number;
|
|
178
|
+
}>>;
|
|
179
|
+
export default QueueModel;
|
|
180
|
+
//# sourceMappingURL=queue.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queue.model.d.ts","sourceRoot":"","sources":["../../shared/queue.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA6ChC,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAuC,CAAC;AACxD,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import mongoose from "mongoose";
|
|
2
|
+
import { applyAuditMiddleware } from "@dynamatix/cat-shared/middlewares";
|
|
3
|
+
import { applyWorkflowPlugin } from "./workflow.plugin";
|
|
4
|
+
const queueSchema = new mongoose.Schema({
|
|
5
|
+
name: { type: String, required: true, unique: true },
|
|
6
|
+
description: { type: String, required: false },
|
|
7
|
+
isActive: { type: Boolean, default: true },
|
|
8
|
+
priority: { type: Number, default: 0 },
|
|
9
|
+
maxConcurrency: { type: Number, default: 1 },
|
|
10
|
+
retryAttempts: { type: Number, default: 3 },
|
|
11
|
+
retryDelay: { type: Number, default: 5000 }, // milliseconds
|
|
12
|
+
processingTimeout: { type: Number, default: 300000 }, // 5 minutes in milliseconds
|
|
13
|
+
assignedUsers: [{ type: mongoose.Schema.Types.ObjectId, ref: "User" }],
|
|
14
|
+
departmentId: { type: mongoose.Schema.Types.ObjectId, ref: "Department", required: false },
|
|
15
|
+
workflowId: { type: mongoose.Schema.Types.ObjectId, ref: "Workflow", required: false },
|
|
16
|
+
settings: { type: mongoose.Schema.Types.Mixed, required: false },
|
|
17
|
+
statistics: {
|
|
18
|
+
totalProcessed: { type: Number, default: 0 },
|
|
19
|
+
totalFailed: { type: Number, default: 0 },
|
|
20
|
+
averageProcessingTime: { type: Number, default: 0 },
|
|
21
|
+
lastProcessedAt: { type: Date, required: false }
|
|
22
|
+
}
|
|
23
|
+
}, {
|
|
24
|
+
timestamps: true,
|
|
25
|
+
toJSON: { virtuals: true },
|
|
26
|
+
toObject: { virtuals: true }
|
|
27
|
+
});
|
|
28
|
+
// Virtual for current queue size (would need to be populated from related collections)
|
|
29
|
+
queueSchema.virtual('currentSize').get(function () {
|
|
30
|
+
// This would typically be calculated by counting related queue items
|
|
31
|
+
return 0;
|
|
32
|
+
});
|
|
33
|
+
applyAuditMiddleware(queueSchema, "Queue");
|
|
34
|
+
applyWorkflowPlugin(queueSchema, 'queue');
|
|
35
|
+
// Add indexes to match database
|
|
36
|
+
queueSchema.index({ name: 1 }, { unique: true }); // Unique queue name
|
|
37
|
+
queueSchema.index({ isActive: 1 }); // Filter by active status
|
|
38
|
+
queueSchema.index({ priority: -1 }); // Sort by priority (highest first)
|
|
39
|
+
queueSchema.index({ departmentId: 1 }); // Filter by department
|
|
40
|
+
queueSchema.index({ isActive: 1, priority: -1 }); // Compound: active + priority
|
|
41
|
+
const QueueModel = mongoose.model("Queue", queueSchema);
|
|
42
|
+
export default QueueModel;
|
package/package.json
CHANGED
|
@@ -1,87 +1,87 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dynamatix/gb-schemas",
|
|
3
|
-
"version": "2.3.
|
|
4
|
-
"description": "All the schemas for gatehouse bank back-end",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"types": "dist/index.d.ts",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "tsc",
|
|
10
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
-
"test:workflow": "npm run build && node test-workflow.js",
|
|
12
|
-
"test:workflow:env": "npm run build && WORKFLOW_API_KEY=test-key WORKFLOW_API_URL=http://localhost:3000/api/workflows node test-workflow-with-env.js",
|
|
13
|
-
"example:app": "npm run build && node example-app-usage.js",
|
|
14
|
-
"test:workflow:triggers": "npm run build && node test-workflow-with-triggers.js",
|
|
15
|
-
"test:workflow:direct": "npm run build && node test-direct-middleware.js",
|
|
16
|
-
"patch": "tsc && npm version patch && npm publish --access public && exit 0",
|
|
17
|
-
"generate-docs": "NODE_OPTIONS='--loader ts-node/esm' ts-node schema-docs/docs.seeder.ts",
|
|
18
|
-
"example:income": "NODE_OPTIONS='--loader ts-node/esm' ts-node examples/add-applicant-income.ts",
|
|
19
|
-
"migrate:applicant-income": "node migrate-applicant-income.js",
|
|
20
|
-
"migrate:self-employed-id": "node migrate-self-employed-id.js",
|
|
21
|
-
"check:applicants-employment": "node check-applicants-without-employment.js",
|
|
22
|
-
"delete:applications-by-type": "node delete-applications-by-type.js",
|
|
23
|
-
"find:applications-many-audits": "node find-applications-with-many-audits.js",
|
|
24
|
-
"update:apiconfigs-paths": "node scripts/update-apiconfigs-paths.js",
|
|
25
|
-
"seed:property-metadata": "node scripts/seed-property-metadata.js",
|
|
26
|
-
"migrate:lookups-qa-to-uat": "node scripts/update-lookups-qa-to-uat.js"
|
|
27
|
-
},
|
|
28
|
-
"repository": {
|
|
29
|
-
"type": "git",
|
|
30
|
-
"url": "git+https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas.git"
|
|
31
|
-
},
|
|
32
|
-
"author": "Dynamatix",
|
|
33
|
-
"license": "ISC",
|
|
34
|
-
"bugs": {
|
|
35
|
-
"url": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas/issues"
|
|
36
|
-
},
|
|
37
|
-
"homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@dynamatix/cat-shared": "^0.0.
|
|
40
|
-
"dotenv": "^16.4.5",
|
|
41
|
-
"mongodb": "^6.14.2",
|
|
42
|
-
"mongoose": "^8.9.5"
|
|
43
|
-
},
|
|
44
|
-
"files": [
|
|
45
|
-
"dist"
|
|
46
|
-
],
|
|
47
|
-
"exports": {
|
|
48
|
-
".": {
|
|
49
|
-
"import": "./dist/index.js",
|
|
50
|
-
"types": "./dist/index.d.ts"
|
|
51
|
-
},
|
|
52
|
-
"./applications": {
|
|
53
|
-
"import": "./dist/applications/index.js",
|
|
54
|
-
"types": "./dist/applications/index.d.ts"
|
|
55
|
-
},
|
|
56
|
-
"./applicants": {
|
|
57
|
-
"import": "./dist/applicants/index.js",
|
|
58
|
-
"types": "./dist/applicants/index.d.ts"
|
|
59
|
-
},
|
|
60
|
-
"./shared": {
|
|
61
|
-
"import": "./dist/shared/index.js",
|
|
62
|
-
"types": "./dist/shared/index.d.ts"
|
|
63
|
-
},
|
|
64
|
-
"./properties": {
|
|
65
|
-
"import": "./dist/properties/index.js",
|
|
66
|
-
"types": "./dist/properties/index.d.ts"
|
|
67
|
-
},
|
|
68
|
-
"./users": {
|
|
69
|
-
"import": "./dist/users/index.js",
|
|
70
|
-
"types": "./dist/users/index.d.ts"
|
|
71
|
-
},
|
|
72
|
-
"./product-catalogues": {
|
|
73
|
-
"import": "./dist/product-catalogues/index.js",
|
|
74
|
-
"types": "./dist/product-catalogues/index.d.ts"
|
|
75
|
-
},
|
|
76
|
-
"./underwriter": {
|
|
77
|
-
"import": "./dist/underwriter/index.js",
|
|
78
|
-
"types": "./dist/underwriter/index.d.ts"
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
"devDependencies": {
|
|
82
|
-
"@types/mongoose": "^5.11.96",
|
|
83
|
-
"@types/node": "^22.14.0",
|
|
84
|
-
"ts-node": "^10.9.2",
|
|
85
|
-
"typescript": "^5.3.3"
|
|
86
|
-
}
|
|
87
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@dynamatix/gb-schemas",
|
|
3
|
+
"version": "2.3.358",
|
|
4
|
+
"description": "All the schemas for gatehouse bank back-end",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"build": "tsc",
|
|
10
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
11
|
+
"test:workflow": "npm run build && node test-workflow.js",
|
|
12
|
+
"test:workflow:env": "npm run build && WORKFLOW_API_KEY=test-key WORKFLOW_API_URL=http://localhost:3000/api/workflows node test-workflow-with-env.js",
|
|
13
|
+
"example:app": "npm run build && node example-app-usage.js",
|
|
14
|
+
"test:workflow:triggers": "npm run build && node test-workflow-with-triggers.js",
|
|
15
|
+
"test:workflow:direct": "npm run build && node test-direct-middleware.js",
|
|
16
|
+
"patch": "tsc && npm version patch && npm publish --access public && exit 0",
|
|
17
|
+
"generate-docs": "NODE_OPTIONS='--loader ts-node/esm' ts-node schema-docs/docs.seeder.ts",
|
|
18
|
+
"example:income": "NODE_OPTIONS='--loader ts-node/esm' ts-node examples/add-applicant-income.ts",
|
|
19
|
+
"migrate:applicant-income": "node migrate-applicant-income.js",
|
|
20
|
+
"migrate:self-employed-id": "node migrate-self-employed-id.js",
|
|
21
|
+
"check:applicants-employment": "node check-applicants-without-employment.js",
|
|
22
|
+
"delete:applications-by-type": "node delete-applications-by-type.js",
|
|
23
|
+
"find:applications-many-audits": "node find-applications-with-many-audits.js",
|
|
24
|
+
"update:apiconfigs-paths": "node scripts/update-apiconfigs-paths.js",
|
|
25
|
+
"seed:property-metadata": "node scripts/seed-property-metadata.js",
|
|
26
|
+
"migrate:lookups-qa-to-uat": "node scripts/update-lookups-qa-to-uat.js"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas.git"
|
|
31
|
+
},
|
|
32
|
+
"author": "Dynamatix",
|
|
33
|
+
"license": "ISC",
|
|
34
|
+
"bugs": {
|
|
35
|
+
"url": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas/issues"
|
|
36
|
+
},
|
|
37
|
+
"homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@dynamatix/cat-shared": "^0.0.140",
|
|
40
|
+
"dotenv": "^16.4.5",
|
|
41
|
+
"mongodb": "^6.14.2",
|
|
42
|
+
"mongoose": "^8.9.5"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"dist"
|
|
46
|
+
],
|
|
47
|
+
"exports": {
|
|
48
|
+
".": {
|
|
49
|
+
"import": "./dist/index.js",
|
|
50
|
+
"types": "./dist/index.d.ts"
|
|
51
|
+
},
|
|
52
|
+
"./applications": {
|
|
53
|
+
"import": "./dist/applications/index.js",
|
|
54
|
+
"types": "./dist/applications/index.d.ts"
|
|
55
|
+
},
|
|
56
|
+
"./applicants": {
|
|
57
|
+
"import": "./dist/applicants/index.js",
|
|
58
|
+
"types": "./dist/applicants/index.d.ts"
|
|
59
|
+
},
|
|
60
|
+
"./shared": {
|
|
61
|
+
"import": "./dist/shared/index.js",
|
|
62
|
+
"types": "./dist/shared/index.d.ts"
|
|
63
|
+
},
|
|
64
|
+
"./properties": {
|
|
65
|
+
"import": "./dist/properties/index.js",
|
|
66
|
+
"types": "./dist/properties/index.d.ts"
|
|
67
|
+
},
|
|
68
|
+
"./users": {
|
|
69
|
+
"import": "./dist/users/index.js",
|
|
70
|
+
"types": "./dist/users/index.d.ts"
|
|
71
|
+
},
|
|
72
|
+
"./product-catalogues": {
|
|
73
|
+
"import": "./dist/product-catalogues/index.js",
|
|
74
|
+
"types": "./dist/product-catalogues/index.d.ts"
|
|
75
|
+
},
|
|
76
|
+
"./underwriter": {
|
|
77
|
+
"import": "./dist/underwriter/index.js",
|
|
78
|
+
"types": "./dist/underwriter/index.d.ts"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@types/mongoose": "^5.11.96",
|
|
83
|
+
"@types/node": "^22.14.0",
|
|
84
|
+
"ts-node": "^10.9.2",
|
|
85
|
+
"typescript": "^5.3.3"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import mongoose from "mongoose";
|
|
2
|
-
declare const applicantIncomeSourceSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
|
|
3
|
-
employmentStatusLid: mongoose.Types.ObjectId;
|
|
4
|
-
incomeFromEmployment?: string | null | undefined;
|
|
5
|
-
incomeFromPension?: string | null | undefined;
|
|
6
|
-
incomeFromProperty?: string | null | undefined;
|
|
7
|
-
incomeFromSavings?: string | null | undefined;
|
|
8
|
-
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
9
|
-
employmentStatusLid: mongoose.Types.ObjectId;
|
|
10
|
-
incomeFromEmployment?: string | null | undefined;
|
|
11
|
-
incomeFromPension?: string | null | undefined;
|
|
12
|
-
incomeFromProperty?: string | null | undefined;
|
|
13
|
-
incomeFromSavings?: string | null | undefined;
|
|
14
|
-
}>> & mongoose.FlatRecord<{
|
|
15
|
-
employmentStatusLid: mongoose.Types.ObjectId;
|
|
16
|
-
incomeFromEmployment?: string | null | undefined;
|
|
17
|
-
incomeFromPension?: string | null | undefined;
|
|
18
|
-
incomeFromProperty?: string | null | undefined;
|
|
19
|
-
incomeFromSavings?: string | null | undefined;
|
|
20
|
-
}> & {
|
|
21
|
-
_id: mongoose.Types.ObjectId;
|
|
22
|
-
} & {
|
|
23
|
-
__v: number;
|
|
24
|
-
}>;
|
|
25
|
-
export default applicantIncomeSourceSchema;
|
|
26
|
-
//# sourceMappingURL=applicant-income-source.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-income-source.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-income-source.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;EAM/B,CAAC;AAEH,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import mongoose from "mongoose";
|
|
2
|
-
import { Pound } from "../value-objects/pound";
|
|
3
|
-
declare const incomeSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
4
|
-
toJSON: {
|
|
5
|
-
getters: true;
|
|
6
|
-
};
|
|
7
|
-
toObject: {
|
|
8
|
-
getters: true;
|
|
9
|
-
};
|
|
10
|
-
}, {
|
|
11
|
-
pageValidFlag: string;
|
|
12
|
-
businessTypeLid: mongoose.Types.ObjectId;
|
|
13
|
-
natureOfBusiness: string;
|
|
14
|
-
yearEnd1: number;
|
|
15
|
-
yearEnd2: number;
|
|
16
|
-
yearEnd3: number;
|
|
17
|
-
accountantsAddressLine1: string;
|
|
18
|
-
accountantsAddressLine2: string;
|
|
19
|
-
accountantsAddressLine3: string;
|
|
20
|
-
accountantsCity: string;
|
|
21
|
-
accountantsCountryLid: mongoose.Types.ObjectId;
|
|
22
|
-
accountantsEmail: string;
|
|
23
|
-
accountantsPostCode: string;
|
|
24
|
-
accountantsPractice: string;
|
|
25
|
-
accountantsTelephoneNumber: string;
|
|
26
|
-
businessAddressLine1: string;
|
|
27
|
-
businessAddressLine2: string;
|
|
28
|
-
businessAddressLine3: string;
|
|
29
|
-
businessCity: string;
|
|
30
|
-
businessCountryLid: mongoose.Types.ObjectId;
|
|
31
|
-
businessPostCode: string;
|
|
32
|
-
businessTelephoneNumber: string;
|
|
33
|
-
charteredCertifiedOrOtherLid: mongoose.Types.ObjectId;
|
|
34
|
-
contactName: string;
|
|
35
|
-
currentYearEnd: string;
|
|
36
|
-
dateEstablished: string;
|
|
37
|
-
doYouHaveAccountant: boolean;
|
|
38
|
-
isBusinessAddressDifferent: boolean;
|
|
39
|
-
nameOfBusiness: string;
|
|
40
|
-
netAssets1: Pound;
|
|
41
|
-
netAssets2: Pound;
|
|
42
|
-
netAssets3: Pound;
|
|
43
|
-
percentageOfShareholding: number;
|
|
44
|
-
registeredAddressLine1: string;
|
|
45
|
-
registeredAddressLine2: string;
|
|
46
|
-
registeredAddressLine3: string;
|
|
47
|
-
registeredCity: string;
|
|
48
|
-
registeredCountryLid: mongoose.Types.ObjectId;
|
|
49
|
-
registeredPostCode: string;
|
|
50
|
-
registeredTelephone: string;
|
|
51
|
-
selfEmployedDate: string;
|
|
52
|
-
turnover1: Pound;
|
|
53
|
-
turnover2: Pound;
|
|
54
|
-
turnover3: Pound;
|
|
55
|
-
year1: Pound;
|
|
56
|
-
year2: Pound;
|
|
57
|
-
year3: Pound;
|
|
58
|
-
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
|
59
|
-
pageValidFlag: string;
|
|
60
|
-
businessTypeLid: mongoose.Types.ObjectId;
|
|
61
|
-
natureOfBusiness: string;
|
|
62
|
-
yearEnd1: number;
|
|
63
|
-
yearEnd2: number;
|
|
64
|
-
yearEnd3: number;
|
|
65
|
-
accountantsAddressLine1: string;
|
|
66
|
-
accountantsAddressLine2: string;
|
|
67
|
-
accountantsAddressLine3: string;
|
|
68
|
-
accountantsCity: string;
|
|
69
|
-
accountantsCountryLid: mongoose.Types.ObjectId;
|
|
70
|
-
accountantsEmail: string;
|
|
71
|
-
accountantsPostCode: string;
|
|
72
|
-
accountantsPractice: string;
|
|
73
|
-
accountantsTelephoneNumber: string;
|
|
74
|
-
businessAddressLine1: string;
|
|
75
|
-
businessAddressLine2: string;
|
|
76
|
-
businessAddressLine3: string;
|
|
77
|
-
businessCity: string;
|
|
78
|
-
businessCountryLid: mongoose.Types.ObjectId;
|
|
79
|
-
businessPostCode: string;
|
|
80
|
-
businessTelephoneNumber: string;
|
|
81
|
-
charteredCertifiedOrOtherLid: mongoose.Types.ObjectId;
|
|
82
|
-
contactName: string;
|
|
83
|
-
currentYearEnd: string;
|
|
84
|
-
dateEstablished: string;
|
|
85
|
-
doYouHaveAccountant: boolean;
|
|
86
|
-
isBusinessAddressDifferent: boolean;
|
|
87
|
-
nameOfBusiness: string;
|
|
88
|
-
netAssets1: Pound;
|
|
89
|
-
netAssets2: Pound;
|
|
90
|
-
netAssets3: Pound;
|
|
91
|
-
percentageOfShareholding: number;
|
|
92
|
-
registeredAddressLine1: string;
|
|
93
|
-
registeredAddressLine2: string;
|
|
94
|
-
registeredAddressLine3: string;
|
|
95
|
-
registeredCity: string;
|
|
96
|
-
registeredCountryLid: mongoose.Types.ObjectId;
|
|
97
|
-
registeredPostCode: string;
|
|
98
|
-
registeredTelephone: string;
|
|
99
|
-
selfEmployedDate: string;
|
|
100
|
-
turnover1: Pound;
|
|
101
|
-
turnover2: Pound;
|
|
102
|
-
turnover3: Pound;
|
|
103
|
-
year1: Pound;
|
|
104
|
-
year2: Pound;
|
|
105
|
-
year3: Pound;
|
|
106
|
-
}>> & mongoose.FlatRecord<{
|
|
107
|
-
pageValidFlag: string;
|
|
108
|
-
businessTypeLid: mongoose.Types.ObjectId;
|
|
109
|
-
natureOfBusiness: string;
|
|
110
|
-
yearEnd1: number;
|
|
111
|
-
yearEnd2: number;
|
|
112
|
-
yearEnd3: number;
|
|
113
|
-
accountantsAddressLine1: string;
|
|
114
|
-
accountantsAddressLine2: string;
|
|
115
|
-
accountantsAddressLine3: string;
|
|
116
|
-
accountantsCity: string;
|
|
117
|
-
accountantsCountryLid: mongoose.Types.ObjectId;
|
|
118
|
-
accountantsEmail: string;
|
|
119
|
-
accountantsPostCode: string;
|
|
120
|
-
accountantsPractice: string;
|
|
121
|
-
accountantsTelephoneNumber: string;
|
|
122
|
-
businessAddressLine1: string;
|
|
123
|
-
businessAddressLine2: string;
|
|
124
|
-
businessAddressLine3: string;
|
|
125
|
-
businessCity: string;
|
|
126
|
-
businessCountryLid: mongoose.Types.ObjectId;
|
|
127
|
-
businessPostCode: string;
|
|
128
|
-
businessTelephoneNumber: string;
|
|
129
|
-
charteredCertifiedOrOtherLid: mongoose.Types.ObjectId;
|
|
130
|
-
contactName: string;
|
|
131
|
-
currentYearEnd: string;
|
|
132
|
-
dateEstablished: string;
|
|
133
|
-
doYouHaveAccountant: boolean;
|
|
134
|
-
isBusinessAddressDifferent: boolean;
|
|
135
|
-
nameOfBusiness: string;
|
|
136
|
-
netAssets1: Pound;
|
|
137
|
-
netAssets2: Pound;
|
|
138
|
-
netAssets3: Pound;
|
|
139
|
-
percentageOfShareholding: number;
|
|
140
|
-
registeredAddressLine1: string;
|
|
141
|
-
registeredAddressLine2: string;
|
|
142
|
-
registeredAddressLine3: string;
|
|
143
|
-
registeredCity: string;
|
|
144
|
-
registeredCountryLid: mongoose.Types.ObjectId;
|
|
145
|
-
registeredPostCode: string;
|
|
146
|
-
registeredTelephone: string;
|
|
147
|
-
selfEmployedDate: string;
|
|
148
|
-
turnover1: Pound;
|
|
149
|
-
turnover2: Pound;
|
|
150
|
-
turnover3: Pound;
|
|
151
|
-
year1: Pound;
|
|
152
|
-
year2: Pound;
|
|
153
|
-
year3: Pound;
|
|
154
|
-
}> & {
|
|
155
|
-
_id: mongoose.Types.ObjectId;
|
|
156
|
-
} & {
|
|
157
|
-
__v: number;
|
|
158
|
-
}>;
|
|
159
|
-
export default incomeSchema;
|
|
160
|
-
//# sourceMappingURL=applicant-income.model.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"applicant-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-income.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDhB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|