@escapenavigator/types 1.6.83 → 1.6.85

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 (24) hide show
  1. package/dist/openapi/shared/openapi-booking-rule.ro.js +2 -0
  2. package/dist/openapi/slots/openapi-week-schedule.dto.js +10 -0
  3. package/dist/openapi/slots/openapi-widget-slot.ro.d.ts +1 -1
  4. package/dist/openapi/slots/openapi-widget-slot.ro.js +22 -0
  5. package/dist/openapi/widget/openapi-widget-info.ro.d.ts +4 -0
  6. package/dist/openapi/widget/openapi-widget-info.ro.js +10 -0
  7. package/dist/profile/admin-profile.ro.d.ts +1 -0
  8. package/dist/profile/admin-profile.ro.js +4 -0
  9. package/dist/profile/create-profile.dto.d.ts +1 -0
  10. package/dist/profile/create-profile.dto.js +5 -0
  11. package/dist/profile/email/email-campaign.ro.d.ts +1 -0
  12. package/dist/profile/email/email-campaign.ro.js +4 -0
  13. package/dist/profile/query-admin-profile.dto.d.ts +2 -0
  14. package/dist/profile/query-admin-profile.dto.js +8 -0
  15. package/dist/profile/widget-customization/enum/widget-style.enum.d.ts +4 -0
  16. package/dist/profile/widget-customization/enum/widget-style.enum.js +8 -0
  17. package/dist/profile/widget-customization/enum/widget-view.enum.d.ts +4 -0
  18. package/dist/profile/widget-customization/enum/widget-view.enum.js +8 -0
  19. package/dist/profile/widget-customization/update-widget-customization.dto.d.ts +4 -0
  20. package/dist/profile/widget-customization/update-widget-customization.dto.js +12 -0
  21. package/dist/profile/widget-customization/widget-customization.ro.d.ts +4 -0
  22. package/dist/profile/widget-customization/widget-customization.ro.js +10 -0
  23. package/dist/tsconfig.build.tsbuildinfo +1 -1
  24. package/package.json +3 -2
@@ -10,12 +10,14 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.OpenapiBokingRuleRO = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
13
14
  const class_transformer_1 = require("class-transformer");
14
15
  const questroom_cancelation_type_enum_1 = require("../../questroom/enum/questroom-cancelation-type.enum");
15
16
  const prepayment_type_enum_1 = require("../../slot/enum/prepayment-type.enum");
16
17
  class OpenapiBokingRuleRO {
17
18
  }
18
19
  __decorate([
20
+ (0, swagger_1.ApiProperty)(),
19
21
  (0, class_transformer_1.Expose)(),
20
22
  __metadata("design:type", Number)
21
23
  ], OpenapiBokingRuleRO.prototype, "prepayment", void 0);
@@ -10,10 +10,20 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.OpenapiWeekScheduleDto = void 0;
13
+ const swagger_1 = require("@nestjs/swagger");
13
14
  const is_not_blank_1 = require("../../shared/is-not-blank");
14
15
  class OpenapiWeekScheduleDto {
15
16
  }
16
17
  __decorate([
18
+ (0, swagger_1.ApiProperty)({
19
+ minimum: 0,
20
+ maximum: 10000,
21
+ title: 'Page',
22
+ exclusiveMaximum: true,
23
+ exclusiveMinimum: true,
24
+ format: 'int32',
25
+ default: 0,
26
+ }),
17
27
  (0, is_not_blank_1.IsNotBlank)(),
18
28
  __metadata("design:type", Number)
19
29
  ], OpenapiWeekScheduleDto.prototype, "questroomId", void 0);
@@ -13,5 +13,5 @@ export declare class OpenapiSlotRO {
13
13
  tariff: OpenapiTariffRO;
14
14
  status: 'bussy' | 'call' | 'free' | 'hold' | 'selected' | 'done' | 'no-resources';
15
15
  rule: OpenapiBokingRuleRO;
16
- privateEvent: boolean;
16
+ privateEvent?: boolean;
17
17
  }
@@ -11,58 +11,80 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.OpenapiSlotRO = void 0;
13
13
  /* eslint-disable max-classes-per-file */
14
+ const swagger_1 = require("@nestjs/swagger");
14
15
  const class_transformer_1 = require("class-transformer");
15
16
  const openapi_booking_rule_ro_1 = require("../shared/openapi-booking-rule.ro");
16
17
  const openapi_tariff_ro_1 = require("../shared/openapi-tariff.ro");
18
+ var SType;
19
+ (function (SType) {
20
+ SType["BOOKEO"] = "booceo";
21
+ SType["CRM"] = "crm";
22
+ })(SType || (SType = {}));
17
23
  class OpenapiSlotRO {
18
24
  }
19
25
  __decorate([
26
+ (0, swagger_1.ApiProperty)({
27
+ description: 'Escape rooms can provide other api for slots',
28
+ enum: SType,
29
+ required: false,
30
+ }),
20
31
  (0, class_transformer_1.Expose)(),
21
32
  __metadata("design:type", String)
22
33
  ], OpenapiSlotRO.prototype, "type", void 0);
23
34
  __decorate([
35
+ (0, swagger_1.ApiProperty)(),
24
36
  (0, class_transformer_1.Expose)(),
25
37
  __metadata("design:type", Number)
26
38
  ], OpenapiSlotRO.prototype, "questroomId", void 0);
27
39
  __decorate([
40
+ (0, swagger_1.ApiProperty)(),
28
41
  (0, class_transformer_1.Expose)(),
29
42
  (0, class_transformer_1.Transform)(({ value }) => value || null),
30
43
  __metadata("design:type", String)
31
44
  ], OpenapiSlotRO.prototype, "productId", void 0);
32
45
  __decorate([
46
+ (0, swagger_1.ApiProperty)(),
33
47
  (0, class_transformer_1.Expose)(),
34
48
  __metadata("design:type", String)
35
49
  ], OpenapiSlotRO.prototype, "eventId", void 0);
36
50
  __decorate([
51
+ (0, swagger_1.ApiProperty)(),
37
52
  (0, class_transformer_1.Expose)(),
38
53
  __metadata("design:type", String)
39
54
  ], OpenapiSlotRO.prototype, "start", void 0);
40
55
  __decorate([
56
+ (0, swagger_1.ApiProperty)(),
41
57
  (0, class_transformer_1.Expose)(),
42
58
  __metadata("design:type", String)
43
59
  ], OpenapiSlotRO.prototype, "end", void 0);
44
60
  __decorate([
61
+ (0, swagger_1.ApiProperty)(),
45
62
  (0, class_transformer_1.Expose)(),
46
63
  __metadata("design:type", String)
47
64
  ], OpenapiSlotRO.prototype, "date", void 0);
48
65
  __decorate([
66
+ (0, swagger_1.ApiProperty)(),
49
67
  (0, class_transformer_1.Expose)(),
50
68
  __metadata("design:type", Number)
51
69
  ], OpenapiSlotRO.prototype, "numSeatsAvailable", void 0);
52
70
  __decorate([
71
+ (0, swagger_1.ApiProperty)(),
53
72
  (0, class_transformer_1.Expose)(),
54
73
  __metadata("design:type", openapi_tariff_ro_1.OpenapiTariffRO)
55
74
  ], OpenapiSlotRO.prototype, "tariff", void 0);
56
75
  __decorate([
76
+ (0, swagger_1.ApiProperty)(),
57
77
  (0, class_transformer_1.Expose)(),
58
78
  __metadata("design:type", String)
59
79
  ], OpenapiSlotRO.prototype, "status", void 0);
60
80
  __decorate([
81
+ (0, swagger_1.ApiProperty)(),
61
82
  (0, class_transformer_1.Expose)(),
62
83
  (0, class_transformer_1.Type)(() => openapi_booking_rule_ro_1.OpenapiBokingRuleRO),
63
84
  __metadata("design:type", openapi_booking_rule_ro_1.OpenapiBokingRuleRO)
64
85
  ], OpenapiSlotRO.prototype, "rule", void 0);
65
86
  __decorate([
87
+ (0, swagger_1.ApiProperty)(),
66
88
  (0, class_transformer_1.Expose)(),
67
89
  (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
68
90
  __metadata("design:type", Boolean)
@@ -1,4 +1,6 @@
1
1
  import { ProfileCurrencyEnum } from '../../profile/enum/profile-currency';
2
+ import { WidgetStyleEnum } from '../../profile/widget-customization/enum/widget-style.enum';
3
+ import { WidgetViewEnum } from '../../profile/widget-customization/enum/widget-view.enum';
2
4
  import { Languages } from '../../shared/enum/languages.enum';
3
5
  import { WidgetBookingFiledEnum } from '../../widget/enum/widget-booking-filed.enum';
4
6
  import { WidgetTypeEnum } from '../../widget/enum/widget-type.enum';
@@ -10,6 +12,8 @@ declare class Customization {
10
12
  showWrapper: boolean;
11
13
  showOtherQuests: boolean;
12
14
  mainColor: string;
15
+ style: WidgetStyleEnum;
16
+ view: WidgetViewEnum;
13
17
  }
14
18
  declare class MailchimpLocale {
15
19
  text: string;
@@ -14,6 +14,8 @@ exports.OpenapiWidgetInfoRO = void 0;
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const currency_by_country_1 = require("../../constants/currency-by-country");
16
16
  const profile_currency_1 = require("../../profile/enum/profile-currency");
17
+ const widget_style_enum_1 = require("../../profile/widget-customization/enum/widget-style.enum");
18
+ const widget_view_enum_1 = require("../../profile/widget-customization/enum/widget-view.enum");
17
19
  const languages_enum_1 = require("../../shared/enum/languages.enum");
18
20
  const widget_type_enum_1 = require("../../widget/enum/widget-type.enum");
19
21
  const openapi_certificate_template_ro_1 = require("../certificates/openapi-certificate-template.ro");
@@ -37,6 +39,14 @@ __decorate([
37
39
  (0, class_transformer_1.Expose)(),
38
40
  __metadata("design:type", String)
39
41
  ], Customization.prototype, "mainColor", void 0);
42
+ __decorate([
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", String)
45
+ ], Customization.prototype, "style", void 0);
46
+ __decorate([
47
+ (0, class_transformer_1.Expose)(),
48
+ __metadata("design:type", String)
49
+ ], Customization.prototype, "view", void 0);
40
50
  class MailchimpLocale {
41
51
  }
42
52
  __decorate([
@@ -16,6 +16,7 @@ declare class History {
16
16
  export declare class AdminProfileRO {
17
17
  history: History[];
18
18
  partnerProgram: PartnerProgramEnum;
19
+ lastEmailSendId: string;
19
20
  subscriptionStatus: ProfileSubscriptionEnum;
20
21
  crmVerification: CrmVerificationEnum;
21
22
  subscriptionType: ProfileSubscriptionTypeEnum;
@@ -50,6 +50,10 @@ __decorate([
50
50
  (0, class_transformer_1.Expose)(),
51
51
  __metadata("design:type", String)
52
52
  ], AdminProfileRO.prototype, "partnerProgram", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", String)
56
+ ], AdminProfileRO.prototype, "lastEmailSendId", void 0);
53
57
  __decorate([
54
58
  (0, class_transformer_1.Expose)(),
55
59
  __metadata("design:type", String)
@@ -9,6 +9,7 @@ export declare class CreateProfileDto {
9
9
  partnerProgram: PartnerProgramEnum;
10
10
  title: string;
11
11
  site: string;
12
+ lastEmailSendId: string;
12
13
  phoneForCustomers: string;
13
14
  logo: string;
14
15
  nowEscape: boolean;
@@ -46,6 +46,11 @@ __decorate([
46
46
  (0, class_transformer_1.Expose)(),
47
47
  __metadata("design:type", String)
48
48
  ], CreateProfileDto.prototype, "site", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsOptional)(),
51
+ (0, class_transformer_1.Expose)(),
52
+ __metadata("design:type", String)
53
+ ], CreateProfileDto.prototype, "lastEmailSendId", void 0);
49
54
  __decorate([
50
55
  (0, class_validator_1.IsOptional)(),
51
56
  (0, class_transformer_1.Expose)(),
@@ -2,6 +2,7 @@ export declare class EmailCampaignRO {
2
2
  id: number;
3
3
  createdAt: Date;
4
4
  title: string;
5
+ total: number;
5
6
  pending: number;
6
7
  sent: number;
7
8
  opened: number;
@@ -25,6 +25,10 @@ __decorate([
25
25
  (0, class_transformer_1.Expose)(),
26
26
  __metadata("design:type", String)
27
27
  ], EmailCampaignRO.prototype, "title", void 0);
28
+ __decorate([
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", Number)
31
+ ], EmailCampaignRO.prototype, "total", void 0);
28
32
  __decorate([
29
33
  (0, class_transformer_1.Expose)(),
30
34
  __metadata("design:type", Number)
@@ -12,5 +12,7 @@ export declare class QueryAdminProfileDto {
12
12
  status?: ProfileStatusEnum[];
13
13
  country?: CountriesEnum;
14
14
  crm?: string;
15
+ lastEmailSendId?: string;
16
+ notlastEmailSendId?: string;
15
17
  integrationType?: ProfileIntegrationTypeEnum;
16
18
  }
@@ -46,6 +46,14 @@ __decorate([
46
46
  (0, class_transformer_1.Expose)(),
47
47
  __metadata("design:type", String)
48
48
  ], QueryAdminProfileDto.prototype, "crm", void 0);
49
+ __decorate([
50
+ (0, class_transformer_1.Expose)(),
51
+ __metadata("design:type", String)
52
+ ], QueryAdminProfileDto.prototype, "lastEmailSendId", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", String)
56
+ ], QueryAdminProfileDto.prototype, "notlastEmailSendId", void 0);
49
57
  __decorate([
50
58
  (0, class_transformer_1.Expose)(),
51
59
  __metadata("design:type", String)
@@ -0,0 +1,4 @@
1
+ export declare enum WidgetStyleEnum {
2
+ CONSERVATIVE = "conservative",
3
+ BRGHT = "bright"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WidgetStyleEnum = void 0;
4
+ var WidgetStyleEnum;
5
+ (function (WidgetStyleEnum) {
6
+ WidgetStyleEnum["CONSERVATIVE"] = "conservative";
7
+ WidgetStyleEnum["BRGHT"] = "bright";
8
+ })(WidgetStyleEnum = exports.WidgetStyleEnum || (exports.WidgetStyleEnum = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum WidgetViewEnum {
2
+ ROWS = "rows",
3
+ COLUMNS = "columns"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WidgetViewEnum = void 0;
4
+ var WidgetViewEnum;
5
+ (function (WidgetViewEnum) {
6
+ WidgetViewEnum["ROWS"] = "rows";
7
+ WidgetViewEnum["COLUMNS"] = "columns";
8
+ })(WidgetViewEnum = exports.WidgetViewEnum || (exports.WidgetViewEnum = {}));
@@ -1,6 +1,10 @@
1
+ import { WidgetStyleEnum } from './enum/widget-style.enum';
2
+ import { WidgetViewEnum } from './enum/widget-view.enum';
1
3
  export declare class UpdateWidgetCustomizationDto {
2
4
  showBookedSlots: boolean;
3
5
  showWrapper: boolean;
6
+ style: WidgetStyleEnum;
7
+ view: WidgetViewEnum;
4
8
  showOtherQuests: boolean;
5
9
  mainColor: string;
6
10
  }
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UpdateWidgetCustomizationDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
+ const widget_style_enum_1 = require("./enum/widget-style.enum");
16
+ const widget_view_enum_1 = require("./enum/widget-view.enum");
15
17
  class UpdateWidgetCustomizationDto {
16
18
  }
17
19
  __decorate([
@@ -24,6 +26,16 @@ __decorate([
24
26
  (0, class_transformer_1.Expose)(),
25
27
  __metadata("design:type", Boolean)
26
28
  ], UpdateWidgetCustomizationDto.prototype, "showWrapper", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsEnum)(widget_style_enum_1.WidgetStyleEnum),
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", String)
33
+ ], UpdateWidgetCustomizationDto.prototype, "style", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsEnum)(widget_view_enum_1.WidgetViewEnum),
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], UpdateWidgetCustomizationDto.prototype, "view", void 0);
27
39
  __decorate([
28
40
  (0, class_validator_1.IsBoolean)(),
29
41
  (0, class_transformer_1.Expose)(),
@@ -1,6 +1,10 @@
1
+ import { WidgetStyleEnum } from './enum/widget-style.enum';
2
+ import { WidgetViewEnum } from './enum/widget-view.enum';
1
3
  export declare class WidgetCustomizationRO {
2
4
  showBookedSlots: boolean;
3
5
  showWrapper: boolean;
4
6
  showOtherQuests: boolean;
5
7
  mainColor: string;
8
+ style: WidgetStyleEnum;
9
+ view: WidgetViewEnum;
6
10
  }
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.WidgetCustomizationRO = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
+ const widget_style_enum_1 = require("./enum/widget-style.enum");
15
+ const widget_view_enum_1 = require("./enum/widget-view.enum");
14
16
  class WidgetCustomizationRO {
15
17
  }
16
18
  __decorate([
@@ -29,4 +31,12 @@ __decorate([
29
31
  (0, class_transformer_1.Expose)(),
30
32
  __metadata("design:type", String)
31
33
  ], WidgetCustomizationRO.prototype, "mainColor", void 0);
34
+ __decorate([
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], WidgetCustomizationRO.prototype, "style", void 0);
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", String)
41
+ ], WidgetCustomizationRO.prototype, "view", void 0);
32
42
  exports.WidgetCustomizationRO = WidgetCustomizationRO;