@escapenavigator/types 1.4.80 → 1.4.81

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 (83) hide show
  1. package/dist/bookeo/bookeo-info.ro.d.ts +11 -0
  2. package/dist/bookeo/bookeo-order.ro.d.ts +15 -0
  3. package/dist/bookeo/bookeo-weekly-slot.ro.d.ts +9 -0
  4. package/dist/bookeo/bookeo-weekly-slots.dto.d.ts +4 -0
  5. package/dist/bookeo/bookeo-weekly-slots.dto.js +27 -0
  6. package/dist/order/order.ro.d.ts +0 -1
  7. package/dist/profile/enum/profile-step.enum.d.ts +1 -1
  8. package/dist/profile/enum/profile-step.enum.js +1 -1
  9. package/dist/profile/initial-cusomization.dto.d.ts +11 -0
  10. package/dist/profile/initial-cusomization.dto.js +61 -0
  11. package/dist/profile/profile.ro.d.ts +1 -1
  12. package/dist/profile/update-current.dto.d.ts +1 -0
  13. package/dist/profile/update-current.dto.js +5 -0
  14. package/dist/questroom/bind-bookeo.dto.d.ts +4 -0
  15. package/dist/questroom/bind-bookeo.dto.js +27 -0
  16. package/dist/questroom/enum/questroom-integration-type.enum.d.ts +3 -0
  17. package/dist/questroom/enum/questroom-integration-type.enum.js +7 -0
  18. package/dist/questroom/questroom.ro.d.ts +3 -0
  19. package/dist/slot/slot.ro.d.ts +0 -4
  20. package/dist/slot/update-min-hours.dto.d.ts +0 -1
  21. package/dist/slot/update-min-hours.dto.js +0 -6
  22. package/dist/slot-template/slot-template-element.d.ts +0 -1
  23. package/dist/tsconfig.build.tsbuildinfo +1 -1
  24. package/dist/widget/create-widget.dto.js +2 -1
  25. package/dist/widget-openapi/openapi-bookeo-order.ro.d.ts +10 -0
  26. package/dist/widget-openapi/{widget-openapi-certificate-card.ro.d.ts → openapi-certificate-card.ro.d.ts} +1 -1
  27. package/dist/widget-openapi/{widget-openapi-certificate.ro.d.ts → openapi-certificate.ro.d.ts} +1 -1
  28. package/dist/widget-openapi/openapi-clinet-form.dto.d.ts +11 -0
  29. package/dist/widget-openapi/openapi-clinet-form.dto.js +66 -0
  30. package/dist/widget-openapi/openapi-create-bookeo-order.dto.d.ts +9 -0
  31. package/dist/widget-openapi/openapi-create-bookeo-order.dto.js +49 -0
  32. package/dist/widget-openapi/{widget-openapi-create-certificate.dto.d.ts → openapi-create-certificate.dto.d.ts} +1 -1
  33. package/dist/widget-openapi/{widget-openapi-create-certificate.dto.js → openapi-create-certificate.dto.js} +25 -25
  34. package/dist/widget-openapi/{widget-openapi-create-client.dto.d.ts → openapi-create-client.dto.d.ts} +1 -1
  35. package/dist/widget-openapi/{widget-openapi-create-client.dto.js → openapi-create-client.dto.js} +7 -7
  36. package/dist/widget-openapi/{widget-openapi-create-order.dto.d.ts → openapi-create-order.dto.d.ts} +3 -7
  37. package/dist/widget-openapi/{widget-openapi-create-order.dto.js → openapi-create-order.dto.js} +16 -41
  38. package/dist/widget-openapi/{widget-openapi-create-review.dto.d.ts → openapi-create-review.dto.d.ts} +1 -1
  39. package/dist/widget-openapi/{widget-openapi-create-review.dto.js → openapi-create-review.dto.js} +12 -12
  40. package/dist/widget-openapi/openapi-day-schedule.dto.d.ts +4 -0
  41. package/dist/widget-openapi/{widget-openapi-day-schedule.dto.js → openapi-day-schedule.dto.js} +5 -5
  42. package/dist/widget-openapi/{widget-openapi-find-discount-by-code.dto.d.ts → openapi-find-discount-by-code.dto.d.ts} +1 -1
  43. package/dist/widget-openapi/{widget-openapi-find-discount-by-code.dto.js → openapi-find-discount-by-code.dto.js} +9 -9
  44. package/dist/widget-openapi/openapi-find-reviews.dto.d.ts +4 -0
  45. package/dist/widget-openapi/{widget-openapi-find-reviews.dto.js → openapi-find-reviews.dto.js} +5 -5
  46. package/dist/widget-openapi/{widget-openapi-finded-certificate.ro.d.ts → openapi-finded-certificate.ro.d.ts} +1 -1
  47. package/dist/widget-openapi/{widget-openapi-get-widgget-info.dto.d.ts → openapi-get-widgget-info.dto.d.ts} +1 -1
  48. package/dist/widget-openapi/{widget-openapi-get-widgget-info.dto.js → openapi-get-widgget-info.dto.js} +6 -6
  49. package/dist/widget-openapi/{widget-openapi-order.ro.d.ts → openapi-order.ro.d.ts} +3 -3
  50. package/dist/widget-openapi/{widget-openapi-questroom.ro.d.ts → openapi-questroom.ro.d.ts} +1 -1
  51. package/dist/widget-openapi/openapi-questroom.ro.js +2 -0
  52. package/dist/widget-openapi/openapi-review.ro.js +2 -0
  53. package/dist/widget-openapi/openapi-slot-add-hold.dto.d.ts +7 -0
  54. package/dist/widget-openapi/openapi-slot-add-hold.dto.js +40 -0
  55. package/dist/widget-openapi/openapi-slot-add-hold.ro.d.ts +6 -0
  56. package/dist/widget-openapi/openapi-slot-add-hold.ro.js +32 -0
  57. package/dist/widget-openapi/openapi-slot-get-bookeo-price.dto.d.ts +7 -0
  58. package/dist/widget-openapi/openapi-slot-get-bookeo-price.dto.js +43 -0
  59. package/dist/widget-openapi/openapi-slot-get-bookeo-price.ro.d.ts +10 -0
  60. package/dist/widget-openapi/openapi-slot-get-bookeo-price.ro.js +38 -0
  61. package/dist/widget-openapi/openapi-slot-remove-hold.dto.d.ts +6 -0
  62. package/dist/widget-openapi/openapi-slot-remove-hold.dto.js +34 -0
  63. package/dist/widget-openapi/openapi-slots.ro.d.ts +25 -0
  64. package/dist/widget-openapi/openapi-slots.ro.js +2 -0
  65. package/dist/widget-openapi/openapi-week-schedule.dto.d.ts +4 -0
  66. package/dist/widget-openapi/{widget-openapi-week-schedule.dto.js → openapi-week-schedule.dto.js} +5 -5
  67. package/dist/widget-openapi/{widget-openapi.ro.d.ts → openapi-widget.ro.d.ts} +6 -5
  68. package/dist/widget-openapi/openapi-widget.ro.js +2 -0
  69. package/dist/widget-orders/widget-order.ro.js +2 -1
  70. package/package.json +2 -2
  71. package/dist/widget-openapi/widget-openapi-day-schedule.dto.d.ts +0 -4
  72. package/dist/widget-openapi/widget-openapi-find-reviews.dto.d.ts +0 -4
  73. package/dist/widget-openapi/widget-openapi-slot.ro.d.ts +0 -22
  74. package/dist/widget-openapi/widget-openapi-week-schedule.dto.d.ts +0 -4
  75. /package/dist/{widget-openapi/widget-openapi-certificate-card.ro.js → bookeo/bookeo-info.ro.js} +0 -0
  76. /package/dist/{widget-openapi/widget-openapi-certificate.ro.js → bookeo/bookeo-order.ro.js} +0 -0
  77. /package/dist/{widget-openapi/widget-openapi-finded-certificate.ro.js → bookeo/bookeo-weekly-slot.ro.js} +0 -0
  78. /package/dist/widget-openapi/{widget-openapi-order.ro.js → openapi-bookeo-order.ro.js} +0 -0
  79. /package/dist/widget-openapi/{widget-openapi-questroom.ro.js → openapi-certificate-card.ro.js} +0 -0
  80. /package/dist/widget-openapi/{widget-openapi-review.ro.js → openapi-certificate.ro.js} +0 -0
  81. /package/dist/widget-openapi/{widget-openapi-slot.ro.js → openapi-finded-certificate.ro.js} +0 -0
  82. /package/dist/widget-openapi/{widget-openapi.ro.js → openapi-order.ro.js} +0 -0
  83. /package/dist/widget-openapi/{widget-openapi-review.ro.d.ts → openapi-review.ro.d.ts} +0 -0
@@ -9,33 +9,33 @@ 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.WidgetOpenapiFindDiscountByCodeDto = void 0;
12
+ exports.OpenapiFindDiscountByCodeDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const is_not_blank_1 = require("../shared/is-not-blank");
15
- class WidgetOpenapiFindDiscountByCodeDto {
15
+ class OpenapiFindDiscountByCodeDto {
16
16
  }
17
17
  __decorate([
18
18
  (0, is_not_blank_1.IsNotBlank)(),
19
19
  __metadata("design:type", String)
20
- ], WidgetOpenapiFindDiscountByCodeDto.prototype, "code", void 0);
20
+ ], OpenapiFindDiscountByCodeDto.prototype, "code", void 0);
21
21
  __decorate([
22
22
  (0, is_not_blank_1.IsNotBlank)(),
23
23
  __metadata("design:type", String)
24
- ], WidgetOpenapiFindDiscountByCodeDto.prototype, "questroomId", void 0);
24
+ ], OpenapiFindDiscountByCodeDto.prototype, "questroomId", void 0);
25
25
  __decorate([
26
26
  (0, is_not_blank_1.IsNotBlank)(),
27
27
  __metadata("design:type", String)
28
- ], WidgetOpenapiFindDiscountByCodeDto.prototype, "widgetUid", void 0);
28
+ ], OpenapiFindDiscountByCodeDto.prototype, "widgetUid", void 0);
29
29
  __decorate([
30
30
  (0, is_not_blank_1.IsNotBlank)(),
31
31
  __metadata("design:type", String)
32
- ], WidgetOpenapiFindDiscountByCodeDto.prototype, "orderDate", void 0);
32
+ ], OpenapiFindDiscountByCodeDto.prototype, "orderDate", void 0);
33
33
  __decorate([
34
34
  (0, class_validator_1.IsBoolean)(),
35
35
  __metadata("design:type", Boolean)
36
- ], WidgetOpenapiFindDiscountByCodeDto.prototype, "hasCertificates", void 0);
36
+ ], OpenapiFindDiscountByCodeDto.prototype, "hasCertificates", void 0);
37
37
  __decorate([
38
38
  (0, class_validator_1.IsBoolean)(),
39
39
  __metadata("design:type", Boolean)
40
- ], WidgetOpenapiFindDiscountByCodeDto.prototype, "hasPromocodes", void 0);
41
- exports.WidgetOpenapiFindDiscountByCodeDto = WidgetOpenapiFindDiscountByCodeDto;
40
+ ], OpenapiFindDiscountByCodeDto.prototype, "hasPromocodes", void 0);
41
+ exports.OpenapiFindDiscountByCodeDto = OpenapiFindDiscountByCodeDto;
@@ -0,0 +1,4 @@
1
+ export declare class OpenapiFindReviewsDto {
2
+ questroomId: string;
3
+ skip: string;
4
+ }
@@ -9,16 +9,16 @@ 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.WidgetOpenapiFindReviewsDto = void 0;
12
+ exports.OpenapiFindReviewsDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
- class WidgetOpenapiFindReviewsDto {
14
+ class OpenapiFindReviewsDto {
15
15
  }
16
16
  __decorate([
17
17
  (0, class_validator_1.IsNotEmpty)(),
18
18
  __metadata("design:type", String)
19
- ], WidgetOpenapiFindReviewsDto.prototype, "questroomId", void 0);
19
+ ], OpenapiFindReviewsDto.prototype, "questroomId", void 0);
20
20
  __decorate([
21
21
  (0, class_validator_1.IsNotEmpty)(),
22
22
  __metadata("design:type", String)
23
- ], WidgetOpenapiFindReviewsDto.prototype, "skip", void 0);
24
- exports.WidgetOpenapiFindReviewsDto = WidgetOpenapiFindReviewsDto;
23
+ ], OpenapiFindReviewsDto.prototype, "skip", void 0);
24
+ exports.OpenapiFindReviewsDto = OpenapiFindReviewsDto;
@@ -1,5 +1,5 @@
1
1
  import { PromocodeTypeEnum } from '../promocode/emun/promocode-type.enum';
2
- export declare type WidgetOpenapiFindedCertificateRO = {
2
+ export declare type OpenapiFindedCertificateRO = {
3
3
  id: number;
4
4
  nominal: number;
5
5
  code: string;
@@ -1,4 +1,4 @@
1
- export declare class WidgetOpenapiGetWidgetInfoDto {
1
+ export declare class OpenapiGetWidgetInfoDto {
2
2
  questroomId?: string;
3
3
  widgetUid?: string;
4
4
  language: string;
@@ -9,25 +9,25 @@ 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.WidgetOpenapiGetWidgetInfoDto = void 0;
12
+ exports.OpenapiGetWidgetInfoDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
15
  const is_not_blank_1 = require("../shared/is-not-blank");
16
- class WidgetOpenapiGetWidgetInfoDto {
16
+ class OpenapiGetWidgetInfoDto {
17
17
  }
18
18
  __decorate([
19
19
  (0, class_validator_1.IsOptional)(),
20
20
  (0, class_transformer_1.Expose)(),
21
21
  __metadata("design:type", String)
22
- ], WidgetOpenapiGetWidgetInfoDto.prototype, "questroomId", void 0);
22
+ ], OpenapiGetWidgetInfoDto.prototype, "questroomId", void 0);
23
23
  __decorate([
24
24
  (0, class_validator_1.IsOptional)(),
25
25
  (0, class_transformer_1.Expose)(),
26
26
  __metadata("design:type", String)
27
- ], WidgetOpenapiGetWidgetInfoDto.prototype, "widgetUid", void 0);
27
+ ], OpenapiGetWidgetInfoDto.prototype, "widgetUid", void 0);
28
28
  __decorate([
29
29
  (0, is_not_blank_1.IsNotBlank)(),
30
30
  (0, class_transformer_1.Expose)(),
31
31
  __metadata("design:type", String)
32
- ], WidgetOpenapiGetWidgetInfoDto.prototype, "language", void 0);
33
- exports.WidgetOpenapiGetWidgetInfoDto = WidgetOpenapiGetWidgetInfoDto;
32
+ ], OpenapiGetWidgetInfoDto.prototype, "language", void 0);
33
+ exports.OpenapiGetWidgetInfoDto = OpenapiGetWidgetInfoDto;
@@ -1,7 +1,7 @@
1
1
  import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
2
2
  import { Languages } from '../shared/enum/languages.enum';
3
- import { WidgetOpenApiRO } from './widget-openapi.ro';
4
- export declare type WidgetOpenapiOrderRO = {
3
+ import { OpenapiWidgetRO } from './openapi-widget.ro';
4
+ export declare type OpenapiOrderRO = {
5
5
  id: number;
6
6
  createdAt: Date;
7
7
  code: string;
@@ -35,5 +35,5 @@ export declare type WidgetOpenapiOrderRO = {
35
35
  prepaymentAmount?: number;
36
36
  paypalPaymenId?: string;
37
37
  currency: ProfileCurrencyEnum;
38
- questroom: WidgetOpenApiRO['questrooms'][0];
38
+ questroom: OpenapiWidgetRO['questrooms'][0];
39
39
  };
@@ -1,5 +1,5 @@
1
1
  import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
2
- export declare type WidgetOpenApiQuestroomRO = {
2
+ export declare type OpenapiQuestroomRO = {
3
3
  id: number;
4
4
  fear: number;
5
5
  difficult: number;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { SlotType } from './openapi-slots.ro';
2
+ export declare class OpenapiSlotAddHoldDto {
3
+ type: SlotType;
4
+ eventId: string;
5
+ participants: number;
6
+ productId: string;
7
+ }
@@ -0,0 +1,40 @@
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.OpenapiSlotAddHoldDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const is_not_blank_1 = require("../shared/is-not-blank");
16
+ class OpenapiSlotAddHoldDto {
17
+ }
18
+ __decorate([
19
+ (0, is_not_blank_1.IsNotBlank)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], OpenapiSlotAddHoldDto.prototype, "type", void 0);
23
+ __decorate([
24
+ (0, is_not_blank_1.IsNotBlank)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", String)
27
+ ], OpenapiSlotAddHoldDto.prototype, "eventId", void 0);
28
+ __decorate([
29
+ (0, class_validator_1.IsPositive)(),
30
+ (0, class_validator_1.ValidateIf)(({ type }) => type === 'bookeo'),
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", Number)
33
+ ], OpenapiSlotAddHoldDto.prototype, "participants", void 0);
34
+ __decorate([
35
+ (0, is_not_blank_1.IsNotBlank)(),
36
+ (0, class_validator_1.ValidateIf)(({ type }) => type === 'bookeo'),
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], OpenapiSlotAddHoldDto.prototype, "productId", void 0);
40
+ exports.OpenapiSlotAddHoldDto = OpenapiSlotAddHoldDto;
@@ -0,0 +1,6 @@
1
+ export declare class OpenapiSlotAddHoldRO {
2
+ id: string;
3
+ eventId: string;
4
+ apiKey?: string;
5
+ expiration: Date;
6
+ }
@@ -0,0 +1,32 @@
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.OpenapiSlotAddHoldRO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ class OpenapiSlotAddHoldRO {
15
+ }
16
+ __decorate([
17
+ (0, class_transformer_1.Expose)(),
18
+ __metadata("design:type", String)
19
+ ], OpenapiSlotAddHoldRO.prototype, "id", void 0);
20
+ __decorate([
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], OpenapiSlotAddHoldRO.prototype, "eventId", void 0);
24
+ __decorate([
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", String)
27
+ ], OpenapiSlotAddHoldRO.prototype, "apiKey", void 0);
28
+ __decorate([
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", Date)
31
+ ], OpenapiSlotAddHoldRO.prototype, "expiration", void 0);
32
+ exports.OpenapiSlotAddHoldRO = OpenapiSlotAddHoldRO;
@@ -0,0 +1,7 @@
1
+ export declare class OpenapiSlotGetBookeoPriceDto {
2
+ eventId: string;
3
+ participants: number;
4
+ apiKey: string;
5
+ holdId: string;
6
+ productId: string;
7
+ }
@@ -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.OpenapiSlotGetBookeoPriceDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const is_not_blank_1 = require("../shared/is-not-blank");
16
+ class OpenapiSlotGetBookeoPriceDto {
17
+ }
18
+ __decorate([
19
+ (0, is_not_blank_1.IsNotBlank)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], OpenapiSlotGetBookeoPriceDto.prototype, "eventId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsPositive)(),
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", Number)
27
+ ], OpenapiSlotGetBookeoPriceDto.prototype, "participants", void 0);
28
+ __decorate([
29
+ (0, is_not_blank_1.IsNotBlank)(),
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], OpenapiSlotGetBookeoPriceDto.prototype, "apiKey", void 0);
33
+ __decorate([
34
+ (0, is_not_blank_1.IsNotBlank)(),
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], OpenapiSlotGetBookeoPriceDto.prototype, "holdId", void 0);
38
+ __decorate([
39
+ (0, is_not_blank_1.IsNotBlank)(),
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", String)
42
+ ], OpenapiSlotGetBookeoPriceDto.prototype, "productId", void 0);
43
+ exports.OpenapiSlotGetBookeoPriceDto = OpenapiSlotGetBookeoPriceDto;
@@ -0,0 +1,10 @@
1
+ import { OpenapiSlotAddHoldRO } from './openapi-slot-add-hold.ro';
2
+ declare class Total {
3
+ amount: string;
4
+ currency: string;
5
+ }
6
+ export declare class OpenapiSlotGetBookeoPriceRO {
7
+ hold: OpenapiSlotAddHoldRO;
8
+ totalPayable: Total;
9
+ }
10
+ export {};
@@ -0,0 +1,38 @@
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.OpenapiSlotGetBookeoPriceRO = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ const openapi_slot_add_hold_ro_1 = require("./openapi-slot-add-hold.ro");
16
+ class Total {
17
+ }
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", String)
21
+ ], Total.prototype, "amount", void 0);
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", String)
25
+ ], Total.prototype, "currency", void 0);
26
+ class OpenapiSlotGetBookeoPriceRO {
27
+ }
28
+ __decorate([
29
+ (0, class_transformer_1.Type)(() => openapi_slot_add_hold_ro_1.OpenapiSlotAddHoldRO),
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", openapi_slot_add_hold_ro_1.OpenapiSlotAddHoldRO)
32
+ ], OpenapiSlotGetBookeoPriceRO.prototype, "hold", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Type)(() => Total),
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", Total)
37
+ ], OpenapiSlotGetBookeoPriceRO.prototype, "totalPayable", void 0);
38
+ exports.OpenapiSlotGetBookeoPriceRO = OpenapiSlotGetBookeoPriceRO;
@@ -0,0 +1,6 @@
1
+ import { SlotType } from './openapi-slots.ro';
2
+ export declare class OpenapiSlotRemoveHoldDto {
3
+ holdId: string;
4
+ apiKey?: string;
5
+ type: SlotType;
6
+ }
@@ -0,0 +1,34 @@
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.OpenapiSlotRemoveHoldDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const is_not_blank_1 = require("../shared/is-not-blank");
16
+ class OpenapiSlotRemoveHoldDto {
17
+ }
18
+ __decorate([
19
+ (0, is_not_blank_1.IsNotBlank)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], OpenapiSlotRemoveHoldDto.prototype, "holdId", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.ValidateIf)(({ type }) => type === 'bookeo'),
25
+ (0, is_not_blank_1.IsNotBlank)(),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], OpenapiSlotRemoveHoldDto.prototype, "apiKey", void 0);
29
+ __decorate([
30
+ (0, is_not_blank_1.IsNotBlank)(),
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", String)
33
+ ], OpenapiSlotRemoveHoldDto.prototype, "type", void 0);
34
+ exports.OpenapiSlotRemoveHoldDto = OpenapiSlotRemoveHoldDto;
@@ -0,0 +1,25 @@
1
+ import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
2
+ import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
3
+ export declare type SlotType = 'bookeo' | 'crm';
4
+ export declare type OpenapiSlotRO = {
5
+ type: SlotType;
6
+ questroomId: number;
7
+ productId: string | null;
8
+ eventId: string;
9
+ start: string;
10
+ end: string;
11
+ date: string;
12
+ numSeatsAvailable: number | null;
13
+ tariff: {
14
+ [x: string]: number;
15
+ } | null;
16
+ status: 'bussy' | 'call' | 'free';
17
+ rule: {
18
+ prepayment: number;
19
+ prepaymentType: PrepaymentTypeEnum;
20
+ cancelationRule: QuestroomCancelationTypeEnum | null;
21
+ minHoursForFreeCanceling: number | null;
22
+ };
23
+ privateEvent: boolean;
24
+ privateEventOption: boolean;
25
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export declare class OpenapiWeekScheduleDto {
2
+ questroomId: number;
3
+ date: string;
4
+ }
@@ -9,16 +9,16 @@ 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.WidgetOpenapiWeekScheduleDto = void 0;
12
+ exports.OpenapiWeekScheduleDto = void 0;
13
13
  const is_not_blank_1 = require("../shared/is-not-blank");
14
- class WidgetOpenapiWeekScheduleDto {
14
+ class OpenapiWeekScheduleDto {
15
15
  }
16
16
  __decorate([
17
17
  (0, is_not_blank_1.IsNotBlank)(),
18
18
  __metadata("design:type", Number)
19
- ], WidgetOpenapiWeekScheduleDto.prototype, "questroomId", void 0);
19
+ ], OpenapiWeekScheduleDto.prototype, "questroomId", void 0);
20
20
  __decorate([
21
21
  (0, is_not_blank_1.IsNotBlank)(),
22
22
  __metadata("design:type", String)
23
- ], WidgetOpenapiWeekScheduleDto.prototype, "date", void 0);
24
- exports.WidgetOpenapiWeekScheduleDto = WidgetOpenapiWeekScheduleDto;
23
+ ], OpenapiWeekScheduleDto.prototype, "date", void 0);
24
+ exports.OpenapiWeekScheduleDto = OpenapiWeekScheduleDto;
@@ -3,15 +3,16 @@ import { Languages } from '../shared/enum/languages.enum';
3
3
  import { UpsellingResponseObject } from '../upselling/upselling.ro';
4
4
  import { WidgetBookingFiledEnum } from '../widget/enum/widget-booking-filed.enum';
5
5
  import { WidgetTypeEnum } from '../widget/enum/widget-type.enum';
6
- import { WidgetOpenApiCertificateCardRO } from './widget-openapi-certificate-card.ro';
7
- import { WidgetOpenApiQuestroomRO } from './widget-openapi-questroom.ro';
6
+ import { OpenapiCertificateCardRO } from './openapi-certificate-card.ro';
7
+ import { OpenapiQuestroomRO } from './openapi-questroom.ro';
8
8
  declare type Upsellings = Array<Pick<UpsellingResponseObject, 'id' | 'allQuestrooms' | 'questroomsIds' | 'price' | 'title' | 'description'>>;
9
- export declare type WidgetOpenApiRO = {
9
+ export declare type OpenapiWidgetRO = {
10
10
  type: WidgetTypeEnum;
11
- questrooms: WidgetOpenApiQuestroomRO[];
12
- certificates: WidgetOpenApiCertificateCardRO[];
11
+ questrooms: OpenapiQuestroomRO[];
12
+ certificates: OpenapiCertificateCardRO[];
13
13
  upsellings: Upsellings;
14
14
  prepareText: string;
15
+ agreementLink: string;
15
16
  color: string;
16
17
  profileId: number;
17
18
  phone: string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -380,7 +380,8 @@ __decorate([
380
380
  (0, class_transformer_1.Transform)((_a) => {
381
381
  var _b, _c;
382
382
  var _d = _a.value, { locales } = _d, _e = _d.location, { locales: locationLocales } = _e, questroomLocation = __rest(_e, ["locales"]), questroom = __rest(_d, ["locales", "location"]), { obj: { language } } = _a;
383
- return (Object.assign(Object.assign({}, questroom), { title: ((_b = locales.find((l) => l.language === language)) === null || _b === void 0 ? void 0 : _b.title) || questroom.title, location: Object.assign(Object.assign({}, questroomLocation), { howToFind: ((_c = locationLocales.find((l) => l.language === language)) === null || _c === void 0 ? void 0 : _c.howToFind) || questroomLocation.howToFind }) }));
383
+ return (Object.assign(Object.assign({}, questroom), { title: ((_b = locales.find((l) => l.language === language)) === null || _b === void 0 ? void 0 : _b.title) || questroom.title, location: Object.assign(Object.assign({}, questroomLocation), { howToFind: ((_c = locationLocales.find((l) => l.language === language)) === null || _c === void 0 ? void 0 : _c.howToFind) ||
384
+ questroomLocation.howToFind }) }));
384
385
  }),
385
386
  __metadata("design:type", Questroom)
386
387
  ], WidgetOrderRO.prototype, "questroom", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/types",
3
- "version": "1.4.80",
3
+ "version": "1.4.81",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -20,7 +20,7 @@
20
20
  "class-transformer": "^0.5.1",
21
21
  "class-validator": "^0.13.1"
22
22
  },
23
- "gitHead": "75ee4a0b736f25264243eaca5971fb2d2ffdf6cf",
23
+ "gitHead": "a487b83fa9969e33854d06b3af8e5034a4bacc90",
24
24
  "devDependencies": {
25
25
  "@types/validator": "13.0.0",
26
26
  "alphakit-presets-lint": "^1.0.0",
@@ -1,4 +0,0 @@
1
- export declare class WidgetOpenapiDayScheduleDto {
2
- questroomIds: number[];
3
- date: string;
4
- }
@@ -1,4 +0,0 @@
1
- export declare class WidgetOpenapiFindReviewsDto {
2
- questroomId: string;
3
- skip: string;
4
- }
@@ -1,22 +0,0 @@
1
- import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
2
- import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
3
- export declare type WidgetOpenapiSlotResponseObject = {
4
- id: number;
5
- tariff: {
6
- [x: string]: number;
7
- };
8
- questroomId: number;
9
- date: string;
10
- start: string;
11
- end: string;
12
- customMinHours?: number;
13
- rule: {
14
- title: string;
15
- minHoursForBooking: number;
16
- prepayment: number;
17
- prepaymentType: PrepaymentTypeEnum;
18
- cancelationRule: QuestroomCancelationTypeEnum;
19
- minHoursForFreeCanceling: number;
20
- };
21
- buissy: boolean;
22
- };
@@ -1,4 +0,0 @@
1
- export declare class WidgetOpenapiWeekScheduleDto {
2
- questroomId: number;
3
- date: string;
4
- }