@vibe-flats/booking-engine-common-server 1.0.51 → 1.0.55

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.
@@ -3,6 +3,7 @@ export interface CityDocument extends mongoose.Document {
3
3
  name: string;
4
4
  externalName: string;
5
5
  publicId: string;
6
+ isActive: boolean;
6
7
  website: {
7
8
  summary: string;
8
9
  description: string;
@@ -11,6 +12,10 @@ export interface CityDocument extends mongoose.Document {
11
12
  title: string;
12
13
  description: string;
13
14
  };
15
+ faq: {
16
+ question: string;
17
+ answer: string;
18
+ }[];
14
19
  };
15
20
  }
16
21
  export declare const CityModel: (connection: mongoose.Connection) => mongoose.Model<CityDocument, {}, {}, {}, mongoose.Document<unknown, {}, CityDocument> & CityDocument & Required<{
@@ -18,6 +18,11 @@ const schema = new mongoose_1.default.Schema({
18
18
  type: String,
19
19
  required: true
20
20
  },
21
+ isActive: {
22
+ type: Boolean,
23
+ required: true,
24
+ default: true
25
+ },
21
26
  website: {
22
27
  type: new mongoose_1.default.Schema({
23
28
  summary: { type: String },
@@ -28,12 +33,19 @@ const schema = new mongoose_1.default.Schema({
28
33
  title: { type: String },
29
34
  description: { type: String }
30
35
  }),
31
- _id: false,
32
- __v: false
33
- }
36
+ _id: false
37
+ },
38
+ faq: [
39
+ {
40
+ type: new mongoose_1.default.Schema({
41
+ question: { type: String },
42
+ answer: { type: String }
43
+ }),
44
+ _id: false
45
+ }
46
+ ]
34
47
  }),
35
- _id: false,
36
- __v: false
48
+ _id: false
37
49
  }
38
50
  });
39
51
  schema.index({ publicId: 1 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-flats/booking-engine-common-server",
3
- "version": "1.0.51",
3
+ "version": "1.0.55",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",