@escapenavigator/types 2.0.15 → 2.0.17

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 (50) hide show
  1. package/dist/certificate-v2/certificate-design.ro.d.ts +1 -0
  2. package/dist/certificate-v2/certificate-design.ro.js +4 -0
  3. package/dist/certificate-v2/create-certificate-design.dto.d.ts +1 -0
  4. package/dist/certificate-v2/create-certificate-design.dto.js +6 -0
  5. package/dist/city/city.ro.d.ts +2 -0
  6. package/dist/city/update-city.dto.d.ts +2 -0
  7. package/dist/city/update-city.dto.js +6 -0
  8. package/dist/city-attraction/city-attraction-locale.ro.d.ts +3 -0
  9. package/dist/city-attraction/generate-attraction-audio.dto.d.ts +10 -0
  10. package/dist/city-attraction/generate-attraction-audio.dto.js +45 -0
  11. package/dist/city-attraction/generate-attraction-audio.ro.d.ts +3 -0
  12. package/dist/city-attraction/generate-attraction-audio.ro.js +2 -0
  13. package/dist/city-attraction/upsert-city-attraction-locale.dto.d.ts +2 -0
  14. package/dist/city-attraction/upsert-city-attraction-locale.dto.js +13 -0
  15. package/dist/city-person/city-person-attraction-link.dto.d.ts +1 -1
  16. package/dist/city-person/city-person-attraction-link.ro.d.ts +1 -1
  17. package/dist/city-person/city-person-locale.ro.d.ts +1 -1
  18. package/dist/city-person/upsert-city-person-locale.dto.d.ts +1 -1
  19. package/dist/openapi/certificates-v2/openapi-certificate-design.ro.d.ts +1 -0
  20. package/dist/openapi/certificates-v2/openapi-certificate-design.ro.js +4 -0
  21. package/dist/openapi/city-player/city-explore.ro.d.ts +98 -0
  22. package/dist/openapi/city-player/city-explore.ro.js +2 -0
  23. package/dist/openapi/city-player/city-player.ro.d.ts +11 -0
  24. package/dist/openapi/widget/openapi-resolve-promocode.ro.d.ts +2 -0
  25. package/dist/openapi/widget/openapi-resolve-promocode.ro.js +4 -0
  26. package/dist/openapi/widget/openapi-widget-info.ro.d.ts +6 -9
  27. package/dist/openapi/widget/openapi-widget-info.ro.js +4 -32
  28. package/dist/partners-portal/create-partner-attraction.dto.d.ts +1 -1
  29. package/dist/partners-portal/partner-city-quest.ro.d.ts +1 -1
  30. package/dist/profile/marketing-automation/marketing-automation-capabilities.js +2 -1
  31. package/dist/profile/marketing-automation/marketing-automation-config.dto.d.ts +2 -1
  32. package/dist/profile/notification-chanel/notification-chanel.ro.d.ts +3 -0
  33. package/dist/profile/notification-chanel/notification-chanel.ro.js +6 -0
  34. package/dist/profile/notification-chanel/test-notification-chanel.dto.d.ts +6 -0
  35. package/dist/profile/notification-chanel/test-notification-chanel.dto.js +29 -0
  36. package/dist/profile/notification-chanel/webhook-health.ro.d.ts +36 -0
  37. package/dist/profile/notification-chanel/webhook-health.ro.js +54 -0
  38. package/dist/profile/notification-chanel/webhook-test-result.ro.d.ts +11 -0
  39. package/dist/profile/notification-chanel/webhook-test-result.ro.js +42 -0
  40. package/dist/promocode/create-promocode.dto.d.ts +5 -0
  41. package/dist/promocode/create-promocode.dto.js +18 -3
  42. package/dist/promocode/emun/promocode-type.enum.d.ts +7 -1
  43. package/dist/promocode/emun/promocode-type.enum.js +6 -0
  44. package/dist/promocode/promocode.ro.d.ts +1 -0
  45. package/dist/promocode/promocode.ro.js +4 -0
  46. package/dist/tsconfig.build.tsbuildinfo +1 -1
  47. package/dist/widget/create-widget.dto.d.ts +1 -0
  48. package/dist/widget/create-widget.dto.js +7 -0
  49. package/dist/widget/widget.ro.d.ts +5 -0
  50. package/package.json +2 -2
@@ -7,6 +7,7 @@ export declare class CreateWidgetDto {
7
7
  allLocations: boolean;
8
8
  locationIds: number[];
9
9
  excludedQuestroomIds?: number[];
10
+ certificateDesignId?: number | null;
10
11
  ga4Id?: string;
11
12
  fbPixelId?: string;
12
13
  tiktokPixelId?: string;
@@ -62,6 +62,13 @@ __decorate([
62
62
  (0, class_transformer_1.Expose)(),
63
63
  __metadata("design:type", Array)
64
64
  ], CreateWidgetDto.prototype, "excludedQuestroomIds", void 0);
65
+ __decorate([
66
+ (0, class_validator_1.ValidateIf)((o) => o.type === widget_type_enum_1.WidgetTypeEnum.ALL_CERTIFICATES),
67
+ (0, class_validator_1.IsOptional)(),
68
+ (0, class_validator_1.IsPositive)(),
69
+ (0, class_transformer_1.Expose)(),
70
+ __metadata("design:type", Number)
71
+ ], CreateWidgetDto.prototype, "certificateDesignId", void 0);
65
72
  __decorate([
66
73
  (0, class_validator_1.IsOptional)(),
67
74
  (0, class_transformer_1.Expose)(),
@@ -24,6 +24,11 @@ export type WidgetRO = {
24
24
  photo: string;
25
25
  };
26
26
  excludedQuestroomIds?: number[];
27
+ /**
28
+ * Для сертификатных виджетов (ALL_CERTIFICATES): ограничить каталог одним
29
+ * дизайном. null/undefined — продаются все сертификаты.
30
+ */
31
+ certificateDesignId?: number | null;
27
32
  daysAhead?: number;
28
33
  buttonTooltipText?: string;
29
34
  showOtherQuests?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/types",
3
- "version": "2.0.15",
3
+ "version": "2.0.17",
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": "fd9c7763c491702b9dd7ebb53f4463b73dee7e40",
26
+ "gitHead": "38923f4b8d67b6f00321a16994251085cea3ed24",
27
27
  "devDependencies": {
28
28
  "@types/validator": "13.0.0",
29
29
  "typescript": "^5.6"