@escapenavigator/types 1.10.5 → 1.10.7

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.
@@ -12,6 +12,7 @@ export declare class EmailRO {
12
12
  deleted: boolean;
13
13
  attachmentsLinks: string[];
14
14
  identificator: string;
15
+ messageId: string;
15
16
  status: EmailStatusEnum;
16
17
  subject: string;
17
18
  text: string;
@@ -57,6 +57,10 @@ __decorate([
57
57
  (0, class_transformer_1.Expose)(),
58
58
  __metadata("design:type", String)
59
59
  ], EmailRO.prototype, "identificator", void 0);
60
+ __decorate([
61
+ (0, class_transformer_1.Expose)(),
62
+ __metadata("design:type", String)
63
+ ], EmailRO.prototype, "messageId", void 0);
60
64
  __decorate([
61
65
  (0, class_transformer_1.Expose)(),
62
66
  __metadata("design:type", String)
@@ -45,6 +45,7 @@ export declare type SendEmailRequestParams = {
45
45
  subject: string;
46
46
  logo?: string;
47
47
  tags?: string;
48
+ replyMessageId?: string;
48
49
  data: Context;
49
50
  };
50
51
  export {};
@@ -5,5 +5,6 @@ export declare class SendEmailDto {
5
5
  to: string;
6
6
  from: EmailSenderEnum;
7
7
  subject: string;
8
+ replyMessageId?: string;
8
9
  profileId?: number;
9
10
  }
@@ -41,6 +41,11 @@ __decorate([
41
41
  (0, class_transformer_1.Expose)(),
42
42
  __metadata("design:type", String)
43
43
  ], SendEmailDto.prototype, "subject", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsOptional)(),
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", String)
48
+ ], SendEmailDto.prototype, "replyMessageId", void 0);
44
49
  __decorate([
45
50
  (0, class_validator_1.IsOptional)(),
46
51
  (0, class_validator_1.IsPositive)(),
@@ -35,13 +35,13 @@ __decorate([
35
35
  __decorate([
36
36
  (0, class_validator_1.IsBoolean)(),
37
37
  (0, class_transformer_1.Expose)(),
38
- (0, class_transformer_1.Transform)(({ value }) => (value !== null && value !== void 0 ? value : false)),
38
+ (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
39
39
  __metadata("design:type", Boolean)
40
40
  ], CreatePromocodeDto.prototype, "canUseWithOtherPromocodes", void 0);
41
41
  __decorate([
42
42
  (0, class_validator_1.IsBoolean)(),
43
43
  (0, class_transformer_1.Expose)(),
44
- (0, class_transformer_1.Transform)(({ value }) => (value !== null && value !== void 0 ? value : false)),
44
+ (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : false),
45
45
  __metadata("design:type", Boolean)
46
46
  ], CreatePromocodeDto.prototype, "availableForCertificates", void 0);
47
47
  __decorate([
@@ -9,6 +9,7 @@ export declare class QuestroomAdminRO extends QuestroomRO {
9
9
  awards: QuestroomAwardEnum[];
10
10
  minPrice: number;
11
11
  maxPrice: number;
12
+ oldData: string;
12
13
  top: boolean;
13
14
  verified: boolean;
14
15
  location: LocationAdminRO;
@@ -36,6 +36,10 @@ __decorate([
36
36
  (0, class_transformer_1.Expose)(),
37
37
  __metadata("design:type", Number)
38
38
  ], QuestroomAdminRO.prototype, "maxPrice", void 0);
39
+ __decorate([
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", String)
42
+ ], QuestroomAdminRO.prototype, "oldData", void 0);
39
43
  __decorate([
40
44
  (0, class_transformer_1.Expose)(),
41
45
  __metadata("design:type", Boolean)
@@ -16,6 +16,7 @@ function IsCorrectPlayers(validationOptions) {
16
16
  const maxPlayers = (_b = args.object) === null || _b === void 0 ? void 0 : _b.maxPlayers;
17
17
  const children = ((_c = args.object) === null || _c === void 0 ? void 0 : _c.children) || 0;
18
18
  const total = value + children;
19
+ console.log({ total, value, object: args.object });
19
20
  if (value === undefined)
20
21
  return false;
21
22
  return total <= maxPlayers && total >= minPlayers;