@vibe-flats/booking-engine-common-server 1.0.95 → 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.
@@ -80,6 +80,7 @@ export interface UnitDocument extends mongoose.Document {
80
80
  createdAt: Date;
81
81
  updatedAt: Date;
82
82
  isTrue: boolean;
83
+ rating: number;
83
84
  reviews: {
84
85
  body: string;
85
86
  isPublic: boolean;
@@ -88,6 +89,10 @@ export interface UnitDocument extends mongoose.Document {
88
89
  reservationId: string;
89
90
  externalId: string;
90
91
  platform: UnitReviewPlatform;
92
+ guest: {
93
+ firstName: string;
94
+ lastName: string;
95
+ };
91
96
  categories: {
92
97
  name: UnitReviewCategory;
93
98
  rating: number;
@@ -118,6 +118,7 @@ const schema = new mongoose_1.default.Schema({
118
118
  },
119
119
  availableFrom: { type: Date, required: false },
120
120
  isTrue: { type: Boolean, required: true, default: true },
121
+ rating: { type: Number, required: false },
121
122
  reviews: {
122
123
  type: [
123
124
  {
@@ -128,6 +129,14 @@ const schema = new mongoose_1.default.Schema({
128
129
  reservationId: { type: String, required: true },
129
130
  externalId: { type: String, required: true },
130
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
+ },
131
140
  categories: {
132
141
  type: [
133
142
  {
@@ -135,11 +144,13 @@ const schema = new mongoose_1.default.Schema({
135
144
  rating: { type: Number, required: true }
136
145
  }
137
146
  ],
138
- required: false
147
+ required: true,
148
+ _id: false
139
149
  }
140
150
  }
141
151
  ],
142
- required: false
152
+ required: false,
153
+ _id: false
143
154
  }
144
155
  }, {
145
156
  timestamps: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-flats/booking-engine-common-server",
3
- "version": "1.0.95",
3
+ "version": "1.0.98",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",