@escapenavigator/types 1.4.19 → 1.4.20
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.
- package/dist/agregator/agregator-city.ro.d.ts +1 -0
- package/dist/agregator/agregator-questroom-by-tags.ro.d.ts +1 -0
- package/dist/agregator/agregator-questroom-card.ro.d.ts +3 -2
- package/dist/agregator/dto/agregator-questrooms-by-city-query.dto.d.ts +4 -0
- package/dist/agregator/dto/agregator-questrooms-by-city-query.dto.js +2 -0
- package/dist/certificate-sale/certificate-sale.ro.d.ts +4 -4
- package/dist/certificate-sale/create-certificatesale.dto.d.ts +10 -11
- package/dist/certificate-sale/create-certificatesale.dto.js +28 -22
- package/dist/index.js +5 -1
- package/dist/questroom/agregator-questroom.ro.d.ts +4 -2
- package/dist/questroom/create-questroom.dto.d.ts +2 -0
- package/dist/questroom/create-questroom.dto.js +6 -0
- package/dist/questroom/questroom.ro.d.ts +4 -2
- package/dist/shared/enum/countries.enum.d.ts +3 -3
- package/dist/shared/enum/tags.enum.d.ts +8 -1
- package/dist/shared/enum/tags.enum.js +19 -0
- package/dist/subscription/create-subscription.dto.d.ts +3 -0
- package/dist/subscription/create-subscription.dto.js +22 -0
- package/dist/subscription/subscription.ro.d.ts +4 -0
- package/dist/subscription/subscription.ro.js +2 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/widget-openapi/widget-openapi-create-certificate.dto.d.ts +16 -5
- package/dist/widget-openapi/widget-openapi-create-certificate.dto.js +67 -16
- package/package.json +6 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QuestroomTypeEnum } from
|
|
2
|
-
import { Languages } from
|
|
1
|
+
import { QuestroomTypeEnum } from "../questroom/enum/questroom-type.enum";
|
|
2
|
+
import { Languages } from "../shared/enum/languages.enum";
|
|
3
3
|
export declare type AgregatorQuestroomCardRO = {
|
|
4
4
|
slug: string;
|
|
5
5
|
title: string;
|
|
@@ -14,5 +14,6 @@ export declare type AgregatorQuestroomCardRO = {
|
|
|
14
14
|
difficult: number;
|
|
15
15
|
fear: number;
|
|
16
16
|
actors: boolean;
|
|
17
|
+
price: number;
|
|
17
18
|
languages?: Languages[];
|
|
18
19
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ResponseObject } from
|
|
2
|
-
import { CertificatesaleSourceEnum } from
|
|
3
|
-
import { CertificatesaleDeliveryTypeEnum } from
|
|
4
|
-
import { CertificatesaleStatusEnum } from
|
|
1
|
+
import { ResponseObject } from "../shared/ro";
|
|
2
|
+
import { CertificatesaleSourceEnum } from "./enum/certificatesale-source.enum";
|
|
3
|
+
import { CertificatesaleDeliveryTypeEnum } from "./enum/certificatesales-delivery-type.enum";
|
|
4
|
+
import { CertificatesaleStatusEnum } from "./enum/certificatessales-status.enum";
|
|
5
5
|
export declare type CertificateSaleResponseObject = ResponseObject & {
|
|
6
6
|
status: CertificatesaleStatusEnum;
|
|
7
7
|
expireDate: string;
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-delivery-type.enum';
|
|
3
|
-
import { CertificatesaleStatusEnum } from './enum/certificatessales-status.enum';
|
|
1
|
+
import { CertificatesaleDeliveryTypeEnum } from "./enum/certificatesales-delivery-type.enum";
|
|
4
2
|
export declare class CreateCertificatesaleDto {
|
|
5
3
|
certificateId: number;
|
|
6
|
-
|
|
7
|
-
status: CertificatesaleStatusEnum;
|
|
4
|
+
clientId: number;
|
|
8
5
|
clientComment: string;
|
|
9
|
-
technicalPhotos: string[];
|
|
10
|
-
deliveryType: CertificatesaleDeliveryTypeEnum;
|
|
11
6
|
deliveryAddress: string;
|
|
12
7
|
deliveryEmail: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
sendingDate: string;
|
|
9
|
+
sendingTime: string;
|
|
10
|
+
deliveryMessage: string;
|
|
11
|
+
deliveryFullname: string;
|
|
12
|
+
deliveryPhone: string;
|
|
13
|
+
deliveryCity: string;
|
|
14
|
+
deliveryPostCode: string;
|
|
15
|
+
deliveryType: CertificatesaleDeliveryTypeEnum;
|
|
17
16
|
}
|
|
@@ -11,9 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateCertificatesaleDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const certificatesale_source_enum_1 = require("./enum/certificatesale-source.enum");
|
|
15
14
|
const certificatesales_delivery_type_enum_1 = require("./enum/certificatesales-delivery-type.enum");
|
|
16
|
-
const certificatessales_status_enum_1 = require("./enum/certificatessales-status.enum");
|
|
17
15
|
class CreateCertificatesaleDto {
|
|
18
16
|
}
|
|
19
17
|
__decorate([
|
|
@@ -21,54 +19,62 @@ __decorate([
|
|
|
21
19
|
__metadata("design:type", Number)
|
|
22
20
|
], CreateCertificatesaleDto.prototype, "certificateId", void 0);
|
|
23
21
|
__decorate([
|
|
24
|
-
(0, class_validator_1.
|
|
25
|
-
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
23
|
__metadata("design:type", Number)
|
|
27
|
-
], CreateCertificatesaleDto.prototype, "
|
|
24
|
+
], CreateCertificatesaleDto.prototype, "clientId", void 0);
|
|
28
25
|
__decorate([
|
|
29
|
-
(0, class_validator_1.
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
28
|
__metadata("design:type", String)
|
|
31
|
-
], CreateCertificatesaleDto.prototype, "
|
|
29
|
+
], CreateCertificatesaleDto.prototype, "clientComment", void 0);
|
|
32
30
|
__decorate([
|
|
33
31
|
(0, class_validator_1.IsString)(),
|
|
34
32
|
(0, class_validator_1.IsOptional)(),
|
|
35
33
|
__metadata("design:type", String)
|
|
36
|
-
], CreateCertificatesaleDto.prototype, "
|
|
34
|
+
], CreateCertificatesaleDto.prototype, "deliveryAddress", void 0);
|
|
37
35
|
__decorate([
|
|
38
|
-
(0, class_validator_1.
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
39
37
|
(0, class_validator_1.IsOptional)(),
|
|
40
|
-
__metadata("design:type",
|
|
41
|
-
], CreateCertificatesaleDto.prototype, "
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateCertificatesaleDto.prototype, "deliveryEmail", void 0);
|
|
42
40
|
__decorate([
|
|
43
|
-
(0, class_validator_1.
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
43
|
__metadata("design:type", String)
|
|
45
|
-
], CreateCertificatesaleDto.prototype, "
|
|
44
|
+
], CreateCertificatesaleDto.prototype, "sendingDate", void 0);
|
|
46
45
|
__decorate([
|
|
47
46
|
(0, class_validator_1.IsString)(),
|
|
48
47
|
(0, class_validator_1.IsOptional)(),
|
|
49
48
|
__metadata("design:type", String)
|
|
50
|
-
], CreateCertificatesaleDto.prototype, "
|
|
49
|
+
], CreateCertificatesaleDto.prototype, "sendingTime", void 0);
|
|
51
50
|
__decorate([
|
|
52
51
|
(0, class_validator_1.IsString)(),
|
|
53
52
|
(0, class_validator_1.IsOptional)(),
|
|
54
53
|
__metadata("design:type", String)
|
|
55
|
-
], CreateCertificatesaleDto.prototype, "
|
|
54
|
+
], CreateCertificatesaleDto.prototype, "deliveryMessage", void 0);
|
|
56
55
|
__decorate([
|
|
57
56
|
(0, class_validator_1.IsString)(),
|
|
58
57
|
(0, class_validator_1.IsOptional)(),
|
|
59
58
|
__metadata("design:type", String)
|
|
60
|
-
], CreateCertificatesaleDto.prototype, "
|
|
59
|
+
], CreateCertificatesaleDto.prototype, "deliveryFullname", void 0);
|
|
61
60
|
__decorate([
|
|
62
61
|
(0, class_validator_1.IsString)(),
|
|
63
62
|
(0, class_validator_1.IsOptional)(),
|
|
64
63
|
__metadata("design:type", String)
|
|
65
|
-
], CreateCertificatesaleDto.prototype, "
|
|
64
|
+
], CreateCertificatesaleDto.prototype, "deliveryPhone", void 0);
|
|
66
65
|
__decorate([
|
|
67
|
-
(0, class_validator_1.
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
(0, class_validator_1.IsString)(),
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], CreateCertificatesaleDto.prototype, "deliveryCity", void 0);
|
|
70
70
|
__decorate([
|
|
71
|
-
(0, class_validator_1.
|
|
71
|
+
(0, class_validator_1.IsString)(),
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
72
73
|
__metadata("design:type", String)
|
|
73
|
-
], CreateCertificatesaleDto.prototype, "
|
|
74
|
+
], CreateCertificatesaleDto.prototype, "deliveryPostCode", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsString)(),
|
|
77
|
+
(0, class_validator_1.IsEnum)(certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], CreateCertificatesaleDto.prototype, "deliveryType", void 0);
|
|
74
80
|
exports.CreateCertificatesaleDto = CreateCertificatesaleDto;
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TagsEnum } from "./../shared/enum/tags.enum";
|
|
2
|
+
import { Languages } from "../shared/enum/languages.enum";
|
|
3
|
+
import { ResponseObject } from "../shared/ro";
|
|
3
4
|
export declare type AgregatorQuestroomResponseObject = ResponseObject & {
|
|
4
5
|
title: string;
|
|
5
6
|
video?: string;
|
|
@@ -23,6 +24,7 @@ export declare type AgregatorQuestroomResponseObject = ResponseObject & {
|
|
|
23
24
|
onlinePaymentsCashbox: number;
|
|
24
25
|
cashPaymentsCashbox: number;
|
|
25
26
|
cardPaymentsCashbox: number;
|
|
27
|
+
tags: TagsEnum;
|
|
26
28
|
locationId: number;
|
|
27
29
|
sortPosition: number;
|
|
28
30
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TagsEnum } from "./../shared/enum/tags.enum";
|
|
1
2
|
import { Languages } from "../shared/enum/languages.enum";
|
|
2
3
|
import { QuestroomTypeEnum } from "./enum/questroom-type.enum";
|
|
3
4
|
export declare class CreateQuestroomDto {
|
|
@@ -28,4 +29,5 @@ export declare class CreateQuestroomDto {
|
|
|
28
29
|
video?: string;
|
|
29
30
|
legend: string;
|
|
30
31
|
teaser?: string;
|
|
32
|
+
tags: TagsEnum[];
|
|
31
33
|
}
|
|
@@ -175,4 +175,10 @@ __decorate([
|
|
|
175
175
|
(0, class_transformer_1.Expose)(),
|
|
176
176
|
__metadata("design:type", String)
|
|
177
177
|
], CreateQuestroomDto.prototype, "teaser", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
(0, class_validator_1.IsArray)(),
|
|
180
|
+
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
181
|
+
(0, class_transformer_1.Expose)(),
|
|
182
|
+
__metadata("design:type", Array)
|
|
183
|
+
], CreateQuestroomDto.prototype, "tags", void 0);
|
|
178
184
|
exports.CreateQuestroomDto = CreateQuestroomDto;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { TagsEnum } from "./../shared/enum/tags.enum";
|
|
2
|
+
import { Languages } from "../shared/enum/languages.enum";
|
|
3
|
+
import { ResponseObject } from "../shared/ro";
|
|
3
4
|
export declare type QuestroomResponseObject = ResponseObject & {
|
|
4
5
|
title: string;
|
|
5
6
|
video?: string;
|
|
@@ -23,6 +24,7 @@ export declare type QuestroomResponseObject = ResponseObject & {
|
|
|
23
24
|
onlinePaymentsCashbox: number;
|
|
24
25
|
cashPaymentsCashbox: number;
|
|
25
26
|
cardPaymentsCashbox: number;
|
|
27
|
+
tags: TagsEnum[];
|
|
26
28
|
locationId: number;
|
|
27
29
|
sortPosition: number;
|
|
28
30
|
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
export declare enum TagsEnum {
|
|
2
|
+
FAMILY = "family",
|
|
3
|
+
KIDS = "kids",
|
|
4
|
+
BEGINNER = "beginner",
|
|
5
|
+
PROFESSIONAL = "professional",
|
|
6
|
+
DUELMODE = "duelmode",
|
|
2
7
|
MISTERY = "mistery",
|
|
3
|
-
HORROR = "horror"
|
|
8
|
+
HORROR = "horror",
|
|
9
|
+
RAID = "raid",
|
|
10
|
+
JAILBREAK = "jailbreak"
|
|
4
11
|
}
|
|
@@ -3,6 +3,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TagsEnum = void 0;
|
|
4
4
|
var TagsEnum;
|
|
5
5
|
(function (TagsEnum) {
|
|
6
|
+
TagsEnum["FAMILY"] = "family";
|
|
7
|
+
TagsEnum["KIDS"] = "kids";
|
|
8
|
+
TagsEnum["BEGINNER"] = "beginner";
|
|
9
|
+
TagsEnum["PROFESSIONAL"] = "professional";
|
|
10
|
+
TagsEnum["DUELMODE"] = "duelmode";
|
|
6
11
|
TagsEnum["MISTERY"] = "mistery";
|
|
7
12
|
TagsEnum["HORROR"] = "horror";
|
|
13
|
+
TagsEnum["RAID"] = "raid";
|
|
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",
|
|
8
27
|
})(TagsEnum = exports.TagsEnum || (exports.TagsEnum = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
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.CreateSubscriptionDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const is_not_blank_string_1 = require("../shared/is-not-blank-string");
|
|
15
|
+
class CreateSubscriptionDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, is_not_blank_string_1.IsNotBlankString)(),
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateSubscriptionDto.prototype, "email", void 0);
|
|
22
|
+
exports.CreateSubscriptionDto = CreateSubscriptionDto;
|