@dynamatix/gb-schemas 1.2.35 → 1.2.37

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.
@@ -1 +1 @@
1
- {"version":3,"file":"application-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAmGtD,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0E,CAAC;AAC5G,eAAe,2BAA2B,CAAC"}
1
+ {"version":3,"file":"application-direct-debit.model.d.ts","sourceRoot":"","sources":["../../applications/application-direct-debit.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAkGtD,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA0E,CAAC;AAC5G,eAAe,2BAA2B,CAAC"}
@@ -47,8 +47,7 @@ const applicationDirectDebitSchema = new mongoose.Schema({
47
47
  isConfirmDeclaration: {
48
48
  type: Boolean,
49
49
  description: 'Whether the applicant has confirmed the declaration',
50
- get: (value) => value ? 'Yes' : 'No',
51
- set: (value) => value?.toLowerCase() === 'yes',
50
+ get: (value) => value ? 'Yes' : 'No'
52
51
  },
53
52
  nameOfAccountHolder: {
54
53
  type: String,
@@ -1 +1 @@
1
- {"version":3,"file":"solicitor.model.d.ts","sourceRoot":"","sources":["../../applications/solicitor.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAyHtD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA+C,CAAC;AACpE,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"solicitor.model.d.ts","sourceRoot":"","sources":["../../applications/solicitor.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAwHtD,QAAA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA+C,CAAC;AACpE,eAAe,cAAc,CAAC"}
@@ -11,7 +11,6 @@ const solicitorSchema = new Schema({
11
11
  default: true,
12
12
  description: "Flag indicating if the page is valid",
13
13
  get: (value) => value ? 'Yes' : 'No',
14
- set: (value) => value.toLowerCase() === 'yes',
15
14
  },
16
15
  accountNumber: {
17
16
  type: Number,
@@ -1099,7 +1099,7 @@ declare const PropertyModel: mongoose.Model<{
1099
1099
  addressLine2?: string | null | undefined;
1100
1100
  addressLine3?: string | null | undefined;
1101
1101
  city?: string | null | undefined;
1102
- associatedLoanParties?: string | null | undefined;
1102
+ associatedLoanParties?: mongoose.Types.ObjectId[] | null | undefined;
1103
1103
  otherOwnershipParties?: string | null | undefined;
1104
1104
  portfolioFile?: string | null | undefined;
1105
1105
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
@@ -1122,7 +1122,7 @@ declare const PropertyModel: mongoose.Model<{
1122
1122
  addressLine2?: string | null | undefined;
1123
1123
  addressLine3?: string | null | undefined;
1124
1124
  city?: string | null | undefined;
1125
- associatedLoanParties?: string | null | undefined;
1125
+ associatedLoanParties?: mongoose.Types.ObjectId[] | null | undefined;
1126
1126
  otherOwnershipParties?: string | null | undefined;
1127
1127
  portfolioFile?: string | null | undefined;
1128
1128
  }>> & mongoose.FlatRecord<{
@@ -1145,7 +1145,7 @@ declare const PropertyModel: mongoose.Model<{
1145
1145
  addressLine2?: string | null | undefined;
1146
1146
  addressLine3?: string | null | undefined;
1147
1147
  city?: string | null | undefined;
1148
- associatedLoanParties?: string | null | undefined;
1148
+ associatedLoanParties?: mongoose.Types.ObjectId[] | null | undefined;
1149
1149
  otherOwnershipParties?: string | null | undefined;
1150
1150
  portfolioFile?: string | null | undefined;
1151
1151
  }> & {
@@ -37,9 +37,9 @@ const propertySchema = new mongoose.Schema({
37
37
  description: "Third line of the property address"
38
38
  },
39
39
  associatedLoanParties: {
40
- type: String,
40
+ type: [mongoose.Schema.Types.ObjectId],
41
41
  required: false,
42
- description: "Checkbox to allow selection of the applicants on the application, including the company if applicable"
42
+ description: "List of associated loan parties (either applicant or company)"
43
43
  },
44
44
  city: {
45
45
  type: String,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dynamatix/gb-schemas",
3
- "version": "1.2.35",
3
+ "version": "1.2.37",
4
4
  "description": "All the schemas for gatehouse bank back-end",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",