@escapenavigator/types 1.4.51 → 1.4.52

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.
@@ -0,0 +1,14 @@
1
+ import { ResponseObject } from '../shared/ro';
2
+ export declare type CertificateUploadedRO = ResponseObject & {
3
+ source: string;
4
+ code: string;
5
+ client: string;
6
+ nominal: number;
7
+ used: string;
8
+ expireDate: string;
9
+ createdDate: string;
10
+ metadata: string;
11
+ order: ResponseObject & {
12
+ orderId: number;
13
+ };
14
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export declare class CheckCertificateUploadDto {
2
+ code: string;
3
+ questroomId: 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.CheckCertificateSaleDto = void 0;
12
+ exports.CheckCertificateUploadDto = void 0;
13
13
  const is_not_blank_1 = require("../shared/is-not-blank");
14
- class CheckCertificateSaleDto {
14
+ class CheckCertificateUploadDto {
15
15
  }
16
16
  __decorate([
17
17
  (0, is_not_blank_1.IsNotBlank)(),
18
18
  __metadata("design:type", String)
19
- ], CheckCertificateSaleDto.prototype, "code", void 0);
19
+ ], CheckCertificateUploadDto.prototype, "code", void 0);
20
20
  __decorate([
21
21
  (0, is_not_blank_1.IsNotBlank)(),
22
22
  __metadata("design:type", String)
23
- ], CheckCertificateSaleDto.prototype, "questroomId", void 0);
24
- exports.CheckCertificateSaleDto = CheckCertificateSaleDto;
23
+ ], CheckCertificateUploadDto.prototype, "questroomId", void 0);
24
+ exports.CheckCertificateUploadDto = CheckCertificateUploadDto;
@@ -28,6 +28,13 @@ export declare type OrderRO = ResponseObject & {
28
28
  certificateId: number;
29
29
  orderId: number;
30
30
  }>;
31
+ uploadedCertificates: Array<ResponseObject & {
32
+ nominal: number;
33
+ code: string;
34
+ userId: number;
35
+ certificateId: number;
36
+ orderId: number;
37
+ }>;
31
38
  upsellings: Array<{
32
39
  id: number;
33
40
  title: string;
@@ -1,7 +1,15 @@
1
1
  import { PromocodeTypeEnum } from './emun/promocode-type.enum';
2
2
  export declare class CreatePromocodeDto {
3
- title: string;
4
- validity: string;
3
+ code: string;
4
+ description: string;
5
+ multiple: boolean;
6
+ canUseWithOtherPromocodes: boolean;
7
+ inside: boolean;
8
+ canUseWithOtherCertificates: boolean;
9
+ validFrom: string;
10
+ validTo: string;
11
+ forOrdersFrom: string;
12
+ forOrdersTo: string;
5
13
  discount: number;
6
14
  type: PromocodeTypeEnum;
7
15
  allQuestrooms: boolean;
@@ -16,15 +16,60 @@ const promocode_type_enum_1 = require("./emun/promocode-type.enum");
16
16
  class CreatePromocodeDto {
17
17
  }
18
18
  __decorate([
19
- (0, class_validator_1.IsNotEmpty)(),
19
+ (0, class_validator_1.IsOptional)(),
20
+ (0, class_validator_1.MinLength)(5),
20
21
  (0, class_transformer_1.Expose)(),
21
22
  __metadata("design:type", String)
22
- ], CreatePromocodeDto.prototype, "title", void 0);
23
+ ], CreatePromocodeDto.prototype, "code", void 0);
23
24
  __decorate([
24
25
  (0, class_validator_1.IsNotEmpty)(),
25
26
  (0, class_transformer_1.Expose)(),
26
27
  __metadata("design:type", String)
27
- ], CreatePromocodeDto.prototype, "validity", void 0);
28
+ ], CreatePromocodeDto.prototype, "description", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsBoolean)(),
31
+ (0, class_transformer_1.Expose)(),
32
+ (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
33
+ __metadata("design:type", Boolean)
34
+ ], CreatePromocodeDto.prototype, "multiple", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsBoolean)(),
37
+ (0, class_transformer_1.Expose)(),
38
+ (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
39
+ __metadata("design:type", Boolean)
40
+ ], CreatePromocodeDto.prototype, "canUseWithOtherPromocodes", void 0);
41
+ __decorate([
42
+ (0, class_validator_1.IsBoolean)(),
43
+ (0, class_transformer_1.Expose)(),
44
+ (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
45
+ __metadata("design:type", Boolean)
46
+ ], CreatePromocodeDto.prototype, "inside", void 0);
47
+ __decorate([
48
+ (0, class_validator_1.IsBoolean)(),
49
+ (0, class_transformer_1.Expose)(),
50
+ (0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
51
+ __metadata("design:type", Boolean)
52
+ ], CreatePromocodeDto.prototype, "canUseWithOtherCertificates", void 0);
53
+ __decorate([
54
+ (0, class_validator_1.IsOptional)(),
55
+ (0, class_transformer_1.Expose)(),
56
+ __metadata("design:type", String)
57
+ ], CreatePromocodeDto.prototype, "validFrom", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsOptional)(),
60
+ (0, class_transformer_1.Expose)(),
61
+ __metadata("design:type", String)
62
+ ], CreatePromocodeDto.prototype, "validTo", void 0);
63
+ __decorate([
64
+ (0, class_validator_1.IsOptional)(),
65
+ (0, class_transformer_1.Expose)(),
66
+ __metadata("design:type", String)
67
+ ], CreatePromocodeDto.prototype, "forOrdersFrom", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsOptional)(),
70
+ (0, class_transformer_1.Expose)(),
71
+ __metadata("design:type", String)
72
+ ], CreatePromocodeDto.prototype, "forOrdersTo", void 0);
28
73
  __decorate([
29
74
  (0, class_validator_1.IsPositive)(),
30
75
  (0, class_transformer_1.Expose)(),
@@ -2,9 +2,16 @@ import { ResponseObject } from '../shared/ro';
2
2
  import { PromocodeTypeEnum } from './emun/promocode-type.enum';
3
3
  export declare type PromocodeRO = ResponseObject & {
4
4
  code: string;
5
- title: string;
5
+ description: string;
6
6
  type: PromocodeTypeEnum;
7
- validity: string;
7
+ multiple: boolean;
8
+ canUseWithOtherPromocodes: boolean;
9
+ canUseWithOtherCertificates: boolean;
10
+ inside: boolean;
11
+ validFrom: string;
12
+ validTo: string;
13
+ forOrdersFrom: string;
14
+ forOrdersTo: string;
8
15
  discount: number;
9
16
  applyings: number;
10
17
  allQuestrooms: boolean;
@@ -1,4 +1,5 @@
1
1
  import { CertificateSaleRO } from '../certificate-sale/certificate-sale.ro';
2
+ import { CertificateUploadedRO } from '../certificate-uploaded/certificate-uploaded.ro';
2
3
  import { ClientRO } from '../client/client.ro';
3
4
  import { OrderRO } from '../order/order.ro';
4
5
  import { PromocodeRO } from '../promocode/promocode.ro';
@@ -7,4 +8,5 @@ export declare type SearchRO = {
7
8
  orders: OrderRO[];
8
9
  certificates: CertificateSaleRO[];
9
10
  promocodes: PromocodeRO[];
11
+ uploadedCertificates: CertificateUploadedRO[];
10
12
  };
@@ -7,5 +7,14 @@ export declare enum TagsEnum {
7
7
  MISTERY = "mistery",
8
8
  HORROR = "horror",
9
9
  RAID = "raid",
10
- JAILBREAK = "jailbreak"
10
+ JAILBREAK = "jailbreak",
11
+ CRIME = "crime",
12
+ FUTURISTIC = "futuristic",
13
+ ADVENTURE = "adventure",
14
+ BIGGROUP = "biggroup",
15
+ RISKY = "risky",
16
+ HALLOWEEN = "halloween",
17
+ ANTIENTWORLDS = "ancientworlds",
18
+ HISTORICAL = "historical",
19
+ APOCALYPSE = "apocalypse"
11
20
  }
@@ -12,16 +12,13 @@ var TagsEnum;
12
12
  TagsEnum["HORROR"] = "horror";
13
13
  TagsEnum["RAID"] = "raid";
14
14
  TagsEnum["JAILBREAK"] = "jailbreak";
15
- // ENGLISH = "english",
16
- // CRIME = "crime",
17
- // TOPSECRET = "topsecret",
18
- // FUTURISTIC = "futuristic",
19
- // ADVENTURE = "adventure",
20
- // BIGGROUP = "biggroup",
21
- // RISKY = "risky",
22
- // HALLOWEEN = "halloween",
23
- // ANTIENTWORLDS = "ancientworlds",
24
- // HISTORICAL = "historical",
25
- // APOCALYPSE = "apocalypse",
26
- // VR = "vr",
15
+ TagsEnum["CRIME"] = "crime";
16
+ TagsEnum["FUTURISTIC"] = "futuristic";
17
+ TagsEnum["ADVENTURE"] = "adventure";
18
+ TagsEnum["BIGGROUP"] = "biggroup";
19
+ TagsEnum["RISKY"] = "risky";
20
+ TagsEnum["HALLOWEEN"] = "halloween";
21
+ TagsEnum["ANTIENTWORLDS"] = "ancientworlds";
22
+ TagsEnum["HISTORICAL"] = "historical";
23
+ TagsEnum["APOCALYPSE"] = "apocalypse";
27
24
  })(TagsEnum = exports.TagsEnum || (exports.TagsEnum = {}));
@@ -1,3 +1,3 @@
1
- export declare type SuccessResponseObject = {
1
+ export declare type SuccessRO = {
2
2
  success: boolean;
3
3
  };