@escapenavigator/types 1.6.76 → 1.6.78
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/agregator/agregator-questroom.ro.d.ts +1 -1
- package/dist/agregator/agregator-questroom.ro.js +4 -4
- 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/city/city.ro.d.ts +2 -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/widget/openapi-widget-info.ro.d.ts +9 -0
- package/dist/openapi/widget/openapi-widget-info.ro.js +32 -0
- package/dist/order/order.ro.d.ts +1 -1
- package/dist/order/order.ro.js +4 -4
- package/dist/order/update-participants.dto.js +1 -0
- package/dist/profile/cross-sale/cross-sale.dto.d.ts +3 -3
- package/dist/profile/cross-sale/cross-sale.dto.js +13 -6
- package/dist/profile/cross-sale/cross-sale.ro.d.ts +3 -3
- package/dist/profile/cross-sale/cross-sale.ro.js +11 -6
- package/dist/profile/cross-sale/early-booking/early-booking.dto.d.ts +8 -0
- package/dist/profile/cross-sale/early-booking/early-booking.dto.js +42 -0
- package/dist/profile/cross-sale/early-booking/early-booking.ro.d.ts +9 -0
- package/dist/profile/cross-sale/early-booking/early-booking.ro.js +36 -0
- package/dist/profile/cross-sale/retargeting/retargeting.dto.d.ts +11 -0
- package/dist/profile/cross-sale/retargeting/retargeting.dto.js +54 -0
- package/dist/profile/cross-sale/retargeting/retargeting.ro.d.ts +12 -0
- package/dist/profile/cross-sale/retargeting/retargeting.ro.js +45 -0
- package/dist/profile/cross-sale/up-sale/up-sale.dto.d.ts +8 -0
- package/dist/profile/cross-sale/up-sale/up-sale.dto.js +42 -0
- package/dist/profile/cross-sale/up-sale/up-sale.ro.d.ts +9 -0
- package/dist/profile/cross-sale/up-sale/up-sale.ro.js +36 -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/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
|
@@ -8,6 +8,7 @@ import { TagsEnum } from '../shared/enum/tags.enum';
|
|
|
8
8
|
export declare class AgregatorProfile {
|
|
9
9
|
title: string;
|
|
10
10
|
slug: string;
|
|
11
|
+
availableLanguages: Languages[];
|
|
11
12
|
verified?: boolean;
|
|
12
13
|
}
|
|
13
14
|
declare class City {
|
|
@@ -52,7 +53,6 @@ export declare class AgregatorQuestroomRO {
|
|
|
52
53
|
photo: string;
|
|
53
54
|
photos: string[];
|
|
54
55
|
video?: string;
|
|
55
|
-
languages?: Languages[];
|
|
56
56
|
rate: number;
|
|
57
57
|
reviewsCount: number;
|
|
58
58
|
currency?: ProfileCurrencyEnum;
|
|
@@ -30,6 +30,10 @@ __decorate([
|
|
|
30
30
|
(0, class_transformer_1.Expose)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], AgregatorProfile.prototype, "slug", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", Array)
|
|
36
|
+
], AgregatorProfile.prototype, "availableLanguages", void 0);
|
|
33
37
|
__decorate([
|
|
34
38
|
(0, class_transformer_1.Expose)(),
|
|
35
39
|
(0, class_transformer_1.Transform)(({ obj }) => (obj === null || obj === void 0 ? void 0 : obj.status) === profile_step_enum_1.ProfileStatusEnum.VERIFIED ||
|
|
@@ -196,10 +200,6 @@ __decorate([
|
|
|
196
200
|
(0, class_transformer_1.Expose)(),
|
|
197
201
|
__metadata("design:type", String)
|
|
198
202
|
], AgregatorQuestroomRO.prototype, "video", void 0);
|
|
199
|
-
__decorate([
|
|
200
|
-
(0, class_transformer_1.Expose)(),
|
|
201
|
-
__metadata("design:type", Array)
|
|
202
|
-
], AgregatorQuestroomRO.prototype, "languages", void 0);
|
|
203
203
|
__decorate([
|
|
204
204
|
(0, class_transformer_1.Expose)(),
|
|
205
205
|
(0, class_transformer_1.Transform)(({ value }) => (value ? +(value / 100).toFixed(2) : 0)),
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RO } from '../shared/ro-class';
|
|
2
2
|
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
3
3
|
import { CashboxTypeEnum } from './enum/cashbox-type.enum';
|
|
4
|
-
export declare
|
|
4
|
+
export declare class CashboxRO extends RO {
|
|
5
5
|
title: string;
|
|
6
6
|
type: CashboxTypeEnum;
|
|
7
7
|
identificator?: string;
|
|
8
8
|
increase: number;
|
|
9
|
+
allLocations: boolean;
|
|
10
|
+
locationIds: number[];
|
|
9
11
|
increaseType: PrepaymentTypeEnum;
|
|
10
|
-
}
|
|
12
|
+
}
|
|
@@ -1,2 +1,47 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CashboxRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
15
|
+
const prepayment_type_enum_1 = require("../slot/enum/prepayment-type.enum");
|
|
16
|
+
const cashbox_type_enum_1 = require("./enum/cashbox-type.enum");
|
|
17
|
+
class CashboxRO extends ro_class_1.RO {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CashboxRO.prototype, "title", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CashboxRO.prototype, "type", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CashboxRO.prototype, "identificator", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], CashboxRO.prototype, "increase", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", Boolean)
|
|
38
|
+
], CashboxRO.prototype, "allLocations", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], CashboxRO.prototype, "locationIds", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CashboxRO.prototype, "increaseType", void 0);
|
|
47
|
+
exports.CashboxRO = CashboxRO;
|
|
@@ -26,4 +26,14 @@ __decorate([
|
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], CreateCashboxDto.prototype, "type", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsBoolean)(),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], CreateCashboxDto.prototype, "allLocations", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
(0, class_validator_1.IsArray)(),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], CreateCashboxDto.prototype, "locationIds", void 0);
|
|
29
39
|
exports.CreateCashboxDto = CreateCashboxDto;
|
|
@@ -5,6 +5,7 @@ var CashboxTypeEnum;
|
|
|
5
5
|
(function (CashboxTypeEnum) {
|
|
6
6
|
CashboxTypeEnum["CASH"] = "cash";
|
|
7
7
|
CashboxTypeEnum["BANK"] = "bank";
|
|
8
|
+
CashboxTypeEnum["POS"] = "pos";
|
|
8
9
|
CashboxTypeEnum["PAYPAL"] = "paypal";
|
|
9
10
|
CashboxTypeEnum["STRIPE"] = "stripe";
|
|
10
11
|
})(CashboxTypeEnum = exports.CashboxTypeEnum || (exports.CashboxTypeEnum = {}));
|
package/dist/city/city.ro.d.ts
CHANGED
|
@@ -39,6 +39,12 @@ __decorate([
|
|
|
39
39
|
(0, class_transformer_1.Expose)(),
|
|
40
40
|
__metadata("design:type", String)
|
|
41
41
|
], ClientFormDto.prototype, "email", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsBoolean)(),
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, class_transformer_1.Transform)(({ value }) => (value !== null && value !== void 0 ? value : false)),
|
|
46
|
+
__metadata("design:type", Boolean)
|
|
47
|
+
], ClientFormDto.prototype, "sendAds", void 0);
|
|
42
48
|
__decorate([
|
|
43
49
|
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.PHONE)),
|
|
44
50
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
@@ -63,10 +69,4 @@ __decorate([
|
|
|
63
69
|
(0, class_transformer_1.Expose)(),
|
|
64
70
|
__metadata("design:type", String)
|
|
65
71
|
], ClientFormDto.prototype, "city", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, class_validator_1.IsBoolean)(),
|
|
68
|
-
(0, class_transformer_1.Expose)(),
|
|
69
|
-
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
70
|
-
__metadata("design:type", Boolean)
|
|
71
|
-
], ClientFormDto.prototype, "sendAds", void 0);
|
|
72
72
|
exports.ClientFormDto = ClientFormDto;
|
package/dist/client/client.ro.js
CHANGED
|
@@ -49,14 +49,14 @@ __decorate([
|
|
|
49
49
|
(0, class_transformer_1.Expose)(),
|
|
50
50
|
__metadata("design:type", String)
|
|
51
51
|
], ClientRO.prototype, "city", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, class_transformer_1.Expose)(),
|
|
54
|
-
__metadata("design:type", String)
|
|
55
|
-
], ClientRO.prototype, "postcode", void 0);
|
|
56
52
|
__decorate([
|
|
57
53
|
(0, class_transformer_1.Expose)(),
|
|
58
54
|
__metadata("design:type", Boolean)
|
|
59
55
|
], ClientRO.prototype, "sendAds", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], ClientRO.prototype, "postcode", void 0);
|
|
60
60
|
__decorate([
|
|
61
61
|
(0, class_transformer_1.Expose)(),
|
|
62
62
|
__metadata("design:type", String)
|
|
@@ -20,10 +20,4 @@ __decorate([
|
|
|
20
20
|
(0, class_transformer_1.Expose)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], CreateClientDto.prototype, "phone2", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsBoolean)(),
|
|
25
|
-
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
__metadata("design:type", Boolean)
|
|
28
|
-
], CreateClientDto.prototype, "sendAds", void 0);
|
|
29
23
|
exports.CreateClientDto = CreateClientDto;
|
package/dist/emails/index.d.ts
CHANGED
|
@@ -16,11 +16,19 @@ declare type Reply = {
|
|
|
16
16
|
type: 'reply';
|
|
17
17
|
text: string;
|
|
18
18
|
};
|
|
19
|
+
declare type Image = {
|
|
20
|
+
type: 'image';
|
|
21
|
+
image: string;
|
|
22
|
+
};
|
|
19
23
|
declare type List = {
|
|
20
24
|
type: 'list';
|
|
21
25
|
title?: string;
|
|
22
26
|
rows: Array<[string, string]>;
|
|
23
27
|
};
|
|
28
|
+
declare type Code = {
|
|
29
|
+
type: 'code';
|
|
30
|
+
code: string;
|
|
31
|
+
};
|
|
24
32
|
declare type Context = {
|
|
25
33
|
title: string;
|
|
26
34
|
subtitle?: string;
|
|
@@ -29,7 +37,7 @@ declare type Context = {
|
|
|
29
37
|
tag?: string;
|
|
30
38
|
subscription?: boolean;
|
|
31
39
|
logo?: string;
|
|
32
|
-
sections: Array<Divider | Bitton | Paragraph | List | Reply>;
|
|
40
|
+
sections: Array<Divider | Bitton | Paragraph | List | Reply | Image | Code>;
|
|
33
41
|
};
|
|
34
42
|
export declare type SendEmailRequestParams = {
|
|
35
43
|
from: EmailSenderEnum;
|
|
@@ -65,8 +65,8 @@ __decorate([
|
|
|
65
65
|
], WidgetClientFormDto.prototype, "city", void 0);
|
|
66
66
|
__decorate([
|
|
67
67
|
(0, class_validator_1.IsBoolean)(),
|
|
68
|
-
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
69
68
|
(0, class_transformer_1.Expose)(),
|
|
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;
|
|
@@ -96,6 +96,12 @@ __decorate([
|
|
|
96
96
|
(0, class_transformer_1.Expose)(),
|
|
97
97
|
__metadata("design:type", Boolean)
|
|
98
98
|
], CreateLocationDto.prototype, "waitingArea", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
(0, class_validator_1.IsUrl)(),
|
|
102
|
+
(0, class_transformer_1.Expose)(),
|
|
103
|
+
__metadata("design:type", String)
|
|
104
|
+
], CreateLocationDto.prototype, "site", void 0);
|
|
99
105
|
__decorate([
|
|
100
106
|
(0, class_validator_1.ValidateIf)((o) => o.waitingArea),
|
|
101
107
|
(0, class_validator_1.IsPositive)(),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MailchimpStatusEnum = void 0;
|
|
4
|
+
var MailchimpStatusEnum;
|
|
5
|
+
(function (MailchimpStatusEnum) {
|
|
6
|
+
MailchimpStatusEnum["NONE"] = "none";
|
|
7
|
+
MailchimpStatusEnum["ENABLED"] = "enabled";
|
|
8
|
+
MailchimpStatusEnum["PROBLEM"] = "problem";
|
|
9
|
+
})(MailchimpStatusEnum = exports.MailchimpStatusEnum || (exports.MailchimpStatusEnum = {}));
|
|
@@ -0,0 +1,44 @@
|
|
|
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.MailchimpDto = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
17
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
18
|
+
class Locale {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], Locale.prototype, "language", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Locale.prototype, "text", void 0);
|
|
30
|
+
class MailchimpDto {
|
|
31
|
+
}
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], MailchimpDto.prototype, "listId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Type)(() => Locale),
|
|
39
|
+
(0, class_validator_1.IsArray)(),
|
|
40
|
+
(0, class_validator_1.ValidateNested)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], MailchimpDto.prototype, "locales", void 0);
|
|
44
|
+
exports.MailchimpDto = MailchimpDto;
|
|
@@ -0,0 +1,24 @@
|
|
|
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.MailchimpListRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
class MailchimpListRO {
|
|
15
|
+
}
|
|
16
|
+
__decorate([
|
|
17
|
+
(0, class_transformer_1.Expose)(),
|
|
18
|
+
__metadata("design:type", String)
|
|
19
|
+
], MailchimpListRO.prototype, "id", void 0);
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], MailchimpListRO.prototype, "name", void 0);
|
|
24
|
+
exports.MailchimpListRO = MailchimpListRO;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
import { RO } from '../shared/ro-class';
|
|
3
|
+
import { MailchimpStatusEnum } from './mailchimp-status.enum';
|
|
4
|
+
declare class Locale {
|
|
5
|
+
language: Languages;
|
|
6
|
+
text: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class MailchimpRO extends RO {
|
|
9
|
+
status: MailchimpStatusEnum;
|
|
10
|
+
listId: string;
|
|
11
|
+
locales: Locale[];
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
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.MailchimpRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
16
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
17
|
+
const mailchimp_status_enum_1 = require("./mailchimp-status.enum");
|
|
18
|
+
class Locale {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], Locale.prototype, "language", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], Locale.prototype, "text", void 0);
|
|
28
|
+
class MailchimpRO extends ro_class_1.RO {
|
|
29
|
+
}
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], MailchimpRO.prototype, "status", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], MailchimpRO.prototype, "listId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, class_transformer_1.Type)(() => Locale),
|
|
41
|
+
__metadata("design:type", Array)
|
|
42
|
+
], MailchimpRO.prototype, "locales", void 0);
|
|
43
|
+
exports.MailchimpRO = MailchimpRO;
|
|
@@ -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 }) => (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([
|
|
@@ -10,6 +10,14 @@ declare class Customization {
|
|
|
10
10
|
showWrapper: boolean;
|
|
11
11
|
mainColor: string;
|
|
12
12
|
}
|
|
13
|
+
declare class MailchimpLocale {
|
|
14
|
+
text: string;
|
|
15
|
+
language: Languages;
|
|
16
|
+
}
|
|
17
|
+
declare class Mailchimp {
|
|
18
|
+
locales: MailchimpLocale[];
|
|
19
|
+
token: string;
|
|
20
|
+
}
|
|
13
21
|
declare class Profile {
|
|
14
22
|
id: number;
|
|
15
23
|
phoneForCustomers: string;
|
|
@@ -33,5 +41,6 @@ export declare class OpenapiWidgetInfoRO {
|
|
|
33
41
|
gaCoversationLabel: string;
|
|
34
42
|
gaEnabled: boolean;
|
|
35
43
|
customization: Customization;
|
|
44
|
+
mailchimp?: string | Mailchimp;
|
|
36
45
|
}
|
|
37
46
|
export {};
|
|
@@ -33,6 +33,27 @@ __decorate([
|
|
|
33
33
|
(0, class_transformer_1.Expose)(),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], Customization.prototype, "mainColor", void 0);
|
|
36
|
+
class MailchimpLocale {
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], MailchimpLocale.prototype, "text", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], MailchimpLocale.prototype, "language", void 0);
|
|
46
|
+
class Mailchimp {
|
|
47
|
+
}
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
(0, class_transformer_1.Type)(() => MailchimpLocale),
|
|
51
|
+
__metadata("design:type", Array)
|
|
52
|
+
], Mailchimp.prototype, "locales", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], Mailchimp.prototype, "token", void 0);
|
|
36
57
|
class Profile {
|
|
37
58
|
}
|
|
38
59
|
__decorate([
|
|
@@ -124,4 +145,15 @@ __decorate([
|
|
|
124
145
|
(0, class_transformer_1.Type)(() => Customization),
|
|
125
146
|
__metadata("design:type", Customization)
|
|
126
147
|
], OpenapiWidgetInfoRO.prototype, "customization", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, class_transformer_1.Expose)(),
|
|
150
|
+
(0, class_transformer_1.Type)(() => Mailchimp),
|
|
151
|
+
(0, class_transformer_1.Transform)(({ value, obj }) => {
|
|
152
|
+
var _a, _b;
|
|
153
|
+
if (!(value === null || value === void 0 ? void 0 : value.token))
|
|
154
|
+
return null;
|
|
155
|
+
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';
|
|
156
|
+
}),
|
|
157
|
+
__metadata("design:type", Object)
|
|
158
|
+
], OpenapiWidgetInfoRO.prototype, "mailchimp", void 0);
|
|
127
159
|
exports.OpenapiWidgetInfoRO = OpenapiWidgetInfoRO;
|
package/dist/order/order.ro.d.ts
CHANGED
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)
|
|
@@ -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;
|
|
@@ -9,9 +9,9 @@ declare class Locale {
|
|
|
9
9
|
export declare class CrossSaleDto {
|
|
10
10
|
status: CrossSaleStatusEnum;
|
|
11
11
|
sendAfter: number;
|
|
12
|
+
sendPhotos: boolean;
|
|
12
13
|
discount: number;
|
|
13
14
|
discountValidityDays: number;
|
|
14
15
|
discountType: CrossSaleDiscountTypeEnum;
|
|
15
|
-
locales:
|
|
16
|
+
locales: CrossSaleLocaleDto[];
|
|
16
17
|
}
|
|
17
|
-
export {};
|