@dynamatix/gb-schemas 2.3.280 → 2.3.282

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 (27) hide show
  1. package/README.md +308 -308
  2. package/dist/applicants/applicant-welcome-call.model.d.ts.map +1 -1
  3. package/dist/applicants/applicant-welcome-call.model.js +7 -92
  4. package/dist/applicants/applicant-welcome-call.type.d.ts +0 -12
  5. package/dist/applicants/applicant-welcome-call.type.d.ts.map +1 -1
  6. package/dist/applications/application-valuation-report.model.d.ts +232 -2914
  7. package/dist/applications/application-valuation-report.model.d.ts.map +1 -1
  8. package/dist/applications/application-valuation-report.model.js +20 -16
  9. package/dist/shared/workflow-trigger.model.d.ts.map +1 -1
  10. package/dist/shared/workflow-trigger.model.js +4 -0
  11. package/dist/shared/workflow-trigger.type.d.ts +1 -0
  12. package/dist/shared/workflow-trigger.type.d.ts.map +1 -1
  13. package/package.json +86 -86
  14. package/dist/applicants/applicant-income-source.model.d.ts +0 -26
  15. package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
  16. package/dist/applicants/applicant-income.model.d.ts +0 -160
  17. package/dist/applicants/applicant-income.model.d.ts.map +0 -1
  18. package/dist/applicants/applicant-other-income.model.d.ts +0 -85
  19. package/dist/applicants/applicant-other-income.model.d.ts.map +0 -1
  20. package/dist/applications/application-document.model.d.ts +0 -158
  21. package/dist/applications/application-document.model.d.ts.map +0 -1
  22. package/dist/applications/document.model.d.ts +0 -158
  23. package/dist/applications/document.model.d.ts.map +0 -1
  24. package/dist/applications/productfeatures.model.d.ts +0 -368
  25. package/dist/applications/productfeatures.model.d.ts.map +0 -1
  26. package/dist/shared/document-type-model.d.ts +0 -48
  27. package/dist/shared/document-type-model.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"application-valuation-report.model.d.ts","sourceRoot":"","sources":["../../applications/application-valuation-report.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsE,CAAC;AAC5G,eAAe,+BAA+B,CAAC"}
@@ -444,6 +444,10 @@ const servicesSchema = new mongoose.Schema({
444
444
  type: Boolean,
445
445
  default: null
446
446
  },
447
+ isUnknownDrainage: {
448
+ type: Boolean,
449
+ default: null
450
+ },
447
451
  // Solar Panels - Boolean
448
452
  isSolarPanels: {
449
453
  type: Boolean,
@@ -601,7 +605,7 @@ const conditionsOfPropertySchema = new mongoose.Schema({
601
605
  type: String,
602
606
  default: null
603
607
  },
604
- propertyProneTo: [propertyProneToSchema],
608
+ propertyProneTo: propertyProneToSchema,
605
609
  isPlotBoundariesDefinedUnderPointFourHectares: {
606
610
  type: Boolean,
607
611
  default: null
@@ -734,7 +738,7 @@ const valuersDeclarationSchema = new mongoose.Schema({
734
738
  type: String,
735
739
  default: null
736
740
  },
737
- valuerQualifications: [valuerQualificationsSchema],
741
+ valuerQualifications: valuerQualificationsSchema,
738
742
  ricsNumber: {
739
743
  type: Number,
740
744
  default: null
@@ -762,21 +766,21 @@ const valuationReportSchema = new mongoose.Schema({
762
766
  applicantName: { type: String, default: "" },
763
767
  propertyAddress: { type: String, default: "" },
764
768
  postCode: { type: String, default: "" },
765
- propertyType: [propertyTypeSchema],
766
- accommodation: [accommodationSchema],
767
- currentOccupency: [currentOccupencySchema],
768
- newBuild: [newBuildSchema],
769
- construction: [constructionSchema],
770
- localityAndDemand: [localityAndDemandSchema],
771
- services: [servicesSchema],
772
- conditionsOfProperty: [conditionsOfPropertySchema],
773
- reports: [reportsSchema],
774
- energyEfficiency: [energyEfficiencySchema],
775
- essentialRepairs: [essentialRepairsSchema],
776
- rentalInformation: [rentalInformationSchema],
777
- valuationForFinancePurpose: [valuationForFinancePurposeSchema],
769
+ propertyType: propertyTypeSchema,
770
+ accommodation: accommodationSchema,
771
+ currentOccupency: currentOccupencySchema,
772
+ newBuild: newBuildSchema,
773
+ construction: constructionSchema,
774
+ localityAndDemand: localityAndDemandSchema,
775
+ services: servicesSchema,
776
+ conditionsOfProperty: conditionsOfPropertySchema,
777
+ reports: reportsSchema,
778
+ energyEfficiency: energyEfficiencySchema,
779
+ essentialRepairs: essentialRepairsSchema,
780
+ rentalInformation: rentalInformationSchema,
781
+ valuationForFinancePurpose: valuationForFinancePurposeSchema,
778
782
  generalRemarks: { type: String, default: "" },
779
- valuersDeclaration: [valuersDeclarationSchema],
783
+ valuersDeclaration: valuersDeclarationSchema,
780
784
  extractedText: { type: String, default: "" }
781
785
  });
782
786
  // Apply workflow plugin to the schema
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-trigger.model.d.ts","sourceRoot":"","sources":["../../shared/workflow-trigger.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;;AAmD5C,wBAA6H"}
1
+ {"version":3,"file":"workflow-trigger.model.d.ts","sourceRoot":"","sources":["../../shared/workflow-trigger.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAoB,MAAM,UAAU,CAAC;;AAuD5C,wBAA6H"}
@@ -31,6 +31,10 @@ const WorkflowTriggerSchema = new Schema({
31
31
  optionalVariables: [{
32
32
  type: String
33
33
  }],
34
+ parentKey: {
35
+ type: String,
36
+ required: false
37
+ },
34
38
  validationRules: {
35
39
  type: Schema.Types.Mixed
36
40
  },
@@ -35,6 +35,7 @@ export default interface IWorkflowTrigger extends Document {
35
35
  workflowKey: string;
36
36
  requiredVariables: string[];
37
37
  optionalVariables?: string[];
38
+ parentKey?: string;
38
39
  validationRules?: any;
39
40
  metadata?: any;
40
41
  createdAt: Date;
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-trigger.type.d.ts","sourceRoot":"","sources":["../../shared/workflow-trigger.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,gBAAiB,SAAQ,QAAQ;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,yBAAyB;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
1
+ {"version":3,"file":"workflow-trigger.type.d.ts","sourceRoot":"","sources":["../../shared/workflow-trigger.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEpC,MAAM,CAAC,OAAO,WAAW,gBAAiB,SAAQ,QAAQ;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,SAAS,EAAE,IAAI,CAAC;IAChB,SAAS,EAAE,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,oBAAoB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAClC;AAED,MAAM,WAAW,yBAAyB;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACvB"}
package/package.json CHANGED
@@ -1,86 +1,86 @@
1
- {
2
- "name": "@dynamatix/gb-schemas",
3
- "version": "2.3.280",
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
- },
27
- "repository": {
28
- "type": "git",
29
- "url": "git+https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas.git"
30
- },
31
- "author": "Dynamatix",
32
- "license": "ISC",
33
- "bugs": {
34
- "url": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas/issues"
35
- },
36
- "homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
37
- "dependencies": {
38
- "@dynamatix/cat-shared": "^0.0.127",
39
- "dotenv": "^16.4.5",
40
- "mongodb": "^6.14.2",
41
- "mongoose": "^8.9.5"
42
- },
43
- "files": [
44
- "dist"
45
- ],
46
- "exports": {
47
- ".": {
48
- "import": "./dist/index.js",
49
- "types": "./dist/index.d.ts"
50
- },
51
- "./applications": {
52
- "import": "./dist/applications/index.js",
53
- "types": "./dist/applications/index.d.ts"
54
- },
55
- "./applicants": {
56
- "import": "./dist/applicants/index.js",
57
- "types": "./dist/applicants/index.d.ts"
58
- },
59
- "./shared": {
60
- "import": "./dist/shared/index.js",
61
- "types": "./dist/shared/index.d.ts"
62
- },
63
- "./properties": {
64
- "import": "./dist/properties/index.js",
65
- "types": "./dist/properties/index.d.ts"
66
- },
67
- "./users": {
68
- "import": "./dist/users/index.js",
69
- "types": "./dist/users/index.d.ts"
70
- },
71
- "./product-catalogues": {
72
- "import": "./dist/product-catalogues/index.js",
73
- "types": "./dist/product-catalogues/index.d.ts"
74
- },
75
- "./underwriter": {
76
- "import": "./dist/underwriter/index.js",
77
- "types": "./dist/underwriter/index.d.ts"
78
- }
79
- },
80
- "devDependencies": {
81
- "@types/mongoose": "^5.11.96",
82
- "@types/node": "^22.14.0",
83
- "ts-node": "^10.9.2",
84
- "typescript": "^5.3.3"
85
- }
86
- }
1
+ {
2
+ "name": "@dynamatix/gb-schemas",
3
+ "version": "2.3.282",
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
+ },
27
+ "repository": {
28
+ "type": "git",
29
+ "url": "git+https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas.git"
30
+ },
31
+ "author": "Dynamatix",
32
+ "license": "ISC",
33
+ "bugs": {
34
+ "url": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas/issues"
35
+ },
36
+ "homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
37
+ "dependencies": {
38
+ "@dynamatix/cat-shared": "^0.0.127",
39
+ "dotenv": "^16.4.5",
40
+ "mongodb": "^6.14.2",
41
+ "mongoose": "^8.9.5"
42
+ },
43
+ "files": [
44
+ "dist"
45
+ ],
46
+ "exports": {
47
+ ".": {
48
+ "import": "./dist/index.js",
49
+ "types": "./dist/index.d.ts"
50
+ },
51
+ "./applications": {
52
+ "import": "./dist/applications/index.js",
53
+ "types": "./dist/applications/index.d.ts"
54
+ },
55
+ "./applicants": {
56
+ "import": "./dist/applicants/index.js",
57
+ "types": "./dist/applicants/index.d.ts"
58
+ },
59
+ "./shared": {
60
+ "import": "./dist/shared/index.js",
61
+ "types": "./dist/shared/index.d.ts"
62
+ },
63
+ "./properties": {
64
+ "import": "./dist/properties/index.js",
65
+ "types": "./dist/properties/index.d.ts"
66
+ },
67
+ "./users": {
68
+ "import": "./dist/users/index.js",
69
+ "types": "./dist/users/index.d.ts"
70
+ },
71
+ "./product-catalogues": {
72
+ "import": "./dist/product-catalogues/index.js",
73
+ "types": "./dist/product-catalogues/index.d.ts"
74
+ },
75
+ "./underwriter": {
76
+ "import": "./dist/underwriter/index.js",
77
+ "types": "./dist/underwriter/index.d.ts"
78
+ }
79
+ },
80
+ "devDependencies": {
81
+ "@types/mongoose": "^5.11.96",
82
+ "@types/node": "^22.14.0",
83
+ "ts-node": "^10.9.2",
84
+ "typescript": "^5.3.3"
85
+ }
86
+ }
@@ -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"}
@@ -1,85 +0,0 @@
1
- import mongoose from "mongoose";
2
- import { Pound } from "../value-objects/pound";
3
- declare const applicantOtherIncomeSchema: 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
- maintenance: Pound;
12
- sourceDetails1: string;
13
- amount1: Pound;
14
- payFrequency1Lid: mongoose.Types.ObjectId;
15
- guaranteed1: boolean;
16
- sourceDetails2: string;
17
- amount2: Pound;
18
- payFrequency2Lid: mongoose.Types.ObjectId;
19
- guaranteed2: boolean;
20
- sourceDetails3: string;
21
- amount3: Pound;
22
- payFrequency3Lid: mongoose.Types.ObjectId;
23
- guaranteed3: boolean;
24
- sourceDetails4: string;
25
- amount4: Pound;
26
- payFrequency4Lid: mongoose.Types.ObjectId;
27
- guaranteed4: boolean;
28
- taxCredits: Pound;
29
- otherBenefits: Pound;
30
- grossPensionIncome: Pound;
31
- privatePensionIncome: Pound;
32
- statePensionIncome: Pound;
33
- }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
34
- maintenance: Pound;
35
- sourceDetails1: string;
36
- amount1: Pound;
37
- payFrequency1Lid: mongoose.Types.ObjectId;
38
- guaranteed1: boolean;
39
- sourceDetails2: string;
40
- amount2: Pound;
41
- payFrequency2Lid: mongoose.Types.ObjectId;
42
- guaranteed2: boolean;
43
- sourceDetails3: string;
44
- amount3: Pound;
45
- payFrequency3Lid: mongoose.Types.ObjectId;
46
- guaranteed3: boolean;
47
- sourceDetails4: string;
48
- amount4: Pound;
49
- payFrequency4Lid: mongoose.Types.ObjectId;
50
- guaranteed4: boolean;
51
- taxCredits: Pound;
52
- otherBenefits: Pound;
53
- grossPensionIncome: Pound;
54
- privatePensionIncome: Pound;
55
- statePensionIncome: Pound;
56
- }>> & mongoose.FlatRecord<{
57
- maintenance: Pound;
58
- sourceDetails1: string;
59
- amount1: Pound;
60
- payFrequency1Lid: mongoose.Types.ObjectId;
61
- guaranteed1: boolean;
62
- sourceDetails2: string;
63
- amount2: Pound;
64
- payFrequency2Lid: mongoose.Types.ObjectId;
65
- guaranteed2: boolean;
66
- sourceDetails3: string;
67
- amount3: Pound;
68
- payFrequency3Lid: mongoose.Types.ObjectId;
69
- guaranteed3: boolean;
70
- sourceDetails4: string;
71
- amount4: Pound;
72
- payFrequency4Lid: mongoose.Types.ObjectId;
73
- guaranteed4: boolean;
74
- taxCredits: Pound;
75
- otherBenefits: Pound;
76
- grossPensionIncome: Pound;
77
- privatePensionIncome: Pound;
78
- statePensionIncome: Pound;
79
- }> & {
80
- _id: mongoose.Types.ObjectId;
81
- } & {
82
- __v: number;
83
- }>;
84
- export default applicantOtherIncomeSchema;
85
- //# sourceMappingURL=applicant-other-income.model.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"applicant-other-income.model.d.ts","sourceRoot":"","sources":["../../applicants/applicant-other-income.model.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE/C,QAAA,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6C9B,CAAC;AAEH,eAAe,0BAA0B,CAAC"}