@vibe-flats/booking-engine-common-server 1.0.36 → 1.0.38

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.
@@ -53,8 +53,8 @@ const schema = new mongoose_1.default.Schema({
53
53
  },
54
54
  checkout: {
55
55
  type: new mongoose_1.default.Schema({
56
- min: { type: Date, required: false },
57
- max: { type: Date, required: false }
56
+ min: { type: Date, required: true },
57
+ max: { type: Date, required: true }
58
58
  }),
59
59
  required: false,
60
60
  _id: false
@@ -62,6 +62,13 @@ export interface UnitDocument extends mongoose.Document {
62
62
  description: string;
63
63
  slug: string;
64
64
  };
65
+ deal: {
66
+ total: number;
67
+ monthly: number;
68
+ nights: number;
69
+ from: Date;
70
+ to: Date;
71
+ };
65
72
  }
66
73
  export declare const UnitModel: (connection: mongoose.Connection) => mongoose.Model<UnitDocument, {}, {}, {}, mongoose.Document<unknown, {}, UnitDocument> & UnitDocument & Required<{
67
74
  _id: unknown;
@@ -100,6 +100,17 @@ const schema = new mongoose_1.default.Schema({
100
100
  }),
101
101
  required: false,
102
102
  _id: false
103
+ },
104
+ deal: {
105
+ type: new mongoose_1.default.Schema({
106
+ total: { type: Number, required: true },
107
+ monthly: { type: Number, required: true },
108
+ nights: { type: Number, required: true },
109
+ from: { type: Date, required: false },
110
+ to: { type: Date, required: false }
111
+ }),
112
+ required: false,
113
+ _id: false
103
114
  }
104
115
  }, {
105
116
  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.36",
3
+ "version": "1.0.38",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",