@escapenavigator/types 1.4.77 → 1.4.79
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-questroom-card.ro.d.ts +0 -1
- package/dist/agregator/agregator-questroom.ro.d.ts +3 -2
- package/dist/location/location.ro.d.ts +1 -1
- package/dist/location/verify-locations.dto.d.ts +4 -0
- package/dist/location/verify-locations.dto.js +26 -0
- package/dist/profile/create-profile.dto.d.ts +0 -3
- package/dist/profile/create-profile.dto.js +0 -15
- package/dist/profile/enum/profile-type.enum.d.ts +9 -0
- package/dist/profile/enum/profile-type.enum.js +13 -0
- package/dist/profile/invite-after-verification.dto.d.ts +4 -0
- package/dist/profile/invite-after-verification.dto.js +28 -0
- package/dist/profile/profile-for-verification.dto.d.ts +3 -0
- package/dist/profile/profile-for-verification.dto.js +22 -0
- package/dist/profile/profile-for-verification.ro.d.ts +4 -0
- package/dist/profile/profile-for-verification.ro.js +2 -0
- package/dist/profile/profile.ro.d.ts +2 -4
- package/dist/questroom/agregator-questroom.ro.d.ts +0 -1
- package/dist/questroom/create-questroom.dto.d.ts +3 -2
- package/dist/questroom/create-questroom.dto.js +13 -12
- package/dist/questroom/enum/questroom-actors.enum.d.ts +5 -0
- package/dist/questroom/enum/questroom-actors.enum.js +9 -0
- package/dist/questroom/questroom-by-title.dto.d.ts +5 -0
- package/dist/questroom/questroom-by-title.dto.js +29 -0
- package/dist/questroom/questroom-by-title.ro.d.ts +10 -0
- package/dist/questroom/questroom-by-title.ro.js +2 -0
- package/dist/questroom/questroom.ro.d.ts +4 -3
- package/dist/questroom/verify-questrooms.dto.d.ts +4 -0
- package/dist/questroom/verify-questrooms.dto.js +24 -0
- package/dist/shared/enum/tags.enum.d.ts +21 -9
- package/dist/shared/enum/tags.enum.js +19 -7
- package/dist/slot/change-template-slots-form.dto.d.ts +13 -0
- package/dist/slot/change-template-slots-form.dto.js +78 -0
- package/dist/slot/create-slot-form.dto.d.ts +16 -0
- package/dist/slot/create-slot-form.dto.js +93 -0
- package/dist/slot/create-slot.dto.d.ts +0 -9
- package/dist/slot/create-slot.dto.js +3 -53
- package/dist/slot/{slot-autocomplite.dto.d.ts → slot-autocomplite-form.dto.d.ts} +1 -1
- package/dist/slot/{slot-autocomplite.dto.js → slot-autocomplite-form.dto.js} +16 -16
- package/dist/slot/slot.ro.d.ts +4 -0
- package/dist/slot-rule/create-rule.dto.js +1 -0
- package/dist/slot-rule/defailt-rule.d.ts +1 -0
- package/dist/slot-rule/defailt-rule.js +1 -0
- package/dist/slot-template/copy-template.dto.d.ts +3 -0
- package/dist/slot-template/copy-template.dto.js +11 -0
- package/dist/slot-template/slot-template.ro.d.ts +1 -0
- package/dist/slot-template/update-slot-template-first-step.dto.d.ts +1 -0
- package/dist/slot-template/update-slot-template-first-step.dto.js +6 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/complite-setup.dto.d.ts +1 -4
- package/dist/user/complite-setup.dto.js +1 -17
- package/dist/widget-openapi/widget-openapi-slot.ro.d.ts +2 -1
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
2
|
+
import { QuestroomActorsEnum } from '../questroom/enum/questroom-actors.enum';
|
|
2
3
|
import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
|
|
3
4
|
import { NavigatorReviewRO } from '../review/navigator-review.ro';
|
|
4
5
|
import { Languages } from '../shared/enum/languages.enum';
|
|
@@ -39,12 +40,12 @@ export declare type AgregatorQuestroomRO = {
|
|
|
39
40
|
city: AgregatorCityRO;
|
|
40
41
|
};
|
|
41
42
|
legend?: string;
|
|
43
|
+
actors: QuestroomActorsEnum;
|
|
44
|
+
questroomTags: TagsEnum[];
|
|
42
45
|
photo: string;
|
|
43
46
|
photos: string[];
|
|
44
47
|
video?: string;
|
|
45
|
-
tags: TagsEnum[];
|
|
46
48
|
upsellings: Array<Pick<UpsellingResponseObject, 'title' | 'price' | 'description'>>;
|
|
47
|
-
actors: boolean;
|
|
48
49
|
languages?: Languages[];
|
|
49
50
|
defaultLanguage?: Languages;
|
|
50
51
|
rating: number;
|
|
@@ -0,0 +1,26 @@
|
|
|
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.VerifyLocationsDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const create_location_dto_1 = require("./create-location.dto");
|
|
16
|
+
class VerifyLocationsDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsArray)(),
|
|
20
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
21
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
(0, class_transformer_1.Type)(() => create_location_dto_1.CreateLocationDto),
|
|
24
|
+
__metadata("design:type", Array)
|
|
25
|
+
], VerifyLocationsDto.prototype, "locations", void 0);
|
|
26
|
+
exports.VerifyLocationsDto = VerifyLocationsDto;
|
|
@@ -53,21 +53,6 @@ __decorate([
|
|
|
53
53
|
(0, class_transformer_1.Expose)(),
|
|
54
54
|
__metadata("design:type", String)
|
|
55
55
|
], CreateProfileDto.prototype, "legalTitle", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, class_validator_1.IsOptional)(),
|
|
58
|
-
(0, class_transformer_1.Expose)(),
|
|
59
|
-
__metadata("design:type", String)
|
|
60
|
-
], CreateProfileDto.prototype, "imprintContact", void 0);
|
|
61
|
-
__decorate([
|
|
62
|
-
(0, class_validator_1.IsOptional)(),
|
|
63
|
-
(0, class_transformer_1.Expose)(),
|
|
64
|
-
__metadata("design:type", String)
|
|
65
|
-
], CreateProfileDto.prototype, "imprintPhone", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, class_validator_1.IsUrl)(),
|
|
68
|
-
(0, class_transformer_1.Expose)(),
|
|
69
|
-
__metadata("design:type", String)
|
|
70
|
-
], CreateProfileDto.prototype, "imprintLink", void 0);
|
|
71
56
|
__decorate([
|
|
72
57
|
(0, class_validator_1.IsOptional)(),
|
|
73
58
|
(0, class_validator_1.IsString)(),
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum ProfileTypeEnum {
|
|
2
|
+
NOT_VERIFIED = "not_verified",
|
|
3
|
+
NOT_FINISH_VERIFICATION = "not_finish_verification",
|
|
4
|
+
VERIFIED = "VERIFIED",
|
|
5
|
+
FREE_CRM = "FREE_CRM",
|
|
6
|
+
FREE_CRM_AGREGATOR = "FREE_CRM_AGREGATOR",
|
|
7
|
+
FULL_CRM_AGREGATOR = "full_crm_agregator",
|
|
8
|
+
INTEGRATED = "integrated"
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProfileTypeEnum = void 0;
|
|
4
|
+
var ProfileTypeEnum;
|
|
5
|
+
(function (ProfileTypeEnum) {
|
|
6
|
+
ProfileTypeEnum["NOT_VERIFIED"] = "not_verified";
|
|
7
|
+
ProfileTypeEnum["NOT_FINISH_VERIFICATION"] = "not_finish_verification";
|
|
8
|
+
ProfileTypeEnum["VERIFIED"] = "VERIFIED";
|
|
9
|
+
ProfileTypeEnum["FREE_CRM"] = "FREE_CRM";
|
|
10
|
+
ProfileTypeEnum["FREE_CRM_AGREGATOR"] = "FREE_CRM_AGREGATOR";
|
|
11
|
+
ProfileTypeEnum["FULL_CRM_AGREGATOR"] = "full_crm_agregator";
|
|
12
|
+
ProfileTypeEnum["INTEGRATED"] = "integrated";
|
|
13
|
+
})(ProfileTypeEnum = exports.ProfileTypeEnum || (exports.ProfileTypeEnum = {}));
|
|
@@ -0,0 +1,28 @@
|
|
|
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.InviteAfterVerificationDto = 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
|
+
class InviteAfterVerificationDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], InviteAfterVerificationDto.prototype, "slug", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsEmail)(),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], InviteAfterVerificationDto.prototype, "email", void 0);
|
|
28
|
+
exports.InviteAfterVerificationDto = InviteAfterVerificationDto;
|
|
@@ -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.ProfileForVerificationDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
15
|
+
class ProfileForVerificationDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ProfileForVerificationDto.prototype, "slug", void 0);
|
|
22
|
+
exports.ProfileForVerificationDto = ProfileForVerificationDto;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
2
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
3
|
import { ResponseObject } from '../shared/ro';
|
|
4
|
+
import { ProfileTypeEnum } from './enum/profile-type.enum';
|
|
4
5
|
export declare type ProfileRO = ResponseObject & {
|
|
5
6
|
title: string;
|
|
6
7
|
legalTitle: string;
|
|
@@ -9,9 +10,6 @@ export declare type ProfileRO = ResponseObject & {
|
|
|
9
10
|
secondaryEmails: string[];
|
|
10
11
|
site: string;
|
|
11
12
|
logo: string;
|
|
12
|
-
imprintPhone: string;
|
|
13
|
-
imprintLink: string;
|
|
14
|
-
imprintContact: string;
|
|
15
13
|
contactPhone: string;
|
|
16
14
|
contactName: string;
|
|
17
15
|
facebook: string;
|
|
@@ -26,5 +24,5 @@ export declare type ProfileRO = ResponseObject & {
|
|
|
26
24
|
lastVisit: Date;
|
|
27
25
|
stripeCustomer: string;
|
|
28
26
|
notPaidBill: Date;
|
|
29
|
-
|
|
27
|
+
type: ProfileTypeEnum;
|
|
30
28
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
2
|
import { TagsEnum } from '../shared/enum/tags.enum';
|
|
3
3
|
import { QuestroomTypeEnum } from './enum/questroom-type.enum';
|
|
4
|
+
import { QuestroomActorsEnum } from './enum/questroom-actors.enum';
|
|
4
5
|
export declare class CreateQuestroomDto {
|
|
5
6
|
title: string;
|
|
6
7
|
scheduleRef: number;
|
|
7
8
|
webLink: string;
|
|
8
9
|
locationId: number;
|
|
9
10
|
type: QuestroomTypeEnum;
|
|
11
|
+
actors: QuestroomActorsEnum;
|
|
10
12
|
difficult: number;
|
|
11
13
|
fear: number;
|
|
12
14
|
minAge: number;
|
|
13
|
-
actors: boolean;
|
|
14
15
|
questroomIds: number[];
|
|
15
16
|
languages: Languages[];
|
|
16
17
|
defaultLanguage?: Languages;
|
|
@@ -24,6 +25,6 @@ export declare class CreateQuestroomDto {
|
|
|
24
25
|
photo: string;
|
|
25
26
|
photos: string[];
|
|
26
27
|
video?: string;
|
|
28
|
+
questroomTags: TagsEnum[];
|
|
27
29
|
legend: string;
|
|
28
|
-
tags: TagsEnum[];
|
|
29
30
|
}
|
|
@@ -15,6 +15,7 @@ const class_validator_1 = require("class-validator");
|
|
|
15
15
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
16
16
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
17
|
const questroom_type_enum_1 = require("./enum/questroom-type.enum");
|
|
18
|
+
const questroom_actors_enum_1 = require("./enum/questroom-actors.enum");
|
|
18
19
|
class CreateQuestroomDto {
|
|
19
20
|
}
|
|
20
21
|
__decorate([
|
|
@@ -43,6 +44,12 @@ __decorate([
|
|
|
43
44
|
(0, class_transformer_1.Expose)(),
|
|
44
45
|
__metadata("design:type", String)
|
|
45
46
|
], CreateQuestroomDto.prototype, "type", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsEnum)(questroom_actors_enum_1.QuestroomActorsEnum),
|
|
49
|
+
(0, class_transformer_1.Transform)(({ value }) => value || questroom_actors_enum_1.QuestroomActorsEnum.NO),
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], CreateQuestroomDto.prototype, "actors", void 0);
|
|
46
53
|
__decorate([
|
|
47
54
|
(0, class_validator_1.IsPositive)(),
|
|
48
55
|
(0, class_transformer_1.Transform)(({ value }) => value || 6),
|
|
@@ -61,12 +68,6 @@ __decorate([
|
|
|
61
68
|
(0, class_transformer_1.Expose)(),
|
|
62
69
|
__metadata("design:type", Number)
|
|
63
70
|
], CreateQuestroomDto.prototype, "minAge", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, class_validator_1.IsBoolean)(),
|
|
66
|
-
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
67
|
-
(0, class_transformer_1.Expose)(),
|
|
68
|
-
__metadata("design:type", Boolean)
|
|
69
|
-
], CreateQuestroomDto.prototype, "actors", void 0);
|
|
70
71
|
__decorate([
|
|
71
72
|
(0, class_validator_1.IsArray)(),
|
|
72
73
|
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
@@ -141,11 +142,6 @@ __decorate([
|
|
|
141
142
|
(0, class_transformer_1.Expose)(),
|
|
142
143
|
__metadata("design:type", String)
|
|
143
144
|
], CreateQuestroomDto.prototype, "video", void 0);
|
|
144
|
-
__decorate([
|
|
145
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
146
|
-
(0, class_transformer_1.Expose)(),
|
|
147
|
-
__metadata("design:type", String)
|
|
148
|
-
], CreateQuestroomDto.prototype, "legend", void 0);
|
|
149
145
|
__decorate([
|
|
150
146
|
(0, class_validator_1.IsArray)(),
|
|
151
147
|
(0, class_validator_1.ArrayMinSize)(2),
|
|
@@ -153,5 +149,10 @@ __decorate([
|
|
|
153
149
|
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
154
150
|
(0, class_transformer_1.Expose)(),
|
|
155
151
|
__metadata("design:type", Array)
|
|
156
|
-
], CreateQuestroomDto.prototype, "
|
|
152
|
+
], CreateQuestroomDto.prototype, "questroomTags", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
155
|
+
(0, class_transformer_1.Expose)(),
|
|
156
|
+
__metadata("design:type", String)
|
|
157
|
+
], CreateQuestroomDto.prototype, "legend", void 0);
|
|
157
158
|
exports.CreateQuestroomDto = CreateQuestroomDto;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuestroomActorsEnum = void 0;
|
|
4
|
+
var QuestroomActorsEnum;
|
|
5
|
+
(function (QuestroomActorsEnum) {
|
|
6
|
+
QuestroomActorsEnum["NO"] = "no";
|
|
7
|
+
QuestroomActorsEnum["OPTIONAL"] = "optional";
|
|
8
|
+
QuestroomActorsEnum["YES"] = "yes";
|
|
9
|
+
})(QuestroomActorsEnum = exports.QuestroomActorsEnum || (exports.QuestroomActorsEnum = {}));
|
|
@@ -0,0 +1,29 @@
|
|
|
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.QuestroomByTitleDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
16
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
|
+
class QuestroomByTitleDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], QuestroomByTitleDto.prototype, "title", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], QuestroomByTitleDto.prototype, "country", void 0);
|
|
29
|
+
exports.QuestroomByTitleDto = QuestroomByTitleDto;
|
|
@@ -2,6 +2,7 @@ import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
|
2
2
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
3
|
import { TagsEnum } from '../shared/enum/tags.enum';
|
|
4
4
|
import { ResponseObject } from '../shared/ro';
|
|
5
|
+
import { QuestroomActorsEnum } from './enum/questroom-actors.enum';
|
|
5
6
|
import { QuestroomTypeEnum } from './enum/questroom-type.enum';
|
|
6
7
|
export declare type QuestroomRO = ResponseObject & {
|
|
7
8
|
title: string;
|
|
@@ -13,7 +14,6 @@ export declare type QuestroomRO = ResponseObject & {
|
|
|
13
14
|
price: number;
|
|
14
15
|
fear: number;
|
|
15
16
|
minAge: number;
|
|
16
|
-
actors: boolean;
|
|
17
17
|
questroomIds: number[];
|
|
18
18
|
languages: Languages[];
|
|
19
19
|
defaultLanguage: Languages;
|
|
@@ -21,14 +21,15 @@ export declare type QuestroomRO = ResponseObject & {
|
|
|
21
21
|
cashPaymentsCashbox: number;
|
|
22
22
|
cardPaymentsCashbox: number;
|
|
23
23
|
time: number;
|
|
24
|
-
|
|
24
|
+
templateId: number;
|
|
25
25
|
ticketSystem: boolean;
|
|
26
26
|
video?: string;
|
|
27
27
|
photo: string;
|
|
28
28
|
photos: string[];
|
|
29
29
|
legend: string;
|
|
30
30
|
sortPosition: number;
|
|
31
|
-
|
|
31
|
+
actors: QuestroomActorsEnum;
|
|
32
|
+
questroomTags: TagsEnum[];
|
|
32
33
|
slug: string;
|
|
33
34
|
navigatorReviewId: number;
|
|
34
35
|
playersMin: number;
|
|
@@ -0,0 +1,24 @@
|
|
|
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.VerifyQuestroomsDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const create_questroom_dto_1 = require("./create-questroom.dto");
|
|
16
|
+
class VerifyQuestroomsDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsArray)(),
|
|
20
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
21
|
+
(0, class_transformer_1.Type)(() => create_questroom_dto_1.CreateQuestroomDto),
|
|
22
|
+
__metadata("design:type", Array)
|
|
23
|
+
], VerifyQuestroomsDto.prototype, "questrooms", void 0);
|
|
24
|
+
exports.VerifyQuestroomsDto = VerifyQuestroomsDto;
|
|
@@ -1,23 +1,35 @@
|
|
|
1
1
|
export declare enum TagsEnum {
|
|
2
|
-
FAMILY = "family",
|
|
3
|
-
DUELMODE = "duelmode",
|
|
4
|
-
MISTERY = "mistery",
|
|
5
|
-
RAID = "raid",
|
|
6
|
-
JAILBREAK = "jailbreak",
|
|
7
2
|
CRIME = "crime",
|
|
3
|
+
JAILBREAK = "jailbreak",
|
|
4
|
+
MISTERY = "mistery",
|
|
8
5
|
FUTURISTIC = "futuristic",
|
|
6
|
+
HISTORICAL = "historical",
|
|
9
7
|
ADVENTURE = "adventure",
|
|
10
|
-
RISKY = "risky",
|
|
11
8
|
ANTIENTWORLDS = "ancientworlds",
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
APOCALYPSE = "apocalypse",
|
|
10
|
+
RAID = "raid",
|
|
11
|
+
IMMERSIVE = "immersive",
|
|
12
|
+
CHRISTMAS = "christmas",
|
|
13
|
+
HALLOWEEN = "halloween",
|
|
14
|
+
DUELMODE = "duelmode",
|
|
15
|
+
TOP_SECRET = "top_secret",
|
|
16
|
+
DECORATIONS = "decorations"
|
|
14
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* не забыть про права инвалидов
|
|
20
|
+
*/
|
|
15
21
|
export declare enum TechTagsEnum {
|
|
16
22
|
KIDS = "kids",
|
|
23
|
+
DISCOUNT = "discount",
|
|
17
24
|
NEW = "new",
|
|
18
25
|
ACTORS = "actors",
|
|
26
|
+
VR = "VR",
|
|
27
|
+
ONLINE = "online",
|
|
19
28
|
BEGINNER = "beginner",
|
|
20
29
|
PROFESSIONAL = "professional",
|
|
21
30
|
HORROR = "horror",
|
|
22
|
-
BIGGROUP = "biggroup"
|
|
31
|
+
BIGGROUP = "biggroup",
|
|
32
|
+
ENGLISH = "english",
|
|
33
|
+
PRIVATE = "private",
|
|
34
|
+
PUBLIC = "public"
|
|
23
35
|
}
|
|
@@ -3,26 +3,38 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TechTagsEnum = exports.TagsEnum = void 0;
|
|
4
4
|
var TagsEnum;
|
|
5
5
|
(function (TagsEnum) {
|
|
6
|
-
TagsEnum["FAMILY"] = "family";
|
|
7
|
-
TagsEnum["DUELMODE"] = "duelmode";
|
|
8
|
-
TagsEnum["MISTERY"] = "mistery";
|
|
9
|
-
TagsEnum["RAID"] = "raid";
|
|
10
|
-
TagsEnum["JAILBREAK"] = "jailbreak";
|
|
11
6
|
TagsEnum["CRIME"] = "crime";
|
|
7
|
+
TagsEnum["JAILBREAK"] = "jailbreak";
|
|
8
|
+
TagsEnum["MISTERY"] = "mistery";
|
|
12
9
|
TagsEnum["FUTURISTIC"] = "futuristic";
|
|
10
|
+
TagsEnum["HISTORICAL"] = "historical";
|
|
13
11
|
TagsEnum["ADVENTURE"] = "adventure";
|
|
14
|
-
TagsEnum["RISKY"] = "risky";
|
|
15
12
|
TagsEnum["ANTIENTWORLDS"] = "ancientworlds";
|
|
16
|
-
TagsEnum["HISTORICAL"] = "historical";
|
|
17
13
|
TagsEnum["APOCALYPSE"] = "apocalypse";
|
|
14
|
+
TagsEnum["RAID"] = "raid";
|
|
15
|
+
TagsEnum["IMMERSIVE"] = "immersive";
|
|
16
|
+
TagsEnum["CHRISTMAS"] = "christmas";
|
|
17
|
+
TagsEnum["HALLOWEEN"] = "halloween";
|
|
18
|
+
TagsEnum["DUELMODE"] = "duelmode";
|
|
19
|
+
TagsEnum["TOP_SECRET"] = "top_secret";
|
|
20
|
+
TagsEnum["DECORATIONS"] = "decorations";
|
|
18
21
|
})(TagsEnum = exports.TagsEnum || (exports.TagsEnum = {}));
|
|
22
|
+
/**
|
|
23
|
+
* не забыть про права инвалидов
|
|
24
|
+
*/
|
|
19
25
|
var TechTagsEnum;
|
|
20
26
|
(function (TechTagsEnum) {
|
|
21
27
|
TechTagsEnum["KIDS"] = "kids";
|
|
28
|
+
TechTagsEnum["DISCOUNT"] = "discount";
|
|
22
29
|
TechTagsEnum["NEW"] = "new";
|
|
23
30
|
TechTagsEnum["ACTORS"] = "actors";
|
|
31
|
+
TechTagsEnum["VR"] = "VR";
|
|
32
|
+
TechTagsEnum["ONLINE"] = "online";
|
|
24
33
|
TechTagsEnum["BEGINNER"] = "beginner";
|
|
25
34
|
TechTagsEnum["PROFESSIONAL"] = "professional";
|
|
26
35
|
TechTagsEnum["HORROR"] = "horror";
|
|
27
36
|
TechTagsEnum["BIGGROUP"] = "biggroup";
|
|
37
|
+
TechTagsEnum["ENGLISH"] = "english";
|
|
38
|
+
TechTagsEnum["PRIVATE"] = "private";
|
|
39
|
+
TechTagsEnum["PUBLIC"] = "public";
|
|
28
40
|
})(TechTagsEnum = exports.TechTagsEnum || (exports.TechTagsEnum = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
2
|
+
import { PrepaymentTypeEnum } from './enum/prepayment-type.enum';
|
|
3
|
+
export declare class ChangeTemplateSlotsFormDto {
|
|
4
|
+
tariffId: number;
|
|
5
|
+
ruleId: number;
|
|
6
|
+
title: string;
|
|
7
|
+
saved: boolean;
|
|
8
|
+
prepayment: number;
|
|
9
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
10
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
11
|
+
minHoursForFreeCanceling: number;
|
|
12
|
+
minHoursForBooking: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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.ChangeTemplateSlotsFormDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const questroom_cancelation_type_enum_1 = require("../questroom/enum/questroom-cancelation-type.enum");
|
|
16
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
|
+
const prepayment_type_enum_1 = require("./enum/prepayment-type.enum");
|
|
18
|
+
class ChangeTemplateSlotsFormDto {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsNumber)(),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], ChangeTemplateSlotsFormDto.prototype, "tariffId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], ChangeTemplateSlotsFormDto.prototype, "ruleId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
32
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId && o.saved),
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ChangeTemplateSlotsFormDto.prototype, "title", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
38
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
39
|
+
(0, class_validator_1.IsBoolean)(),
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], ChangeTemplateSlotsFormDto.prototype, "saved", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId && o.prepaymentType !== prepayment_type_enum_1.PrepaymentTypeEnum.NO),
|
|
45
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 50 : value)),
|
|
46
|
+
(0, class_validator_1.IsPositive)(),
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], ChangeTemplateSlotsFormDto.prototype, "prepayment", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
52
|
+
(0, class_validator_1.IsEnum)(prepayment_type_enum_1.PrepaymentTypeEnum),
|
|
53
|
+
(0, class_transformer_1.Transform)(({ value }) => value || prepayment_type_enum_1.PrepaymentTypeEnum.PERCENT),
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], ChangeTemplateSlotsFormDto.prototype, "prepaymentType", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
59
|
+
(0, class_validator_1.IsEnum)(questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum),
|
|
60
|
+
(0, class_transformer_1.Transform)(({ value }) => value || questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.FULL_PRICE),
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
__metadata("design:type", String)
|
|
63
|
+
], ChangeTemplateSlotsFormDto.prototype, "cancelationRule", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId && o.cancelationRule !== questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.NO),
|
|
66
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 24 : value)),
|
|
67
|
+
(0, class_validator_1.IsNumber)(),
|
|
68
|
+
(0, class_transformer_1.Expose)(),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], ChangeTemplateSlotsFormDto.prototype, "minHoursForFreeCanceling", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
73
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 48 : value)),
|
|
74
|
+
(0, class_validator_1.IsNumber)(),
|
|
75
|
+
(0, class_transformer_1.Expose)(),
|
|
76
|
+
__metadata("design:type", Number)
|
|
77
|
+
], ChangeTemplateSlotsFormDto.prototype, "minHoursForBooking", void 0);
|
|
78
|
+
exports.ChangeTemplateSlotsFormDto = ChangeTemplateSlotsFormDto;
|