@vibe-flats/booking-engine-common-server 1.0.33 → 1.0.34

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.
@@ -5,7 +5,9 @@ export interface AreaDocument extends mongoose.Document {
5
5
  externalName: string;
6
6
  publicId: string;
7
7
  city: CityDocument;
8
- description: string;
8
+ website: {
9
+ description: string;
10
+ };
9
11
  }
10
12
  export declare const AreaModel: (connection: mongoose.Connection) => mongoose.Model<AreaDocument, {}, {}, {}, mongoose.Document<unknown, {}, AreaDocument> & AreaDocument & Required<{
11
13
  _id: unknown;
@@ -42,9 +42,12 @@ const schema = new mongoose_1.default.Schema({
42
42
  type: mongoose_1.Schema.Types.ObjectId,
43
43
  ref: 'City'
44
44
  },
45
- description: {
46
- type: String,
47
- required: false
45
+ website: {
46
+ type: new mongoose_1.default.Schema({
47
+ description: { type: String, required: false }
48
+ }),
49
+ required: false,
50
+ _id: false
48
51
  }
49
52
  });
50
53
  schema.index({ publicId: 1 });
@@ -3,8 +3,10 @@ export interface CityDocument extends mongoose.Document {
3
3
  name: string;
4
4
  externalName: string;
5
5
  publicId: string;
6
- slug: string;
7
- description: string;
6
+ website: {
7
+ description: string;
8
+ slug: string;
9
+ };
8
10
  }
9
11
  export declare const CityModel: (connection: mongoose.Connection) => mongoose.Model<CityDocument, {}, {}, {}, mongoose.Document<unknown, {}, CityDocument> & CityDocument & Required<{
10
12
  _id: unknown;
@@ -18,13 +18,13 @@ const schema = new mongoose_1.default.Schema({
18
18
  type: String,
19
19
  required: true
20
20
  },
21
- slug: {
22
- type: String,
23
- required: false
24
- },
25
- description: {
26
- type: String,
27
- required: false
21
+ website: {
22
+ type: new mongoose_1.default.Schema({
23
+ description: { type: String, required: false },
24
+ slug: { type: String, required: false }
25
+ }),
26
+ required: false,
27
+ _id: false
28
28
  }
29
29
  });
30
30
  schema.index({ publicId: 1 });
@@ -58,7 +58,10 @@ export interface UnitDocument extends mongoose.Document {
58
58
  vrbo: string;
59
59
  booking: string;
60
60
  };
61
- slug: string;
61
+ website: {
62
+ description: string;
63
+ slug: string;
64
+ };
62
65
  }
63
66
  export declare const UnitModel: (connection: mongoose.Connection) => mongoose.Model<UnitDocument, {}, {}, {}, mongoose.Document<unknown, {}, UnitDocument> & UnitDocument & Required<{
64
67
  _id: unknown;
@@ -93,7 +93,14 @@ const schema = new mongoose_1.default.Schema({
93
93
  required: false,
94
94
  _id: false
95
95
  },
96
- slug: { type: String, required: false }
96
+ website: {
97
+ type: new mongoose_1.default.Schema({
98
+ description: { type: String, required: false },
99
+ slug: { type: String, required: false }
100
+ }),
101
+ required: false,
102
+ _id: false
103
+ }
97
104
  }, {
98
105
  timestamps: true,
99
106
  versionKey: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-flats/booking-engine-common-server",
3
- "version": "1.0.33",
3
+ "version": "1.0.34",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",