@escapenavigator/types 1.6.77 → 1.6.79
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/agb/agb-type.enum.d.ts +2 -1
- package/dist/agb/agb-type.enum.js +1 -0
- package/dist/cashbox/cashbox.ro.d.ts +5 -3
- package/dist/cashbox/cashbox.ro.js +45 -0
- package/dist/cashbox/create-cashbox.dto.d.ts +2 -0
- package/dist/cashbox/create-cashbox.dto.js +10 -0
- package/dist/cashbox/enum/cashbox-type.enum.d.ts +1 -0
- package/dist/cashbox/enum/cashbox-type.enum.js +1 -0
- package/dist/client/client-form.dto.d.ts +1 -1
- package/dist/client/client-form.dto.js +6 -6
- package/dist/client/client.ro.d.ts +1 -1
- package/dist/client/client.ro.js +4 -4
- package/dist/client/create-client.dto.d.ts +0 -1
- package/dist/client/create-client.dto.js +0 -6
- package/dist/emails/index.d.ts +9 -1
- package/dist/forms/widget/widget-client-form.dto.js +1 -1
- package/dist/location/create-location.dto.d.ts +1 -0
- package/dist/location/create-location.dto.js +6 -0
- package/dist/location/location.ro.d.ts +1 -0
- package/dist/mailchimp/mailchimp-status.enum.d.ts +5 -0
- package/dist/mailchimp/mailchimp-status.enum.js +9 -0
- package/dist/mailchimp/mailchimp.dto.d.ts +10 -0
- package/dist/mailchimp/mailchimp.dto.js +44 -0
- package/dist/mailchimp/mailchimp.list.ro.d.ts +4 -0
- package/dist/mailchimp/mailchimp.list.ro.js +24 -0
- package/dist/mailchimp/mailchimp.ro.d.ts +13 -0
- package/dist/mailchimp/mailchimp.ro.js +43 -0
- package/dist/openapi/certificates/openapi-create-certificate-sale.dto.js +1 -1
- package/dist/openapi/now-escape/now-escape-order.ro.d.ts +8 -1
- package/dist/openapi/now-escape/now-escape-order.ro.js +35 -13
- package/dist/openapi/orders/openapi-order.ro.d.ts +1 -0
- package/dist/openapi/orders/openapi-order.ro.js +4 -0
- package/dist/openapi/widget/openapi-widget-info.ro.d.ts +10 -0
- package/dist/openapi/widget/openapi-widget-info.ro.js +36 -0
- package/dist/order/order.ro.d.ts +4 -1
- package/dist/order/order.ro.js +19 -4
- package/dist/order/update-order.dto.d.ts +0 -1
- package/dist/order/update-order.dto.js +0 -5
- package/dist/order/update-participants.dto.js +1 -0
- package/dist/profile/cross-sale/cross-sale.dto.d.ts +2 -3
- package/dist/profile/cross-sale/cross-sale.dto.js +16 -7
- package/dist/profile/cross-sale/cross-sale.ro.d.ts +2 -3
- package/dist/profile/cross-sale/cross-sale.ro.js +7 -6
- package/dist/profile/cross-sale/early-booking/early-booking.dto.d.ts +7 -0
- package/dist/profile/cross-sale/early-booking/early-booking.dto.js +38 -0
- package/dist/profile/cross-sale/early-booking/early-booking.ro.d.ts +8 -0
- package/dist/profile/cross-sale/early-booking/early-booking.ro.js +32 -0
- package/dist/profile/cross-sale/retargeting/retargeting.dto.d.ts +10 -0
- package/dist/profile/cross-sale/retargeting/retargeting.dto.js +49 -0
- package/dist/profile/cross-sale/retargeting/retargeting.ro.d.ts +11 -0
- package/dist/profile/cross-sale/retargeting/retargeting.ro.js +41 -0
- package/dist/profile/cross-sale/toggle-status.dto.d.ts +5 -0
- package/dist/profile/cross-sale/toggle-status.dto.js +29 -0
- package/dist/profile/cross-sale/up-sale/up-sale.dto.d.ts +7 -0
- package/dist/profile/cross-sale/up-sale/up-sale.dto.js +38 -0
- package/dist/profile/cross-sale/up-sale/up-sale.ro.d.ts +8 -0
- package/dist/profile/cross-sale/up-sale/up-sale.ro.js +32 -0
- package/dist/profile/widget-customization/update-widget-customization.dto.d.ts +1 -0
- package/dist/profile/widget-customization/update-widget-customization.dto.js +5 -0
- package/dist/profile/widget-customization/widget-customization.ro.d.ts +1 -0
- package/dist/profile/widget-customization/widget-customization.ro.js +4 -0
- package/dist/questroom/create-questroom.dto.d.ts +0 -2
- package/dist/questroom/create-questroom.dto.js +0 -10
- package/dist/questroom/questroom-admin.ro.d.ts +0 -2
- package/dist/questroom/questroom-admin.ro.js +0 -8
- package/dist/questroom/questroom.ro.d.ts +0 -2
- package/dist/questroom/questroom.ro.js +0 -8
- package/dist/role/create-role.dto.d.ts +2 -0
- package/dist/role/create-role.dto.js +12 -0
- package/dist/role/role.ro.d.ts +2 -0
- package/dist/role/role.ro.js +8 -0
- package/dist/shared/feedback-validators.d.ts +2 -0
- package/dist/shared/feedback-validators.js +26 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/sessions/create-day-sessions.dto.d.ts +1 -0
- package/dist/user/sessions/create-day-sessions.dto.js +5 -0
- package/dist/user/sessions/update-day-sessions.dto.d.ts +1 -0
- package/dist/user/sessions/update-day-sessions.dto.js +5 -0
- package/package.json +2 -2
|
@@ -29,10 +29,35 @@ __decorate([
|
|
|
29
29
|
(0, class_transformer_1.Expose)(),
|
|
30
30
|
__metadata("design:type", Boolean)
|
|
31
31
|
], Customization.prototype, "showWrapper", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", Boolean)
|
|
35
|
+
], Customization.prototype, "showOtherQuests", void 0);
|
|
32
36
|
__decorate([
|
|
33
37
|
(0, class_transformer_1.Expose)(),
|
|
34
38
|
__metadata("design:type", String)
|
|
35
39
|
], Customization.prototype, "mainColor", void 0);
|
|
40
|
+
class MailchimpLocale {
|
|
41
|
+
}
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], MailchimpLocale.prototype, "text", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], MailchimpLocale.prototype, "language", void 0);
|
|
50
|
+
class Mailchimp {
|
|
51
|
+
}
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
(0, class_transformer_1.Type)(() => MailchimpLocale),
|
|
55
|
+
__metadata("design:type", Array)
|
|
56
|
+
], Mailchimp.prototype, "locales", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Mailchimp.prototype, "token", void 0);
|
|
36
61
|
class Profile {
|
|
37
62
|
}
|
|
38
63
|
__decorate([
|
|
@@ -124,4 +149,15 @@ __decorate([
|
|
|
124
149
|
(0, class_transformer_1.Type)(() => Customization),
|
|
125
150
|
__metadata("design:type", Customization)
|
|
126
151
|
], OpenapiWidgetInfoRO.prototype, "customization", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, class_transformer_1.Expose)(),
|
|
154
|
+
(0, class_transformer_1.Type)(() => Mailchimp),
|
|
155
|
+
(0, class_transformer_1.Transform)(({ value, obj }) => {
|
|
156
|
+
var _a, _b;
|
|
157
|
+
if (!(value === null || value === void 0 ? void 0 : value.token))
|
|
158
|
+
return null;
|
|
159
|
+
return ((_b = (_a = value === null || value === void 0 ? void 0 : value.locales) === null || _a === void 0 ? void 0 : _a.find((l) => l.language === obj.language)) === null || _b === void 0 ? void 0 : _b.text) || 'default';
|
|
160
|
+
}),
|
|
161
|
+
__metadata("design:type", Object)
|
|
162
|
+
], OpenapiWidgetInfoRO.prototype, "mailchimp", void 0);
|
|
127
163
|
exports.OpenapiWidgetInfoRO = OpenapiWidgetInfoRO;
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -19,8 +19,8 @@ export declare class Utm {
|
|
|
19
19
|
export declare class Participant {
|
|
20
20
|
id: number;
|
|
21
21
|
name: string;
|
|
22
|
-
sendAds: boolean;
|
|
23
22
|
surname: string;
|
|
23
|
+
sendAds: boolean;
|
|
24
24
|
email: string;
|
|
25
25
|
}
|
|
26
26
|
declare class Rule {
|
|
@@ -76,6 +76,9 @@ export declare class Transactions extends RO {
|
|
|
76
76
|
export declare class OrderRO extends RO {
|
|
77
77
|
utm: Utm;
|
|
78
78
|
feedbackDate: string;
|
|
79
|
+
upsaleDate: string;
|
|
80
|
+
earlyBookingDate: string;
|
|
81
|
+
retargetingDate: string;
|
|
79
82
|
profileId: number;
|
|
80
83
|
participants: Participant[];
|
|
81
84
|
updatedAt: Date;
|
package/dist/order/order.ro.js
CHANGED
|
@@ -61,14 +61,14 @@ __decorate([
|
|
|
61
61
|
(0, class_transformer_1.Expose)(),
|
|
62
62
|
__metadata("design:type", String)
|
|
63
63
|
], Participant.prototype, "name", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, class_transformer_1.Expose)(),
|
|
66
|
-
__metadata("design:type", Boolean)
|
|
67
|
-
], Participant.prototype, "sendAds", void 0);
|
|
68
64
|
__decorate([
|
|
69
65
|
(0, class_transformer_1.Expose)(),
|
|
70
66
|
__metadata("design:type", String)
|
|
71
67
|
], Participant.prototype, "surname", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
__metadata("design:type", Boolean)
|
|
71
|
+
], Participant.prototype, "sendAds", void 0);
|
|
72
72
|
__decorate([
|
|
73
73
|
(0, class_transformer_1.Expose)(),
|
|
74
74
|
__metadata("design:type", String)
|
|
@@ -241,6 +241,21 @@ __decorate([
|
|
|
241
241
|
(0, class_transformer_1.Transform)(({ value }) => (value && value === 'false' ? undefined : value)),
|
|
242
242
|
__metadata("design:type", String)
|
|
243
243
|
], OrderRO.prototype, "feedbackDate", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, class_transformer_1.Expose)(),
|
|
246
|
+
(0, class_transformer_1.Transform)(({ value }) => (value && value === 'false' ? undefined : value)),
|
|
247
|
+
__metadata("design:type", String)
|
|
248
|
+
], OrderRO.prototype, "upsaleDate", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
(0, class_transformer_1.Expose)(),
|
|
251
|
+
(0, class_transformer_1.Transform)(({ value }) => (value && value === 'false' ? undefined : value)),
|
|
252
|
+
__metadata("design:type", String)
|
|
253
|
+
], OrderRO.prototype, "earlyBookingDate", void 0);
|
|
254
|
+
__decorate([
|
|
255
|
+
(0, class_transformer_1.Expose)(),
|
|
256
|
+
(0, class_transformer_1.Transform)(({ value }) => (value && value === 'false' ? undefined : value)),
|
|
257
|
+
__metadata("design:type", String)
|
|
258
|
+
], OrderRO.prototype, "retargetingDate", void 0);
|
|
244
259
|
__decorate([
|
|
245
260
|
(0, class_transformer_1.Expose)(),
|
|
246
261
|
__metadata("design:type", Number)
|
|
@@ -31,9 +31,4 @@ __decorate([
|
|
|
31
31
|
(0, class_transformer_1.Expose)(),
|
|
32
32
|
__metadata("design:type", Number)
|
|
33
33
|
], UpdateOrderDto.prototype, "result", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, class_validator_1.IsOptional)(),
|
|
36
|
-
(0, class_transformer_1.Expose)(),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], UpdateOrderDto.prototype, "feedback", void 0);
|
|
39
34
|
exports.UpdateOrderDto = UpdateOrderDto;
|
|
@@ -35,6 +35,7 @@ __decorate([
|
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, class_validator_1.IsBoolean)(),
|
|
37
37
|
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
|
|
38
39
|
__metadata("design:type", Boolean)
|
|
39
40
|
], ClientForm.prototype, "sendAds", void 0);
|
|
40
41
|
class UpdateParticipantsDto {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Languages } from '../../shared/enum/languages.enum';
|
|
2
2
|
import { CrossSaleStatusEnum } from './cross-sale-status.enum';
|
|
3
3
|
import { CrossSaleDiscountTypeEnum } from './crossale-discount-type.enum';
|
|
4
|
-
declare class
|
|
4
|
+
export declare class CrossSaleLocaleDto {
|
|
5
5
|
language: Languages;
|
|
6
6
|
feedbackText: string;
|
|
7
7
|
title: string;
|
|
@@ -12,6 +12,5 @@ export declare class CrossSaleDto {
|
|
|
12
12
|
discount: number;
|
|
13
13
|
discountValidityDays: number;
|
|
14
14
|
discountType: CrossSaleDiscountTypeEnum;
|
|
15
|
-
locales:
|
|
15
|
+
locales: CrossSaleLocaleDto[];
|
|
16
16
|
}
|
|
17
|
-
export {};
|
|
@@ -9,31 +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.CrossSaleDto = void 0;
|
|
12
|
+
exports.CrossSaleDto = exports.CrossSaleLocaleDto = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const languages_enum_1 = require("../../shared/enum/languages.enum");
|
|
17
|
+
const feedback_validators_1 = require("../../shared/feedback-validators");
|
|
17
18
|
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
18
19
|
const cross_sale_status_enum_1 = require("./cross-sale-status.enum");
|
|
19
20
|
const crossale_discount_type_enum_1 = require("./crossale-discount-type.enum");
|
|
20
|
-
class
|
|
21
|
+
class CrossSaleLocaleDto {
|
|
21
22
|
}
|
|
22
23
|
__decorate([
|
|
23
24
|
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
24
25
|
(0, class_transformer_1.Expose)(),
|
|
25
26
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
27
|
+
], CrossSaleLocaleDto.prototype, "language", void 0);
|
|
27
28
|
__decorate([
|
|
28
29
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
30
|
+
(0, class_validator_1.MinLength)(50),
|
|
31
|
+
(0, class_validator_1.MaxLength)(3000),
|
|
32
|
+
(0, feedback_validators_1.IsIfIncorrect)(),
|
|
29
33
|
(0, class_transformer_1.Expose)(),
|
|
30
34
|
__metadata("design:type", String)
|
|
31
|
-
],
|
|
35
|
+
], CrossSaleLocaleDto.prototype, "feedbackText", void 0);
|
|
32
36
|
__decorate([
|
|
33
37
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
38
|
+
(0, class_validator_1.MinLength)(10),
|
|
39
|
+
(0, class_validator_1.MaxLength)(200),
|
|
34
40
|
(0, class_transformer_1.Expose)(),
|
|
35
41
|
__metadata("design:type", String)
|
|
36
|
-
],
|
|
42
|
+
], CrossSaleLocaleDto.prototype, "title", void 0);
|
|
43
|
+
exports.CrossSaleLocaleDto = CrossSaleLocaleDto;
|
|
37
44
|
class CrossSaleDto {
|
|
38
45
|
}
|
|
39
46
|
__decorate([
|
|
@@ -43,6 +50,8 @@ __decorate([
|
|
|
43
50
|
], CrossSaleDto.prototype, "status", void 0);
|
|
44
51
|
__decorate([
|
|
45
52
|
(0, class_validator_1.IsPositive)(),
|
|
53
|
+
(0, class_validator_1.Min)(1),
|
|
54
|
+
(0, class_validator_1.Max)(24),
|
|
46
55
|
(0, class_transformer_1.Expose)(),
|
|
47
56
|
__metadata("design:type", Number)
|
|
48
57
|
], CrossSaleDto.prototype, "sendAfter", void 0);
|
|
@@ -64,9 +73,9 @@ __decorate([
|
|
|
64
73
|
__metadata("design:type", String)
|
|
65
74
|
], CrossSaleDto.prototype, "discountType", void 0);
|
|
66
75
|
__decorate([
|
|
67
|
-
(0, class_transformer_1.Type)(() =>
|
|
76
|
+
(0, class_transformer_1.Type)(() => CrossSaleLocaleDto),
|
|
68
77
|
(0, class_validator_1.IsArray)(),
|
|
69
|
-
(0, class_validator_1.ValidateNested)(),
|
|
78
|
+
(0, class_validator_1.ValidateNested)({ context: this }),
|
|
70
79
|
(0, class_transformer_1.Expose)(),
|
|
71
80
|
__metadata("design:type", Array)
|
|
72
81
|
], CrossSaleDto.prototype, "locales", void 0);
|
|
@@ -2,7 +2,7 @@ import { Languages } from '../../shared/enum/languages.enum';
|
|
|
2
2
|
import { RO } from '../../shared/ro-class';
|
|
3
3
|
import { CrossSaleStatusEnum } from './cross-sale-status.enum';
|
|
4
4
|
import { CrossSaleDiscountTypeEnum } from './crossale-discount-type.enum';
|
|
5
|
-
declare class
|
|
5
|
+
export declare class CrossSaleLocaleRO {
|
|
6
6
|
language: Languages;
|
|
7
7
|
feedbackText: string;
|
|
8
8
|
title: string;
|
|
@@ -13,6 +13,5 @@ export declare class CrossSaleRO extends RO {
|
|
|
13
13
|
discountValidityDays: number;
|
|
14
14
|
discount: number;
|
|
15
15
|
discountType: CrossSaleDiscountTypeEnum;
|
|
16
|
-
locales:
|
|
16
|
+
locales: CrossSaleLocaleRO[];
|
|
17
17
|
}
|
|
18
|
-
export {};
|
|
@@ -9,27 +9,28 @@ 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.CrossSaleRO = void 0;
|
|
12
|
+
exports.CrossSaleRO = exports.CrossSaleLocaleRO = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const languages_enum_1 = require("../../shared/enum/languages.enum");
|
|
16
16
|
const ro_class_1 = require("../../shared/ro-class");
|
|
17
17
|
const cross_sale_status_enum_1 = require("./cross-sale-status.enum");
|
|
18
18
|
const crossale_discount_type_enum_1 = require("./crossale-discount-type.enum");
|
|
19
|
-
class
|
|
19
|
+
class CrossSaleLocaleRO {
|
|
20
20
|
}
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, class_transformer_1.Expose)(),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
24
|
+
], CrossSaleLocaleRO.prototype, "language", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
28
|
+
], CrossSaleLocaleRO.prototype, "feedbackText", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, class_transformer_1.Expose)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
|
-
],
|
|
32
|
+
], CrossSaleLocaleRO.prototype, "title", void 0);
|
|
33
|
+
exports.CrossSaleLocaleRO = CrossSaleLocaleRO;
|
|
33
34
|
class CrossSaleRO extends ro_class_1.RO {
|
|
34
35
|
}
|
|
35
36
|
__decorate([
|
|
@@ -54,7 +55,7 @@ __decorate([
|
|
|
54
55
|
], CrossSaleRO.prototype, "discountType", void 0);
|
|
55
56
|
__decorate([
|
|
56
57
|
(0, class_transformer_1.Expose)(),
|
|
57
|
-
(0, class_transformer_1.Type)(() =>
|
|
58
|
+
(0, class_transformer_1.Type)(() => CrossSaleLocaleRO),
|
|
58
59
|
__metadata("design:type", Array)
|
|
59
60
|
], CrossSaleRO.prototype, "locales", void 0);
|
|
60
61
|
exports.CrossSaleRO = CrossSaleRO;
|
|
@@ -0,0 +1,38 @@
|
|
|
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.EarlyBookingDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const cross_sale_status_enum_1 = require("../cross-sale-status.enum");
|
|
16
|
+
const cross_sale_dto_1 = require("../cross-sale.dto");
|
|
17
|
+
class EarlyBookingDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsEnum)(cross_sale_status_enum_1.CrossSaleStatusEnum),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], EarlyBookingDto.prototype, "status", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsPositive)(),
|
|
26
|
+
(0, class_validator_1.Min)(2),
|
|
27
|
+
(0, class_validator_1.Max)(7),
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], EarlyBookingDto.prototype, "sendBefore", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Type)(() => cross_sale_dto_1.CrossSaleLocaleDto),
|
|
33
|
+
(0, class_validator_1.IsArray)(),
|
|
34
|
+
(0, class_validator_1.ValidateNested)(),
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], EarlyBookingDto.prototype, "locales", void 0);
|
|
38
|
+
exports.EarlyBookingDto = EarlyBookingDto;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RO } from '../../../shared/ro-class';
|
|
2
|
+
import { CrossSaleStatusEnum } from '../cross-sale-status.enum';
|
|
3
|
+
import { CrossSaleLocaleRO } from '../cross-sale.ro';
|
|
4
|
+
export declare class EarlyBookingRO extends RO {
|
|
5
|
+
sendBefore: number;
|
|
6
|
+
status: CrossSaleStatusEnum;
|
|
7
|
+
locales: CrossSaleLocaleRO[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.EarlyBookingRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const ro_class_1 = require("../../../shared/ro-class");
|
|
15
|
+
const cross_sale_status_enum_1 = require("../cross-sale-status.enum");
|
|
16
|
+
const cross_sale_ro_1 = require("../cross-sale.ro");
|
|
17
|
+
class EarlyBookingRO extends ro_class_1.RO {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], EarlyBookingRO.prototype, "sendBefore", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], EarlyBookingRO.prototype, "status", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_transformer_1.Type)(() => cross_sale_ro_1.CrossSaleLocaleRO),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], EarlyBookingRO.prototype, "locales", void 0);
|
|
32
|
+
exports.EarlyBookingRO = EarlyBookingRO;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CrossSaleStatusEnum } from '../cross-sale-status.enum';
|
|
2
|
+
import { CrossSaleLocaleDto } from '../cross-sale.dto';
|
|
3
|
+
import { CrossSaleDiscountTypeEnum } from '../crossale-discount-type.enum';
|
|
4
|
+
export declare class RetargetingDto {
|
|
5
|
+
status: CrossSaleStatusEnum;
|
|
6
|
+
discount: number;
|
|
7
|
+
discountValidityDays: number;
|
|
8
|
+
discountType: CrossSaleDiscountTypeEnum;
|
|
9
|
+
locales: CrossSaleLocaleDto[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.RetargetingDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const cross_sale_status_enum_1 = require("../cross-sale-status.enum");
|
|
16
|
+
const cross_sale_dto_1 = require("../cross-sale.dto");
|
|
17
|
+
const crossale_discount_type_enum_1 = require("../crossale-discount-type.enum");
|
|
18
|
+
class RetargetingDto {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsEnum)(cross_sale_status_enum_1.CrossSaleStatusEnum),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], RetargetingDto.prototype, "status", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsPositive)(),
|
|
27
|
+
(0, class_validator_1.ValidateIf)((o) => o.discountType !== crossale_discount_type_enum_1.CrossSaleDiscountTypeEnum.NONE),
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], RetargetingDto.prototype, "discount", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsPositive)(),
|
|
33
|
+
(0, class_validator_1.ValidateIf)((o) => o.discountType !== crossale_discount_type_enum_1.CrossSaleDiscountTypeEnum.NONE),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], RetargetingDto.prototype, "discountValidityDays", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsEnum)(crossale_discount_type_enum_1.CrossSaleDiscountTypeEnum),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], RetargetingDto.prototype, "discountType", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Type)(() => cross_sale_dto_1.CrossSaleLocaleDto),
|
|
44
|
+
(0, class_validator_1.IsArray)(),
|
|
45
|
+
(0, class_validator_1.ValidateNested)(),
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], RetargetingDto.prototype, "locales", void 0);
|
|
49
|
+
exports.RetargetingDto = RetargetingDto;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { RO } from '../../../shared/ro-class';
|
|
2
|
+
import { CrossSaleStatusEnum } from '../cross-sale-status.enum';
|
|
3
|
+
import { CrossSaleLocaleRO } from '../cross-sale.ro';
|
|
4
|
+
import { CrossSaleDiscountTypeEnum } from '../crossale-discount-type.enum';
|
|
5
|
+
export declare class RetargetingRO extends RO {
|
|
6
|
+
status: CrossSaleStatusEnum;
|
|
7
|
+
discountValidityDays: number;
|
|
8
|
+
discount: number;
|
|
9
|
+
discountType: CrossSaleDiscountTypeEnum;
|
|
10
|
+
locales: CrossSaleLocaleRO[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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.RetargetingRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const ro_class_1 = require("../../../shared/ro-class");
|
|
15
|
+
const cross_sale_status_enum_1 = require("../cross-sale-status.enum");
|
|
16
|
+
const cross_sale_ro_1 = require("../cross-sale.ro");
|
|
17
|
+
const crossale_discount_type_enum_1 = require("../crossale-discount-type.enum");
|
|
18
|
+
class RetargetingRO extends ro_class_1.RO {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], RetargetingRO.prototype, "status", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], RetargetingRO.prototype, "discountValidityDays", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], RetargetingRO.prototype, "discount", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], RetargetingRO.prototype, "discountType", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_transformer_1.Type)(() => cross_sale_ro_1.CrossSaleLocaleRO),
|
|
39
|
+
__metadata("design:type", Array)
|
|
40
|
+
], RetargetingRO.prototype, "locales", void 0);
|
|
41
|
+
exports.RetargetingRO = RetargetingRO;
|
|
@@ -0,0 +1,29 @@
|
|
|
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.ToggleStatusDto = 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 cross_sale_status_enum_1 = require("./cross-sale-status.enum");
|
|
17
|
+
class ToggleStatusDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsEnum)(cross_sale_status_enum_1.CrossSaleStatusEnum),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], ToggleStatusDto.prototype, "status", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ToggleStatusDto.prototype, "type", void 0);
|
|
29
|
+
exports.ToggleStatusDto = ToggleStatusDto;
|
|
@@ -0,0 +1,38 @@
|
|
|
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.UpSaleDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const cross_sale_status_enum_1 = require("../cross-sale-status.enum");
|
|
16
|
+
const cross_sale_dto_1 = require("../cross-sale.dto");
|
|
17
|
+
class UpSaleDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsEnum)(cross_sale_status_enum_1.CrossSaleStatusEnum),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], UpSaleDto.prototype, "status", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsPositive)(),
|
|
26
|
+
(0, class_validator_1.Min)(1),
|
|
27
|
+
(0, class_validator_1.Max)(24),
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], UpSaleDto.prototype, "sendBefore", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Type)(() => cross_sale_dto_1.CrossSaleLocaleDto),
|
|
33
|
+
(0, class_validator_1.IsArray)(),
|
|
34
|
+
(0, class_validator_1.ValidateNested)(),
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], UpSaleDto.prototype, "locales", void 0);
|
|
38
|
+
exports.UpSaleDto = UpSaleDto;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RO } from '../../../shared/ro-class';
|
|
2
|
+
import { CrossSaleStatusEnum } from '../cross-sale-status.enum';
|
|
3
|
+
import { CrossSaleLocaleRO } from '../cross-sale.ro';
|
|
4
|
+
export declare class UpSaleRO extends RO {
|
|
5
|
+
sendBefore: number;
|
|
6
|
+
status: CrossSaleStatusEnum;
|
|
7
|
+
locales: CrossSaleLocaleRO[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.UpSaleRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const ro_class_1 = require("../../../shared/ro-class");
|
|
15
|
+
const cross_sale_status_enum_1 = require("../cross-sale-status.enum");
|
|
16
|
+
const cross_sale_ro_1 = require("../cross-sale.ro");
|
|
17
|
+
class UpSaleRO extends ro_class_1.RO {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], UpSaleRO.prototype, "sendBefore", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], UpSaleRO.prototype, "status", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_transformer_1.Type)(() => cross_sale_ro_1.CrossSaleLocaleRO),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], UpSaleRO.prototype, "locales", void 0);
|
|
32
|
+
exports.UpSaleRO = UpSaleRO;
|
|
@@ -25,6 +25,11 @@ __decorate([
|
|
|
25
25
|
(0, class_transformer_1.Expose)(),
|
|
26
26
|
__metadata("design:type", Boolean)
|
|
27
27
|
], UpdateWidgetCustomizationDto.prototype, "showWrapper", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], UpdateWidgetCustomizationDto.prototype, "showOtherQuests", void 0);
|
|
28
33
|
__decorate([
|
|
29
34
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
30
35
|
(0, class_transformer_1.Expose)(),
|