@escapenavigator/types 1.6.78 → 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/client/client-form.dto.js +1 -1
- package/dist/forms/widget/widget-client-form.dto.js +1 -1
- 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 +1 -0
- package/dist/openapi/widget/openapi-widget-info.ro.js +4 -0
- package/dist/order/order.ro.d.ts +3 -0
- package/dist/order/order.ro.js +15 -0
- 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 -1
- package/dist/profile/cross-sale/cross-sale.dto.d.ts +0 -1
- package/dist/profile/cross-sale/cross-sale.dto.js +9 -7
- package/dist/profile/cross-sale/cross-sale.ro.d.ts +0 -1
- package/dist/profile/cross-sale/cross-sale.ro.js +0 -4
- package/dist/profile/cross-sale/early-booking/early-booking.dto.d.ts +0 -1
- package/dist/profile/cross-sale/early-booking/early-booking.dto.js +2 -6
- package/dist/profile/cross-sale/early-booking/early-booking.ro.d.ts +0 -1
- package/dist/profile/cross-sale/early-booking/early-booking.ro.js +0 -4
- package/dist/profile/cross-sale/retargeting/retargeting.dto.d.ts +0 -1
- package/dist/profile/cross-sale/retargeting/retargeting.dto.js +0 -5
- package/dist/profile/cross-sale/retargeting/retargeting.ro.d.ts +0 -1
- package/dist/profile/cross-sale/retargeting/retargeting.ro.js +0 -4
- 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 +0 -1
- package/dist/profile/cross-sale/up-sale/up-sale.dto.js +2 -6
- package/dist/profile/cross-sale/up-sale/up-sale.ro.d.ts +0 -1
- package/dist/profile/cross-sale/up-sale/up-sale.ro.js +0 -4
- 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/shared/feedback-validators.d.ts +2 -0
- package/dist/shared/feedback-validators.js +26 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -9,4 +9,5 @@ var AgbTypeEnum;
|
|
|
9
9
|
AgbTypeEnum["PRIVACY_POLICY"] = "privacy_policy";
|
|
10
10
|
AgbTypeEnum["AGREEMENT"] = "agreement";
|
|
11
11
|
AgbTypeEnum["PARTNER_PROGRAMM"] = "partner_programm";
|
|
12
|
+
AgbTypeEnum["CUSTOMERS_AGREEEMENT"] = "customers_agreement";
|
|
12
13
|
})(AgbTypeEnum = exports.AgbTypeEnum || (exports.AgbTypeEnum = {}));
|
|
@@ -42,7 +42,7 @@ __decorate([
|
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, class_validator_1.IsBoolean)(),
|
|
44
44
|
(0, class_transformer_1.Expose)(),
|
|
45
|
-
(0, class_transformer_1.Transform)(({ value }) =>
|
|
45
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
|
|
46
46
|
__metadata("design:type", Boolean)
|
|
47
47
|
], ClientFormDto.prototype, "sendAds", void 0);
|
|
48
48
|
__decorate([
|
|
@@ -66,7 +66,7 @@ __decorate([
|
|
|
66
66
|
__decorate([
|
|
67
67
|
(0, class_validator_1.IsBoolean)(),
|
|
68
68
|
(0, class_transformer_1.Expose)(),
|
|
69
|
-
(0, class_transformer_1.Transform)(({ value }) =>
|
|
69
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
|
|
70
70
|
__metadata("design:type", Boolean)
|
|
71
71
|
], WidgetClientFormDto.prototype, "sendAds", void 0);
|
|
72
72
|
exports.WidgetClientFormDto = WidgetClientFormDto;
|
|
@@ -50,7 +50,7 @@ __decorate([
|
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, class_validator_1.IsBoolean)(),
|
|
52
52
|
(0, class_transformer_1.Expose)(),
|
|
53
|
-
(0, class_transformer_1.Transform)(({ value }) =>
|
|
53
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
|
|
54
54
|
__metadata("design:type", Boolean)
|
|
55
55
|
], OpenapiCreateCertificateSaleDto.prototype, "sendAds", void 0);
|
|
56
56
|
__decorate([
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { Languages } from '../../shared/enum/languages.enum';
|
|
2
|
+
import { SourceEnum } from '../../shared/source.enum';
|
|
2
3
|
import { NowEscapeQuestroomRO } from './now-escape-questroom.ro';
|
|
3
|
-
export declare class
|
|
4
|
+
export declare class ProfileRO {
|
|
5
|
+
id: number;
|
|
6
|
+
title: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class AggregatorOrderRO {
|
|
4
9
|
code: string;
|
|
5
10
|
otherId: string;
|
|
6
11
|
slotId: number;
|
|
7
12
|
language?: Languages;
|
|
13
|
+
source?: SourceEnum;
|
|
8
14
|
payed: number;
|
|
9
15
|
toPay: number;
|
|
10
16
|
total: number;
|
|
11
17
|
players: number;
|
|
12
18
|
utcDate: string;
|
|
13
19
|
questroom: NowEscapeQuestroomRO;
|
|
20
|
+
profile: ProfileRO;
|
|
14
21
|
}
|
|
@@ -9,51 +9,73 @@ 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.AggregatorOrderRO = exports.ProfileRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
13
14
|
const class_transformer_1 = require("class-transformer");
|
|
14
15
|
const languages_enum_1 = require("../../shared/enum/languages.enum");
|
|
16
|
+
const source_enum_1 = require("../../shared/source.enum");
|
|
15
17
|
const now_escape_questroom_ro_1 = require("./now-escape-questroom.ro");
|
|
16
|
-
class
|
|
18
|
+
class ProfileRO {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], ProfileRO.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], ProfileRO.prototype, "title", void 0);
|
|
28
|
+
exports.ProfileRO = ProfileRO;
|
|
29
|
+
class AggregatorOrderRO {
|
|
17
30
|
}
|
|
18
31
|
__decorate([
|
|
19
32
|
(0, class_transformer_1.Expose)(),
|
|
20
33
|
__metadata("design:type", String)
|
|
21
|
-
],
|
|
34
|
+
], AggregatorOrderRO.prototype, "code", void 0);
|
|
22
35
|
__decorate([
|
|
23
36
|
(0, class_transformer_1.Expose)(),
|
|
24
37
|
__metadata("design:type", String)
|
|
25
|
-
],
|
|
38
|
+
], AggregatorOrderRO.prototype, "otherId", void 0);
|
|
26
39
|
__decorate([
|
|
27
40
|
(0, class_transformer_1.Expose)(),
|
|
28
41
|
__metadata("design:type", Number)
|
|
29
|
-
],
|
|
42
|
+
], AggregatorOrderRO.prototype, "slotId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], AggregatorOrderRO.prototype, "language", void 0);
|
|
30
47
|
__decorate([
|
|
31
48
|
(0, class_transformer_1.Expose)(),
|
|
32
49
|
__metadata("design:type", String)
|
|
33
|
-
],
|
|
50
|
+
], AggregatorOrderRO.prototype, "source", void 0);
|
|
34
51
|
__decorate([
|
|
35
52
|
(0, class_transformer_1.Expose)(),
|
|
36
53
|
__metadata("design:type", Number)
|
|
37
|
-
],
|
|
54
|
+
], AggregatorOrderRO.prototype, "payed", void 0);
|
|
38
55
|
__decorate([
|
|
39
56
|
(0, class_transformer_1.Expose)(),
|
|
40
57
|
__metadata("design:type", Number)
|
|
41
|
-
],
|
|
58
|
+
], AggregatorOrderRO.prototype, "toPay", void 0);
|
|
42
59
|
__decorate([
|
|
43
60
|
(0, class_transformer_1.Expose)(),
|
|
44
61
|
__metadata("design:type", Number)
|
|
45
|
-
],
|
|
62
|
+
], AggregatorOrderRO.prototype, "total", void 0);
|
|
46
63
|
__decorate([
|
|
47
64
|
(0, class_transformer_1.Expose)(),
|
|
48
65
|
__metadata("design:type", Number)
|
|
49
|
-
],
|
|
66
|
+
], AggregatorOrderRO.prototype, "players", void 0);
|
|
50
67
|
__decorate([
|
|
51
68
|
(0, class_transformer_1.Expose)(),
|
|
52
69
|
__metadata("design:type", String)
|
|
53
|
-
],
|
|
70
|
+
], AggregatorOrderRO.prototype, "utcDate", void 0);
|
|
54
71
|
__decorate([
|
|
55
72
|
(0, class_transformer_1.Expose)(),
|
|
56
73
|
(0, class_transformer_1.Type)(() => now_escape_questroom_ro_1.NowEscapeQuestroomRO),
|
|
57
74
|
__metadata("design:type", now_escape_questroom_ro_1.NowEscapeQuestroomRO)
|
|
58
|
-
],
|
|
59
|
-
|
|
75
|
+
], AggregatorOrderRO.prototype, "questroom", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_transformer_1.Expose)(),
|
|
78
|
+
(0, class_transformer_1.Type)(() => ProfileRO),
|
|
79
|
+
__metadata("design:type", ProfileRO)
|
|
80
|
+
], AggregatorOrderRO.prototype, "profile", void 0);
|
|
81
|
+
exports.AggregatorOrderRO = AggregatorOrderRO;
|
|
@@ -103,6 +103,10 @@ __decorate([
|
|
|
103
103
|
(0, class_transformer_1.Expose)(),
|
|
104
104
|
__metadata("design:type", Number)
|
|
105
105
|
], OpenapiOrderRO.prototype, "payed", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, class_transformer_1.Expose)(),
|
|
108
|
+
__metadata("design:type", Number)
|
|
109
|
+
], OpenapiOrderRO.prototype, "profileId", void 0);
|
|
106
110
|
__decorate([
|
|
107
111
|
(0, class_transformer_1.Expose)(),
|
|
108
112
|
(0, class_transformer_1.Type)(() => Slot),
|
|
@@ -29,6 +29,10 @@ __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)
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -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
|
@@ -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,7 +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 }) =>
|
|
38
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
|
|
39
39
|
__metadata("design:type", Boolean)
|
|
40
40
|
], ClientForm.prototype, "sendAds", void 0);
|
|
41
41
|
class UpdateParticipantsDto {
|
|
@@ -14,6 +14,7 @@ exports.CrossSaleDto = exports.CrossSaleLocaleDto = void 0;
|
|
|
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");
|
|
@@ -26,11 +27,16 @@ __decorate([
|
|
|
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);
|
|
@@ -44,15 +50,11 @@ __decorate([
|
|
|
44
50
|
], CrossSaleDto.prototype, "status", void 0);
|
|
45
51
|
__decorate([
|
|
46
52
|
(0, class_validator_1.IsPositive)(),
|
|
53
|
+
(0, class_validator_1.Min)(1),
|
|
54
|
+
(0, class_validator_1.Max)(24),
|
|
47
55
|
(0, class_transformer_1.Expose)(),
|
|
48
56
|
__metadata("design:type", Number)
|
|
49
57
|
], CrossSaleDto.prototype, "sendAfter", void 0);
|
|
50
|
-
__decorate([
|
|
51
|
-
(0, class_validator_1.IsBoolean)(),
|
|
52
|
-
(0, class_transformer_1.Expose)(),
|
|
53
|
-
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
|
|
54
|
-
__metadata("design:type", Boolean)
|
|
55
|
-
], CrossSaleDto.prototype, "sendPhotos", void 0);
|
|
56
58
|
__decorate([
|
|
57
59
|
(0, class_validator_1.IsPositive)(),
|
|
58
60
|
(0, class_validator_1.ValidateIf)((o) => o.discountType !== crossale_discount_type_enum_1.CrossSaleDiscountTypeEnum.NONE),
|
|
@@ -73,7 +75,7 @@ __decorate([
|
|
|
73
75
|
__decorate([
|
|
74
76
|
(0, class_transformer_1.Type)(() => CrossSaleLocaleDto),
|
|
75
77
|
(0, class_validator_1.IsArray)(),
|
|
76
|
-
(0, class_validator_1.ValidateNested)(),
|
|
78
|
+
(0, class_validator_1.ValidateNested)({ context: this }),
|
|
77
79
|
(0, class_transformer_1.Expose)(),
|
|
78
80
|
__metadata("design:type", Array)
|
|
79
81
|
], CrossSaleDto.prototype, "locales", void 0);
|
|
@@ -37,10 +37,6 @@ __decorate([
|
|
|
37
37
|
(0, class_transformer_1.Expose)(),
|
|
38
38
|
__metadata("design:type", Number)
|
|
39
39
|
], CrossSaleRO.prototype, "sendAfter", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type", Boolean)
|
|
43
|
-
], CrossSaleRO.prototype, "sendPhotos", void 0);
|
|
44
40
|
__decorate([
|
|
45
41
|
(0, class_transformer_1.Expose)(),
|
|
46
42
|
__metadata("design:type", String)
|
|
@@ -23,15 +23,11 @@ __decorate([
|
|
|
23
23
|
], EarlyBookingDto.prototype, "status", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_validator_1.IsPositive)(),
|
|
26
|
+
(0, class_validator_1.Min)(2),
|
|
27
|
+
(0, class_validator_1.Max)(7),
|
|
26
28
|
(0, class_transformer_1.Expose)(),
|
|
27
29
|
__metadata("design:type", Number)
|
|
28
30
|
], EarlyBookingDto.prototype, "sendBefore", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsBoolean)(),
|
|
31
|
-
(0, class_transformer_1.Expose)(),
|
|
32
|
-
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
|
|
33
|
-
__metadata("design:type", Boolean)
|
|
34
|
-
], EarlyBookingDto.prototype, "addUpsales", void 0);
|
|
35
31
|
__decorate([
|
|
36
32
|
(0, class_transformer_1.Type)(() => cross_sale_dto_1.CrossSaleLocaleDto),
|
|
37
33
|
(0, class_validator_1.IsArray)(),
|
|
@@ -24,10 +24,6 @@ __decorate([
|
|
|
24
24
|
(0, class_transformer_1.Expose)(),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], EarlyBookingRO.prototype, "status", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_transformer_1.Expose)(),
|
|
29
|
-
__metadata("design:type", Boolean)
|
|
30
|
-
], EarlyBookingRO.prototype, "addUpsales", void 0);
|
|
31
27
|
__decorate([
|
|
32
28
|
(0, class_transformer_1.Expose)(),
|
|
33
29
|
(0, class_transformer_1.Type)(() => cross_sale_ro_1.CrossSaleLocaleRO),
|
|
@@ -3,7 +3,6 @@ import { CrossSaleLocaleDto } from '../cross-sale.dto';
|
|
|
3
3
|
import { CrossSaleDiscountTypeEnum } from '../crossale-discount-type.enum';
|
|
4
4
|
export declare class RetargetingDto {
|
|
5
5
|
status: CrossSaleStatusEnum;
|
|
6
|
-
sendAfter: number;
|
|
7
6
|
discount: number;
|
|
8
7
|
discountValidityDays: number;
|
|
9
8
|
discountType: CrossSaleDiscountTypeEnum;
|
|
@@ -22,11 +22,6 @@ __decorate([
|
|
|
22
22
|
(0, class_transformer_1.Expose)(),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
24
|
], RetargetingDto.prototype, "status", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsPositive)(),
|
|
27
|
-
(0, class_transformer_1.Expose)(),
|
|
28
|
-
__metadata("design:type", Number)
|
|
29
|
-
], RetargetingDto.prototype, "sendAfter", void 0);
|
|
30
25
|
__decorate([
|
|
31
26
|
(0, class_validator_1.IsPositive)(),
|
|
32
27
|
(0, class_validator_1.ValidateIf)((o) => o.discountType !== crossale_discount_type_enum_1.CrossSaleDiscountTypeEnum.NONE),
|
|
@@ -3,7 +3,6 @@ import { CrossSaleStatusEnum } from '../cross-sale-status.enum';
|
|
|
3
3
|
import { CrossSaleLocaleRO } from '../cross-sale.ro';
|
|
4
4
|
import { CrossSaleDiscountTypeEnum } from '../crossale-discount-type.enum';
|
|
5
5
|
export declare class RetargetingRO extends RO {
|
|
6
|
-
sendAfter: number;
|
|
7
6
|
status: CrossSaleStatusEnum;
|
|
8
7
|
discountValidityDays: number;
|
|
9
8
|
discount: number;
|
|
@@ -17,10 +17,6 @@ const cross_sale_ro_1 = require("../cross-sale.ro");
|
|
|
17
17
|
const crossale_discount_type_enum_1 = require("../crossale-discount-type.enum");
|
|
18
18
|
class RetargetingRO extends ro_class_1.RO {
|
|
19
19
|
}
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_transformer_1.Expose)(),
|
|
22
|
-
__metadata("design:type", Number)
|
|
23
|
-
], RetargetingRO.prototype, "sendAfter", void 0);
|
|
24
20
|
__decorate([
|
|
25
21
|
(0, class_transformer_1.Expose)(),
|
|
26
22
|
__metadata("design:type", String)
|
|
@@ -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;
|
|
@@ -23,15 +23,11 @@ __decorate([
|
|
|
23
23
|
], UpSaleDto.prototype, "status", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_validator_1.IsPositive)(),
|
|
26
|
+
(0, class_validator_1.Min)(1),
|
|
27
|
+
(0, class_validator_1.Max)(24),
|
|
26
28
|
(0, class_transformer_1.Expose)(),
|
|
27
29
|
__metadata("design:type", Number)
|
|
28
30
|
], UpSaleDto.prototype, "sendBefore", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsBoolean)(),
|
|
31
|
-
(0, class_transformer_1.Expose)(),
|
|
32
|
-
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
|
|
33
|
-
__metadata("design:type", Boolean)
|
|
34
|
-
], UpSaleDto.prototype, "addUpsales", void 0);
|
|
35
31
|
__decorate([
|
|
36
32
|
(0, class_transformer_1.Type)(() => cross_sale_dto_1.CrossSaleLocaleDto),
|
|
37
33
|
(0, class_validator_1.IsArray)(),
|
|
@@ -24,10 +24,6 @@ __decorate([
|
|
|
24
24
|
(0, class_transformer_1.Expose)(),
|
|
25
25
|
__metadata("design:type", String)
|
|
26
26
|
], UpSaleRO.prototype, "status", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, class_transformer_1.Expose)(),
|
|
29
|
-
__metadata("design:type", Boolean)
|
|
30
|
-
], UpSaleRO.prototype, "addUpsales", void 0);
|
|
31
27
|
__decorate([
|
|
32
28
|
(0, class_transformer_1.Expose)(),
|
|
33
29
|
(0, class_transformer_1.Type)(() => cross_sale_ro_1.CrossSaleLocaleRO),
|
|
@@ -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)(),
|
|
@@ -21,6 +21,10 @@ __decorate([
|
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", Boolean)
|
|
23
23
|
], WidgetCustomizationRO.prototype, "showWrapper", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", Boolean)
|
|
27
|
+
], WidgetCustomizationRO.prototype, "showOtherQuests", void 0);
|
|
24
28
|
__decorate([
|
|
25
29
|
(0, class_transformer_1.Expose)(),
|
|
26
30
|
__metadata("design:type", String)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IsIfIncorrect = void 0;
|
|
4
|
+
const class_validator_1 = require("class-validator");
|
|
5
|
+
function IsIfIncorrect(property, validationOptions) {
|
|
6
|
+
return function (object, propertyName) {
|
|
7
|
+
(0, class_validator_1.registerDecorator)({
|
|
8
|
+
name: 'isIfIncorrect',
|
|
9
|
+
target: object.constructor,
|
|
10
|
+
propertyName,
|
|
11
|
+
constraints: [property],
|
|
12
|
+
options: validationOptions,
|
|
13
|
+
validator: {
|
|
14
|
+
validate(text) {
|
|
15
|
+
const openTags = (text.match(/\{\{#if [^}]+\}\}/g) || []).length;
|
|
16
|
+
const closeTags = (text.match(/\{\{\/if\}\}/g) || []).length;
|
|
17
|
+
return openTags === closeTags;
|
|
18
|
+
},
|
|
19
|
+
defaultMessage() {
|
|
20
|
+
return 'Unmatched {{#if}} and {{/if}} tags';
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
exports.IsIfIncorrect = IsIfIncorrect;
|