whitelabel-db 1.0.38 → 1.0.40

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.
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.LiteApiClient = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const baseUrl = 'https://api.liteapi.travel';
18
+ const bookingBaseUrl = 'https://book.liteapi.travel';
18
19
  class LiteApiClient {
19
20
  constructor(apiKey) {
20
21
  this.apiKey = apiKey;
@@ -55,7 +56,7 @@ class LiteApiClient {
55
56
  return __awaiter(this, void 0, void 0, function* () {
56
57
  return (yield (0, axios_1.default)({
57
58
  method: 'post',
58
- url: `${baseUrl}/v2.0/rates/prebook`,
59
+ url: `${bookingBaseUrl}/v2.0/rates/prebook`,
59
60
  data: options,
60
61
  headers: {
61
62
  'X-API-Key': this.apiKey,
@@ -68,7 +69,7 @@ class LiteApiClient {
68
69
  return __awaiter(this, void 0, void 0, function* () {
69
70
  return (yield (0, axios_1.default)({
70
71
  method: 'post',
71
- url: `${baseUrl}/v2.0/rates/book`,
72
+ url: `${bookingBaseUrl}/v2.0/rates/book`,
72
73
  data: options,
73
74
  headers: {
74
75
  'X-API-Key': this.apiKey,
@@ -81,7 +82,7 @@ class LiteApiClient {
81
82
  return __awaiter(this, void 0, void 0, function* () {
82
83
  return (yield (0, axios_1.default)({
83
84
  method: 'put',
84
- url: `${baseUrl}/v2.0/bookings/${bookingId}`,
85
+ url: `${bookingBaseUrl}/v2.0/bookings/${bookingId}`,
85
86
  headers: {
86
87
  'X-API-Key': this.apiKey,
87
88
  'content-type': 'application/json',
@@ -15,6 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.LiteApiClientV3 = void 0;
16
16
  const axios_1 = __importDefault(require("axios"));
17
17
  const baseUrl = 'https://api.liteapi.travel';
18
+ const bookingBaseUrl = 'https://book.liteapi.travel';
18
19
  class LiteApiClientV3 {
19
20
  constructor(apiKey) {
20
21
  this.apiKey = apiKey;
@@ -56,7 +57,7 @@ class LiteApiClientV3 {
56
57
  return __awaiter(this, void 0, void 0, function* () {
57
58
  return (yield (0, axios_1.default)({
58
59
  method: 'post',
59
- url: `${baseUrl}/v3.0/rates/prebook`,
60
+ url: `${bookingBaseUrl}/v3.0/rates/prebook`,
60
61
  data: options,
61
62
  headers: {
62
63
  'X-API-Key': this.apiKey,
@@ -69,7 +70,7 @@ class LiteApiClientV3 {
69
70
  return __awaiter(this, void 0, void 0, function* () {
70
71
  return (yield (0, axios_1.default)({
71
72
  method: 'post',
72
- url: `${baseUrl}/v3.0/rates/book`,
73
+ url: `${bookingBaseUrl}/v3.0/rates/book`,
73
74
  data: options,
74
75
  headers: {
75
76
  'X-API-Key': this.apiKey,
@@ -82,7 +83,7 @@ class LiteApiClientV3 {
82
83
  return __awaiter(this, void 0, void 0, function* () {
83
84
  return (yield (0, axios_1.default)({
84
85
  method: 'put',
85
- url: `${baseUrl}/v3.0/bookings/${bookingId}`,
86
+ url: `${bookingBaseUrl}/v3.0/bookings/${bookingId}`,
86
87
  headers: {
87
88
  'X-API-Key': this.apiKey,
88
89
  'content-type': 'application/json',
@@ -13,6 +13,7 @@ export declare class Project extends Model<Partial<Project>> {
13
13
  agency?: Agency;
14
14
  bookings?: Booking[];
15
15
  preferences?: object;
16
+ appearance?: object;
16
17
  generateSession(secret: string): string;
17
18
  getLiteApiClient(): LiteApiClient;
18
19
  getLiteApiClientV3(): LiteApiClientV3;
@@ -127,6 +127,14 @@ __decorate([
127
127
  }),
128
128
  __metadata("design:type", Object)
129
129
  ], Project.prototype, "preferences", void 0);
130
+ __decorate([
131
+ (0, sequelize_typescript_1.Column)({
132
+ type: sequelize_typescript_1.DataType.JSONB,
133
+ allowNull: false,
134
+ defaultValue: {},
135
+ }),
136
+ __metadata("design:type", Object)
137
+ ], Project.prototype, "appearance", void 0);
130
138
  exports.Project = Project = __decorate([
131
139
  (0, sequelize_typescript_1.Table)({
132
140
  tableName: 'projects',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whitelabel-db",
3
- "version": "1.0.38",
3
+ "version": "1.0.40",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",