whitelabel-db 1.1.86 → 1.1.88
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.
package/dist/libs/liteapiv3.js
CHANGED
|
@@ -84,7 +84,7 @@ class LiteApiClientV3 {
|
|
|
84
84
|
return __awaiter(this, void 0, void 0, function* () {
|
|
85
85
|
return (yield (0, axios_1.default)({
|
|
86
86
|
method: 'post',
|
|
87
|
-
url: `${this.bookingBaseUrl}/v3.0/rates/prebook`,
|
|
87
|
+
url: `${this.bookingBaseUrl}/v3.0/rates/prebook?includeCreditBalance=true`,
|
|
88
88
|
data: options,
|
|
89
89
|
headers: {
|
|
90
90
|
'X-API-Key': this.apiKey,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.down = exports.up = void 0;
|
|
13
|
+
const sequelize_1 = require("sequelize");
|
|
14
|
+
function up(queryInterface) {
|
|
15
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16
|
+
// Add marketSegments column to projects table
|
|
17
|
+
yield queryInterface.addColumn('projects', 'marketSegments', {
|
|
18
|
+
type: sequelize_1.DataTypes.ARRAY(sequelize_1.DataTypes.JSONB),
|
|
19
|
+
allowNull: false,
|
|
20
|
+
defaultValue: [],
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
exports.up = up;
|
|
25
|
+
function down(queryInterface) {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
// Remove marketSegments column
|
|
28
|
+
yield queryInterface.removeColumn('projects', 'marketSegments');
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
exports.down = down;
|
package/dist/models/Project.d.ts
CHANGED
package/dist/models/Project.js
CHANGED
|
@@ -105,6 +105,14 @@ __decorate([
|
|
|
105
105
|
}),
|
|
106
106
|
__metadata("design:type", Object)
|
|
107
107
|
], Project.prototype, "settings", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, sequelize_typescript_1.Column)({
|
|
110
|
+
type: sequelize_typescript_1.DataType.ARRAY(sequelize_typescript_1.DataType.JSONB),
|
|
111
|
+
allowNull: false,
|
|
112
|
+
defaultValue: [],
|
|
113
|
+
}),
|
|
114
|
+
__metadata("design:type", Array)
|
|
115
|
+
], Project.prototype, "marketSegments", void 0);
|
|
108
116
|
__decorate([
|
|
109
117
|
(0, sequelize_typescript_1.Column)({
|
|
110
118
|
type: sequelize_typescript_1.DataType.JSONB,
|