@escapenavigator/types 1.6.77 → 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.
Files changed (63) hide show
  1. package/dist/cashbox/cashbox.ro.d.ts +5 -3
  2. package/dist/cashbox/cashbox.ro.js +45 -0
  3. package/dist/cashbox/create-cashbox.dto.d.ts +2 -0
  4. package/dist/cashbox/create-cashbox.dto.js +10 -0
  5. package/dist/cashbox/enum/cashbox-type.enum.d.ts +1 -0
  6. package/dist/cashbox/enum/cashbox-type.enum.js +1 -0
  7. package/dist/client/client-form.dto.d.ts +1 -1
  8. package/dist/client/client-form.dto.js +6 -6
  9. package/dist/client/client.ro.d.ts +1 -1
  10. package/dist/client/client.ro.js +4 -4
  11. package/dist/client/create-client.dto.d.ts +0 -1
  12. package/dist/client/create-client.dto.js +0 -6
  13. package/dist/emails/index.d.ts +9 -1
  14. package/dist/forms/widget/widget-client-form.dto.js +1 -1
  15. package/dist/location/create-location.dto.d.ts +1 -0
  16. package/dist/location/create-location.dto.js +6 -0
  17. package/dist/location/location.ro.d.ts +1 -0
  18. package/dist/mailchimp/mailchimp-status.enum.d.ts +5 -0
  19. package/dist/mailchimp/mailchimp-status.enum.js +9 -0
  20. package/dist/mailchimp/mailchimp.dto.d.ts +10 -0
  21. package/dist/mailchimp/mailchimp.dto.js +44 -0
  22. package/dist/mailchimp/mailchimp.list.ro.d.ts +4 -0
  23. package/dist/mailchimp/mailchimp.list.ro.js +24 -0
  24. package/dist/mailchimp/mailchimp.ro.d.ts +13 -0
  25. package/dist/mailchimp/mailchimp.ro.js +43 -0
  26. package/dist/openapi/certificates/openapi-create-certificate-sale.dto.js +1 -1
  27. package/dist/openapi/widget/openapi-widget-info.ro.d.ts +9 -0
  28. package/dist/openapi/widget/openapi-widget-info.ro.js +32 -0
  29. package/dist/order/order.ro.d.ts +1 -1
  30. package/dist/order/order.ro.js +4 -4
  31. package/dist/order/update-participants.dto.js +1 -0
  32. package/dist/profile/cross-sale/cross-sale.dto.d.ts +3 -3
  33. package/dist/profile/cross-sale/cross-sale.dto.js +13 -6
  34. package/dist/profile/cross-sale/cross-sale.ro.d.ts +3 -3
  35. package/dist/profile/cross-sale/cross-sale.ro.js +11 -6
  36. package/dist/profile/cross-sale/early-booking/early-booking.dto.d.ts +8 -0
  37. package/dist/profile/cross-sale/early-booking/early-booking.dto.js +42 -0
  38. package/dist/profile/cross-sale/early-booking/early-booking.ro.d.ts +9 -0
  39. package/dist/profile/cross-sale/early-booking/early-booking.ro.js +36 -0
  40. package/dist/profile/cross-sale/retargeting/retargeting.dto.d.ts +11 -0
  41. package/dist/profile/cross-sale/retargeting/retargeting.dto.js +54 -0
  42. package/dist/profile/cross-sale/retargeting/retargeting.ro.d.ts +12 -0
  43. package/dist/profile/cross-sale/retargeting/retargeting.ro.js +45 -0
  44. package/dist/profile/cross-sale/up-sale/up-sale.dto.d.ts +8 -0
  45. package/dist/profile/cross-sale/up-sale/up-sale.dto.js +42 -0
  46. package/dist/profile/cross-sale/up-sale/up-sale.ro.d.ts +9 -0
  47. package/dist/profile/cross-sale/up-sale/up-sale.ro.js +36 -0
  48. package/dist/questroom/create-questroom.dto.d.ts +0 -2
  49. package/dist/questroom/create-questroom.dto.js +0 -10
  50. package/dist/questroom/questroom-admin.ro.d.ts +0 -2
  51. package/dist/questroom/questroom-admin.ro.js +0 -8
  52. package/dist/questroom/questroom.ro.d.ts +0 -2
  53. package/dist/questroom/questroom.ro.js +0 -8
  54. package/dist/role/create-role.dto.d.ts +2 -0
  55. package/dist/role/create-role.dto.js +12 -0
  56. package/dist/role/role.ro.d.ts +2 -0
  57. package/dist/role/role.ro.js +8 -0
  58. package/dist/tsconfig.build.tsbuildinfo +1 -1
  59. package/dist/user/sessions/create-day-sessions.dto.d.ts +1 -0
  60. package/dist/user/sessions/create-day-sessions.dto.js +5 -0
  61. package/dist/user/sessions/update-day-sessions.dto.d.ts +1 -0
  62. package/dist/user/sessions/update-day-sessions.dto.js +5 -0
  63. package/package.json +2 -2
@@ -1,10 +1,12 @@
1
- import { ResponseObject } from '../shared/ro';
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 type CashboxRO = ResponseObject & {
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;
@@ -2,4 +2,6 @@ import { CashboxTypeEnum } from './enum/cashbox-type.enum';
2
2
  export declare class CreateCashboxDto {
3
3
  title: string;
4
4
  type: CashboxTypeEnum;
5
+ allLocations: boolean;
6
+ locationIds: number[];
5
7
  }
@@ -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;
@@ -1,6 +1,7 @@
1
1
  export declare enum CashboxTypeEnum {
2
2
  CASH = "cash",
3
3
  BANK = "bank",
4
+ POS = "pos",
4
5
  PAYPAL = "paypal",
5
6
  STRIPE = "stripe"
6
7
  }
@@ -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 = {}));
@@ -4,9 +4,9 @@ export declare class ClientFormDto {
4
4
  name: string;
5
5
  surname: string;
6
6
  email: string;
7
+ sendAds: boolean;
7
8
  phone: string;
8
9
  address: string;
9
10
  postcode: string;
10
11
  city: string;
11
- sendAds: boolean;
12
12
  }
@@ -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;
@@ -9,8 +9,8 @@ export declare class ClientRO extends RO {
9
9
  email: string;
10
10
  address: string;
11
11
  city: string;
12
- postcode: string;
13
12
  sendAds: boolean;
13
+ postcode: string;
14
14
  lastOrderCreatedDate: string;
15
15
  lastOrderDate: string;
16
16
  ordersCount: number;
@@ -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)
@@ -1,5 +1,4 @@
1
1
  import { ClientFormDto } from './client-form.dto';
2
2
  export declare class CreateClientDto extends ClientFormDto {
3
3
  phone2: string;
4
- sendAds: boolean;
5
4
  }
@@ -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;
@@ -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;
@@ -16,6 +16,7 @@ export declare class CreateLocationDto {
16
16
  freeParking: boolean;
17
17
  parking: boolean;
18
18
  waitingArea: boolean;
19
+ site: string;
19
20
  waitingAreaSize?: number;
20
21
  locales: Locale[];
21
22
  }
@@ -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)(),
@@ -12,6 +12,7 @@ export declare type LocationRO = ResponseObject & {
12
12
  freeParking: boolean;
13
13
  parking: boolean;
14
14
  waitingArea: boolean;
15
+ site: string;
15
16
  waitingAreaSize: number;
16
17
  timeZone: string;
17
18
  locales: Array<{
@@ -0,0 +1,5 @@
1
+ export declare enum MailchimpStatusEnum {
2
+ NONE = "none",
3
+ ENABLED = "enabled",
4
+ PROBLEM = "problem"
5
+ }
@@ -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,10 @@
1
+ import { Languages } from '../shared/enum/languages.enum';
2
+ declare class Locale {
3
+ language: Languages;
4
+ text: string;
5
+ }
6
+ export declare class MailchimpDto {
7
+ listId: string;
8
+ locales?: Locale[];
9
+ }
10
+ export {};
@@ -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,4 @@
1
+ export declare class MailchimpListRO {
2
+ id: string;
3
+ name: string;
4
+ }
@@ -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 === undefined ? true : 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;
@@ -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 {
@@ -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 Locale {
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: Locale[];
16
+ locales: CrossSaleLocaleDto[];
16
17
  }
17
- export {};
@@ -9,7 +9,7 @@ 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");
@@ -17,23 +17,24 @@ const languages_enum_1 = require("../../shared/enum/languages.enum");
17
17
  const is_not_blank_1 = require("../../shared/is-not-blank");
18
18
  const cross_sale_status_enum_1 = require("./cross-sale-status.enum");
19
19
  const crossale_discount_type_enum_1 = require("./crossale-discount-type.enum");
20
- class Locale {
20
+ class CrossSaleLocaleDto {
21
21
  }
22
22
  __decorate([
23
23
  (0, class_validator_1.IsEnum)(languages_enum_1.Languages),
24
24
  (0, class_transformer_1.Expose)(),
25
25
  __metadata("design:type", String)
26
- ], Locale.prototype, "language", void 0);
26
+ ], CrossSaleLocaleDto.prototype, "language", void 0);
27
27
  __decorate([
28
28
  (0, is_not_blank_1.IsNotBlank)(),
29
29
  (0, class_transformer_1.Expose)(),
30
30
  __metadata("design:type", String)
31
- ], Locale.prototype, "feedbackText", void 0);
31
+ ], CrossSaleLocaleDto.prototype, "feedbackText", void 0);
32
32
  __decorate([
33
33
  (0, is_not_blank_1.IsNotBlank)(),
34
34
  (0, class_transformer_1.Expose)(),
35
35
  __metadata("design:type", String)
36
- ], Locale.prototype, "title", void 0);
36
+ ], CrossSaleLocaleDto.prototype, "title", void 0);
37
+ exports.CrossSaleLocaleDto = CrossSaleLocaleDto;
37
38
  class CrossSaleDto {
38
39
  }
39
40
  __decorate([
@@ -46,6 +47,12 @@ __decorate([
46
47
  (0, class_transformer_1.Expose)(),
47
48
  __metadata("design:type", Number)
48
49
  ], 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);
49
56
  __decorate([
50
57
  (0, class_validator_1.IsPositive)(),
51
58
  (0, class_validator_1.ValidateIf)((o) => o.discountType !== crossale_discount_type_enum_1.CrossSaleDiscountTypeEnum.NONE),
@@ -64,7 +71,7 @@ __decorate([
64
71
  __metadata("design:type", String)
65
72
  ], CrossSaleDto.prototype, "discountType", void 0);
66
73
  __decorate([
67
- (0, class_transformer_1.Type)(() => Locale),
74
+ (0, class_transformer_1.Type)(() => CrossSaleLocaleDto),
68
75
  (0, class_validator_1.IsArray)(),
69
76
  (0, class_validator_1.ValidateNested)(),
70
77
  (0, class_transformer_1.Expose)(),
@@ -2,17 +2,17 @@ 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 Locale {
5
+ export declare class CrossSaleLocaleRO {
6
6
  language: Languages;
7
7
  feedbackText: string;
8
8
  title: string;
9
9
  }
10
10
  export declare class CrossSaleRO extends RO {
11
11
  sendAfter: number;
12
+ sendPhotos: boolean;
12
13
  status: CrossSaleStatusEnum;
13
14
  discountValidityDays: number;
14
15
  discount: number;
15
16
  discountType: CrossSaleDiscountTypeEnum;
16
- locales: Locale[];
17
+ locales: CrossSaleLocaleRO[];
17
18
  }
18
- export {};