@dynamatix/gb-schemas 1.3.286 → 1.3.288

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.
@@ -27,39 +27,85 @@
27
27
  /// <reference types="mongoose/types/inferschematype" />
28
28
  /// <reference types="mongoose/types/inferrawdoctype" />
29
29
  import mongoose from "mongoose";
30
- declare const valuationSchema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
30
+ declare const ApplicationValuationModel: mongoose.Model<{
31
31
  version: string;
32
- epcRating: string;
32
+ applicationId: mongoose.Types.ObjectId;
33
33
  instructionId: string;
34
34
  instructionStatus: string;
35
35
  instructionStatusComment: string;
36
36
  isManual: string;
37
37
  valuerNotes: string;
38
38
  amount?: string | null | undefined;
39
+ epcRatingLid?: mongoose.Types.ObjectId | null | undefined;
40
+ epcScore?: string | null | undefined;
41
+ estimatedRentalValue?: string | null | undefined;
42
+ squareMetres?: string | null | undefined;
43
+ }, {}, {}, {}, mongoose.Document<unknown, {}, {
44
+ version: string;
45
+ applicationId: mongoose.Types.ObjectId;
46
+ instructionId: string;
47
+ instructionStatus: string;
48
+ instructionStatusComment: string;
49
+ isManual: string;
50
+ valuerNotes: string;
51
+ amount?: string | null | undefined;
52
+ epcRatingLid?: mongoose.Types.ObjectId | null | undefined;
53
+ epcScore?: string | null | undefined;
54
+ estimatedRentalValue?: string | null | undefined;
55
+ squareMetres?: string | null | undefined;
56
+ }, {}> & {
57
+ version: string;
58
+ applicationId: mongoose.Types.ObjectId;
59
+ instructionId: string;
60
+ instructionStatus: string;
61
+ instructionStatusComment: string;
62
+ isManual: string;
63
+ valuerNotes: string;
64
+ amount?: string | null | undefined;
65
+ epcRatingLid?: mongoose.Types.ObjectId | null | undefined;
66
+ epcScore?: string | null | undefined;
67
+ estimatedRentalValue?: string | null | undefined;
68
+ squareMetres?: string | null | undefined;
69
+ } & {
70
+ _id: mongoose.Types.ObjectId;
71
+ } & {
72
+ __v: number;
73
+ }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
74
+ version: string;
75
+ applicationId: mongoose.Types.ObjectId;
76
+ instructionId: string;
77
+ instructionStatus: string;
78
+ instructionStatusComment: string;
79
+ isManual: string;
80
+ valuerNotes: string;
81
+ amount?: string | null | undefined;
82
+ epcRatingLid?: mongoose.Types.ObjectId | null | undefined;
39
83
  epcScore?: string | null | undefined;
40
84
  estimatedRentalValue?: string | null | undefined;
41
85
  squareMetres?: string | null | undefined;
42
86
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
43
87
  version: string;
44
- epcRating: string;
88
+ applicationId: mongoose.Types.ObjectId;
45
89
  instructionId: string;
46
90
  instructionStatus: string;
47
91
  instructionStatusComment: string;
48
92
  isManual: string;
49
93
  valuerNotes: string;
50
94
  amount?: string | null | undefined;
95
+ epcRatingLid?: mongoose.Types.ObjectId | null | undefined;
51
96
  epcScore?: string | null | undefined;
52
97
  estimatedRentalValue?: string | null | undefined;
53
98
  squareMetres?: string | null | undefined;
54
99
  }>, {}> & mongoose.FlatRecord<{
55
100
  version: string;
56
- epcRating: string;
101
+ applicationId: mongoose.Types.ObjectId;
57
102
  instructionId: string;
58
103
  instructionStatus: string;
59
104
  instructionStatusComment: string;
60
105
  isManual: string;
61
106
  valuerNotes: string;
62
107
  amount?: string | null | undefined;
108
+ epcRatingLid?: mongoose.Types.ObjectId | null | undefined;
63
109
  epcScore?: string | null | undefined;
64
110
  estimatedRentalValue?: string | null | undefined;
65
111
  squareMetres?: string | null | undefined;
@@ -67,6 +113,6 @@ declare const valuationSchema: mongoose.Schema<any, mongoose.Model<any, any, any
67
113
  _id: mongoose.Types.ObjectId;
68
114
  } & {
69
115
  __v: number;
70
- }>;
71
- export default valuationSchema;
116
+ }>>;
117
+ export default ApplicationValuationModel;
72
118
  //# sourceMappingURL=application-valuation.model.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"application-valuation.model.d.ts","sourceRoot":"","sources":["../../applications/application-valuation.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAEhC,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYnB,CAAC;AACH,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"application-valuation.model.d.ts","sourceRoot":"","sources":["../../applications/application-valuation.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAiBhC,QAAA,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0D,CAAC;AAC1F,eAAe,yBAAyB,CAAC"}
@@ -1,7 +1,8 @@
1
1
  import mongoose from "mongoose";
2
2
  const valuationSchema = new mongoose.Schema({
3
+ applicationId: { type: mongoose.Schema.Types.ObjectId, ref: "Application", required: true },
3
4
  amount: { type: String },
4
- epcRating: { type: String, default: "" },
5
+ epcRatingLid: { type: mongoose.Schema.Types.ObjectId, ref: "Lookup", },
5
6
  epcScore: { type: String },
6
7
  estimatedRentalValue: { type: String },
7
8
  instructionId: { type: String, default: "" },
@@ -12,4 +13,5 @@ const valuationSchema = new mongoose.Schema({
12
13
  valuerNotes: { type: String, default: "" },
13
14
  version: { type: String, default: "" }
14
15
  });
15
- export default valuationSchema;
16
+ const ApplicationValuationModel = mongoose.model("ApplicationValuation", valuationSchema);
17
+ export default ApplicationValuationModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "1.3.286",
3
+ "version": "1.3.288",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "homepage": "https://github.com/DynamatixAnalyticsPvtLtd/gb-schemas#readme",
28
28
  "dependencies": {
29
- "@dynamatix/cat-shared": "^0.0.118",
29
+ "@dynamatix/cat-shared": "^0.0.119",
30
30
  "@dynamatix/gb-schemas": "^1.3.256",
31
31
  "dotenv": "^16.4.5",
32
32
  "mongodb": "^6.14.2",