@vibe-flats/booking-engine-common-server 1.0.82 → 1.0.84
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.
|
@@ -48,9 +48,11 @@ export interface UnitDocument extends mongoose.Document {
|
|
|
48
48
|
monthlyPriceFactor: number;
|
|
49
49
|
weeklyPriceFactor: number;
|
|
50
50
|
cleaningFee: number;
|
|
51
|
+
utilities: number;
|
|
51
52
|
};
|
|
52
53
|
fees: {
|
|
53
54
|
name: string;
|
|
55
|
+
type: string;
|
|
54
56
|
value: number;
|
|
55
57
|
multiplier: 'PER_NIGHT' | 'PER_STAY' | 'PER_GUEST' | 'PER_GUEST_PER_NIGHT';
|
|
56
58
|
isOptional: boolean;
|
|
@@ -75,6 +77,7 @@ export interface UnitDocument extends mongoose.Document {
|
|
|
75
77
|
availableFrom?: Date;
|
|
76
78
|
createdAt: Date;
|
|
77
79
|
updatedAt: Date;
|
|
80
|
+
isTrue: boolean;
|
|
78
81
|
}
|
|
79
82
|
export declare const UnitModel: (connection: mongoose.Connection) => mongoose.Model<UnitDocument, {}, {}, {}, mongoose.Document<unknown, {}, UnitDocument> & UnitDocument & Required<{
|
|
80
83
|
_id: unknown;
|
|
@@ -71,7 +71,8 @@ const schema = new mongoose_1.default.Schema({
|
|
|
71
71
|
type: new mongoose_1.default.Schema({
|
|
72
72
|
monthlyPriceFactor: { type: Number, required: true },
|
|
73
73
|
weeklyPriceFactor: { type: Number, required: true },
|
|
74
|
-
cleaningFee: { type: Number, required: true }
|
|
74
|
+
cleaningFee: { type: Number, required: true },
|
|
75
|
+
utilities: { type: Number, required: true }
|
|
75
76
|
}),
|
|
76
77
|
required: true,
|
|
77
78
|
_id: false
|
|
@@ -79,6 +80,7 @@ const schema = new mongoose_1.default.Schema({
|
|
|
79
80
|
fees: [
|
|
80
81
|
{
|
|
81
82
|
name: { type: String, required: true },
|
|
83
|
+
type: { type: String, required: true },
|
|
82
84
|
value: { type: Number, required: true },
|
|
83
85
|
multiplier: { type: String, required: true },
|
|
84
86
|
isOptional: { type: Boolean, required: true },
|
|
@@ -114,7 +116,8 @@ const schema = new mongoose_1.default.Schema({
|
|
|
114
116
|
required: false,
|
|
115
117
|
_id: false
|
|
116
118
|
},
|
|
117
|
-
availableFrom: { type: Date, required: false }
|
|
119
|
+
availableFrom: { type: Date, required: false },
|
|
120
|
+
isTrue: { type: Boolean, required: true, default: true }
|
|
118
121
|
}, {
|
|
119
122
|
timestamps: true,
|
|
120
123
|
versionKey: false,
|