@dynamatix/gb-schemas 2.3.349 → 2.3.351

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 (28) hide show
  1. package/README.md +308 -308
  2. package/dist/applicants/applicant-welcome-call.model.js +9 -9
  3. package/dist/applications/application-offer.model.d.ts +12 -0
  4. package/dist/applications/application-offer.model.d.ts.map +1 -1
  5. package/dist/applications/application-offer.model.js +2 -0
  6. package/dist/applications/application-offer.type.d.ts +2 -0
  7. package/dist/applications/application-offer.type.d.ts.map +1 -1
  8. package/dist/applications/application-valuation-report.model.d.ts +6 -0
  9. package/dist/applications/application-valuation-report.model.d.ts.map +1 -1
  10. package/dist/applications/application-valuation-report.model.js +5 -0
  11. package/dist/applications/application.model.d.ts +18 -18
  12. package/dist/applications/application.model.js +3 -3
  13. package/dist/shared/alert.model.d.ts +6 -6
  14. package/package.json +87 -87
  15. package/dist/applicants/applicant-income-source.model.d.ts +0 -26
  16. package/dist/applicants/applicant-income-source.model.d.ts.map +0 -1
  17. package/dist/applicants/applicant-income.model.d.ts +0 -160
  18. package/dist/applicants/applicant-income.model.d.ts.map +0 -1
  19. package/dist/applicants/applicant-other-income.model.d.ts +0 -85
  20. package/dist/applicants/applicant-other-income.model.d.ts.map +0 -1
  21. package/dist/applications/application-document.model.d.ts +0 -158
  22. package/dist/applications/application-document.model.d.ts.map +0 -1
  23. package/dist/applications/document.model.d.ts +0 -158
  24. package/dist/applications/document.model.d.ts.map +0 -1
  25. package/dist/applications/productfeatures.model.d.ts +0 -368
  26. package/dist/applications/productfeatures.model.d.ts.map +0 -1
  27. package/dist/shared/document-type-model.d.ts +0 -48
  28. package/dist/shared/document-type-model.d.ts.map +0 -1
@@ -44,6 +44,8 @@ declare const ApplicationOfferModel: mongoose.Model<{
44
44
  offerReviewedAt: NativeDate;
45
45
  isOfferReviewConfirmed: boolean;
46
46
  isReviewMandateConfirmed: boolean;
47
+ reviewMandateConfirmedByUserId: mongoose.Types.ObjectId;
48
+ reviewMandateConfirmedAt: NativeDate;
47
49
  isOfferIssuedConfirmed: boolean;
48
50
  offerIssuedByUserId: mongoose.Types.ObjectId;
49
51
  offerIssuedAt: NativeDate;
@@ -64,6 +66,8 @@ declare const ApplicationOfferModel: mongoose.Model<{
64
66
  offerReviewedAt: NativeDate;
65
67
  isOfferReviewConfirmed: boolean;
66
68
  isReviewMandateConfirmed: boolean;
69
+ reviewMandateConfirmedByUserId: mongoose.Types.ObjectId;
70
+ reviewMandateConfirmedAt: NativeDate;
67
71
  isOfferIssuedConfirmed: boolean;
68
72
  offerIssuedByUserId: mongoose.Types.ObjectId;
69
73
  offerIssuedAt: NativeDate;
@@ -84,6 +88,8 @@ declare const ApplicationOfferModel: mongoose.Model<{
84
88
  offerReviewedAt: NativeDate;
85
89
  isOfferReviewConfirmed: boolean;
86
90
  isReviewMandateConfirmed: boolean;
91
+ reviewMandateConfirmedByUserId: mongoose.Types.ObjectId;
92
+ reviewMandateConfirmedAt: NativeDate;
87
93
  isOfferIssuedConfirmed: boolean;
88
94
  offerIssuedByUserId: mongoose.Types.ObjectId;
89
95
  offerIssuedAt: NativeDate;
@@ -108,6 +114,8 @@ declare const ApplicationOfferModel: mongoose.Model<{
108
114
  offerReviewedAt: NativeDate;
109
115
  isOfferReviewConfirmed: boolean;
110
116
  isReviewMandateConfirmed: boolean;
117
+ reviewMandateConfirmedByUserId: mongoose.Types.ObjectId;
118
+ reviewMandateConfirmedAt: NativeDate;
111
119
  isOfferIssuedConfirmed: boolean;
112
120
  offerIssuedByUserId: mongoose.Types.ObjectId;
113
121
  offerIssuedAt: NativeDate;
@@ -128,6 +136,8 @@ declare const ApplicationOfferModel: mongoose.Model<{
128
136
  offerReviewedAt: NativeDate;
129
137
  isOfferReviewConfirmed: boolean;
130
138
  isReviewMandateConfirmed: boolean;
139
+ reviewMandateConfirmedByUserId: mongoose.Types.ObjectId;
140
+ reviewMandateConfirmedAt: NativeDate;
131
141
  isOfferIssuedConfirmed: boolean;
132
142
  offerIssuedByUserId: mongoose.Types.ObjectId;
133
143
  offerIssuedAt: NativeDate;
@@ -148,6 +158,8 @@ declare const ApplicationOfferModel: mongoose.Model<{
148
158
  offerReviewedAt: NativeDate;
149
159
  isOfferReviewConfirmed: boolean;
150
160
  isReviewMandateConfirmed: boolean;
161
+ reviewMandateConfirmedByUserId: mongoose.Types.ObjectId;
162
+ reviewMandateConfirmedAt: NativeDate;
151
163
  isOfferIssuedConfirmed: boolean;
152
164
  offerIssuedByUserId: mongoose.Types.ObjectId;
153
165
  offerIssuedAt: NativeDate;
@@ -1 +1 @@
1
- {"version":3,"file":"application-offer.model.d.ts","sourceRoot":"","sources":["../../applications/application-offer.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAqDhC,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAkD,CAAC;AAC9E,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"application-offer.model.d.ts","sourceRoot":"","sources":["../../applications/application-offer.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAuDhC,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAkD,CAAC;AAC9E,eAAe,qBAAqB,CAAC"}
@@ -37,6 +37,8 @@ const offerSchema = new mongoose.Schema({
37
37
  isOfferReviewConfirmed: { type: Boolean, default: false },
38
38
  // Review mandate section
39
39
  isReviewMandateConfirmed: { type: Boolean, default: false },
40
+ reviewMandateConfirmedByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
41
+ reviewMandateConfirmedAt: { type: Date, default: null },
40
42
  // Offer issued section
41
43
  isOfferIssuedConfirmed: { type: Boolean, default: false },
42
44
  offerIssuedByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
@@ -45,6 +45,8 @@ export default interface IApplicationOffer extends IBaseType {
45
45
  offerReviewedAt?: Date | null;
46
46
  isOfferReviewConfirmed: boolean;
47
47
  isReviewMandateConfirmed: boolean;
48
+ reviewMandateConfirmedByUserId?: Types.ObjectId | null;
49
+ reviewMandateConfirmedAt?: Date | null;
48
50
  isOfferIssuedConfirmed: boolean;
49
51
  offerIssuedByUserId?: Types.ObjectId | null;
50
52
  offerIssuedAt?: Date | null;
@@ -1 +1 @@
1
- {"version":3,"file":"application-offer.type.d.ts","sourceRoot":"","sources":["../../applications/application-offer.type.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,CAAC,OAAO,WAAW,iBAAkB,SAAQ,SAAS;IAC1D,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC;IAC9B,cAAc,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvC,gBAAgB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IAEzC,kBAAkB,CAAC,EAAE,KAAK,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC;IAC7C,qBAAqB,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACxC,yBAAyB,EAAE,OAAO,CAAC;IACnC,+BAA+B,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACxD,yBAAyB,CAAC,EAAE,IA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AG,IAAI,CAAC;IAExC,gBAAgB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC/B,sBAAsB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IAC/C,gBAAgB,EAAE,OAAO,CAAC;IAE1B,eAAe,EAAE,OAAO,CAAC;IACzB,qBAAqB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IAC9C,eAAe,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,sBAAsB,EAAE,OAAO,CAAC;IAEhC,wBAAwB,EAAE,OAAO,CAAC;IAClC,8BAA8B,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IACvD,wBAAwB,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAEvC,sBAAsB,EAAE,OAAO,CAAC;IAChC,mBAAmB,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC;IAC5C,aAAa,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CAC7B"}
@@ -30,6 +30,7 @@ import mongoose from "mongoose";
30
30
  declare const ApplicationValuationReportModel: mongoose.Model<{
31
31
  applicationId: mongoose.Types.ObjectId;
32
32
  applicantName: string;
33
+ documentId: mongoose.Types.ObjectId;
33
34
  applicationNumber: string;
34
35
  propertyAddress: string;
35
36
  postCode: string;
@@ -247,6 +248,7 @@ declare const ApplicationValuationReportModel: mongoose.Model<{
247
248
  }, {}, {}, {}, mongoose.Document<unknown, {}, {
248
249
  applicationId: mongoose.Types.ObjectId;
249
250
  applicantName: string;
251
+ documentId: mongoose.Types.ObjectId;
250
252
  applicationNumber: string;
251
253
  propertyAddress: string;
252
254
  postCode: string;
@@ -464,6 +466,7 @@ declare const ApplicationValuationReportModel: mongoose.Model<{
464
466
  }, {}> & {
465
467
  applicationId: mongoose.Types.ObjectId;
466
468
  applicantName: string;
469
+ documentId: mongoose.Types.ObjectId;
467
470
  applicationNumber: string;
468
471
  propertyAddress: string;
469
472
  postCode: string;
@@ -685,6 +688,7 @@ declare const ApplicationValuationReportModel: mongoose.Model<{
685
688
  }, mongoose.Schema<any, mongoose.Model<any, any, any, any, any, any>, {}, {}, {}, {}, mongoose.DefaultSchemaOptions, {
686
689
  applicationId: mongoose.Types.ObjectId;
687
690
  applicantName: string;
691
+ documentId: mongoose.Types.ObjectId;
688
692
  applicationNumber: string;
689
693
  propertyAddress: string;
690
694
  postCode: string;
@@ -902,6 +906,7 @@ declare const ApplicationValuationReportModel: mongoose.Model<{
902
906
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
903
907
  applicationId: mongoose.Types.ObjectId;
904
908
  applicantName: string;
909
+ documentId: mongoose.Types.ObjectId;
905
910
  applicationNumber: string;
906
911
  propertyAddress: string;
907
912
  postCode: string;
@@ -1119,6 +1124,7 @@ declare const ApplicationValuationReportModel: mongoose.Model<{
1119
1124
  }>, {}> & mongoose.FlatRecord<{
1120
1125
  applicationId: mongoose.Types.ObjectId;
1121
1126
  applicantName: string;
1127
+ documentId: mongoose.Types.ObjectId;
1122
1128
  applicationNumber: string;
1123
1129
  propertyAddress: string;
1124
1130
  postCode: string;
@@ -1 +1 @@
1
- {"version":3,"file":"application-valuation-report.model.d.ts","sourceRoot":"","sources":["../../applications/application-valuation-report.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAszBhC,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;GAAsE,CAAC;AAC5G,eAAe,+BAA+B,CAAC"}
1
+ {"version":3,"file":"application-valuation-report.model.d.ts","sourceRoot":"","sources":["../../applications/application-valuation-report.model.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,QAAQ,MAAM,UAAU,CAAC;AA2zBhC,QAAA,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAsE,CAAC;AAC5G,eAAe,+BAA+B,CAAC"}
@@ -762,6 +762,11 @@ const valuationReportSchema = new mongoose.Schema({
762
762
  ref: "Application",
763
763
  required: true
764
764
  },
765
+ documentId: {
766
+ type: mongoose.Schema.Types.ObjectId,
767
+ ref: "Document",
768
+ required: true
769
+ },
765
770
  applicationNumber: { type: String, default: "" },
766
771
  applicantName: { type: String, default: "" },
767
772
  propertyAddress: { type: String, default: "" },
@@ -82,12 +82,12 @@ declare const ApplicationModel: mongoose.Model<{
82
82
  isMandateApproved: boolean;
83
83
  mandateReviewComments: string;
84
84
  mandateRequestedByUserId: mongoose.Types.ObjectId;
85
- mandateRequestedDate: string;
85
+ mandateRequestedDate: NativeDate;
86
86
  mandateReviewedByUserId: mongoose.Types.ObjectId;
87
- mandateReviewedDate: string;
87
+ mandateReviewedDate: NativeDate;
88
88
  isReferred: boolean;
89
89
  referredByUserId: mongoose.Types.ObjectId;
90
- referredDate: string;
90
+ referredDate: NativeDate;
91
91
  referralClearedByUserId: mongoose.Types.ObjectId;
92
92
  referralClearedDate: NativeDate;
93
93
  brokerTaskCount: number;
@@ -169,12 +169,12 @@ declare const ApplicationModel: mongoose.Model<{
169
169
  isMandateApproved: boolean;
170
170
  mandateReviewComments: string;
171
171
  mandateRequestedByUserId: mongoose.Types.ObjectId;
172
- mandateRequestedDate: string;
172
+ mandateRequestedDate: NativeDate;
173
173
  mandateReviewedByUserId: mongoose.Types.ObjectId;
174
- mandateReviewedDate: string;
174
+ mandateReviewedDate: NativeDate;
175
175
  isReferred: boolean;
176
176
  referredByUserId: mongoose.Types.ObjectId;
177
- referredDate: string;
177
+ referredDate: NativeDate;
178
178
  referralClearedByUserId: mongoose.Types.ObjectId;
179
179
  referralClearedDate: NativeDate;
180
180
  brokerTaskCount: number;
@@ -256,12 +256,12 @@ declare const ApplicationModel: mongoose.Model<{
256
256
  isMandateApproved: boolean;
257
257
  mandateReviewComments: string;
258
258
  mandateRequestedByUserId: mongoose.Types.ObjectId;
259
- mandateRequestedDate: string;
259
+ mandateRequestedDate: NativeDate;
260
260
  mandateReviewedByUserId: mongoose.Types.ObjectId;
261
- mandateReviewedDate: string;
261
+ mandateReviewedDate: NativeDate;
262
262
  isReferred: boolean;
263
263
  referredByUserId: mongoose.Types.ObjectId;
264
- referredDate: string;
264
+ referredDate: NativeDate;
265
265
  referralClearedByUserId: mongoose.Types.ObjectId;
266
266
  referralClearedDate: NativeDate;
267
267
  brokerTaskCount: number;
@@ -355,12 +355,12 @@ declare const ApplicationModel: mongoose.Model<{
355
355
  isMandateApproved: boolean;
356
356
  mandateReviewComments: string;
357
357
  mandateRequestedByUserId: mongoose.Types.ObjectId;
358
- mandateRequestedDate: string;
358
+ mandateRequestedDate: NativeDate;
359
359
  mandateReviewedByUserId: mongoose.Types.ObjectId;
360
- mandateReviewedDate: string;
360
+ mandateReviewedDate: NativeDate;
361
361
  isReferred: boolean;
362
362
  referredByUserId: mongoose.Types.ObjectId;
363
- referredDate: string;
363
+ referredDate: NativeDate;
364
364
  referralClearedByUserId: mongoose.Types.ObjectId;
365
365
  referralClearedDate: NativeDate;
366
366
  brokerTaskCount: number;
@@ -442,12 +442,12 @@ declare const ApplicationModel: mongoose.Model<{
442
442
  isMandateApproved: boolean;
443
443
  mandateReviewComments: string;
444
444
  mandateRequestedByUserId: mongoose.Types.ObjectId;
445
- mandateRequestedDate: string;
445
+ mandateRequestedDate: NativeDate;
446
446
  mandateReviewedByUserId: mongoose.Types.ObjectId;
447
- mandateReviewedDate: string;
447
+ mandateReviewedDate: NativeDate;
448
448
  isReferred: boolean;
449
449
  referredByUserId: mongoose.Types.ObjectId;
450
- referredDate: string;
450
+ referredDate: NativeDate;
451
451
  referralClearedByUserId: mongoose.Types.ObjectId;
452
452
  referralClearedDate: NativeDate;
453
453
  brokerTaskCount: number;
@@ -529,12 +529,12 @@ declare const ApplicationModel: mongoose.Model<{
529
529
  isMandateApproved: boolean;
530
530
  mandateReviewComments: string;
531
531
  mandateRequestedByUserId: mongoose.Types.ObjectId;
532
- mandateRequestedDate: string;
532
+ mandateRequestedDate: NativeDate;
533
533
  mandateReviewedByUserId: mongoose.Types.ObjectId;
534
- mandateReviewedDate: string;
534
+ mandateReviewedDate: NativeDate;
535
535
  isReferred: boolean;
536
536
  referredByUserId: mongoose.Types.ObjectId;
537
- referredDate: string;
537
+ referredDate: NativeDate;
538
538
  referralClearedByUserId: mongoose.Types.ObjectId;
539
539
  referralClearedDate: NativeDate;
540
540
  brokerTaskCount: number;
@@ -69,12 +69,12 @@ const applicationSchema = new mongoose.Schema({
69
69
  isMandateApproved: { type: Boolean, default: null },
70
70
  mandateReviewComments: { type: String, default: "" },
71
71
  mandateRequestedByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
72
- mandateRequestedDate: { type: String, default: null },
72
+ mandateRequestedDate: { type: Date, default: null },
73
73
  mandateReviewedByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
74
- mandateReviewedDate: { type: String, default: null },
74
+ mandateReviewedDate: { type: Date, default: null },
75
75
  isReferred: { type: Boolean, default: false },
76
76
  referredByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
77
- referredDate: { type: String, default: null },
77
+ referredDate: { type: Date, default: null },
78
78
  referralClearedByUserId: { type: mongoose.Schema.Types.ObjectId, ref: "User", default: null },
79
79
  referralClearedDate: { type: Date, default: null },
80
80
  brokerTaskCount: {
@@ -34,9 +34,9 @@ declare const AlertModel: mongoose.Model<{
34
34
  isActive: string;
35
35
  applicationId: mongoose.Types.ObjectId;
36
36
  statusLid?: mongoose.Types.ObjectId | null | undefined;
37
+ documentId?: mongoose.Types.ObjectId | null | undefined;
37
38
  alertTypeLid?: mongoose.Types.ObjectId | null | undefined;
38
39
  alertMessage?: string | null | undefined;
39
- documentId?: mongoose.Types.ObjectId | null | undefined;
40
40
  }, {}, {}, {}, mongoose.Document<unknown, {}, {
41
41
  createdAt: NativeDate;
42
42
  updatedAt: NativeDate;
@@ -44,9 +44,9 @@ declare const AlertModel: mongoose.Model<{
44
44
  isActive: string;
45
45
  applicationId: mongoose.Types.ObjectId;
46
46
  statusLid?: mongoose.Types.ObjectId | null | undefined;
47
+ documentId?: mongoose.Types.ObjectId | null | undefined;
47
48
  alertTypeLid?: mongoose.Types.ObjectId | null | undefined;
48
49
  alertMessage?: string | null | undefined;
49
- documentId?: mongoose.Types.ObjectId | null | undefined;
50
50
  }, {}> & {
51
51
  createdAt: NativeDate;
52
52
  updatedAt: NativeDate;
@@ -54,9 +54,9 @@ declare const AlertModel: mongoose.Model<{
54
54
  isActive: string;
55
55
  applicationId: mongoose.Types.ObjectId;
56
56
  statusLid?: mongoose.Types.ObjectId | null | undefined;
57
+ documentId?: mongoose.Types.ObjectId | null | undefined;
57
58
  alertTypeLid?: mongoose.Types.ObjectId | null | undefined;
58
59
  alertMessage?: string | null | undefined;
59
- documentId?: mongoose.Types.ObjectId | null | undefined;
60
60
  } & {
61
61
  _id: mongoose.Types.ObjectId;
62
62
  } & {
@@ -70,9 +70,9 @@ declare const AlertModel: mongoose.Model<{
70
70
  isActive: string;
71
71
  applicationId: mongoose.Types.ObjectId;
72
72
  statusLid?: mongoose.Types.ObjectId | null | undefined;
73
+ documentId?: mongoose.Types.ObjectId | null | undefined;
73
74
  alertTypeLid?: mongoose.Types.ObjectId | null | undefined;
74
75
  alertMessage?: string | null | undefined;
75
- documentId?: mongoose.Types.ObjectId | null | undefined;
76
76
  }, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
77
77
  createdAt: NativeDate;
78
78
  updatedAt: NativeDate;
@@ -80,9 +80,9 @@ declare const AlertModel: mongoose.Model<{
80
80
  isActive: string;
81
81
  applicationId: mongoose.Types.ObjectId;
82
82
  statusLid?: mongoose.Types.ObjectId | null | undefined;
83
+ documentId?: mongoose.Types.ObjectId | null | undefined;
83
84
  alertTypeLid?: mongoose.Types.ObjectId | null | undefined;
84
85
  alertMessage?: string | null | undefined;
85
- documentId?: mongoose.Types.ObjectId | null | undefined;
86
86
  }>, {}> & mongoose.FlatRecord<{
87
87
  createdAt: NativeDate;
88
88
  updatedAt: NativeDate;
@@ -90,9 +90,9 @@ declare const AlertModel: mongoose.Model<{
90
90
  isActive: string;
91
91
  applicationId: mongoose.Types.ObjectId;
92
92
  statusLid?: mongoose.Types.ObjectId | null | undefined;
93
+ documentId?: mongoose.Types.ObjectId | null | undefined;
93
94
  alertTypeLid?: mongoose.Types.ObjectId | null | undefined;
94
95
  alertMessage?: string | null | undefined;
95
- documentId?: mongoose.Types.ObjectId | null | undefined;
96
96
  }> & {
97
97
  _id: mongoose.Types.ObjectId;
98
98
  } & {
package/package.json CHANGED
@@ -1,87 +1,87 @@
1
- {
2
- "name": "@dynamatix/gb-schemas",
3
- "version": "2.3.349",
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.138",
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.351",
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.138",
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"}