@vibe-flats/booking-engine-common-server 1.0.96 → 1.0.98

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.
@@ -89,6 +89,10 @@ export interface UnitDocument extends mongoose.Document {
89
89
  reservationId: string;
90
90
  externalId: string;
91
91
  platform: UnitReviewPlatform;
92
+ guest: {
93
+ firstName: string;
94
+ lastName: string;
95
+ };
92
96
  categories: {
93
97
  name: UnitReviewCategory;
94
98
  rating: number;
@@ -129,6 +129,14 @@ const schema = new mongoose_1.default.Schema({
129
129
  reservationId: { type: String, required: true },
130
130
  externalId: { type: String, required: true },
131
131
  platform: { type: String, required: true },
132
+ guest: {
133
+ type: new mongoose_1.default.Schema({
134
+ firstName: { type: String, required: true },
135
+ lastName: { type: String, required: true }
136
+ }),
137
+ required: true,
138
+ _id: false
139
+ },
132
140
  categories: {
133
141
  type: [
134
142
  {
@@ -136,7 +144,7 @@ const schema = new mongoose_1.default.Schema({
136
144
  rating: { type: Number, required: true }
137
145
  }
138
146
  ],
139
- required: false,
147
+ required: true,
140
148
  _id: false
141
149
  }
142
150
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-flats/booking-engine-common-server",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",