@vibe-flats/booking-engine-common-server 1.0.56 → 1.0.59

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.
@@ -18,6 +18,8 @@ export interface CityDocument extends mongoose.Document {
18
18
  answer: string;
19
19
  }[];
20
20
  };
21
+ createdAt: Date;
22
+ updatedAt: Date;
21
23
  }
22
24
  export declare const CityModel: (connection: mongoose.Connection) => mongoose.Model<CityDocument, {}, {}, {}, mongoose.Document<unknown, {}, CityDocument> & CityDocument & Required<{
23
25
  _id: unknown;
@@ -23,7 +23,7 @@ const schema = new mongoose_1.default.Schema({
23
23
  required: true,
24
24
  default: true
25
25
  },
26
- minnights: {
26
+ minNights: {
27
27
  type: String,
28
28
  required: true,
29
29
  default: 2
@@ -52,6 +52,8 @@ const schema = new mongoose_1.default.Schema({
52
52
  }),
53
53
  _id: false
54
54
  }
55
+ }, {
56
+ timestamps: true
55
57
  });
56
58
  schema.index({ publicId: 1 });
57
59
  schema.index({ slug: 1 }, { unique: true });
@@ -70,6 +70,8 @@ export interface UnitDocument extends mongoose.Document {
70
70
  to: Date;
71
71
  };
72
72
  availableFrom?: Date;
73
+ createdAt: Date;
74
+ updatedAt: Date;
73
75
  }
74
76
  export declare const UnitModel: (connection: mongoose.Connection) => mongoose.Model<UnitDocument, {}, {}, {}, mongoose.Document<unknown, {}, UnitDocument> & UnitDocument & Required<{
75
77
  _id: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-flats/booking-engine-common-server",
3
- "version": "1.0.56",
3
+ "version": "1.0.59",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",