@escapenavigator/types 1.9.11 → 1.9.12

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.
@@ -25,6 +25,7 @@ declare class Penalty {
25
25
  declare class Rule {
26
26
  minHoursForFreeCanceling: number;
27
27
  cancelationRule: QuestroomCancelationTypeEnum;
28
+ cancelationAmount: number;
28
29
  }
29
30
  declare class Slot {
30
31
  id: number;
@@ -74,6 +74,10 @@ __decorate([
74
74
  (0, class_transformer_1.Expose)(),
75
75
  __metadata("design:type", String)
76
76
  ], Rule.prototype, "cancelationRule", void 0);
77
+ __decorate([
78
+ (0, class_transformer_1.Expose)(),
79
+ __metadata("design:type", Number)
80
+ ], Rule.prototype, "cancelationAmount", void 0);
77
81
  class Slot {
78
82
  }
79
83
  __decorate([
@@ -18,6 +18,7 @@ export declare class Utm {
18
18
  declare class Rule {
19
19
  cancelationRule: QuestroomCancelationTypeEnum;
20
20
  minHoursForFreeCanceling: number;
21
+ cancelationAmount: number;
21
22
  }
22
23
  declare class Slot {
23
24
  expiration: string;
@@ -60,6 +60,10 @@ __decorate([
60
60
  (0, class_transformer_1.Expose)(),
61
61
  __metadata("design:type", Number)
62
62
  ], Rule.prototype, "minHoursForFreeCanceling", void 0);
63
+ __decorate([
64
+ (0, class_transformer_1.Expose)(),
65
+ __metadata("design:type", Number)
66
+ ], Rule.prototype, "cancelationAmount", void 0);
63
67
  class Slot {
64
68
  }
65
69
  __decorate([
@@ -1,5 +1,6 @@
1
1
  export declare enum ProfileTagEnum {
2
2
  REJECT = "reject",
3
+ REJECT_INTEGRATION = "reject_integration",
3
4
  PRESENTATION = "presentation",
4
5
  WAIT = "wait_features"
5
6
  }
@@ -4,6 +4,7 @@ exports.ProfileTagEnum = void 0;
4
4
  var ProfileTagEnum;
5
5
  (function (ProfileTagEnum) {
6
6
  ProfileTagEnum["REJECT"] = "reject";
7
+ ProfileTagEnum["REJECT_INTEGRATION"] = "reject_integration";
7
8
  ProfileTagEnum["PRESENTATION"] = "presentation";
8
9
  ProfileTagEnum["WAIT"] = "wait_features";
9
10
  })(ProfileTagEnum = exports.ProfileTagEnum || (exports.ProfileTagEnum = {}));
@@ -0,0 +1,11 @@
1
+ import { SmtpEnum } from './smtp.enum';
2
+ export declare class CreateSmtpDto {
3
+ service: SmtpEnum;
4
+ port: number;
5
+ host: string;
6
+ user: string;
7
+ pass: string;
8
+ sender: string;
9
+ allLocations: boolean;
10
+ locationIds: number[];
11
+ }
@@ -0,0 +1,63 @@
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.CreateSmtpDto = 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
+ const smtp_enum_1 = require("./smtp.enum");
17
+ class CreateSmtpDto {
18
+ }
19
+ __decorate([
20
+ (0, class_validator_1.IsEnum)(smtp_enum_1.SmtpEnum),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], CreateSmtpDto.prototype, "service", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsPositive)(),
26
+ (0, class_validator_1.ValidateIf)(({ service }) => service === smtp_enum_1.SmtpEnum.Custom),
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", Number)
29
+ ], CreateSmtpDto.prototype, "port", void 0);
30
+ __decorate([
31
+ (0, is_not_blank_1.IsNotBlank)(),
32
+ (0, class_validator_1.ValidateIf)(({ service }) => service === smtp_enum_1.SmtpEnum.Custom),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", String)
35
+ ], CreateSmtpDto.prototype, "host", void 0);
36
+ __decorate([
37
+ (0, is_not_blank_1.IsNotBlank)(),
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], CreateSmtpDto.prototype, "user", void 0);
41
+ __decorate([
42
+ (0, is_not_blank_1.IsNotBlank)(),
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", String)
45
+ ], CreateSmtpDto.prototype, "pass", void 0);
46
+ __decorate([
47
+ (0, is_not_blank_1.IsNotBlank)(),
48
+ (0, class_transformer_1.Expose)(),
49
+ __metadata("design:type", String)
50
+ ], CreateSmtpDto.prototype, "sender", void 0);
51
+ __decorate([
52
+ (0, class_validator_1.IsBoolean)(),
53
+ (0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", Boolean)
56
+ ], CreateSmtpDto.prototype, "allLocations", void 0);
57
+ __decorate([
58
+ (0, class_validator_1.IsArray)(),
59
+ (0, class_transformer_1.Transform)(({ value }) => (value && value.length ? value : [])),
60
+ (0, class_transformer_1.Expose)(),
61
+ __metadata("design:type", Array)
62
+ ], CreateSmtpDto.prototype, "locationIds", void 0);
63
+ exports.CreateSmtpDto = CreateSmtpDto;
@@ -0,0 +1,32 @@
1
+ export declare enum SmtpEnum {
2
+ Custom = "custom",
3
+ OneUndOne = "1und1",
4
+ AOL = "AOL",
5
+ DebugMail = "DebugMail.io",
6
+ DynectEmail = "DynectEmail",
7
+ FastMail = "FastMail",
8
+ GandiMail = "GandiMail",
9
+ Gmail = "Gmail",
10
+ GoDaddy = "Godaddy",
11
+ GoDaddyAsia = "GodaddyAsia",
12
+ GoDaddyEurope = "GodaddyEurope",
13
+ HotEE = "hot.ee",
14
+ Hotmail = "Hotmail",
15
+ iCloud = "iCloud",
16
+ MailEE = "mail.ee",
17
+ MailRu = "Mail.ru",
18
+ Mailgun = "Mailgun",
19
+ Mailjet = "Mailjet",
20
+ Mandrill = "Mandrill",
21
+ Naver = "Naver",
22
+ Postmark = "Postmark",
23
+ QQ = "QQ",
24
+ QQex = "QQex",
25
+ SendCloud = "SendCloud",
26
+ SendGrid = "SendGrid",
27
+ SES = "SES",
28
+ Sparkpost = "Sparkpost",
29
+ Yahoo = "Yahoo",
30
+ Yandex = "Yandex",
31
+ Zoho = "Zoho"
32
+ }
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SmtpEnum = void 0;
4
+ var SmtpEnum;
5
+ (function (SmtpEnum) {
6
+ SmtpEnum["Custom"] = "custom";
7
+ SmtpEnum["OneUndOne"] = "1und1";
8
+ SmtpEnum["AOL"] = "AOL";
9
+ SmtpEnum["DebugMail"] = "DebugMail.io";
10
+ SmtpEnum["DynectEmail"] = "DynectEmail";
11
+ SmtpEnum["FastMail"] = "FastMail";
12
+ SmtpEnum["GandiMail"] = "GandiMail";
13
+ SmtpEnum["Gmail"] = "Gmail";
14
+ SmtpEnum["GoDaddy"] = "Godaddy";
15
+ SmtpEnum["GoDaddyAsia"] = "GodaddyAsia";
16
+ SmtpEnum["GoDaddyEurope"] = "GodaddyEurope";
17
+ SmtpEnum["HotEE"] = "hot.ee";
18
+ SmtpEnum["Hotmail"] = "Hotmail";
19
+ SmtpEnum["iCloud"] = "iCloud";
20
+ SmtpEnum["MailEE"] = "mail.ee";
21
+ SmtpEnum["MailRu"] = "Mail.ru";
22
+ SmtpEnum["Mailgun"] = "Mailgun";
23
+ SmtpEnum["Mailjet"] = "Mailjet";
24
+ SmtpEnum["Mandrill"] = "Mandrill";
25
+ SmtpEnum["Naver"] = "Naver";
26
+ SmtpEnum["Postmark"] = "Postmark";
27
+ SmtpEnum["QQ"] = "QQ";
28
+ SmtpEnum["QQex"] = "QQex";
29
+ SmtpEnum["SendCloud"] = "SendCloud";
30
+ SmtpEnum["SendGrid"] = "SendGrid";
31
+ SmtpEnum["SES"] = "SES";
32
+ SmtpEnum["Sparkpost"] = "Sparkpost";
33
+ SmtpEnum["Yahoo"] = "Yahoo";
34
+ SmtpEnum["Yandex"] = "Yandex";
35
+ SmtpEnum["Zoho"] = "Zoho";
36
+ })(SmtpEnum = exports.SmtpEnum || (exports.SmtpEnum = {}));
@@ -0,0 +1,12 @@
1
+ import { RO } from '../../shared/ro-class';
2
+ import { SmtpEnum } from './smtp.enum';
3
+ export declare class SmtpRO extends RO {
4
+ service: SmtpEnum;
5
+ port: number;
6
+ host: string;
7
+ user: string;
8
+ pass: string;
9
+ sender: string;
10
+ allLocations: boolean;
11
+ locationIds: number[];
12
+ }
@@ -0,0 +1,50 @@
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.SmtpRO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const ro_class_1 = require("../../shared/ro-class");
15
+ const smtp_enum_1 = require("./smtp.enum");
16
+ class SmtpRO extends ro_class_1.RO {
17
+ }
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", String)
21
+ ], SmtpRO.prototype, "service", void 0);
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", Number)
25
+ ], SmtpRO.prototype, "port", void 0);
26
+ __decorate([
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", String)
29
+ ], SmtpRO.prototype, "host", void 0);
30
+ __decorate([
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", String)
33
+ ], SmtpRO.prototype, "user", void 0);
34
+ __decorate([
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", String)
37
+ ], SmtpRO.prototype, "pass", void 0);
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", String)
41
+ ], SmtpRO.prototype, "sender", void 0);
42
+ __decorate([
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", Boolean)
45
+ ], SmtpRO.prototype, "allLocations", void 0);
46
+ __decorate([
47
+ (0, class_transformer_1.Expose)(),
48
+ __metadata("design:type", Array)
49
+ ], SmtpRO.prototype, "locationIds", void 0);
50
+ exports.SmtpRO = SmtpRO;
@@ -1,5 +1,6 @@
1
1
  export declare enum QuestroomCancelationTypeEnum {
2
2
  NO = "no",
3
+ FIXED = "fixed",
3
4
  MIN_PRICE = "min_price",
4
5
  HALF_PRICE = "half_price",
5
6
  FULL_PRICE = "full_price"
@@ -4,6 +4,7 @@ exports.QuestroomCancelationTypeEnum = void 0;
4
4
  var QuestroomCancelationTypeEnum;
5
5
  (function (QuestroomCancelationTypeEnum) {
6
6
  QuestroomCancelationTypeEnum["NO"] = "no";
7
+ QuestroomCancelationTypeEnum["FIXED"] = "fixed";
7
8
  QuestroomCancelationTypeEnum["MIN_PRICE"] = "min_price";
8
9
  QuestroomCancelationTypeEnum["HALF_PRICE"] = "half_price";
9
10
  QuestroomCancelationTypeEnum["FULL_PRICE"] = "full_price";
@@ -18,6 +18,7 @@ export declare type SlotRO = {
18
18
  prepayment: number;
19
19
  prepaymentType: PrepaymentTypeEnum;
20
20
  cancelationRule: QuestroomCancelationTypeEnum;
21
+ cancelationAmount: number;
21
22
  minHoursForFreeCanceling: number;
22
23
  };
23
24
  order?: {
@@ -1,5 +1,3 @@
1
- import { CreateSlotDto } from './create-slot.dto';
2
- declare const UpdateSlotDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateSlotDto>>;
3
- export declare class UpdateSlotDto extends UpdateSlotDto_base {
1
+ export declare class UpdateSlotDto {
2
+ start: string;
4
3
  }
5
- export {};
@@ -1,8 +1,22 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.UpdateSlotDto = void 0;
4
- const mapped_types_1 = require("@nestjs/mapped-types");
5
- const create_slot_dto_1 = require("./create-slot.dto");
6
- class UpdateSlotDto extends (0, mapped_types_1.PartialType)(create_slot_dto_1.CreateSlotDto) {
13
+ const class_transformer_1 = require("class-transformer");
14
+ const is_not_blank_1 = require("../shared/is-not-blank");
15
+ class UpdateSlotDto {
7
16
  }
17
+ __decorate([
18
+ (0, is_not_blank_1.IsNotBlank)(),
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", String)
21
+ ], UpdateSlotDto.prototype, "start", void 0);
8
22
  exports.UpdateSlotDto = UpdateSlotDto;
@@ -7,6 +7,7 @@ export declare class CreateRuleDto {
7
7
  prepayment: number;
8
8
  prepaymentType: PrepaymentTypeEnum;
9
9
  cancelationRule: QuestroomCancelationTypeEnum;
10
+ cancelationAmount: number;
10
11
  minHoursForFreeCanceling: number;
11
12
  minHoursForBooking: number;
12
13
  blockingHours: number;
@@ -57,6 +57,12 @@ __decorate([
57
57
  (0, class_transformer_1.Expose)(),
58
58
  __metadata("design:type", String)
59
59
  ], CreateRuleDto.prototype, "cancelationRule", void 0);
60
+ __decorate([
61
+ (0, class_validator_1.ValidateIf)((o) => !o.ruleId && o.cancelationRule === questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.FIXED),
62
+ (0, class_validator_1.IsPositive)(),
63
+ (0, class_transformer_1.Expose)(),
64
+ __metadata("design:type", Number)
65
+ ], CreateRuleDto.prototype, "cancelationAmount", void 0);
60
66
  __decorate([
61
67
  (0, class_validator_1.ValidateIf)((o) => !o.ruleId),
62
68
  (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 24 : value)),
@@ -10,4 +10,5 @@ export declare const defaultRule: {
10
10
  blockingHours: number;
11
11
  openSlotWhenUserInCalendar: boolean;
12
12
  prepayForTourists: boolean;
13
+ cancelationAmount: number;
13
14
  };
@@ -13,4 +13,5 @@ exports.defaultRule = {
13
13
  blockingHours: 2,
14
14
  openSlotWhenUserInCalendar: true,
15
15
  prepayForTourists: false,
16
+ cancelationAmount: 0,
16
17
  };
@@ -9,6 +9,7 @@ export declare class RuleRO {
9
9
  prepayment: number;
10
10
  prepaymentType: PrepaymentTypeEnum;
11
11
  cancelationRule: QuestroomCancelationTypeEnum;
12
+ cancelationAmount: number;
12
13
  minHoursForFreeCanceling: number;
13
14
  minHoursForBooking: number;
14
15
  blockingHours: number;
@@ -47,6 +47,10 @@ __decorate([
47
47
  (0, class_transformer_1.Expose)(),
48
48
  __metadata("design:type", String)
49
49
  ], RuleRO.prototype, "cancelationRule", void 0);
50
+ __decorate([
51
+ (0, class_transformer_1.Expose)(),
52
+ __metadata("design:type", Number)
53
+ ], RuleRO.prototype, "cancelationAmount", void 0);
50
54
  __decorate([
51
55
  (0, class_transformer_1.Expose)(),
52
56
  __metadata("design:type", Number)