@escapenavigator/types 1.4.50 → 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.
- package/dist/certificate-uploaded/certificate-uploaded.ro.d.ts +14 -0
- package/dist/certificate-uploaded/certificate-uploaded.ro.js +2 -0
- package/dist/certificate-uploaded/check-certificate-upload.dto.d.ts +4 -0
- package/dist/{certificate-sale/check-certificate-sale.dto.js → certificate-uploaded/check-certificate-upload.dto.js} +5 -5
- package/dist/order/order.ro.d.ts +7 -0
- package/dist/profile/create-profile.dto.d.ts +2 -0
- package/dist/profile/create-profile.dto.js +6 -0
- package/dist/profile/enum/profile-status.enum.d.ts +3 -1
- package/dist/profile/enum/profile-status.enum.js +3 -1
- package/dist/promocode/create-promocode.dto.d.ts +10 -2
- package/dist/promocode/create-promocode.dto.js +48 -3
- package/dist/promocode/promocode.ro.d.ts +9 -2
- package/dist/search/search.ro.d.ts +2 -0
- package/dist/shared/enum/tags.enum.d.ts +10 -1
- package/dist/shared/enum/tags.enum.js +9 -12
- package/dist/shared/success.ro.d.ts +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/create-user.dto.d.ts +1 -4
- package/dist/user/create-user.dto.js +4 -21
- package/dist/widget-openapi/widget-openapi-find-discount-by-code.dto.d.ts +3 -0
- package/dist/widget-openapi/widget-openapi-find-discount-by-code.dto.js +13 -0
- package/package.json +2 -2
- package/dist/certificate-sale/check-certificate-sale.dto.d.ts +0 -4
|
@@ -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
|
+
};
|
|
@@ -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.
|
|
12
|
+
exports.CheckCertificateUploadDto = void 0;
|
|
13
13
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
14
|
-
class
|
|
14
|
+
class CheckCertificateUploadDto {
|
|
15
15
|
}
|
|
16
16
|
__decorate([
|
|
17
17
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
18
18
|
__metadata("design:type", String)
|
|
19
|
-
],
|
|
19
|
+
], CheckCertificateUploadDto.prototype, "code", void 0);
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
24
|
-
exports.
|
|
23
|
+
], CheckCertificateUploadDto.prototype, "questroomId", void 0);
|
|
24
|
+
exports.CheckCertificateUploadDto = CheckCertificateUploadDto;
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -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,4 +1,5 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
+
import { ProfileStatusEnum } from './enum/profile-status.enum';
|
|
2
3
|
export declare class CreateProfileDto {
|
|
3
4
|
color: string;
|
|
4
5
|
title: string;
|
|
@@ -11,6 +12,7 @@ export declare class CreateProfileDto {
|
|
|
11
12
|
legalTitle: string;
|
|
12
13
|
address: string;
|
|
13
14
|
country: CountriesEnum;
|
|
15
|
+
status: ProfileStatusEnum;
|
|
14
16
|
comment?: string;
|
|
15
17
|
logo?: string;
|
|
16
18
|
instagram?: string;
|
|
@@ -14,6 +14,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
16
16
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
|
+
const profile_status_enum_1 = require("./enum/profile-status.enum");
|
|
17
18
|
class CreateProfileDto {
|
|
18
19
|
}
|
|
19
20
|
__decorate([
|
|
@@ -72,6 +73,11 @@ __decorate([
|
|
|
72
73
|
(0, class_transformer_1.Expose)(),
|
|
73
74
|
__metadata("design:type", String)
|
|
74
75
|
], CreateProfileDto.prototype, "country", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], CreateProfileDto.prototype, "status", void 0);
|
|
75
81
|
__decorate([
|
|
76
82
|
(0, class_validator_1.IsOptional)(),
|
|
77
83
|
(0, class_validator_1.IsString)(),
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export declare enum ProfileStatusEnum {
|
|
2
2
|
NEW = "new",
|
|
3
|
+
CLOSED = "closed",
|
|
4
|
+
READY_TO_SETUP = "ready_to_setup",
|
|
5
|
+
COMPLITE_SETUP = "complite_setup",
|
|
3
6
|
SEND_INVITE = "send_invite",
|
|
4
7
|
FIRST_OPEN = "first_open",
|
|
5
|
-
COMPLITE_SETUP = "complite_setup",
|
|
6
8
|
YOUNG = "young",
|
|
7
9
|
CLIENT = "client",
|
|
8
10
|
LOST = "lost"
|
|
@@ -4,9 +4,11 @@ exports.ProfileStatusEnum = void 0;
|
|
|
4
4
|
var ProfileStatusEnum;
|
|
5
5
|
(function (ProfileStatusEnum) {
|
|
6
6
|
ProfileStatusEnum["NEW"] = "new";
|
|
7
|
+
ProfileStatusEnum["CLOSED"] = "closed";
|
|
8
|
+
ProfileStatusEnum["READY_TO_SETUP"] = "ready_to_setup";
|
|
9
|
+
ProfileStatusEnum["COMPLITE_SETUP"] = "complite_setup";
|
|
7
10
|
ProfileStatusEnum["SEND_INVITE"] = "send_invite";
|
|
8
11
|
ProfileStatusEnum["FIRST_OPEN"] = "first_open";
|
|
9
|
-
ProfileStatusEnum["COMPLITE_SETUP"] = "complite_setup";
|
|
10
12
|
ProfileStatusEnum["YOUNG"] = "young";
|
|
11
13
|
ProfileStatusEnum["CLIENT"] = "client";
|
|
12
14
|
ProfileStatusEnum["LOST"] = "lost";
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { PromocodeTypeEnum } from './emun/promocode-type.enum';
|
|
2
2
|
export declare class CreatePromocodeDto {
|
|
3
|
-
|
|
4
|
-
|
|
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.
|
|
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, "
|
|
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, "
|
|
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
|
-
|
|
5
|
+
description: string;
|
|
6
6
|
type: PromocodeTypeEnum;
|
|
7
|
-
|
|
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
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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 = {}));
|