@vibe-flats/booking-engine-common-server 1.0.62 → 1.0.64

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.
@@ -9,6 +9,7 @@ export declare const COMMON_SERVER: {
9
9
  guesty: {
10
10
  fees: {
11
11
  utilities: string;
12
+ discountMonthly: string;
12
13
  };
13
14
  };
14
15
  hubpost: {
@@ -11,7 +11,8 @@ exports.COMMON_SERVER = {
11
11
  },
12
12
  guesty: {
13
13
  fees: {
14
- utilities: 'Utilities'
14
+ utilities: 'Utilities',
15
+ discountMonthly: 'Discount (Monthly Stay)'
15
16
  }
16
17
  },
17
18
  hubpost: {
@@ -9,6 +9,7 @@ export interface CityDocument extends mongoose.Document {
9
9
  summary: string;
10
10
  description: string;
11
11
  slug: string;
12
+ sortOrder: number;
12
13
  meta: {
13
14
  title: string;
14
15
  description: string;
@@ -33,6 +33,7 @@ const schema = new mongoose_1.default.Schema({
33
33
  summary: { type: String },
34
34
  description: { type: String },
35
35
  slug: { type: String },
36
+ sortOrder: { type: Number, default: 99 },
36
37
  meta: {
37
38
  type: new mongoose_1.default.Schema({
38
39
  title: { type: String },
@@ -56,7 +57,6 @@ const schema = new mongoose_1.default.Schema({
56
57
  timestamps: true
57
58
  });
58
59
  schema.index({ publicId: 1 });
59
- schema.index({ slug: 1 }, { unique: true });
60
60
  schema.index({ externalName: 1 });
61
61
  const CityModel = (connection) => {
62
62
  return connection.model('City', schema);
@@ -122,7 +122,6 @@ const schema = new mongoose_1.default.Schema({
122
122
  schema.index({ publicId: 1 });
123
123
  schema.index({ code: 1 });
124
124
  schema.index({ hubspotId: 1 });
125
- schema.index({ slug: 1 }, { unique: true });
126
125
  const UnitModel = (connection) => {
127
126
  return connection.model('Unit', schema);
128
127
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vibe-flats/booking-engine-common-server",
3
- "version": "1.0.62",
3
+ "version": "1.0.64",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",