@escapenavigator/types 1.6.6 → 1.6.8
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/certificate/certificate.ro.d.ts +1 -0
- package/dist/order/update-order-slot.dto.js +1 -0
- package/dist/profile/profile.ro.d.ts +2 -0
- package/dist/profile/update-current.dto.d.ts +2 -0
- package/dist/profile/update-current.dto.js +6 -0
- package/dist/questroom/agregator-questroom.ro.d.ts +0 -10
- package/dist/questroom/questroom.ro.d.ts +2 -1
- package/dist/slot/daily-query.dto.d.ts +1 -1
- package/dist/slot/daily-query.dto.js +3 -3
- package/dist/slot/slot.ro.d.ts +1 -1
- package/dist/statistics/monthly-general-statisctics.ro.d.ts +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/widget-openapi/openapi-certificate-card.ro.d.ts +4 -3
- package/dist/widget-openapi/openapi-certificate-card.ro.js +78 -0
- package/dist/widget-openapi/openapi-certificate.ro.d.ts +4 -7
- package/dist/widget-openapi/openapi-certificate.ro.js +107 -0
- package/dist/widget-openapi/openapi-order.ro.d.ts +23 -20
- package/dist/widget-openapi/openapi-order.ro.js +136 -0
- package/dist/widget-openapi/openapi-questroom.ro.d.ts +57 -8
- package/dist/widget-openapi/openapi-questroom.ro.js +168 -0
- package/dist/widget-openapi/openapi-slots.ro.d.ts +1 -1
- package/dist/widget-openapi/openapi-widget.ro.d.ts +23 -16
- package/dist/widget-openapi/openapi-widget.ro.js +111 -0
- package/dist/{widget-orders/widget-order.ro.d.ts → widget-openapi/order-service-order.ro.d.ts} +3 -34
- package/dist/{widget-orders/widget-order.ro.js → widget-openapi/order-service-order.ro.js} +4 -124
- package/package.json +2 -2
- package/dist/profile/customization/customization.ro.d.ts +0 -7
- package/dist/profile/customization/update-customization.dto.d.ts +0 -6
- package/dist/profile/customization/update-customization.dto.js +0 -35
- package/dist/widget-orders/widget-orders-certificate.ro.js +0 -2
- /package/dist/{widget-orders/widget-orders-certificate.ro.d.ts → widget-openapi/order-service-certificate.ro.d.ts} +0 -0
- /package/dist/{profile/customization/customization.ro.js → widget-openapi/order-service-certificate.ro.js} +0 -0
- /package/dist/{widget-orders/widget-orders-create-certificate-payment.dto.d.ts → widget-openapi/order-service-create-certificate-payment.dto.d.ts} +0 -0
- /package/dist/{widget-orders/widget-orders-create-certificate-payment.dto.js → widget-openapi/order-service-create-certificate-payment.dto.js} +0 -0
- /package/dist/{widget-orders/widget-orders-create-order-payment.dto.d.ts → widget-openapi/order-service-create-order-payment.dto.d.ts} +0 -0
- /package/dist/{widget-orders/widget-orders-create-order-payment.dto.js → widget-openapi/order-service-create-order-payment.dto.js} +0 -0
- /package/dist/{widget-orders/widget-orders-create-payment.ro.d.ts → widget-openapi/order-service-create-payment.ro.d.ts} +0 -0
- /package/dist/{widget-orders/widget-orders-create-payment.ro.js → widget-openapi/order-service-create-payment.ro.js} +0 -0
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
2
2
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
|
-
import { UpsellingResponseObject } from '../upselling/upselling.ro';
|
|
4
3
|
import { WidgetBookingFiledEnum } from '../widget/enum/widget-booking-filed.enum';
|
|
5
4
|
import { WidgetTypeEnum } from '../widget/enum/widget-type.enum';
|
|
6
5
|
import { OpenapiCertificateCardRO } from './openapi-certificate-card.ro';
|
|
7
6
|
import { OpenapiQuestroomRO } from './openapi-questroom.ro';
|
|
8
|
-
declare
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
allowOnlinePayments: boolean;
|
|
7
|
+
declare class Upselling {
|
|
8
|
+
id: number;
|
|
9
|
+
allQuestrooms: boolean;
|
|
10
|
+
questroomsIds: number[];
|
|
11
|
+
price: number;
|
|
12
|
+
title: string;
|
|
13
|
+
description: string;
|
|
14
|
+
}
|
|
15
|
+
declare class Profile {
|
|
16
|
+
id: number;
|
|
17
|
+
phoneForCustomers: string;
|
|
20
18
|
bookingFields: WidgetBookingFiledEnum[];
|
|
21
|
-
|
|
22
|
-
defaultLanguage: Languages;
|
|
19
|
+
agreementLink: string;
|
|
23
20
|
availableLanguages: Languages[];
|
|
21
|
+
defaultLanguage: Languages[];
|
|
24
22
|
currency: ProfileCurrencyEnum;
|
|
25
|
-
}
|
|
23
|
+
}
|
|
24
|
+
export declare class OpenapiWidgetRO {
|
|
25
|
+
uuid: string;
|
|
26
|
+
language: Languages;
|
|
27
|
+
type: WidgetTypeEnum;
|
|
28
|
+
questrooms: OpenapiQuestroomRO[];
|
|
29
|
+
certificates: OpenapiCertificateCardRO[];
|
|
30
|
+
upsellings: Upselling[];
|
|
31
|
+
profile: Profile;
|
|
32
|
+
}
|
|
26
33
|
export {};
|
|
@@ -1,2 +1,113 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.OpenapiWidgetRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const currency_by_country_1 = require("../constants/currency-by-country");
|
|
16
|
+
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
17
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
18
|
+
const widget_type_enum_1 = require("../widget/enum/widget-type.enum");
|
|
19
|
+
const openapi_certificate_card_ro_1 = require("./openapi-certificate-card.ro");
|
|
20
|
+
const openapi_questroom_ro_1 = require("./openapi-questroom.ro");
|
|
21
|
+
class Upselling {
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], Upselling.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", Boolean)
|
|
30
|
+
], Upselling.prototype, "allQuestrooms", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], Upselling.prototype, "questroomsIds", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], Upselling.prototype, "price", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], Upselling.prototype, "title", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Upselling.prototype, "description", void 0);
|
|
47
|
+
class Profile {
|
|
48
|
+
}
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
__metadata("design:type", Number)
|
|
52
|
+
], Profile.prototype, "id", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Profile.prototype, "phoneForCustomers", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
__metadata("design:type", Array)
|
|
60
|
+
], Profile.prototype, "bookingFields", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_transformer_1.Expose)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Profile.prototype, "agreementLink", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", Array)
|
|
68
|
+
], Profile.prototype, "availableLanguages", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_transformer_1.Expose)(),
|
|
71
|
+
__metadata("design:type", Array)
|
|
72
|
+
], Profile.prototype, "defaultLanguage", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_transformer_1.Expose)(),
|
|
75
|
+
(0, class_transformer_1.Transform)((data) => { var _a; return currency_by_country_1.currencyByCountry[(_a = data === null || data === void 0 ? void 0 : data.obj) === null || _a === void 0 ? void 0 : _a.country]; }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], Profile.prototype, "currency", void 0);
|
|
78
|
+
class OpenapiWidgetRO {
|
|
79
|
+
}
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_transformer_1.Expose)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], OpenapiWidgetRO.prototype, "uuid", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_transformer_1.Expose)(),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], OpenapiWidgetRO.prototype, "language", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_transformer_1.Expose)(),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], OpenapiWidgetRO.prototype, "type", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_transformer_1.Expose)(),
|
|
94
|
+
(0, class_transformer_1.Type)(() => openapi_questroom_ro_1.OpenapiQuestroomRO),
|
|
95
|
+
(0, class_transformer_1.Transform)(({ value, obj, }) => value.map((questroom) => (0, openapi_questroom_ro_1.transformQuestroom)({ value: questroom, language: obj.language }))),
|
|
96
|
+
__metadata("design:type", Array)
|
|
97
|
+
], OpenapiWidgetRO.prototype, "questrooms", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_transformer_1.Expose)(),
|
|
100
|
+
(0, class_transformer_1.Type)(() => openapi_certificate_card_ro_1.OpenapiCertificateCardRO),
|
|
101
|
+
__metadata("design:type", Array)
|
|
102
|
+
], OpenapiWidgetRO.prototype, "certificates", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, class_transformer_1.Expose)(),
|
|
105
|
+
(0, class_transformer_1.Type)(() => Upselling),
|
|
106
|
+
__metadata("design:type", Array)
|
|
107
|
+
], OpenapiWidgetRO.prototype, "upsellings", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, class_transformer_1.Expose)(),
|
|
110
|
+
(0, class_transformer_1.Type)(() => Profile),
|
|
111
|
+
__metadata("design:type", Profile)
|
|
112
|
+
], OpenapiWidgetRO.prototype, "profile", void 0);
|
|
113
|
+
exports.OpenapiWidgetRO = OpenapiWidgetRO;
|
package/dist/{widget-orders/widget-order.ro.d.ts → widget-openapi/order-service-order.ro.d.ts}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OrderPenaltyTypeEnum } from '../order-penalty/enum/order-penalty-type.enum';
|
|
2
2
|
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
3
3
|
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
4
|
-
import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
|
|
5
4
|
import { Languages } from '../shared/enum/languages.enum';
|
|
6
5
|
import { TransactionTypeEnum } from '../transaction/enum/transaction-type.enum';
|
|
7
|
-
|
|
6
|
+
import { QuestroomRow } from './openapi-questroom.ro';
|
|
7
|
+
export declare class Tariff {
|
|
8
8
|
}
|
|
9
9
|
declare class Slot {
|
|
10
10
|
id: number;
|
|
@@ -57,37 +57,7 @@ declare class Client {
|
|
|
57
57
|
email: string;
|
|
58
58
|
address: string;
|
|
59
59
|
}
|
|
60
|
-
declare class
|
|
61
|
-
title: string;
|
|
62
|
-
legend: string;
|
|
63
|
-
language: Languages;
|
|
64
|
-
}
|
|
65
|
-
declare class LocationLocale {
|
|
66
|
-
howToFind: string;
|
|
67
|
-
language: Languages;
|
|
68
|
-
}
|
|
69
|
-
declare class Location {
|
|
70
|
-
address: string;
|
|
71
|
-
howToFind: string;
|
|
72
|
-
phone: string;
|
|
73
|
-
timeZone: string;
|
|
74
|
-
locales: LocationLocale[];
|
|
75
|
-
}
|
|
76
|
-
declare class Questroom {
|
|
77
|
-
id: number;
|
|
78
|
-
title: string;
|
|
79
|
-
fear: number;
|
|
80
|
-
difficult: number;
|
|
81
|
-
photo: string;
|
|
82
|
-
time: number;
|
|
83
|
-
type: QuestroomTypeEnum;
|
|
84
|
-
playersMax: number;
|
|
85
|
-
playersMin: number;
|
|
86
|
-
minAge: number;
|
|
87
|
-
location: Location;
|
|
88
|
-
locales: QuestroomLocale[];
|
|
89
|
-
}
|
|
90
|
-
export declare class WidgetOrderRO {
|
|
60
|
+
export declare class WidgetOrderRO extends QuestroomRow {
|
|
91
61
|
id: number;
|
|
92
62
|
code: string;
|
|
93
63
|
utcDate: string;
|
|
@@ -107,6 +77,5 @@ export declare class WidgetOrderRO {
|
|
|
107
77
|
penalties: Penalty[];
|
|
108
78
|
transactions: Transaction[];
|
|
109
79
|
prepareText: string;
|
|
110
|
-
questroom: Questroom;
|
|
111
80
|
}
|
|
112
81
|
export {};
|
|
@@ -8,33 +8,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
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
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.WidgetOrderRO = void 0;
|
|
12
|
+
exports.WidgetOrderRO = exports.Tariff = void 0;
|
|
24
13
|
/* eslint-disable max-classes-per-file */
|
|
25
14
|
const class_transformer_1 = require("class-transformer");
|
|
26
15
|
const currency_by_country_1 = require("../constants/currency-by-country");
|
|
27
16
|
const order_penalty_type_enum_1 = require("../order-penalty/enum/order-penalty-type.enum");
|
|
28
17
|
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
29
18
|
const questroom_cancelation_type_enum_1 = require("../questroom/enum/questroom-cancelation-type.enum");
|
|
30
|
-
const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
|
|
31
19
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
32
20
|
const transaction_type_enum_1 = require("../transaction/enum/transaction-type.enum");
|
|
21
|
+
const openapi_questroom_ro_1 = require("./openapi-questroom.ro");
|
|
33
22
|
let Tariff = class Tariff {
|
|
34
23
|
};
|
|
35
24
|
Tariff = __decorate([
|
|
36
25
|
(0, class_transformer_1.Expose)()
|
|
37
26
|
], Tariff);
|
|
27
|
+
exports.Tariff = Tariff;
|
|
38
28
|
class Slot {
|
|
39
29
|
}
|
|
40
30
|
__decorate([
|
|
@@ -193,106 +183,7 @@ __decorate([
|
|
|
193
183
|
(0, class_transformer_1.Expose)(),
|
|
194
184
|
__metadata("design:type", String)
|
|
195
185
|
], Client.prototype, "address", void 0);
|
|
196
|
-
class
|
|
197
|
-
}
|
|
198
|
-
__decorate([
|
|
199
|
-
(0, class_transformer_1.Expose)(),
|
|
200
|
-
__metadata("design:type", String)
|
|
201
|
-
], QuestroomLocale.prototype, "title", void 0);
|
|
202
|
-
__decorate([
|
|
203
|
-
(0, class_transformer_1.Expose)(),
|
|
204
|
-
__metadata("design:type", String)
|
|
205
|
-
], QuestroomLocale.prototype, "legend", void 0);
|
|
206
|
-
__decorate([
|
|
207
|
-
(0, class_transformer_1.Expose)(),
|
|
208
|
-
__metadata("design:type", String)
|
|
209
|
-
], QuestroomLocale.prototype, "language", void 0);
|
|
210
|
-
class LocationLocale {
|
|
211
|
-
}
|
|
212
|
-
__decorate([
|
|
213
|
-
(0, class_transformer_1.Expose)(),
|
|
214
|
-
__metadata("design:type", String)
|
|
215
|
-
], LocationLocale.prototype, "howToFind", void 0);
|
|
216
|
-
__decorate([
|
|
217
|
-
(0, class_transformer_1.Expose)(),
|
|
218
|
-
__metadata("design:type", String)
|
|
219
|
-
], LocationLocale.prototype, "language", void 0);
|
|
220
|
-
class Location {
|
|
221
|
-
}
|
|
222
|
-
__decorate([
|
|
223
|
-
(0, class_transformer_1.Expose)(),
|
|
224
|
-
__metadata("design:type", String)
|
|
225
|
-
], Location.prototype, "address", void 0);
|
|
226
|
-
__decorate([
|
|
227
|
-
(0, class_transformer_1.Expose)(),
|
|
228
|
-
__metadata("design:type", String)
|
|
229
|
-
], Location.prototype, "howToFind", void 0);
|
|
230
|
-
__decorate([
|
|
231
|
-
(0, class_transformer_1.Expose)(),
|
|
232
|
-
__metadata("design:type", String)
|
|
233
|
-
], Location.prototype, "phone", void 0);
|
|
234
|
-
__decorate([
|
|
235
|
-
(0, class_transformer_1.Expose)(),
|
|
236
|
-
__metadata("design:type", String)
|
|
237
|
-
], Location.prototype, "timeZone", void 0);
|
|
238
|
-
__decorate([
|
|
239
|
-
(0, class_transformer_1.Expose)(),
|
|
240
|
-
(0, class_transformer_1.Type)(() => LocationLocale),
|
|
241
|
-
__metadata("design:type", Array)
|
|
242
|
-
], Location.prototype, "locales", void 0);
|
|
243
|
-
class Questroom {
|
|
244
|
-
}
|
|
245
|
-
__decorate([
|
|
246
|
-
(0, class_transformer_1.Expose)(),
|
|
247
|
-
__metadata("design:type", Number)
|
|
248
|
-
], Questroom.prototype, "id", void 0);
|
|
249
|
-
__decorate([
|
|
250
|
-
(0, class_transformer_1.Expose)(),
|
|
251
|
-
__metadata("design:type", String)
|
|
252
|
-
], Questroom.prototype, "title", void 0);
|
|
253
|
-
__decorate([
|
|
254
|
-
(0, class_transformer_1.Expose)(),
|
|
255
|
-
__metadata("design:type", Number)
|
|
256
|
-
], Questroom.prototype, "fear", void 0);
|
|
257
|
-
__decorate([
|
|
258
|
-
(0, class_transformer_1.Expose)(),
|
|
259
|
-
__metadata("design:type", Number)
|
|
260
|
-
], Questroom.prototype, "difficult", void 0);
|
|
261
|
-
__decorate([
|
|
262
|
-
(0, class_transformer_1.Expose)(),
|
|
263
|
-
__metadata("design:type", String)
|
|
264
|
-
], Questroom.prototype, "photo", void 0);
|
|
265
|
-
__decorate([
|
|
266
|
-
(0, class_transformer_1.Expose)(),
|
|
267
|
-
__metadata("design:type", Number)
|
|
268
|
-
], Questroom.prototype, "time", void 0);
|
|
269
|
-
__decorate([
|
|
270
|
-
(0, class_transformer_1.Expose)(),
|
|
271
|
-
__metadata("design:type", String)
|
|
272
|
-
], Questroom.prototype, "type", void 0);
|
|
273
|
-
__decorate([
|
|
274
|
-
(0, class_transformer_1.Expose)(),
|
|
275
|
-
__metadata("design:type", Number)
|
|
276
|
-
], Questroom.prototype, "playersMax", void 0);
|
|
277
|
-
__decorate([
|
|
278
|
-
(0, class_transformer_1.Expose)(),
|
|
279
|
-
__metadata("design:type", Number)
|
|
280
|
-
], Questroom.prototype, "playersMin", void 0);
|
|
281
|
-
__decorate([
|
|
282
|
-
(0, class_transformer_1.Expose)(),
|
|
283
|
-
__metadata("design:type", Number)
|
|
284
|
-
], Questroom.prototype, "minAge", void 0);
|
|
285
|
-
__decorate([
|
|
286
|
-
(0, class_transformer_1.Expose)(),
|
|
287
|
-
(0, class_transformer_1.Type)(() => Location),
|
|
288
|
-
__metadata("design:type", Location)
|
|
289
|
-
], Questroom.prototype, "location", void 0);
|
|
290
|
-
__decorate([
|
|
291
|
-
(0, class_transformer_1.Expose)(),
|
|
292
|
-
(0, class_transformer_1.Type)(() => QuestroomLocale),
|
|
293
|
-
__metadata("design:type", Array)
|
|
294
|
-
], Questroom.prototype, "locales", void 0);
|
|
295
|
-
class WidgetOrderRO {
|
|
186
|
+
class WidgetOrderRO extends openapi_questroom_ro_1.QuestroomRow {
|
|
296
187
|
}
|
|
297
188
|
__decorate([
|
|
298
189
|
(0, class_transformer_1.Expose)(),
|
|
@@ -380,15 +271,4 @@ __decorate([
|
|
|
380
271
|
(0, class_transformer_1.Expose)(),
|
|
381
272
|
__metadata("design:type", String)
|
|
382
273
|
], WidgetOrderRO.prototype, "prepareText", void 0);
|
|
383
|
-
__decorate([
|
|
384
|
-
(0, class_transformer_1.Expose)(),
|
|
385
|
-
(0, class_transformer_1.Type)(() => Questroom),
|
|
386
|
-
(0, class_transformer_1.Transform)((_a) => {
|
|
387
|
-
var _b, _c;
|
|
388
|
-
var _d = _a.value, { locales } = _d, _e = _d.location, { locales: locationLocales } = _e, questroomLocation = __rest(_e, ["locales"]), questroom = __rest(_d, ["locales", "location"]), { obj: { language } } = _a;
|
|
389
|
-
return (Object.assign(Object.assign({}, questroom), { title: ((_b = locales.find((l) => l.language === language)) === null || _b === void 0 ? void 0 : _b.title) || questroom.title, location: Object.assign(Object.assign({}, questroomLocation), { howToFind: ((_c = locationLocales.find((l) => l.language === language)) === null || _c === void 0 ? void 0 : _c.howToFind) ||
|
|
390
|
-
questroomLocation.howToFind }) }));
|
|
391
|
-
}),
|
|
392
|
-
__metadata("design:type", Questroom)
|
|
393
|
-
], WidgetOrderRO.prototype, "questroom", void 0);
|
|
394
274
|
exports.WidgetOrderRO = WidgetOrderRO;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/types",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.8",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "a243f0e810fb84d832b19c48f376d6e8c5b1b678",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/validator": "13.0.0",
|
|
26
26
|
"alphakit-presets-lint": "^1.0.0",
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ResponseObject } from '../../shared/ro';
|
|
2
|
-
import { WidgetBookingFiledEnum } from '../../widget/enum/widget-booking-filed.enum';
|
|
3
|
-
export declare type CustomizationRO = ResponseObject & {
|
|
4
|
-
allowOrdersOnlinePayments: boolean;
|
|
5
|
-
bookingFields: WidgetBookingFiledEnum[];
|
|
6
|
-
color: string;
|
|
7
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UpdateCustomizationDto = void 0;
|
|
13
|
-
/* eslint-disable max-classes-per-file */
|
|
14
|
-
const class_transformer_1 = require("class-transformer");
|
|
15
|
-
const class_validator_1 = require("class-validator");
|
|
16
|
-
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
17
|
-
class UpdateCustomizationDto {
|
|
18
|
-
}
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_validator_1.IsBoolean)(),
|
|
21
|
-
(0, class_transformer_1.Expose)(),
|
|
22
|
-
__metadata("design:type", Boolean)
|
|
23
|
-
], UpdateCustomizationDto.prototype, "allowOrdersOnlinePayments", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], UpdateCustomizationDto.prototype, "color", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsArray)(),
|
|
31
|
-
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
32
|
-
(0, class_transformer_1.Expose)(),
|
|
33
|
-
__metadata("design:type", Array)
|
|
34
|
-
], UpdateCustomizationDto.prototype, "bookingFields", void 0);
|
|
35
|
-
exports.UpdateCustomizationDto = UpdateCustomizationDto;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|