@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
@@ -0,0 +1,54 @@
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.WebhookHealthRO = exports.WebhookHealthStatusEnum = exports.WebhookErrorKindEnum = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ /** Классифицированный тип ошибки доставки вебхука (вместо сырых стектрейсов). */
15
+ var WebhookErrorKindEnum;
16
+ (function (WebhookErrorKindEnum) {
17
+ WebhookErrorKindEnum["DNS"] = "dns";
18
+ WebhookErrorKindEnum["REFUSED"] = "refused";
19
+ WebhookErrorKindEnum["TIMEOUT"] = "timeout";
20
+ WebhookErrorKindEnum["TLS"] = "tls";
21
+ WebhookErrorKindEnum["HTTP_4XX"] = "http-4xx";
22
+ WebhookErrorKindEnum["HTTP_5XX"] = "http-5xx";
23
+ WebhookErrorKindEnum["INVALID_URL"] = "invalid-url";
24
+ WebhookErrorKindEnum["OTHER"] = "other";
25
+ })(WebhookErrorKindEnum || (exports.WebhookErrorKindEnum = WebhookErrorKindEnum = {}));
26
+ var WebhookHealthStatusEnum;
27
+ (function (WebhookHealthStatusEnum) {
28
+ WebhookHealthStatusEnum["HEALTHY"] = "healthy";
29
+ WebhookHealthStatusEnum["DEGRADED"] = "degraded";
30
+ WebhookHealthStatusEnum["FAILING"] = "failing";
31
+ })(WebhookHealthStatusEnum || (exports.WebhookHealthStatusEnum = WebhookHealthStatusEnum = {}));
32
+ class WebhookHealthRO {
33
+ }
34
+ exports.WebhookHealthRO = WebhookHealthRO;
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], WebhookHealthRO.prototype, "status", void 0);
39
+ __decorate([
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", String)
42
+ ], WebhookHealthRO.prototype, "lastSuccessAt", void 0);
43
+ __decorate([
44
+ (0, class_transformer_1.Expose)(),
45
+ __metadata("design:type", String)
46
+ ], WebhookHealthRO.prototype, "lastFailureAt", void 0);
47
+ __decorate([
48
+ (0, class_transformer_1.Expose)(),
49
+ __metadata("design:type", Number)
50
+ ], WebhookHealthRO.prototype, "consecutiveFailures", void 0);
51
+ __decorate([
52
+ (0, class_transformer_1.Expose)(),
53
+ __metadata("design:type", Array)
54
+ ], WebhookHealthRO.prototype, "recentErrors", void 0);
@@ -0,0 +1,11 @@
1
+ import { WebhookErrorKindEnum } from './webhook-health.ro';
2
+ /** Результат ручного теста вебхука («ввести ID игры и прогнать событие»). */
3
+ export declare class WebhookTestResultRO {
4
+ ok: boolean;
5
+ httpStatus?: number;
6
+ durationMs: number;
7
+ /** Первые ~500 символов тела ответа приёмника. */
8
+ responseSnippet?: string;
9
+ errorKind?: WebhookErrorKindEnum;
10
+ errorMessage?: string;
11
+ }
@@ -0,0 +1,42 @@
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.WebhookTestResultRO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const webhook_health_ro_1 = require("./webhook-health.ro");
15
+ /** Результат ручного теста вебхука («ввести ID игры и прогнать событие»). */
16
+ class WebhookTestResultRO {
17
+ }
18
+ exports.WebhookTestResultRO = WebhookTestResultRO;
19
+ __decorate([
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", Boolean)
22
+ ], WebhookTestResultRO.prototype, "ok", void 0);
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", Number)
26
+ ], WebhookTestResultRO.prototype, "httpStatus", void 0);
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", Number)
30
+ ], WebhookTestResultRO.prototype, "durationMs", void 0);
31
+ __decorate([
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], WebhookTestResultRO.prototype, "responseSnippet", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], WebhookTestResultRO.prototype, "errorKind", void 0);
39
+ __decorate([
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", String)
42
+ ], WebhookTestResultRO.prototype, "errorMessage", void 0);
@@ -12,6 +12,11 @@ export declare class CreatePromocodeDto {
12
12
  canUseWithOtherPromocodes: boolean;
13
13
  availableForCertificates: boolean;
14
14
  availableForBookings: boolean;
15
+ /**
16
+ * Требовать онлайн-оплату заказа, к которому применён промокод:
17
+ * в виджете скрывается оплата на месте. Доступно для всех типов.
18
+ */
19
+ onlinePaymentOnly: boolean;
15
20
  inside: boolean;
16
21
  canUseWithOtherCertificates: boolean;
17
22
  availableApplyings: number;
@@ -53,21 +53,36 @@ __decorate([
53
53
  __decorate([
54
54
  (0, class_validator_1.IsBoolean)(),
55
55
  (0, class_transformer_1.Expose)(),
56
- (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
56
+ (0, class_transformer_1.Transform)(({ obj, value }) =>
57
+ // Флеш-цена фиксирует итог за игроков — комбинирование с другими
58
+ // промокодами сломало бы «фиксированность». Форсим false.
59
+ obj.type === promocode_type_enum_1.PromocodeTypeEnum.FLASH_PRICE ? false : (value !== null && value !== void 0 ? value : false)),
57
60
  __metadata("design:type", Boolean)
58
61
  ], CreatePromocodeDto.prototype, "canUseWithOtherPromocodes", void 0);
59
62
  __decorate([
60
63
  (0, class_validator_1.IsBoolean)(),
61
64
  (0, class_transformer_1.Expose)(),
62
- (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
65
+ (0, class_transformer_1.Transform)(({ obj, value }) =>
66
+ // Флеш-цена применима только к играм (цена за кол-во игроков).
67
+ obj.type === promocode_type_enum_1.PromocodeTypeEnum.FLASH_PRICE ? false : (value !== null && value !== void 0 ? value : false)),
63
68
  __metadata("design:type", Boolean)
64
69
  ], CreatePromocodeDto.prototype, "availableForCertificates", void 0);
65
70
  __decorate([
66
71
  (0, class_validator_1.IsBoolean)(),
67
72
  (0, class_transformer_1.Expose)(),
68
- (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
73
+ (0, class_transformer_1.Transform)(({ obj, value }) => {
74
+ if (obj.type === promocode_type_enum_1.PromocodeTypeEnum.FLASH_PRICE)
75
+ return true;
76
+ return value === undefined ? true : value;
77
+ }),
69
78
  __metadata("design:type", Boolean)
70
79
  ], CreatePromocodeDto.prototype, "availableForBookings", void 0);
80
+ __decorate([
81
+ (0, class_validator_1.IsBoolean)(),
82
+ (0, class_transformer_1.Expose)(),
83
+ (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
84
+ __metadata("design:type", Boolean)
85
+ ], CreatePromocodeDto.prototype, "onlinePaymentOnly", void 0);
71
86
  __decorate([
72
87
  (0, class_validator_1.IsBoolean)(),
73
88
  (0, class_transformer_1.Expose)(),
@@ -2,5 +2,11 @@ export declare enum PromocodeTypeEnum {
2
2
  FIXED = "fixed",
3
3
  PERCENT_ALL_SUM = "percent_all_sum",
4
4
  PERCENT_BASE_SUM = "percent_base_sum",
5
- PROMOTIONAL = "promotional"
5
+ PROMOTIONAL = "promotional",
6
+ /**
7
+ * «Флеш цена»: `discount` хранит итоговую цену за игроков (в минорных
8
+ * единицах). Скидка динамическая: playersPrice − slotDiscount − flashPrice
9
+ * (не ниже 0). Доп. услуги и наценка на онлайн-оплату идут сверху.
10
+ */
11
+ FLASH_PRICE = "flash_price"
6
12
  }
@@ -7,4 +7,10 @@ var PromocodeTypeEnum;
7
7
  PromocodeTypeEnum["PERCENT_ALL_SUM"] = "percent_all_sum";
8
8
  PromocodeTypeEnum["PERCENT_BASE_SUM"] = "percent_base_sum";
9
9
  PromocodeTypeEnum["PROMOTIONAL"] = "promotional";
10
+ /**
11
+ * «Флеш цена»: `discount` хранит итоговую цену за игроков (в минорных
12
+ * единицах). Скидка динамическая: playersPrice − slotDiscount − flashPrice
13
+ * (не ниже 0). Доп. услуги и наценка на онлайн-оплату идут сверху.
14
+ */
15
+ PromocodeTypeEnum["FLASH_PRICE"] = "flash_price";
10
16
  })(PromocodeTypeEnum || (exports.PromocodeTypeEnum = PromocodeTypeEnum = {}));
@@ -12,6 +12,7 @@ export declare class PromocodeRO extends RO {
12
12
  availableForCertificates: boolean;
13
13
  availableForBookings: boolean;
14
14
  canUseWithOtherCertificates: boolean;
15
+ onlinePaymentOnly: boolean;
15
16
  availableApplyings: number;
16
17
  inside: boolean;
17
18
  validFrom: string;
@@ -50,6 +50,10 @@ __decorate([
50
50
  (0, class_transformer_1.Expose)(),
51
51
  __metadata("design:type", Boolean)
52
52
  ], PromocodeRO.prototype, "canUseWithOtherCertificates", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", Boolean)
56
+ ], PromocodeRO.prototype, "onlinePaymentOnly", void 0);
53
57
  __decorate([
54
58
  (0, class_transformer_1.Expose)(),
55
59
  __metadata("design:type", Number)