whitelabel-db 1.1.18 → 1.1.20

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.
@@ -98,6 +98,7 @@ export interface PrebookRateRequestV3 {
98
98
  usePaymentSdk?: boolean;
99
99
  trackingId?: string;
100
100
  voucherCode?: string;
101
+ uberVoucherValue?: number;
101
102
  }
102
103
  export interface PrebookRateV3 {
103
104
  prebookId: string;
@@ -120,6 +121,12 @@ export interface PrebookRateV3 {
120
121
  voucherCode: string;
121
122
  voucherTotalAmount: number;
122
123
  isPackageRate: boolean;
124
+ uberVoucher: {
125
+ voucherValue: number;
126
+ voucherCurrency: string;
127
+ convertedVoucherValue: number;
128
+ convertedVoucherCurrency: string;
129
+ };
123
130
  }
124
131
  export interface GuestInfoV3 {
125
132
  guestFirstName: string;
@@ -189,6 +196,9 @@ export interface BookingInfoV3 {
189
196
  };
190
197
  holder: UserV3;
191
198
  guestId: number;
199
+ uberVoucherCode: string;
200
+ uberVoucherCurrency: string;
201
+ uberVoucherExpiryDate: string;
192
202
  }
193
203
  export interface BookingConfirmationV3 {
194
204
  prebookId: string;
@@ -8,6 +8,7 @@ export declare class User extends Model<Partial<User>> {
8
8
  agencyId?: string;
9
9
  agency?: Agency;
10
10
  roleId?: number;
11
+ otp?: string;
11
12
  role?: Role;
12
13
  static checkEmail(email: string): Promise<void>;
13
14
  generateSession(secret: string): string;
@@ -89,6 +89,13 @@ __decorate([
89
89
  }),
90
90
  __metadata("design:type", Number)
91
91
  ], User.prototype, "roleId", void 0);
92
+ __decorate([
93
+ (0, sequelize_typescript_1.Column)({
94
+ type: sequelize_typescript_1.DataType.STRING,
95
+ allowNull: true,
96
+ }),
97
+ __metadata("design:type", String)
98
+ ], User.prototype, "otp", void 0);
92
99
  __decorate([
93
100
  (0, sequelize_typescript_1.BelongsTo)(() => Role_1.Role),
94
101
  __metadata("design:type", Role_1.Role)
@@ -0,0 +1,6 @@
1
+ import { Model } from 'sequelize-typescript';
2
+ export declare class UserRole extends Model<Partial<UserRole>> {
3
+ id: string;
4
+ name: string;
5
+ description?: string;
6
+ }
@@ -9,53 +9,38 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.Search = void 0;
12
+ exports.UserRole = void 0;
13
+ const sequelize_1 = require("sequelize");
13
14
  const sequelize_typescript_1 = require("sequelize-typescript");
14
- let Search = class Search extends sequelize_typescript_1.Model {
15
+ let UserRole = class UserRole extends sequelize_typescript_1.Model {
15
16
  };
16
- exports.Search = Search;
17
+ exports.UserRole = UserRole;
17
18
  __decorate([
18
19
  sequelize_typescript_1.PrimaryKey,
19
- sequelize_typescript_1.Index,
20
20
  (0, sequelize_typescript_1.Column)({
21
- type: sequelize_typescript_1.DataType.STRING(32),
22
- }),
23
- __metadata("design:type", String)
24
- ], Search.prototype, "id", void 0);
25
- __decorate([
26
- (0, sequelize_typescript_1.Column)({
27
- type: sequelize_typescript_1.DataType.INTEGER,
21
+ type: sequelize_1.NUMBER,
28
22
  allowNull: false,
29
- defaultValue: 0,
23
+ autoIncrement: true,
30
24
  }),
31
- __metadata("design:type", Number)
32
- ], Search.prototype, "hits", void 0);
33
- __decorate([
34
- sequelize_typescript_1.Unique,
35
- sequelize_typescript_1.Index,
36
- (0, sequelize_typescript_1.Column)({
37
- type: sequelize_typescript_1.DataType.DATE,
38
- }),
39
- __metadata("design:type", Date)
40
- ], Search.prototype, "cacheUpdatedAt", void 0);
25
+ __metadata("design:type", String)
26
+ ], UserRole.prototype, "id", void 0);
41
27
  __decorate([
42
28
  sequelize_typescript_1.Unique,
43
- sequelize_typescript_1.Index,
44
29
  (0, sequelize_typescript_1.Column)({
45
- type: sequelize_typescript_1.DataType.DATE,
30
+ type: sequelize_typescript_1.DataType.STRING,
31
+ allowNull: false,
46
32
  }),
47
- __metadata("design:type", Date)
48
- ], Search.prototype, "cacheQueuedAt", void 0);
33
+ __metadata("design:type", String)
34
+ ], UserRole.prototype, "name", void 0);
49
35
  __decorate([
50
36
  (0, sequelize_typescript_1.Column)({
51
- type: sequelize_typescript_1.DataType.JSONB,
52
- allowNull: false,
53
- defaultValue: {},
37
+ type: sequelize_typescript_1.DataType.STRING,
38
+ allowNull: true,
54
39
  }),
55
- __metadata("design:type", Object)
56
- ], Search.prototype, "data", void 0);
57
- exports.Search = Search = __decorate([
40
+ __metadata("design:type", String)
41
+ ], UserRole.prototype, "description", void 0);
42
+ exports.UserRole = UserRole = __decorate([
58
43
  (0, sequelize_typescript_1.Table)({
59
- tableName: 'searches',
44
+ tableName: 'user_roles',
60
45
  })
61
- ], Search);
46
+ ], UserRole);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whitelabel-db",
3
- "version": "1.1.18",
3
+ "version": "1.1.20",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +0,0 @@
1
- import { Model } from 'sequelize-typescript';
2
- export declare class Search extends Model<Partial<Search>> {
3
- id: string;
4
- hits: number;
5
- cacheUpdatedAt?: Date;
6
- cacheQueuedAt?: Date;
7
- data?: object;
8
- }