@escapenavigator/types 2.0.37 → 2.0.38

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 (44) hide show
  1. package/dist/email-builder/email-content.dto.d.ts +26 -0
  2. package/dist/email-builder/email-content.dto.js +62 -0
  3. package/dist/email-builder/index.d.ts +81 -0
  4. package/dist/email-builder/index.js +89 -1
  5. package/dist/emails/index.d.ts +25 -2
  6. package/dist/openapi/upsellings/openapi-upselling.ro.d.ts +1 -0
  7. package/dist/openapi/upsellings/openapi-upselling.ro.js +4 -0
  8. package/dist/profile/birthday-marketing/birthday-marketing.dto.d.ts +2 -2
  9. package/dist/profile/birthday-marketing/birthday-marketing.dto.js +3 -1
  10. package/dist/profile/cross-sale/cross-sale.dto.d.ts +2 -2
  11. package/dist/profile/cross-sale/cross-sale.dto.js +3 -1
  12. package/dist/profile/cross-sale/cross-sale.ro.d.ts +2 -2
  13. package/dist/profile/custom-client-booking-email/custom-client-booking-email.dto.d.ts +2 -2
  14. package/dist/profile/custom-client-booking-email/custom-client-booking-email.dto.js +3 -1
  15. package/dist/profile/custom-client-booking-email/custom-client-booking-email.ro.d.ts +2 -2
  16. package/dist/profile/marketing-automation/marketing-automation.dto.d.ts +2 -2
  17. package/dist/profile/marketing-automation/marketing-automation.dto.js +3 -1
  18. package/dist/profile/marketing-automation/marketing-automation.ro.d.ts +2 -2
  19. package/dist/profile/marketing-email/create-profile-marketing-email-campaign.dto.d.ts +14 -13
  20. package/dist/profile/marketing-email/create-profile-marketing-email-campaign.dto.js +19 -28
  21. package/dist/profile/marketing-email/preflight-issue.ro.d.ts +31 -1
  22. package/dist/profile/marketing-email/preflight-issue.ro.js +30 -0
  23. package/dist/profile/marketing-email/preview-campaign-v2.dto.d.ts +2 -2
  24. package/dist/profile/marketing-email/preview-campaign-v2.dto.js +2 -2
  25. package/dist/profile/marketing-email/preview-profile-marketing-segment.dto.d.ts +6 -0
  26. package/dist/profile/marketing-email/preview-profile-marketing-segment.dto.js +8 -0
  27. package/dist/profile/marketing-email/preview-profile-marketing-segment.ro.d.ts +6 -1
  28. package/dist/profile/marketing-email/preview-profile-marketing-segment.ro.js +9 -1
  29. package/dist/profile/marketing-email/profile-marketing-email-campaign.ro.d.ts +11 -2
  30. package/dist/profile/marketing-email/profile-marketing-email-campaign.ro.js +12 -0
  31. package/dist/profile/marketing-email/profile-marketing-email-recipient-status.enum.d.ts +6 -0
  32. package/dist/profile/marketing-email/profile-marketing-email-recipient-status.enum.js +6 -0
  33. package/dist/profile/marketing-email/test-send-email-v2.dto.d.ts +2 -2
  34. package/dist/profile/marketing-email/test-send-email-v2.dto.js +2 -2
  35. package/dist/questroom-scenario-email/create-questroom-scenario-email.dto.d.ts +2 -2
  36. package/dist/questroom-scenario-email/create-questroom-scenario-email.dto.js +3 -1
  37. package/dist/questroom-scenario-email/questroom-scenario-email.ro.d.ts +2 -2
  38. package/dist/slot/slot-discount-range.validator.js +1 -1
  39. package/dist/tsconfig.build.tsbuildinfo +1 -1
  40. package/dist/upselling/create-upselling.dto.d.ts +5 -0
  41. package/dist/upselling/create-upselling.dto.js +8 -0
  42. package/dist/upselling/upselling.ro.d.ts +1 -0
  43. package/dist/upselling/upselling.ro.js +4 -0
  44. package/package.json +2 -2
@@ -11,6 +11,11 @@ export declare class CreateUpsellingDto {
11
11
  availableFrom: string;
12
12
  availableTo: string;
13
13
  availableDays: number[];
14
+ /**
15
+ * За сколько минут до начала игры услуга перестаёт быть доступной для
16
+ * онлайн-брони. `0` — без ограничения. Максимум как у правил брони — 7 суток.
17
+ */
18
+ minMinutesBeforeStart: number;
14
19
  fullPayment: boolean;
15
20
  description?: string;
16
21
  comment?: string;
@@ -82,6 +82,14 @@ __decorate([
82
82
  (0, class_transformer_1.Expose)(),
83
83
  __metadata("design:type", Array)
84
84
  ], CreateUpsellingDto.prototype, "availableDays", void 0);
85
+ __decorate([
86
+ (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : 0),
87
+ (0, class_validator_1.IsInt)(),
88
+ (0, class_validator_1.Min)(0),
89
+ (0, class_validator_1.Max)(10080),
90
+ (0, class_transformer_1.Expose)(),
91
+ __metadata("design:type", Number)
92
+ ], CreateUpsellingDto.prototype, "minMinutesBeforeStart", void 0);
85
93
  __decorate([
86
94
  (0, class_validator_1.IsBoolean)(),
87
95
  (0, class_transformer_1.Transform)(({ value }) => value || false),
@@ -17,6 +17,7 @@ export declare class UpsellingResponseObject extends RO {
17
17
  availableFrom: string;
18
18
  availableTo: string;
19
19
  availableDays: number[];
20
+ minMinutesBeforeStart: number;
20
21
  fullPayment: boolean;
21
22
  clientCanRemove: boolean;
22
23
  nonRefundable: boolean;
@@ -80,6 +80,10 @@ __decorate([
80
80
  (0, class_transformer_1.Expose)(),
81
81
  __metadata("design:type", Array)
82
82
  ], UpsellingResponseObject.prototype, "availableDays", void 0);
83
+ __decorate([
84
+ (0, class_transformer_1.Expose)(),
85
+ __metadata("design:type", Number)
86
+ ], UpsellingResponseObject.prototype, "minMinutesBeforeStart", void 0);
83
87
  __decorate([
84
88
  (0, class_transformer_1.Expose)(),
85
89
  __metadata("design:type", Boolean)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/types",
3
- "version": "2.0.37",
3
+ "version": "2.0.38",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,7 +23,7 @@
23
23
  "reflect-metadata": "^0.1.13",
24
24
  "rxjs": "^7.5.5"
25
25
  },
26
- "gitHead": "a5a2b7072d29242e6477d13cf07022fca9862b8c",
26
+ "gitHead": "46c94f5f9d49d1c7efb30798d44bc5ed6e2dcc50",
27
27
  "devDependencies": {
28
28
  "@types/validator": "13.0.0",
29
29
  "typescript": "^5.6"