@escapenavigator/types 1.10.79 → 1.10.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 (95) hide show
  1. package/dist/admin/aggregator-order/aggregator-order.ro.d.ts +31 -0
  2. package/dist/admin/aggregator-order/aggregator-order.ro.js +108 -0
  3. package/dist/admin/aggregator-order/create-aggregator-order.dto.d.ts +12 -0
  4. package/dist/admin/aggregator-order/create-aggregator-order.dto.js +74 -0
  5. package/dist/admin/aggregator-order/enum/aggregator-order-status.enum.d.ts +5 -0
  6. package/dist/admin/aggregator-order/enum/aggregator-order-status.enum.js +9 -0
  7. package/dist/admin/aggregator-order/query-aggregator-order.dto.d.ts +6 -0
  8. package/dist/admin/aggregator-order/query-aggregator-order.dto.js +29 -0
  9. package/dist/admin/aggregator-order/update-aggregator-order.dto.d.ts +8 -0
  10. package/dist/admin/aggregator-order/update-aggregator-order.dto.js +47 -0
  11. package/dist/agregator/agregator-questroom.ro.js +1 -1
  12. package/dist/balance/balance-item.ro.d.ts +1 -0
  13. package/dist/balance/balance-item.ro.js +4 -0
  14. package/dist/location/create-location.dto.d.ts +2 -0
  15. package/dist/location/create-location.dto.js +13 -0
  16. package/dist/navigator-certificate/create-navigator-certificate-sale.dto.d.ts +21 -0
  17. package/dist/navigator-certificate/create-navigator-certificate-sale.dto.js +116 -0
  18. package/dist/navigator-certificate/create-navigator-certificate-template.dto.d.ts +15 -0
  19. package/dist/navigator-certificate/create-navigator-certificate-template.dto.js +89 -0
  20. package/dist/navigator-certificate/enum/navigator-delivery-tier.enum.d.ts +4 -0
  21. package/dist/navigator-certificate/enum/navigator-delivery-tier.enum.js +8 -0
  22. package/dist/navigator-certificate/index.d.ts +7 -0
  23. package/dist/navigator-certificate/index.js +23 -0
  24. package/dist/navigator-certificate/navigator-certificate-sale.ro.d.ts +29 -0
  25. package/dist/navigator-certificate/navigator-certificate-sale.ro.js +112 -0
  26. package/dist/navigator-certificate/navigator-certificate-template.ro.d.ts +12 -0
  27. package/dist/navigator-certificate/navigator-certificate-template.ro.js +49 -0
  28. package/dist/navigator-certificate/update-navigator-certificate-code.dto.d.ts +3 -0
  29. package/dist/navigator-certificate/update-navigator-certificate-code.dto.js +22 -0
  30. package/dist/navigator-certificate/update-navigator-certificate-template.dto.d.ts +11 -0
  31. package/dist/navigator-certificate/update-navigator-certificate-template.dto.js +72 -0
  32. package/dist/openapi/certificates/openapi-navigator-certificate-sale.ro.d.ts +4 -0
  33. package/dist/openapi/certificates/openapi-navigator-certificate-sale.ro.js +21 -0
  34. package/dist/openapi/orders/openapi-create-preorder.dto.d.ts +1 -1
  35. package/dist/openapi/orders/openapi-create-preorder.dto.js +1 -1
  36. package/dist/openapi/orders/openapi-update-order-slot.dto.d.ts +4 -0
  37. package/dist/openapi/orders/openapi-update-order-slot.dto.js +28 -0
  38. package/dist/openapi/ru-aggregators/aggregators-info.js +7 -7
  39. package/dist/openapi/shared/openapi-order-slot.ro.d.ts +0 -1
  40. package/dist/openapi/shared/openapi-questroom.ro.d.ts +4 -0
  41. package/dist/openapi/shared/openapi-questroom.ro.js +8 -0
  42. package/dist/openapi/slots/openapi-widget-slot.ro.d.ts +2 -1
  43. package/dist/openapi/slots/openapi-widget-slot.ro.js +7 -0
  44. package/dist/openapi/widget/openapi-widget-info.ro.d.ts +9 -8
  45. package/dist/openapi/widget/openapi-widget-info.ro.js +4 -0
  46. package/dist/order/dashboard/dashboard-order.ro.d.ts +1 -0
  47. package/dist/order/dashboard/dashboard-order.ro.js +4 -0
  48. package/dist/order-transaction/create-order-invoice.dto.d.ts +13 -0
  49. package/dist/order-transaction/create-order-invoice.dto.js +75 -0
  50. package/dist/profile/create-profile.dto.d.ts +2 -0
  51. package/dist/profile/create-profile.dto.js +7 -0
  52. package/dist/profile/cross-sale/cross-sale.dto.d.ts +1 -0
  53. package/dist/profile/cross-sale/cross-sale.dto.js +6 -0
  54. package/dist/profile/cross-sale/cross-sale.ro.d.ts +1 -0
  55. package/dist/profile/cross-sale/cross-sale.ro.js +4 -0
  56. package/dist/profile/cross-sale/early-booking/early-booking.dto.d.ts +1 -0
  57. package/dist/profile/cross-sale/early-booking/early-booking.dto.js +6 -0
  58. package/dist/profile/cross-sale/early-booking/early-booking.ro.d.ts +1 -0
  59. package/dist/profile/cross-sale/early-booking/early-booking.ro.js +4 -0
  60. package/dist/profile/cross-sale/retargeting/retargeting.dto.d.ts +1 -0
  61. package/dist/profile/cross-sale/retargeting/retargeting.dto.js +6 -0
  62. package/dist/profile/cross-sale/retargeting/retargeting.ro.d.ts +1 -0
  63. package/dist/profile/cross-sale/retargeting/retargeting.ro.js +4 -0
  64. package/dist/profile/cross-sale/up-sale/up-sale.dto.d.ts +1 -0
  65. package/dist/profile/cross-sale/up-sale/up-sale.dto.js +6 -0
  66. package/dist/profile/cross-sale/up-sale/up-sale.ro.d.ts +1 -0
  67. package/dist/profile/cross-sale/up-sale/up-sale.ro.js +4 -0
  68. package/dist/profile/enum/profile-integration-type.enum.d.ts +2 -0
  69. package/dist/profile/enum/profile-integration-type.enum.js +2 -0
  70. package/dist/profile/profile.ro.d.ts +2 -0
  71. package/dist/profile/profile.ro.js +8 -0
  72. package/dist/profile/update-booking-fields.dto.d.ts +5 -0
  73. package/dist/profile/update-booking-fields.dto.js +48 -0
  74. package/dist/profile/update-current-base.dto.d.ts +2 -0
  75. package/dist/profile/update-current-base.dto.js +10 -0
  76. package/dist/profile/update-current.dto.d.ts +0 -3
  77. package/dist/profile/update-current.dto.js +0 -12
  78. package/dist/questroom/create-questroom.dto.d.ts +1 -0
  79. package/dist/questroom/create-questroom.dto.js +7 -0
  80. package/dist/questroom/questroom.ro.d.ts +0 -3
  81. package/dist/questroom/questroom.ro.js +0 -9
  82. package/dist/questroom/questrooms-list-admin.ro.d.ts +14 -0
  83. package/dist/questroom/questrooms-list-admin.ro.js +35 -0
  84. package/dist/questroom/update-questroom-integration.dto.d.ts +6 -0
  85. package/dist/questroom/update-questroom-integration.dto.js +41 -0
  86. package/dist/slot/slot.ro.d.ts +1 -0
  87. package/dist/transaction/transaction.ro.d.ts +1 -0
  88. package/dist/transaction/transaction.ro.js +4 -0
  89. package/dist/tsconfig.build.tsbuildinfo +1 -1
  90. package/dist/widget/create-widget.dto.d.ts +1 -0
  91. package/dist/widget/create-widget.dto.js +9 -0
  92. package/dist/widget/widget.ro.d.ts +1 -0
  93. package/package.json +2 -2
  94. package/dist/questroom/enum/questroom-integration-type.enum.d.ts +0 -3
  95. package/dist/questroom/enum/questroom-integration-type.enum.js +0 -7
@@ -0,0 +1,75 @@
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.CreateOrderInvoiceDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateOrderInvoiceDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsNumber)(),
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", Number)
21
+ ], CreateOrderInvoiceDto.prototype, "orderId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsPositive)(),
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", Number)
26
+ ], CreateOrderInvoiceDto.prototype, "amount", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", String)
31
+ ], CreateOrderInvoiceDto.prototype, "organizationName", void 0);
32
+ __decorate([
33
+ (0, class_validator_1.IsString)(),
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", String)
36
+ ], CreateOrderInvoiceDto.prototype, "organizationAddress", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsString)(),
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", String)
41
+ ], CreateOrderInvoiceDto.prototype, "organizationTaxId", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsString)(),
44
+ (0, class_transformer_1.Expose)(),
45
+ __metadata("design:type", String)
46
+ ], CreateOrderInvoiceDto.prototype, "organizationRegistrationNumber", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsString)(),
49
+ (0, class_transformer_1.Expose)(),
50
+ __metadata("design:type", String)
51
+ ], CreateOrderInvoiceDto.prototype, "contactPerson", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsString)(),
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", String)
56
+ ], CreateOrderInvoiceDto.prototype, "contactEmail", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsString)(),
59
+ (0, class_validator_1.IsOptional)(),
60
+ (0, class_transformer_1.Expose)(),
61
+ __metadata("design:type", String)
62
+ ], CreateOrderInvoiceDto.prototype, "contactPhone", void 0);
63
+ __decorate([
64
+ (0, class_validator_1.IsString)(),
65
+ (0, class_validator_1.IsOptional)(),
66
+ (0, class_transformer_1.Expose)(),
67
+ __metadata("design:type", String)
68
+ ], CreateOrderInvoiceDto.prototype, "comment", void 0);
69
+ __decorate([
70
+ (0, class_validator_1.IsNumber)(),
71
+ (0, class_validator_1.IsOptional)(),
72
+ (0, class_transformer_1.Expose)(),
73
+ __metadata("design:type", Number)
74
+ ], CreateOrderInvoiceDto.prototype, "taxRate", void 0);
75
+ exports.CreateOrderInvoiceDto = CreateOrderInvoiceDto;
@@ -2,6 +2,7 @@ import { CountriesEnum } from '../shared/enum/countries.enum';
2
2
  import { Languages } from '../shared/enum/languages.enum';
3
3
  import { CrmVerificationEnum } from './enum/crm-verifiaction.enum';
4
4
  import { PartnerProgramEnum } from './enum/partner-program.enum';
5
+ import { ProfileIntegrationTypeEnum } from './enum/profile-integration-type.enum';
5
6
  import { ProfileLoyaltyEnum } from './enum/profile-loyalty.enum';
6
7
  import { ProfileSalesStatus } from './enum/profile-sales-status.enum';
7
8
  import { ProfileStatusEnum } from './enum/profile-step.enum';
@@ -14,6 +15,7 @@ export declare class CreateProfileDto {
14
15
  techStatus: ProfileTechStatusEnum;
15
16
  crmVerification: CrmVerificationEnum;
16
17
  partnerProgram: PartnerProgramEnum;
18
+ integrationType: ProfileIntegrationTypeEnum;
17
19
  title: string;
18
20
  site: string;
19
21
  lastEmailSendId: string;
@@ -16,6 +16,7 @@ const countries_enum_1 = require("../shared/enum/countries.enum");
16
16
  const is_not_blank_1 = require("../shared/is-not-blank");
17
17
  const crm_verifiaction_enum_1 = require("./enum/crm-verifiaction.enum");
18
18
  const partner_program_enum_1 = require("./enum/partner-program.enum");
19
+ const profile_integration_type_enum_1 = require("./enum/profile-integration-type.enum");
19
20
  const profile_loyalty_enum_1 = require("./enum/profile-loyalty.enum");
20
21
  const profile_sales_status_enum_1 = require("./enum/profile-sales-status.enum");
21
22
  const profile_step_enum_1 = require("./enum/profile-step.enum");
@@ -48,6 +49,12 @@ __decorate([
48
49
  (0, class_transformer_1.Expose)(),
49
50
  __metadata("design:type", String)
50
51
  ], CreateProfileDto.prototype, "partnerProgram", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsOptional)(),
54
+ (0, class_validator_1.IsEnum)(profile_integration_type_enum_1.ProfileIntegrationTypeEnum),
55
+ (0, class_transformer_1.Expose)(),
56
+ __metadata("design:type", String)
57
+ ], CreateProfileDto.prototype, "integrationType", void 0);
51
58
  __decorate([
52
59
  (0, is_not_blank_1.IsNotBlank)(),
53
60
  (0, class_transformer_1.Expose)(),
@@ -12,5 +12,6 @@ export declare class CrossSaleDto {
12
12
  discount: number;
13
13
  discountValidityDays: number;
14
14
  discountType: CrossSaleDiscountTypeEnum;
15
+ sendToAllParticipants?: boolean;
15
16
  locales: CrossSaleLocaleDto[];
16
17
  }
@@ -72,6 +72,12 @@ __decorate([
72
72
  (0, class_transformer_1.Expose)(),
73
73
  __metadata("design:type", String)
74
74
  ], CrossSaleDto.prototype, "discountType", void 0);
75
+ __decorate([
76
+ (0, class_validator_1.IsBoolean)(),
77
+ (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : true),
78
+ (0, class_transformer_1.Expose)(),
79
+ __metadata("design:type", Boolean)
80
+ ], CrossSaleDto.prototype, "sendToAllParticipants", void 0);
75
81
  __decorate([
76
82
  (0, class_transformer_1.Type)(() => CrossSaleLocaleDto),
77
83
  (0, class_validator_1.IsArray)(),
@@ -13,5 +13,6 @@ export declare class CrossSaleRO extends RO {
13
13
  discountValidityDays: number;
14
14
  discount: number;
15
15
  discountType: CrossSaleDiscountTypeEnum;
16
+ sendToAllParticipants: boolean;
16
17
  locales: CrossSaleLocaleRO[];
17
18
  }
@@ -53,6 +53,10 @@ __decorate([
53
53
  (0, class_transformer_1.Expose)(),
54
54
  __metadata("design:type", String)
55
55
  ], CrossSaleRO.prototype, "discountType", void 0);
56
+ __decorate([
57
+ (0, class_transformer_1.Expose)(),
58
+ __metadata("design:type", Boolean)
59
+ ], CrossSaleRO.prototype, "sendToAllParticipants", void 0);
56
60
  __decorate([
57
61
  (0, class_transformer_1.Expose)(),
58
62
  (0, class_transformer_1.Type)(() => CrossSaleLocaleRO),
@@ -3,5 +3,6 @@ import { CrossSaleLocaleDto } from '../cross-sale.dto';
3
3
  export declare class EarlyBookingDto {
4
4
  status: CrossSaleStatusEnum;
5
5
  sendBefore: number;
6
+ sendToAllParticipants?: boolean;
6
7
  locales: CrossSaleLocaleDto[];
7
8
  }
@@ -28,6 +28,12 @@ __decorate([
28
28
  (0, class_transformer_1.Expose)(),
29
29
  __metadata("design:type", Number)
30
30
  ], EarlyBookingDto.prototype, "sendBefore", void 0);
31
+ __decorate([
32
+ (0, class_validator_1.IsBoolean)(),
33
+ (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : true),
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", Boolean)
36
+ ], EarlyBookingDto.prototype, "sendToAllParticipants", void 0);
31
37
  __decorate([
32
38
  (0, class_transformer_1.Type)(() => cross_sale_dto_1.CrossSaleLocaleDto),
33
39
  (0, class_validator_1.IsArray)(),
@@ -4,5 +4,6 @@ import { CrossSaleLocaleRO } from '../cross-sale.ro';
4
4
  export declare class EarlyBookingRO extends RO {
5
5
  sendBefore: number;
6
6
  status: CrossSaleStatusEnum;
7
+ sendToAllParticipants: boolean;
7
8
  locales: CrossSaleLocaleRO[];
8
9
  }
@@ -24,6 +24,10 @@ __decorate([
24
24
  (0, class_transformer_1.Expose)(),
25
25
  __metadata("design:type", String)
26
26
  ], EarlyBookingRO.prototype, "status", void 0);
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", Boolean)
30
+ ], EarlyBookingRO.prototype, "sendToAllParticipants", void 0);
27
31
  __decorate([
28
32
  (0, class_transformer_1.Expose)(),
29
33
  (0, class_transformer_1.Type)(() => cross_sale_ro_1.CrossSaleLocaleRO),
@@ -6,5 +6,6 @@ export declare class RetargetingDto {
6
6
  discount: number;
7
7
  discountValidityDays: number;
8
8
  discountType: CrossSaleDiscountTypeEnum;
9
+ sendToAllParticipants?: boolean;
9
10
  locales: CrossSaleLocaleDto[];
10
11
  }
@@ -39,6 +39,12 @@ __decorate([
39
39
  (0, class_transformer_1.Expose)(),
40
40
  __metadata("design:type", String)
41
41
  ], RetargetingDto.prototype, "discountType", void 0);
42
+ __decorate([
43
+ (0, class_validator_1.IsBoolean)(),
44
+ (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : true),
45
+ (0, class_transformer_1.Expose)(),
46
+ __metadata("design:type", Boolean)
47
+ ], RetargetingDto.prototype, "sendToAllParticipants", void 0);
42
48
  __decorate([
43
49
  (0, class_transformer_1.Type)(() => cross_sale_dto_1.CrossSaleLocaleDto),
44
50
  (0, class_validator_1.IsArray)(),
@@ -7,5 +7,6 @@ export declare class RetargetingRO extends RO {
7
7
  discountValidityDays: number;
8
8
  discount: number;
9
9
  discountType: CrossSaleDiscountTypeEnum;
10
+ sendToAllParticipants: boolean;
10
11
  locales: CrossSaleLocaleRO[];
11
12
  }
@@ -33,6 +33,10 @@ __decorate([
33
33
  (0, class_transformer_1.Expose)(),
34
34
  __metadata("design:type", String)
35
35
  ], RetargetingRO.prototype, "discountType", void 0);
36
+ __decorate([
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", Boolean)
39
+ ], RetargetingRO.prototype, "sendToAllParticipants", void 0);
36
40
  __decorate([
37
41
  (0, class_transformer_1.Expose)(),
38
42
  (0, class_transformer_1.Type)(() => cross_sale_ro_1.CrossSaleLocaleRO),
@@ -4,5 +4,6 @@ export declare class UpSaleDto {
4
4
  status: CrossSaleStatusEnum;
5
5
  sendBefore: number;
6
6
  sendImmediately: boolean;
7
+ sendToAllParticipants?: boolean;
7
8
  locales: CrossSaleLocaleDto[];
8
9
  }
@@ -34,6 +34,12 @@ __decorate([
34
34
  (0, class_transformer_1.Expose)(),
35
35
  __metadata("design:type", Boolean)
36
36
  ], UpSaleDto.prototype, "sendImmediately", void 0);
37
+ __decorate([
38
+ (0, class_validator_1.IsBoolean)(),
39
+ (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : true),
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", Boolean)
42
+ ], UpSaleDto.prototype, "sendToAllParticipants", void 0);
37
43
  __decorate([
38
44
  (0, class_transformer_1.Type)(() => cross_sale_dto_1.CrossSaleLocaleDto),
39
45
  (0, class_validator_1.IsArray)(),
@@ -5,5 +5,6 @@ export declare class UpSaleRO extends RO {
5
5
  sendBefore: number;
6
6
  status: CrossSaleStatusEnum;
7
7
  sendImmediately: boolean;
8
+ sendToAllParticipants: boolean;
8
9
  locales: CrossSaleLocaleRO[];
9
10
  }
@@ -28,6 +28,10 @@ __decorate([
28
28
  (0, class_transformer_1.Expose)(),
29
29
  __metadata("design:type", Boolean)
30
30
  ], UpSaleRO.prototype, "sendImmediately", void 0);
31
+ __decorate([
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", Boolean)
34
+ ], UpSaleRO.prototype, "sendToAllParticipants", void 0);
31
35
  __decorate([
32
36
  (0, class_transformer_1.Expose)(),
33
37
  (0, class_transformer_1.Type)(() => cross_sale_ro_1.CrossSaleLocaleRO),
@@ -1,4 +1,6 @@
1
1
  export declare enum ProfileIntegrationTypeEnum {
2
2
  BOOKEO = "bookeo",
3
+ MYERP = "myerp",
4
+ KVESTADMIN = "kvestadmin",
3
5
  NONE = "none"
4
6
  }
@@ -4,5 +4,7 @@ exports.ProfileIntegrationTypeEnum = void 0;
4
4
  var ProfileIntegrationTypeEnum;
5
5
  (function (ProfileIntegrationTypeEnum) {
6
6
  ProfileIntegrationTypeEnum["BOOKEO"] = "bookeo";
7
+ ProfileIntegrationTypeEnum["MYERP"] = "myerp";
8
+ ProfileIntegrationTypeEnum["KVESTADMIN"] = "kvestadmin";
7
9
  ProfileIntegrationTypeEnum["NONE"] = "none";
8
10
  })(ProfileIntegrationTypeEnum = exports.ProfileIntegrationTypeEnum || (exports.ProfileIntegrationTypeEnum = {}));
@@ -28,6 +28,8 @@ export declare class ProfileRO {
28
28
  createdAt: Date;
29
29
  title: string;
30
30
  legalTitle: string;
31
+ legalAddress?: string;
32
+ legalTaxId?: string;
31
33
  phoneForCustomers: string;
32
34
  logo: string;
33
35
  mainEmail: string;
@@ -102,6 +102,14 @@ __decorate([
102
102
  (0, class_transformer_1.Expose)(),
103
103
  __metadata("design:type", String)
104
104
  ], ProfileRO.prototype, "legalTitle", void 0);
105
+ __decorate([
106
+ (0, class_transformer_1.Expose)(),
107
+ __metadata("design:type", String)
108
+ ], ProfileRO.prototype, "legalAddress", void 0);
109
+ __decorate([
110
+ (0, class_transformer_1.Expose)(),
111
+ __metadata("design:type", String)
112
+ ], ProfileRO.prototype, "legalTaxId", void 0);
105
113
  __decorate([
106
114
  (0, class_transformer_1.Expose)(),
107
115
  __metadata("design:type", String)
@@ -0,0 +1,5 @@
1
+ import { WidgetBookingFiledEnum } from '../widget/enum/widget-booking-filed.enum';
2
+ export declare class UpdateBookingFieldsDto {
3
+ bookingFields: WidgetBookingFiledEnum[];
4
+ adminBookingFields: WidgetBookingFiledEnum[];
5
+ }
@@ -0,0 +1,48 @@
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.UpdateBookingFieldsDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const widget_booking_filed_enum_1 = require("../widget/enum/widget-booking-filed.enum");
16
+ let HasPhoneOrEmailConstraint = class HasPhoneOrEmailConstraint {
17
+ validate(value, args) {
18
+ if (!value || !Array.isArray(value))
19
+ return false;
20
+ return (value.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.PHONE) ||
21
+ value.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.EMAIL));
22
+ }
23
+ defaultMessage(args) {
24
+ return 'Either phone or email must be selected';
25
+ }
26
+ };
27
+ HasPhoneOrEmailConstraint = __decorate([
28
+ (0, class_validator_1.ValidatorConstraint)({ name: 'hasPhoneOrEmail', async: false })
29
+ ], HasPhoneOrEmailConstraint);
30
+ class UpdateBookingFieldsDto {
31
+ }
32
+ __decorate([
33
+ (0, class_validator_1.IsArray)(),
34
+ (0, class_validator_1.ArrayMinSize)(1),
35
+ (0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
36
+ (0, class_transformer_1.Expose)(),
37
+ (0, class_validator_1.Validate)(HasPhoneOrEmailConstraint),
38
+ __metadata("design:type", Array)
39
+ ], UpdateBookingFieldsDto.prototype, "bookingFields", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsArray)(),
42
+ (0, class_validator_1.ArrayMinSize)(1),
43
+ (0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
44
+ (0, class_transformer_1.Expose)(),
45
+ (0, class_validator_1.Validate)(HasPhoneOrEmailConstraint),
46
+ __metadata("design:type", Array)
47
+ ], UpdateBookingFieldsDto.prototype, "adminBookingFields", void 0);
48
+ exports.UpdateBookingFieldsDto = UpdateBookingFieldsDto;
@@ -2,6 +2,8 @@ import { Languages } from '../shared/enum/languages.enum';
2
2
  export declare class UpdateCurrentBaseDto {
3
3
  title: string;
4
4
  legalTitle: string;
5
+ legalAddress?: string;
6
+ legalTaxId?: string;
5
7
  phoneForCustomers: string;
6
8
  mainEmail: string;
7
9
  availableLanguages: Languages[];
@@ -26,6 +26,16 @@ __decorate([
26
26
  (0, class_transformer_1.Expose)(),
27
27
  __metadata("design:type", String)
28
28
  ], UpdateCurrentBaseDto.prototype, "legalTitle", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsOptional)(),
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", String)
33
+ ], UpdateCurrentBaseDto.prototype, "legalAddress", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsOptional)(),
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], UpdateCurrentBaseDto.prototype, "legalTaxId", void 0);
29
39
  __decorate([
30
40
  (0, is_not_blank_1.IsNotBlank)(),
31
41
  (0, class_transformer_1.Expose)(),
@@ -1,10 +1,7 @@
1
- import { WidgetBookingFiledEnum } from '../widget/enum/widget-booking-filed.enum';
2
1
  import { UpdateCurrentBaseDto } from './update-current-base.dto';
3
2
  export declare class UpdateCurrentDto extends UpdateCurrentBaseDto {
4
3
  agreementLink: string;
5
4
  site: string;
6
- bookingFields: WidgetBookingFiledEnum[];
7
- adminBookingFields: WidgetBookingFiledEnum[];
8
5
  logo: string;
9
6
  gaEnabled: boolean;
10
7
  fbPixelEnabled: boolean;
@@ -25,18 +25,6 @@ __decorate([
25
25
  (0, class_transformer_1.Expose)(),
26
26
  __metadata("design:type", String)
27
27
  ], UpdateCurrentDto.prototype, "site", void 0);
28
- __decorate([
29
- (0, class_validator_1.IsArray)(),
30
- (0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
31
- (0, class_transformer_1.Expose)(),
32
- __metadata("design:type", Array)
33
- ], UpdateCurrentDto.prototype, "bookingFields", void 0);
34
- __decorate([
35
- (0, class_validator_1.IsArray)(),
36
- (0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
37
- (0, class_transformer_1.Expose)(),
38
- __metadata("design:type", Array)
39
- ], UpdateCurrentDto.prototype, "adminBookingFields", void 0);
40
28
  __decorate([
41
29
  (0, class_validator_1.IsOptional)(),
42
30
  (0, class_transformer_1.Expose)(),
@@ -50,5 +50,6 @@ export declare class CreateQuestroomDto {
50
50
  modes: Mode[];
51
51
  photoFrame: string;
52
52
  alternativeScenarioIds: number[];
53
+ flexPlayersSelect?: boolean;
53
54
  }
54
55
  export {};
@@ -274,4 +274,11 @@ __decorate([
274
274
  (0, class_transformer_1.Expose)(),
275
275
  __metadata("design:type", Array)
276
276
  ], CreateQuestroomDto.prototype, "alternativeScenarioIds", void 0);
277
+ __decorate([
278
+ (0, class_validator_1.IsOptional)(),
279
+ (0, class_validator_1.IsBoolean)(),
280
+ (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
281
+ (0, class_transformer_1.Expose)(),
282
+ __metadata("design:type", Boolean)
283
+ ], CreateQuestroomDto.prototype, "flexPlayersSelect", void 0);
277
284
  exports.CreateQuestroomDto = CreateQuestroomDto;
@@ -3,7 +3,6 @@ import { TagsEnum } from '../shared/enum/tags.enum';
3
3
  import { RO } from '../shared/ro-class';
4
4
  import { QuestroomActorsEnum } from './enum/questroom-actors.enum';
5
5
  import { QuestroomConfirmTypeEnum } from './enum/questroom-confirm-type.enum';
6
- import { QuestroomIntegrationTypeEnum } from './enum/questroom-integration-type.enum';
7
6
  import { QuestroomTypeEnum } from './enum/questroom-type.enum';
8
7
  export declare class QuestroomLocale {
9
8
  id: number;
@@ -53,8 +52,6 @@ export declare class QuestroomRO extends RO {
53
52
  reviewsCount: number;
54
53
  top: boolean;
55
54
  closed: boolean;
56
- integrationRef: number;
57
- integrationType: QuestroomIntegrationTypeEnum;
58
55
  awailableForNavigator: boolean;
59
56
  awailableForWidgets: boolean;
60
57
  paypalCashbox: number;
@@ -16,7 +16,6 @@ const languages_enum_1 = require("../shared/enum/languages.enum");
16
16
  const ro_class_1 = require("../shared/ro-class");
17
17
  const questroom_actors_enum_1 = require("./enum/questroom-actors.enum");
18
18
  const questroom_confirm_type_enum_1 = require("./enum/questroom-confirm-type.enum");
19
- const questroom_integration_type_enum_1 = require("./enum/questroom-integration-type.enum");
20
19
  const questroom_type_enum_1 = require("./enum/questroom-type.enum");
21
20
  class QuestroomLocale {
22
21
  }
@@ -201,14 +200,6 @@ __decorate([
201
200
  (0, class_transformer_1.Expose)(),
202
201
  __metadata("design:type", Boolean)
203
202
  ], QuestroomRO.prototype, "closed", void 0);
204
- __decorate([
205
- (0, class_transformer_1.Expose)(),
206
- __metadata("design:type", Number)
207
- ], QuestroomRO.prototype, "integrationRef", void 0);
208
- __decorate([
209
- (0, class_transformer_1.Expose)(),
210
- __metadata("design:type", String)
211
- ], QuestroomRO.prototype, "integrationType", void 0);
212
203
  __decorate([
213
204
  (0, class_transformer_1.Expose)(),
214
205
  __metadata("design:type", Boolean)
@@ -15,6 +15,19 @@ declare class LocationRO {
15
15
  address: string;
16
16
  city: CityRO;
17
17
  }
18
+ declare class IntegrationRO {
19
+ id?: number;
20
+ key?: string;
21
+ getRequest?: string;
22
+ postRequest?: string;
23
+ priceRequest?: string;
24
+ errorStats?: {
25
+ [errorMessage: string]: number;
26
+ };
27
+ slowRequestStats?: {
28
+ [requestType: string]: number;
29
+ };
30
+ }
18
31
  declare class MetaRO {
19
32
  mk: string;
20
33
  morty: string;
@@ -47,5 +60,6 @@ export declare class AdminQuestroomsListRO {
47
60
  location: LocationRO;
48
61
  meta: MetaRO;
49
62
  ai: AiRO;
63
+ integration?: IntegrationRO;
50
64
  }
51
65
  export {};
@@ -54,6 +54,36 @@ __decorate([
54
54
  (0, class_transformer_1.Expose)(),
55
55
  __metadata("design:type", CityRO)
56
56
  ], LocationRO.prototype, "city", void 0);
57
+ class IntegrationRO {
58
+ }
59
+ __decorate([
60
+ (0, class_transformer_1.Expose)(),
61
+ __metadata("design:type", Number)
62
+ ], IntegrationRO.prototype, "id", void 0);
63
+ __decorate([
64
+ (0, class_transformer_1.Expose)(),
65
+ __metadata("design:type", String)
66
+ ], IntegrationRO.prototype, "key", void 0);
67
+ __decorate([
68
+ (0, class_transformer_1.Expose)(),
69
+ __metadata("design:type", String)
70
+ ], IntegrationRO.prototype, "getRequest", void 0);
71
+ __decorate([
72
+ (0, class_transformer_1.Expose)(),
73
+ __metadata("design:type", String)
74
+ ], IntegrationRO.prototype, "postRequest", void 0);
75
+ __decorate([
76
+ (0, class_transformer_1.Expose)(),
77
+ __metadata("design:type", String)
78
+ ], IntegrationRO.prototype, "priceRequest", void 0);
79
+ __decorate([
80
+ (0, class_transformer_1.Expose)(),
81
+ __metadata("design:type", Object)
82
+ ], IntegrationRO.prototype, "errorStats", void 0);
83
+ __decorate([
84
+ (0, class_transformer_1.Expose)(),
85
+ __metadata("design:type", Object)
86
+ ], IntegrationRO.prototype, "slowRequestStats", void 0);
57
87
  class MetaRO {
58
88
  }
59
89
  __decorate([
@@ -173,4 +203,9 @@ __decorate([
173
203
  (0, class_transformer_1.Expose)(),
174
204
  __metadata("design:type", AiRO)
175
205
  ], AdminQuestroomsListRO.prototype, "ai", void 0);
206
+ __decorate([
207
+ (0, class_transformer_1.Type)(() => IntegrationRO),
208
+ (0, class_transformer_1.Expose)(),
209
+ __metadata("design:type", IntegrationRO)
210
+ ], AdminQuestroomsListRO.prototype, "integration", void 0);
176
211
  exports.AdminQuestroomsListRO = AdminQuestroomsListRO;
@@ -0,0 +1,6 @@
1
+ export declare class UpdateQuestroomIntegrationDto {
2
+ key?: string;
3
+ getRequest?: string;
4
+ postRequest?: string;
5
+ priceRequest?: string;
6
+ }
@@ -0,0 +1,41 @@
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.UpdateQuestroomIntegrationDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class UpdateQuestroomIntegrationDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsOptional)(),
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], UpdateQuestroomIntegrationDto.prototype, "key", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsUrl)(),
25
+ (0, class_validator_1.ValidateIf)((_, val) => !!val),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], UpdateQuestroomIntegrationDto.prototype, "getRequest", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsUrl)(),
31
+ (0, class_validator_1.ValidateIf)((_, val) => !!val),
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], UpdateQuestroomIntegrationDto.prototype, "postRequest", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsUrl)(),
37
+ (0, class_validator_1.ValidateIf)((_, val) => !!val),
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], UpdateQuestroomIntegrationDto.prototype, "priceRequest", void 0);
41
+ exports.UpdateQuestroomIntegrationDto = UpdateQuestroomIntegrationDto;
@@ -42,6 +42,7 @@ export type SlotRO = {
42
42
  payed: number;
43
43
  code: string;
44
44
  moderatorId: number;
45
+ otherParticipantsIds: number[];
45
46
  clientName: string;
46
47
  };
47
48
  };
@@ -49,5 +49,6 @@ export declare class TransactionRO extends RO {
49
49
  paymentPeriod: string;
50
50
  recognition: RecognitionTypeEnum;
51
51
  paymentPeriodEnd: string;
52
+ invoiceLink?: string;
52
53
  }
53
54
  export {};