@escapenavigator/types 1.6.16 → 1.6.18
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/cashbox/cashbox.ro.d.ts +3 -2
- package/dist/cashbox/create-cashbox.dto.d.ts +0 -2
- package/dist/cashbox/create-cashbox.dto.js +0 -11
- package/dist/cashbox/create-online-cashbox.dto.d.ts +11 -0
- package/dist/cashbox/create-online-cashbox.dto.js +59 -0
- package/dist/cashbox/update-online-cashbox.dto.d.ts +8 -0
- package/dist/cashbox/update-online-cashbox.dto.js +47 -0
- package/dist/certificate/certificate.ro.d.ts +1 -0
- package/dist/certificate/create-certificate.dto.d.ts +1 -0
- package/dist/certificate/create-certificate.dto.js +6 -1
- package/dist/certificate-sale/enum/certificatesales-status.enum.d.ts +1 -0
- package/dist/certificate-sale/enum/certificatesales-status.enum.js +1 -0
- package/dist/emails/index.d.ts +1 -0
- package/dist/order/create-order.dto.d.ts +8 -0
- package/dist/order/create-order.dto.js +20 -0
- package/dist/order/order.ro.d.ts +1 -0
- package/dist/order-upselling/create-order-upselling.dto.d.ts +0 -2
- package/dist/order-upselling/create-order-upselling.dto.js +0 -11
- package/dist/profile/action/create-profile-action.dto.d.ts +9 -0
- package/dist/profile/action/create-profile-action.dto.js +55 -0
- package/dist/profile/action/profile-action.dto.d.ts +17 -0
- package/dist/profile/action/profile-action.dto.js +68 -0
- package/dist/profile/admin-profile.ro.d.ts +3 -5
- package/dist/profile/admin-profile.ro.js +7 -8
- package/dist/profile/create-profile.dto.d.ts +1 -0
- package/dist/profile/create-profile.dto.js +5 -0
- package/dist/profile/profile.ro.d.ts +1 -0
- package/dist/profile/profile.ro.js +4 -0
- package/dist/profile/update-current.dto.d.ts +1 -0
- package/dist/profile/update-current.dto.js +5 -0
- package/dist/questroom/create-questroom.dto.d.ts +1 -0
- package/dist/questroom/create-questroom.dto.js +6 -1
- package/dist/questroom/questroom.ro.d.ts +1 -0
- package/dist/slot/slot.ro.d.ts +1 -0
- package/dist/transaction/enum/transaction-source.enum.d.ts +3 -4
- package/dist/transaction/enum/transaction-source.enum.js +3 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/widget-openapi/forms/widget-client-form.dto.d.ts +11 -0
- package/dist/widget-openapi/forms/widget-client-form.dto.js +66 -0
- package/dist/widget-openapi/forms/widget-embeded-first-form.dto.d.ts +8 -0
- package/dist/widget-openapi/forms/widget-embeded-first-form.dto.js +40 -0
- package/dist/widget-openapi/forms/widget-players-form.dto.d.ts +7 -0
- package/dist/{profile/create-profile-message.dto.js → widget-openapi/forms/widget-players-form.dto.js} +19 -6
- package/dist/widget-openapi/openapi-create-order.dto.d.ts +0 -1
- package/dist/widget-openapi/openapi-create-order.dto.js +0 -5
- package/dist/widget-openapi/openapi-order.ro.d.ts +4 -5
- package/dist/widget-openapi/openapi-order.ro.js +20 -29
- package/dist/widget-openapi/openapi-preorder.ro.d.ts +53 -0
- package/dist/widget-openapi/openapi-preorder.ro.js +166 -0
- package/dist/widget-openapi/openapi-questroom.ro.d.ts +4 -8
- package/dist/widget-openapi/openapi-questroom.ro.js +7 -19
- package/dist/widget-openapi/openapi-widget.ro.d.ts +10 -1
- package/dist/widget-openapi/openapi-widget.ro.js +26 -1
- package/dist/widget-openapi/order-service-create-order-payment.dto.d.ts +1 -0
- package/dist/widget-openapi/order-service-create-order-payment.dto.js +5 -0
- package/package.json +2 -2
- package/dist/cashbox/update-cashbox.dto.d.ts +0 -5
- package/dist/cashbox/update-cashbox.dto.js +0 -8
- package/dist/profile/create-profile-message.dto.d.ts +0 -4
- package/dist/widget-openapi/order-service-create-certificate-payment.dto.d.ts +0 -3
- package/dist/widget-openapi/order-service-create-certificate-payment.dto.js +0 -22
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { WidgetBookingFiledEnum } from '../../widget/enum/widget-booking-filed.enum';
|
|
2
|
+
export declare class WidgetClientFormDto {
|
|
3
|
+
fields: WidgetBookingFiledEnum[];
|
|
4
|
+
name: string;
|
|
5
|
+
surname: string;
|
|
6
|
+
email: string;
|
|
7
|
+
phone: string;
|
|
8
|
+
address: string;
|
|
9
|
+
postcode: string;
|
|
10
|
+
city: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.WidgetClientFormDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
16
|
+
const widget_booking_filed_enum_1 = require("../../widget/enum/widget-booking-filed.enum");
|
|
17
|
+
class WidgetClientFormDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsArray)(),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", Array)
|
|
23
|
+
], WidgetClientFormDto.prototype, "fields", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.NAME)),
|
|
26
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], WidgetClientFormDto.prototype, "name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.SURNAME)),
|
|
32
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], WidgetClientFormDto.prototype, "surname", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsEmail)(),
|
|
38
|
+
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], WidgetClientFormDto.prototype, "email", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.PHONE)),
|
|
44
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], WidgetClientFormDto.prototype, "phone", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
|
|
50
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], WidgetClientFormDto.prototype, "address", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
|
|
56
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], WidgetClientFormDto.prototype, "postcode", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
|
|
62
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], WidgetClientFormDto.prototype, "city", void 0);
|
|
66
|
+
exports.WidgetClientFormDto = WidgetClientFormDto;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Languages } from '../../shared/enum/languages.enum';
|
|
2
|
+
import { WidgetClientFormDto } from './widget-client-form.dto';
|
|
3
|
+
export declare class WidgetEmbededFirstFormDto extends WidgetClientFormDto {
|
|
4
|
+
upsellingIds: number[];
|
|
5
|
+
language: Languages;
|
|
6
|
+
players: number;
|
|
7
|
+
comment: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.WidgetEmbededFirstFormDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const languages_enum_1 = require("../../shared/enum/languages.enum");
|
|
16
|
+
const widget_client_form_dto_1 = require("./widget-client-form.dto");
|
|
17
|
+
class WidgetEmbededFirstFormDto extends widget_client_form_dto_1.WidgetClientFormDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsPositive)({ each: true }),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], WidgetEmbededFirstFormDto.prototype, "upsellingIds", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], WidgetEmbededFirstFormDto.prototype, "language", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsPositive)(),
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], WidgetEmbededFirstFormDto.prototype, "players", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], WidgetEmbededFirstFormDto.prototype, "comment", void 0);
|
|
40
|
+
exports.WidgetEmbededFirstFormDto = WidgetEmbededFirstFormDto;
|
|
@@ -9,20 +9,33 @@ 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.
|
|
12
|
+
exports.WidgetPlayersFormDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
16
|
-
|
|
15
|
+
const languages_enum_1 = require("../../shared/enum/languages.enum");
|
|
16
|
+
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
17
|
+
class WidgetPlayersFormDto {
|
|
17
18
|
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsPositive)({ each: true }),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", Array)
|
|
24
|
+
], WidgetPlayersFormDto.prototype, "upsellingIds", void 0);
|
|
18
25
|
__decorate([
|
|
19
26
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
27
|
+
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
20
28
|
(0, class_transformer_1.Expose)(),
|
|
21
29
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
30
|
+
], WidgetPlayersFormDto.prototype, "language", void 0);
|
|
23
31
|
__decorate([
|
|
24
32
|
(0, class_validator_1.IsPositive)(),
|
|
25
33
|
(0, class_transformer_1.Expose)(),
|
|
26
34
|
__metadata("design:type", Number)
|
|
27
|
-
],
|
|
28
|
-
|
|
35
|
+
], WidgetPlayersFormDto.prototype, "players", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], WidgetPlayersFormDto.prototype, "comment", void 0);
|
|
41
|
+
exports.WidgetPlayersFormDto = WidgetPlayersFormDto;
|
|
@@ -2,7 +2,6 @@ import { ClientFormDto } from '../client/client-form.dto';
|
|
|
2
2
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
3
|
export declare class OpenapiCreateOrderDto extends ClientFormDto {
|
|
4
4
|
previousHoldId: string;
|
|
5
|
-
prepaymentAmount: number;
|
|
6
5
|
players: number;
|
|
7
6
|
slotId: number;
|
|
8
7
|
widgetUid: string;
|
|
@@ -22,11 +22,6 @@ __decorate([
|
|
|
22
22
|
(0, class_transformer_1.Expose)(),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
24
|
], OpenapiCreateOrderDto.prototype, "previousHoldId", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsOptional)(),
|
|
27
|
-
(0, class_transformer_1.Expose)(),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], OpenapiCreateOrderDto.prototype, "prepaymentAmount", void 0);
|
|
30
25
|
__decorate([
|
|
31
26
|
(0, class_validator_1.IsNumber)(),
|
|
32
27
|
(0, class_transformer_1.Expose)(),
|
|
@@ -16,9 +16,8 @@ declare class Upselling {
|
|
|
16
16
|
title: string;
|
|
17
17
|
amount: number;
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
declare class Order {
|
|
20
20
|
id: number;
|
|
21
|
-
createdAt: Date;
|
|
22
21
|
code: string;
|
|
23
22
|
language?: Languages;
|
|
24
23
|
price: {
|
|
@@ -33,10 +32,10 @@ export declare class OpenapiOrderRO extends QuestroomRow {
|
|
|
33
32
|
upsellings: Upselling[];
|
|
34
33
|
promocodes: Promocode[];
|
|
35
34
|
transactions: Transaction[];
|
|
35
|
+
}
|
|
36
|
+
export declare class OpenapiOrderRO extends QuestroomRow {
|
|
37
|
+
order: Order;
|
|
36
38
|
clientEmail: string;
|
|
37
|
-
stripePaymentId?: string;
|
|
38
|
-
payee?: string;
|
|
39
|
-
prepaymentAmount?: number;
|
|
40
39
|
currency: ProfileCurrencyEnum;
|
|
41
40
|
}
|
|
42
41
|
export {};
|
|
@@ -52,85 +52,76 @@ __decorate([
|
|
|
52
52
|
(0, class_transformer_1.Expose)(),
|
|
53
53
|
__metadata("design:type", Number)
|
|
54
54
|
], Upselling.prototype, "amount", void 0);
|
|
55
|
-
class
|
|
55
|
+
class Order {
|
|
56
56
|
}
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, class_transformer_1.Expose)(),
|
|
59
59
|
__metadata("design:type", Number)
|
|
60
|
-
],
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, class_transformer_1.Expose)(),
|
|
63
|
-
__metadata("design:type", Date)
|
|
64
|
-
], OpenapiOrderRO.prototype, "createdAt", void 0);
|
|
60
|
+
], Order.prototype, "id", void 0);
|
|
65
61
|
__decorate([
|
|
66
62
|
(0, class_transformer_1.Expose)(),
|
|
67
63
|
__metadata("design:type", String)
|
|
68
|
-
],
|
|
64
|
+
], Order.prototype, "code", void 0);
|
|
69
65
|
__decorate([
|
|
70
66
|
(0, class_transformer_1.Expose)(),
|
|
71
67
|
__metadata("design:type", String)
|
|
72
|
-
],
|
|
68
|
+
], Order.prototype, "language", void 0);
|
|
73
69
|
__decorate([
|
|
74
70
|
(0, class_transformer_1.Expose)(),
|
|
75
71
|
(0, class_transformer_1.Type)(() => order_service_order_ro_1.Tariff),
|
|
76
72
|
__metadata("design:type", Object)
|
|
77
|
-
],
|
|
73
|
+
], Order.prototype, "price", void 0);
|
|
78
74
|
__decorate([
|
|
79
75
|
(0, class_transformer_1.Expose)(),
|
|
80
76
|
__metadata("design:type", Number)
|
|
81
|
-
],
|
|
77
|
+
], Order.prototype, "payed", void 0);
|
|
82
78
|
__decorate([
|
|
83
79
|
(0, class_transformer_1.Expose)(),
|
|
84
80
|
__metadata("design:type", Number)
|
|
85
|
-
],
|
|
81
|
+
], Order.prototype, "total", void 0);
|
|
86
82
|
__decorate([
|
|
87
83
|
(0, class_transformer_1.Expose)(),
|
|
88
84
|
__metadata("design:type", Number)
|
|
89
|
-
],
|
|
85
|
+
], Order.prototype, "players", void 0);
|
|
90
86
|
__decorate([
|
|
91
87
|
(0, class_transformer_1.Expose)(),
|
|
92
88
|
__metadata("design:type", String)
|
|
93
|
-
],
|
|
89
|
+
], Order.prototype, "utcDate", void 0);
|
|
94
90
|
__decorate([
|
|
95
91
|
(0, class_transformer_1.Expose)(),
|
|
96
92
|
__metadata("design:type", String)
|
|
97
|
-
],
|
|
93
|
+
], Order.prototype, "token", void 0);
|
|
98
94
|
__decorate([
|
|
99
95
|
(0, class_transformer_1.Expose)(),
|
|
100
96
|
(0, class_transformer_1.Type)(() => Certificate),
|
|
101
97
|
__metadata("design:type", Array)
|
|
102
|
-
],
|
|
98
|
+
], Order.prototype, "certificates", void 0);
|
|
103
99
|
__decorate([
|
|
104
100
|
(0, class_transformer_1.Expose)(),
|
|
105
101
|
(0, class_transformer_1.Type)(() => Upselling),
|
|
106
102
|
__metadata("design:type", Array)
|
|
107
|
-
],
|
|
103
|
+
], Order.prototype, "upsellings", void 0);
|
|
108
104
|
__decorate([
|
|
109
105
|
(0, class_transformer_1.Expose)(),
|
|
110
106
|
(0, class_transformer_1.Type)(() => Promocode),
|
|
111
107
|
__metadata("design:type", Array)
|
|
112
|
-
],
|
|
108
|
+
], Order.prototype, "promocodes", void 0);
|
|
113
109
|
__decorate([
|
|
114
110
|
(0, class_transformer_1.Expose)(),
|
|
115
111
|
(0, class_transformer_1.Type)(() => Transaction),
|
|
116
112
|
__metadata("design:type", Array)
|
|
117
|
-
],
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
__metadata("design:type", String)
|
|
121
|
-
], OpenapiOrderRO.prototype, "clientEmail", void 0);
|
|
113
|
+
], Order.prototype, "transactions", void 0);
|
|
114
|
+
class OpenapiOrderRO extends openapi_questroom_ro_1.QuestroomRow {
|
|
115
|
+
}
|
|
122
116
|
__decorate([
|
|
123
117
|
(0, class_transformer_1.Expose)(),
|
|
124
|
-
|
|
125
|
-
|
|
118
|
+
(0, class_transformer_1.Type)(() => Order),
|
|
119
|
+
__metadata("design:type", Order)
|
|
120
|
+
], OpenapiOrderRO.prototype, "order", void 0);
|
|
126
121
|
__decorate([
|
|
127
122
|
(0, class_transformer_1.Expose)(),
|
|
128
123
|
__metadata("design:type", String)
|
|
129
|
-
], OpenapiOrderRO.prototype, "
|
|
130
|
-
__decorate([
|
|
131
|
-
(0, class_transformer_1.Expose)(),
|
|
132
|
-
__metadata("design:type", Number)
|
|
133
|
-
], OpenapiOrderRO.prototype, "prepaymentAmount", void 0);
|
|
124
|
+
], OpenapiOrderRO.prototype, "clientEmail", void 0);
|
|
134
125
|
__decorate([
|
|
135
126
|
(0, class_transformer_1.Expose)(),
|
|
136
127
|
__metadata("design:type", String)
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { CashboxTypeEnum } from '../cashbox/enum/cashbox-type.enum';
|
|
2
|
+
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
3
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
4
|
+
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
5
|
+
import { QuestroomRow } from './openapi-questroom.ro';
|
|
6
|
+
declare class Promocode {
|
|
7
|
+
amount: number;
|
|
8
|
+
code: string;
|
|
9
|
+
}
|
|
10
|
+
declare class Certificate {
|
|
11
|
+
nominal: number;
|
|
12
|
+
code: string;
|
|
13
|
+
}
|
|
14
|
+
declare class Upselling {
|
|
15
|
+
title: string;
|
|
16
|
+
amount: number;
|
|
17
|
+
}
|
|
18
|
+
declare class Order {
|
|
19
|
+
id: number;
|
|
20
|
+
code: string;
|
|
21
|
+
language?: Languages;
|
|
22
|
+
price: {
|
|
23
|
+
[x: string]: number;
|
|
24
|
+
};
|
|
25
|
+
total: number;
|
|
26
|
+
players: number;
|
|
27
|
+
utcDate: string;
|
|
28
|
+
certificates: Certificate[];
|
|
29
|
+
upsellings: Upselling[];
|
|
30
|
+
promocodes: Promocode[];
|
|
31
|
+
}
|
|
32
|
+
declare class PaymentMethod {
|
|
33
|
+
type: CashboxTypeEnum;
|
|
34
|
+
increase: number;
|
|
35
|
+
increaseType: PrepaymentTypeEnum;
|
|
36
|
+
id: number;
|
|
37
|
+
}
|
|
38
|
+
declare class Client {
|
|
39
|
+
name: string;
|
|
40
|
+
surname: string;
|
|
41
|
+
email: string;
|
|
42
|
+
phone: string;
|
|
43
|
+
address: string;
|
|
44
|
+
postcode: string;
|
|
45
|
+
city: string;
|
|
46
|
+
}
|
|
47
|
+
export declare class OpenapiPreorderRO extends QuestroomRow {
|
|
48
|
+
currency: ProfileCurrencyEnum;
|
|
49
|
+
order: Order;
|
|
50
|
+
client: Client;
|
|
51
|
+
paymentMethods: PaymentMethod[];
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,166 @@
|
|
|
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.OpenapiPreorderRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const cashbox_type_enum_1 = require("../cashbox/enum/cashbox-type.enum");
|
|
16
|
+
const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
17
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
18
|
+
const prepayment_type_enum_1 = require("../slot/enum/prepayment-type.enum");
|
|
19
|
+
const openapi_questroom_ro_1 = require("./openapi-questroom.ro");
|
|
20
|
+
const order_service_order_ro_1 = require("./order-service-order.ro");
|
|
21
|
+
class Promocode {
|
|
22
|
+
}
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], Promocode.prototype, "amount", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], Promocode.prototype, "code", void 0);
|
|
31
|
+
class Certificate {
|
|
32
|
+
}
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], Certificate.prototype, "nominal", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Certificate.prototype, "code", void 0);
|
|
41
|
+
class Upselling {
|
|
42
|
+
}
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], Upselling.prototype, "title", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], Upselling.prototype, "amount", void 0);
|
|
51
|
+
class Order {
|
|
52
|
+
}
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], Order.prototype, "id", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Order.prototype, "code", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_transformer_1.Expose)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Order.prototype, "language", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
(0, class_transformer_1.Type)(() => order_service_order_ro_1.Tariff),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], Order.prototype, "price", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], Order.prototype, "total", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_transformer_1.Expose)(),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], Order.prototype, "players", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_transformer_1.Expose)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], Order.prototype, "utcDate", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_transformer_1.Expose)(),
|
|
84
|
+
(0, class_transformer_1.Type)(() => Certificate),
|
|
85
|
+
__metadata("design:type", Array)
|
|
86
|
+
], Order.prototype, "certificates", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_transformer_1.Expose)(),
|
|
89
|
+
(0, class_transformer_1.Type)(() => Upselling),
|
|
90
|
+
__metadata("design:type", Array)
|
|
91
|
+
], Order.prototype, "upsellings", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, class_transformer_1.Expose)(),
|
|
94
|
+
(0, class_transformer_1.Type)(() => Promocode),
|
|
95
|
+
__metadata("design:type", Array)
|
|
96
|
+
], Order.prototype, "promocodes", void 0);
|
|
97
|
+
class PaymentMethod {
|
|
98
|
+
}
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_transformer_1.Expose)(),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], PaymentMethod.prototype, "type", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, class_transformer_1.Expose)(),
|
|
105
|
+
__metadata("design:type", Number)
|
|
106
|
+
], PaymentMethod.prototype, "increase", void 0);
|
|
107
|
+
__decorate([
|
|
108
|
+
(0, class_transformer_1.Expose)(),
|
|
109
|
+
__metadata("design:type", String)
|
|
110
|
+
], PaymentMethod.prototype, "increaseType", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, class_transformer_1.Expose)(),
|
|
113
|
+
__metadata("design:type", Number)
|
|
114
|
+
], PaymentMethod.prototype, "id", void 0);
|
|
115
|
+
class Client {
|
|
116
|
+
}
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, class_transformer_1.Expose)(),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], Client.prototype, "name", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, class_transformer_1.Expose)(),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], Client.prototype, "surname", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, class_transformer_1.Expose)(),
|
|
127
|
+
__metadata("design:type", String)
|
|
128
|
+
], Client.prototype, "email", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, class_transformer_1.Expose)(),
|
|
131
|
+
__metadata("design:type", String)
|
|
132
|
+
], Client.prototype, "phone", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, class_transformer_1.Expose)(),
|
|
135
|
+
__metadata("design:type", String)
|
|
136
|
+
], Client.prototype, "address", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, class_transformer_1.Expose)(),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], Client.prototype, "postcode", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, class_transformer_1.Expose)(),
|
|
143
|
+
__metadata("design:type", String)
|
|
144
|
+
], Client.prototype, "city", void 0);
|
|
145
|
+
class OpenapiPreorderRO extends openapi_questroom_ro_1.QuestroomRow {
|
|
146
|
+
}
|
|
147
|
+
__decorate([
|
|
148
|
+
(0, class_transformer_1.Expose)(),
|
|
149
|
+
__metadata("design:type", String)
|
|
150
|
+
], OpenapiPreorderRO.prototype, "currency", void 0);
|
|
151
|
+
__decorate([
|
|
152
|
+
(0, class_transformer_1.Expose)(),
|
|
153
|
+
(0, class_transformer_1.Type)(() => Order),
|
|
154
|
+
__metadata("design:type", Order)
|
|
155
|
+
], OpenapiPreorderRO.prototype, "order", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, class_transformer_1.Expose)(),
|
|
158
|
+
(0, class_transformer_1.Type)(() => Client),
|
|
159
|
+
__metadata("design:type", Client)
|
|
160
|
+
], OpenapiPreorderRO.prototype, "client", void 0);
|
|
161
|
+
__decorate([
|
|
162
|
+
(0, class_transformer_1.Expose)(),
|
|
163
|
+
(0, class_transformer_1.Type)(() => PaymentMethod),
|
|
164
|
+
__metadata("design:type", Array)
|
|
165
|
+
], OpenapiPreorderRO.prototype, "paymentMethods", void 0);
|
|
166
|
+
exports.OpenapiPreorderRO = OpenapiPreorderRO;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
|
|
2
2
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
|
-
export declare class PaymentType {
|
|
4
|
-
identificator: string;
|
|
5
|
-
enabled: boolean;
|
|
6
|
-
}
|
|
7
3
|
export declare const transformQuestroom: ({ value, language }: {
|
|
8
4
|
value: OpenapiQuestroomRO;
|
|
9
5
|
language: any;
|
|
@@ -21,12 +17,12 @@ export declare const transformQuestroom: ({ value, language }: {
|
|
|
21
17
|
fear: number;
|
|
22
18
|
difficult: number;
|
|
23
19
|
photo: string;
|
|
24
|
-
paymentType: PaymentType;
|
|
25
20
|
time: number;
|
|
26
21
|
type: QuestroomTypeEnum;
|
|
27
22
|
playersMax: number;
|
|
28
23
|
playersMin: number;
|
|
29
|
-
|
|
24
|
+
onlinePaymentsCashbox: number;
|
|
25
|
+
paypalCashbox: number;
|
|
30
26
|
minAge: number;
|
|
31
27
|
};
|
|
32
28
|
declare class QuestroomLocale {
|
|
@@ -54,12 +50,12 @@ export declare class OpenapiQuestroomRO {
|
|
|
54
50
|
fear: number;
|
|
55
51
|
difficult: number;
|
|
56
52
|
photo: string;
|
|
57
|
-
paymentType: PaymentType;
|
|
58
53
|
time: number;
|
|
59
54
|
type: QuestroomTypeEnum;
|
|
60
55
|
playersMax: number;
|
|
61
56
|
playersMin: number;
|
|
62
|
-
|
|
57
|
+
onlinePaymentsCashbox: number;
|
|
58
|
+
paypalCashbox: number;
|
|
63
59
|
importantInfo: string;
|
|
64
60
|
minAge: number;
|
|
65
61
|
location: Location;
|
|
@@ -20,22 +20,11 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.QuestroomRow = exports.OpenapiQuestroomRO = exports.transformQuestroom =
|
|
23
|
+
exports.QuestroomRow = exports.OpenapiQuestroomRO = exports.transformQuestroom = void 0;
|
|
24
24
|
/* eslint-disable max-classes-per-file */
|
|
25
25
|
const class_transformer_1 = require("class-transformer");
|
|
26
26
|
const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
|
|
27
27
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
28
|
-
class PaymentType {
|
|
29
|
-
}
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_transformer_1.Expose)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], PaymentType.prototype, "identificator", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_transformer_1.Expose)(),
|
|
36
|
-
__metadata("design:type", Boolean)
|
|
37
|
-
], PaymentType.prototype, "enabled", void 0);
|
|
38
|
-
exports.PaymentType = PaymentType;
|
|
39
28
|
const transformQuestroom = ({ value, language }) => {
|
|
40
29
|
var _a, _b, _c, _d;
|
|
41
30
|
const { locales } = value, _e = value.location, { locales: locationLocales } = _e, location = __rest(_e, ["locales"]), questroom = __rest(value, ["locales", "location"]);
|
|
@@ -123,11 +112,6 @@ __decorate([
|
|
|
123
112
|
(0, class_transformer_1.Expose)(),
|
|
124
113
|
__metadata("design:type", String)
|
|
125
114
|
], OpenapiQuestroomRO.prototype, "photo", void 0);
|
|
126
|
-
__decorate([
|
|
127
|
-
(0, class_transformer_1.Expose)(),
|
|
128
|
-
(0, class_transformer_1.Type)(() => PaymentType),
|
|
129
|
-
__metadata("design:type", PaymentType)
|
|
130
|
-
], OpenapiQuestroomRO.prototype, "paymentType", void 0);
|
|
131
115
|
__decorate([
|
|
132
116
|
(0, class_transformer_1.Expose)(),
|
|
133
117
|
__metadata("design:type", Number)
|
|
@@ -146,8 +130,12 @@ __decorate([
|
|
|
146
130
|
], OpenapiQuestroomRO.prototype, "playersMin", void 0);
|
|
147
131
|
__decorate([
|
|
148
132
|
(0, class_transformer_1.Expose)(),
|
|
149
|
-
__metadata("design:type",
|
|
150
|
-
], OpenapiQuestroomRO.prototype, "
|
|
133
|
+
__metadata("design:type", Number)
|
|
134
|
+
], OpenapiQuestroomRO.prototype, "onlinePaymentsCashbox", void 0);
|
|
135
|
+
__decorate([
|
|
136
|
+
(0, class_transformer_1.Expose)(),
|
|
137
|
+
__metadata("design:type", Number)
|
|
138
|
+
], OpenapiQuestroomRO.prototype, "paypalCashbox", void 0);
|
|
151
139
|
__decorate([
|
|
152
140
|
(0, class_transformer_1.Expose)(),
|
|
153
141
|
__metadata("design:type", String)
|