@escapenavigator/types 1.4.75 → 1.4.77
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/admin/admin.ro.d.ts +20 -3
- package/dist/admin/create-admin.dto.d.ts +20 -0
- package/dist/admin/create-admin.dto.js +110 -0
- package/dist/admin/current-admin.ro.d.ts +2 -2
- package/dist/agregator/agregator-questroom.ro.d.ts +0 -1
- package/dist/certificate-sale/enum/certificatesales-status.enum.d.ts +11 -0
- package/dist/certificate-sale/enum/certificatesales-status.enum.js +15 -0
- package/dist/certificate-sale/query-certificatesale.dto.d.ts +5 -5
- package/dist/certificate-sale/query-certificatesale.dto.js +12 -8
- package/dist/client/query-client.dto.d.ts +9 -0
- package/dist/client/query-client.dto.js +58 -0
- package/dist/order/cancel-order.dto.d.ts +3 -2
- package/dist/order/cancel-order.dto.js +7 -2
- package/dist/order/enum/order-status.enum.d.ts +11 -0
- package/dist/order/enum/order-status.enum.js +15 -0
- package/dist/order/order.ro.d.ts +12 -0
- package/dist/order/query-order.dto.d.ts +6 -8
- package/dist/order/query-order.dto.js +24 -24
- package/dist/profile/agregator-profile.ro.d.ts +0 -13
- package/dist/profile/create-profile.dto.d.ts +11 -10
- package/dist/profile/create-profile.dto.js +36 -26
- package/dist/profile/profile.ro.d.ts +17 -12
- package/dist/profile/update-current.dto.d.ts +9 -0
- package/dist/profile/update-current.dto.js +55 -0
- package/dist/questroom/create-questroom.dto.d.ts +1 -8
- package/dist/questroom/create-questroom.dto.js +7 -43
- package/dist/questroom/questroom.ro.d.ts +25 -22
- package/dist/slot/create-slot.dto.d.ts +8 -2
- package/dist/slot/create-slot.dto.js +46 -8
- package/dist/slot/slot-autocomplite.dto.d.ts +17 -0
- package/dist/slot/slot-autocomplite.dto.js +103 -0
- package/dist/slot/slot.ro.d.ts +9 -2
- package/dist/slot/{add-breaks.dto.d.ts → update-breaks.dto.d.ts} +2 -2
- package/dist/slot/{add-breaks.dto.js → update-breaks.dto.js} +16 -10
- package/dist/slot/{remove-breaks.dto.d.ts → update-min-hours.dto.d.ts} +2 -1
- package/dist/slot/{remove-breaks.dto.js → update-min-hours.dto.js} +19 -8
- package/dist/slot-rule/create-rule.dto.d.ts +11 -0
- package/dist/slot-rule/create-rule.dto.js +61 -0
- package/dist/slot-rule/defailt-rule.d.ts +9 -0
- package/dist/slot-rule/defailt-rule.js +12 -0
- package/dist/slot-rule/rule.ro.d.ts +13 -0
- package/dist/slot-rule/rule.ro.js +2 -0
- package/dist/slot-template/copy-template.dto.d.ts +4 -0
- package/dist/slot-template/{update-tariff.dto.js → copy-template.dto.js} +8 -18
- package/dist/slot-template/enum/update-slot-template-type.enum.d.ts +4 -0
- package/dist/slot-template/enum/update-slot-template-type.enum.js +8 -0
- package/dist/slot-template/slot-template-element.d.ts +2 -3
- package/dist/slot-template/slot-template.ro.d.ts +0 -1
- package/dist/slot-template/update-slot-template-first-step.dto.d.ts +3 -2
- package/dist/slot-template/update-slot-template-first-step.dto.js +10 -9
- package/dist/slot-template/update-slot-template.dto.d.ts +1 -0
- package/dist/slot-template/update-slot-template.dto.js +6 -0
- package/dist/tariff/tariff.ro.d.ts +3 -2
- package/dist/transaction/query-transaction.dto.d.ts +2 -4
- package/dist/transaction/query-transaction.dto.js +9 -15
- package/dist/translation/create-translation.dto.d.ts +3 -1
- package/dist/translation/create-translation.dto.js +11 -1
- package/dist/translation/edit-all-translation-loacales.dto.d.ts +2 -0
- package/dist/translation/edit-all-translation-loacales.dto.js +12 -2
- package/dist/translation/enum/translation-status.enum.d.ts +6 -0
- package/dist/translation/enum/translation-status.enum.js +10 -0
- package/dist/translation/translation.ro.d.ts +4 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/upload/enum/image-type.enum.d.ts +2 -1
- package/dist/upload/enum/image-type.enum.js +1 -0
- package/dist/user/query-user-report.dto.d.ts +4 -0
- package/dist/user/query-user-report.dto.js +28 -0
- package/dist/widget-openapi/widget-openapi-questroom.ro.d.ts +0 -3
- package/dist/widget-openapi/widget-openapi-slot.ro.d.ts +9 -2
- package/dist/widget-orders/widget-orders-order.ro.d.ts +5 -3
- package/package.json +2 -2
- package/dist/profile/enum/profile-status.enum.d.ts +0 -11
- package/dist/profile/enum/profile-status.enum.js +0 -15
- package/dist/slot-template/update-tariff.dto.d.ts +0 -6
|
@@ -14,65 +14,60 @@ 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");
|
|
18
17
|
class CreateProfileDto {
|
|
19
18
|
}
|
|
20
19
|
__decorate([
|
|
21
20
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
22
21
|
(0, class_transformer_1.Expose)(),
|
|
23
22
|
__metadata("design:type", String)
|
|
24
|
-
], CreateProfileDto.prototype, "
|
|
23
|
+
], CreateProfileDto.prototype, "country", void 0);
|
|
25
24
|
__decorate([
|
|
26
25
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
27
26
|
(0, class_transformer_1.Expose)(),
|
|
28
27
|
__metadata("design:type", String)
|
|
29
|
-
], CreateProfileDto.prototype, "
|
|
28
|
+
], CreateProfileDto.prototype, "title", void 0);
|
|
30
29
|
__decorate([
|
|
31
|
-
(0,
|
|
30
|
+
(0, class_validator_1.IsUrl)(),
|
|
32
31
|
(0, class_transformer_1.Expose)(),
|
|
33
32
|
__metadata("design:type", String)
|
|
34
|
-
], CreateProfileDto.prototype, "
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.IsNumber)(),
|
|
37
|
-
(0, class_transformer_1.Expose)(),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], CreateProfileDto.prototype, "registrationRequestId", void 0);
|
|
33
|
+
], CreateProfileDto.prototype, "site", void 0);
|
|
40
34
|
__decorate([
|
|
41
35
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
42
|
-
(0, class_validator_1.IsEmail)(),
|
|
43
36
|
(0, class_transformer_1.Expose)(),
|
|
44
37
|
__metadata("design:type", String)
|
|
45
|
-
], CreateProfileDto.prototype, "
|
|
38
|
+
], CreateProfileDto.prototype, "phoneForCustomers", void 0);
|
|
46
39
|
__decorate([
|
|
47
|
-
(0,
|
|
40
|
+
(0, class_validator_1.IsEmail)(),
|
|
48
41
|
(0, class_transformer_1.Expose)(),
|
|
49
42
|
__metadata("design:type", String)
|
|
50
|
-
], CreateProfileDto.prototype, "
|
|
43
|
+
], CreateProfileDto.prototype, "mainEmail", void 0);
|
|
51
44
|
__decorate([
|
|
52
|
-
(0, class_validator_1.
|
|
45
|
+
(0, class_validator_1.IsArray)(),
|
|
46
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
47
|
+
(0, class_validator_1.IsEmail)({}, { each: true }),
|
|
53
48
|
(0, class_transformer_1.Expose)(),
|
|
54
|
-
__metadata("design:type",
|
|
55
|
-
], CreateProfileDto.prototype, "
|
|
49
|
+
__metadata("design:type", Array)
|
|
50
|
+
], CreateProfileDto.prototype, "secondaryEmails", void 0);
|
|
56
51
|
__decorate([
|
|
57
52
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
58
53
|
(0, class_transformer_1.Expose)(),
|
|
59
54
|
__metadata("design:type", String)
|
|
60
55
|
], CreateProfileDto.prototype, "legalTitle", void 0);
|
|
61
56
|
__decorate([
|
|
62
|
-
(0,
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
58
|
(0, class_transformer_1.Expose)(),
|
|
64
59
|
__metadata("design:type", String)
|
|
65
|
-
], CreateProfileDto.prototype, "
|
|
60
|
+
], CreateProfileDto.prototype, "imprintContact", void 0);
|
|
66
61
|
__decorate([
|
|
67
|
-
(0,
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
63
|
(0, class_transformer_1.Expose)(),
|
|
69
64
|
__metadata("design:type", String)
|
|
70
|
-
], CreateProfileDto.prototype, "
|
|
65
|
+
], CreateProfileDto.prototype, "imprintPhone", void 0);
|
|
71
66
|
__decorate([
|
|
72
|
-
(0, class_validator_1.
|
|
67
|
+
(0, class_validator_1.IsUrl)(),
|
|
73
68
|
(0, class_transformer_1.Expose)(),
|
|
74
69
|
__metadata("design:type", String)
|
|
75
|
-
], CreateProfileDto.prototype, "
|
|
70
|
+
], CreateProfileDto.prototype, "imprintLink", void 0);
|
|
76
71
|
__decorate([
|
|
77
72
|
(0, class_validator_1.IsOptional)(),
|
|
78
73
|
(0, class_validator_1.IsString)(),
|
|
@@ -84,17 +79,32 @@ __decorate([
|
|
|
84
79
|
(0, class_validator_1.IsString)(),
|
|
85
80
|
(0, class_transformer_1.Expose)(),
|
|
86
81
|
__metadata("design:type", String)
|
|
87
|
-
], CreateProfileDto.prototype, "
|
|
82
|
+
], CreateProfileDto.prototype, "instagram", void 0);
|
|
88
83
|
__decorate([
|
|
89
84
|
(0, class_validator_1.IsOptional)(),
|
|
90
85
|
(0, class_validator_1.IsString)(),
|
|
91
86
|
(0, class_transformer_1.Expose)(),
|
|
92
87
|
__metadata("design:type", String)
|
|
93
|
-
], CreateProfileDto.prototype, "
|
|
88
|
+
], CreateProfileDto.prototype, "facebook", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_validator_1.IsOptional)(),
|
|
91
|
+
(0, class_transformer_1.Expose)(),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], CreateProfileDto.prototype, "contactName", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, class_validator_1.IsOptional)(),
|
|
96
|
+
(0, class_transformer_1.Expose)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], CreateProfileDto.prototype, "contactPhone", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, class_validator_1.IsOptional)(),
|
|
101
|
+
(0, class_transformer_1.Expose)(),
|
|
102
|
+
__metadata("design:type", Number)
|
|
103
|
+
], CreateProfileDto.prototype, "registrationRequestId", void 0);
|
|
94
104
|
__decorate([
|
|
95
105
|
(0, class_validator_1.IsOptional)(),
|
|
96
106
|
(0, class_validator_1.IsString)(),
|
|
97
107
|
(0, class_transformer_1.Expose)(),
|
|
98
108
|
__metadata("design:type", String)
|
|
99
|
-
], CreateProfileDto.prototype, "
|
|
109
|
+
], CreateProfileDto.prototype, "logo", void 0);
|
|
100
110
|
exports.CreateProfileDto = CreateProfileDto;
|
|
@@ -1,25 +1,30 @@
|
|
|
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 { ProfileStatusEnum } from './enum/profile-status.enum';
|
|
5
4
|
export declare type ProfileRO = ResponseObject & {
|
|
6
5
|
title: string;
|
|
7
6
|
legalTitle: string;
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
phoneForCustomers: string;
|
|
8
|
+
mainEmail: string;
|
|
9
|
+
secondaryEmails: string[];
|
|
10
10
|
site: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
logo?: string;
|
|
16
|
-
locationsCount: number;
|
|
17
|
-
questroomsCount: number;
|
|
11
|
+
logo: string;
|
|
12
|
+
imprintPhone: string;
|
|
13
|
+
imprintLink: string;
|
|
14
|
+
imprintContact: string;
|
|
18
15
|
contactPhone: string;
|
|
19
16
|
contactName: string;
|
|
17
|
+
facebook: string;
|
|
18
|
+
instagram: string;
|
|
19
|
+
comment: string;
|
|
20
|
+
slug: string;
|
|
20
21
|
registrationRequestId: number;
|
|
21
|
-
notPaidBill: Date;
|
|
22
|
-
status: ProfileStatusEnum;
|
|
23
22
|
language: Languages;
|
|
24
23
|
country: CountriesEnum;
|
|
24
|
+
locationsCount: number;
|
|
25
|
+
questroomsCount: number;
|
|
26
|
+
lastVisit: Date;
|
|
27
|
+
stripeCustomer: string;
|
|
28
|
+
notPaidBill: Date;
|
|
29
|
+
verified: boolean;
|
|
25
30
|
};
|
|
@@ -0,0 +1,55 @@
|
|
|
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.UpdateCurrentDto = 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 UpdateCurrentDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UpdateCurrentDto.prototype, "title", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsUrl)(),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], UpdateCurrentDto.prototype, "site", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], UpdateCurrentDto.prototype, "phoneForCustomers", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsEmail)(),
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], UpdateCurrentDto.prototype, "mainEmail", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], UpdateCurrentDto.prototype, "legalTitle", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], UpdateCurrentDto.prototype, "instagram", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], UpdateCurrentDto.prototype, "facebook", void 0);
|
|
55
|
+
exports.UpdateCurrentDto = UpdateCurrentDto;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
2
|
import { TagsEnum } from '../shared/enum/tags.enum';
|
|
3
|
-
import { QuestroomCancelationTypeEnum } from './enum/questroom-cancelation-type.enum';
|
|
4
3
|
import { QuestroomTypeEnum } from './enum/questroom-type.enum';
|
|
5
4
|
export declare class CreateQuestroomDto {
|
|
6
5
|
title: string;
|
|
6
|
+
scheduleRef: number;
|
|
7
7
|
webLink: string;
|
|
8
8
|
locationId: number;
|
|
9
9
|
type: QuestroomTypeEnum;
|
|
10
10
|
difficult: number;
|
|
11
11
|
fear: number;
|
|
12
12
|
minAge: number;
|
|
13
|
-
playersMin: number;
|
|
14
|
-
playersMax: number;
|
|
15
13
|
actors: boolean;
|
|
16
14
|
questroomIds: number[];
|
|
17
15
|
languages: Languages[];
|
|
@@ -21,12 +19,7 @@ export declare class CreateQuestroomDto {
|
|
|
21
19
|
cardPaymentsCashbox: number;
|
|
22
20
|
awailableForWidgets: boolean;
|
|
23
21
|
awailableForNavigator: boolean;
|
|
24
|
-
breakInterval: number;
|
|
25
22
|
time: number;
|
|
26
|
-
cancelationRule: QuestroomCancelationTypeEnum;
|
|
27
|
-
minHoursForFreeCanceling: number;
|
|
28
|
-
minHoursForBooking: number;
|
|
29
|
-
minHoursForBookingWeekends: number;
|
|
30
23
|
ticketSystem: boolean;
|
|
31
24
|
photo: string;
|
|
32
25
|
photos: string[];
|
|
@@ -14,7 +14,6 @@ const class_transformer_1 = require("class-transformer");
|
|
|
14
14
|
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
|
-
const questroom_cancelation_type_enum_1 = require("./enum/questroom-cancelation-type.enum");
|
|
18
17
|
const questroom_type_enum_1 = require("./enum/questroom-type.enum");
|
|
19
18
|
class CreateQuestroomDto {
|
|
20
19
|
}
|
|
@@ -23,6 +22,11 @@ __decorate([
|
|
|
23
22
|
(0, class_transformer_1.Expose)(),
|
|
24
23
|
__metadata("design:type", String)
|
|
25
24
|
], CreateQuestroomDto.prototype, "title", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], CreateQuestroomDto.prototype, "scheduleRef", void 0);
|
|
26
30
|
__decorate([
|
|
27
31
|
(0, class_validator_1.IsUrl)(),
|
|
28
32
|
(0, class_transformer_1.Expose)(),
|
|
@@ -57,18 +61,6 @@ __decorate([
|
|
|
57
61
|
(0, class_transformer_1.Expose)(),
|
|
58
62
|
__metadata("design:type", Number)
|
|
59
63
|
], CreateQuestroomDto.prototype, "minAge", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, class_validator_1.IsPositive)(),
|
|
62
|
-
(0, class_transformer_1.Transform)(({ value }) => value || 2),
|
|
63
|
-
(0, class_transformer_1.Expose)(),
|
|
64
|
-
__metadata("design:type", Number)
|
|
65
|
-
], CreateQuestroomDto.prototype, "playersMin", void 0);
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, class_validator_1.IsPositive)(),
|
|
68
|
-
(0, class_transformer_1.Transform)(({ value }) => value || 5),
|
|
69
|
-
(0, class_transformer_1.Expose)(),
|
|
70
|
-
__metadata("design:type", Number)
|
|
71
|
-
], CreateQuestroomDto.prototype, "playersMax", void 0);
|
|
72
64
|
__decorate([
|
|
73
65
|
(0, class_validator_1.IsBoolean)(),
|
|
74
66
|
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
@@ -120,42 +112,12 @@ __decorate([
|
|
|
120
112
|
(0, class_transformer_1.Expose)(),
|
|
121
113
|
__metadata("design:type", Boolean)
|
|
122
114
|
], CreateQuestroomDto.prototype, "awailableForNavigator", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, class_validator_1.IsPositive)(),
|
|
125
|
-
(0, class_transformer_1.Transform)(({ value }) => value || 15),
|
|
126
|
-
(0, class_transformer_1.Expose)(),
|
|
127
|
-
__metadata("design:type", Number)
|
|
128
|
-
], CreateQuestroomDto.prototype, "breakInterval", void 0);
|
|
129
115
|
__decorate([
|
|
130
116
|
(0, class_validator_1.IsPositive)(),
|
|
131
117
|
(0, class_transformer_1.Transform)(({ value }) => value || 60),
|
|
132
118
|
(0, class_transformer_1.Expose)(),
|
|
133
119
|
__metadata("design:type", Number)
|
|
134
120
|
], CreateQuestroomDto.prototype, "time", void 0);
|
|
135
|
-
__decorate([
|
|
136
|
-
(0, class_validator_1.IsEnum)(questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum),
|
|
137
|
-
(0, class_transformer_1.Transform)(({ value }) => value || questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.MIN_PRICE),
|
|
138
|
-
(0, class_transformer_1.Expose)(),
|
|
139
|
-
__metadata("design:type", String)
|
|
140
|
-
], CreateQuestroomDto.prototype, "cancelationRule", void 0);
|
|
141
|
-
__decorate([
|
|
142
|
-
(0, class_validator_1.IsInt)(),
|
|
143
|
-
(0, class_transformer_1.Transform)(({ value }) => value || 24),
|
|
144
|
-
(0, class_transformer_1.Expose)(),
|
|
145
|
-
__metadata("design:type", Number)
|
|
146
|
-
], CreateQuestroomDto.prototype, "minHoursForFreeCanceling", void 0);
|
|
147
|
-
__decorate([
|
|
148
|
-
(0, class_validator_1.IsInt)(),
|
|
149
|
-
(0, class_transformer_1.Transform)(({ value }) => value || 24),
|
|
150
|
-
(0, class_transformer_1.Expose)(),
|
|
151
|
-
__metadata("design:type", Number)
|
|
152
|
-
], CreateQuestroomDto.prototype, "minHoursForBooking", void 0);
|
|
153
|
-
__decorate([
|
|
154
|
-
(0, class_validator_1.IsInt)(),
|
|
155
|
-
(0, class_transformer_1.Transform)(({ value }) => value || 2),
|
|
156
|
-
(0, class_transformer_1.Expose)(),
|
|
157
|
-
__metadata("design:type", Number)
|
|
158
|
-
], CreateQuestroomDto.prototype, "minHoursForBookingWeekends", void 0);
|
|
159
121
|
__decorate([
|
|
160
122
|
(0, class_validator_1.IsBoolean)(),
|
|
161
123
|
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
@@ -186,6 +148,8 @@ __decorate([
|
|
|
186
148
|
], CreateQuestroomDto.prototype, "legend", void 0);
|
|
187
149
|
__decorate([
|
|
188
150
|
(0, class_validator_1.IsArray)(),
|
|
151
|
+
(0, class_validator_1.ArrayMinSize)(2),
|
|
152
|
+
(0, class_validator_1.ArrayMaxSize)(3),
|
|
189
153
|
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
190
154
|
(0, class_transformer_1.Expose)(),
|
|
191
155
|
__metadata("design:type", Array)
|
|
@@ -2,38 +2,41 @@ 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 {
|
|
5
|
+
import { QuestroomTypeEnum } from './enum/questroom-type.enum';
|
|
6
6
|
export declare type QuestroomRO = ResponseObject & {
|
|
7
7
|
title: string;
|
|
8
|
+
locationId: number;
|
|
8
9
|
country: CountriesEnum;
|
|
9
|
-
slug: string;
|
|
10
|
-
video?: string;
|
|
11
|
-
photo: string;
|
|
12
10
|
webLink: string;
|
|
13
|
-
|
|
14
|
-
time: number;
|
|
15
|
-
hasSchedule: boolean;
|
|
16
|
-
breakInterval: number;
|
|
17
|
-
type: string;
|
|
18
|
-
minAge: number;
|
|
11
|
+
type: QuestroomTypeEnum;
|
|
19
12
|
difficult: number;
|
|
13
|
+
price: number;
|
|
20
14
|
fear: number;
|
|
21
|
-
|
|
15
|
+
minAge: number;
|
|
22
16
|
actors: boolean;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
minHoursForBooking: number;
|
|
27
|
-
minHoursForBookingWeekends: number;
|
|
28
|
-
cancelationRule: QuestroomCancelationTypeEnum;
|
|
29
|
-
awailableForNavigator: boolean;
|
|
30
|
-
awailableForWidgets: boolean;
|
|
31
|
-
questroomIds?: number[];
|
|
17
|
+
questroomIds: number[];
|
|
18
|
+
languages: Languages[];
|
|
19
|
+
defaultLanguage: Languages;
|
|
32
20
|
onlinePaymentsCashbox: number;
|
|
33
21
|
cashPaymentsCashbox: number;
|
|
34
22
|
cardPaymentsCashbox: number;
|
|
35
|
-
|
|
36
|
-
|
|
23
|
+
time: number;
|
|
24
|
+
slotTemplateId: number;
|
|
25
|
+
ticketSystem: boolean;
|
|
26
|
+
video?: string;
|
|
27
|
+
photo: string;
|
|
28
|
+
photos: string[];
|
|
29
|
+
legend: string;
|
|
37
30
|
sortPosition: number;
|
|
31
|
+
tags: TagsEnum[];
|
|
32
|
+
slug: string;
|
|
38
33
|
navigatorReviewId: number;
|
|
34
|
+
playersMin: number;
|
|
35
|
+
playersMax: number;
|
|
36
|
+
rating: number;
|
|
37
|
+
reviewsCount: number;
|
|
38
|
+
top: boolean;
|
|
39
|
+
closed: boolean;
|
|
40
|
+
awailableForNavigator: boolean;
|
|
41
|
+
awailableForWidgets: boolean;
|
|
39
42
|
};
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
+
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
1
2
|
import { PrepaymentTypeEnum } from './enum/prepayment-type.enum';
|
|
2
3
|
export declare class CreateSlotDto {
|
|
3
4
|
date: string;
|
|
4
5
|
start: string;
|
|
5
|
-
end: string;
|
|
6
6
|
questroomId: number;
|
|
7
7
|
tariffId: number;
|
|
8
|
+
ruleId: number;
|
|
9
|
+
title: string;
|
|
10
|
+
saved: boolean;
|
|
11
|
+
prepayment: number;
|
|
8
12
|
prepaymentType: PrepaymentTypeEnum;
|
|
9
|
-
|
|
13
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
14
|
+
minHoursForFreeCanceling: number;
|
|
15
|
+
minHoursForBooking: number;
|
|
10
16
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.CreateSlotDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const questroom_cancelation_type_enum_1 = require("../questroom/enum/questroom-cancelation-type.enum");
|
|
15
16
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
17
|
const prepayment_type_enum_1 = require("./enum/prepayment-type.enum");
|
|
17
18
|
class CreateSlotDto {
|
|
@@ -26,11 +27,6 @@ __decorate([
|
|
|
26
27
|
(0, class_transformer_1.Expose)(),
|
|
27
28
|
__metadata("design:type", String)
|
|
28
29
|
], CreateSlotDto.prototype, "start", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
31
|
-
(0, class_transformer_1.Expose)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], CreateSlotDto.prototype, "end", void 0);
|
|
34
30
|
__decorate([
|
|
35
31
|
(0, class_validator_1.IsNumber)(),
|
|
36
32
|
(0, class_transformer_1.Expose)(),
|
|
@@ -42,14 +38,56 @@ __decorate([
|
|
|
42
38
|
__metadata("design:type", Number)
|
|
43
39
|
], CreateSlotDto.prototype, "tariffId", void 0);
|
|
44
40
|
__decorate([
|
|
45
|
-
(0, class_validator_1.
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], CreateSlotDto.prototype, "ruleId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
47
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId && o.saved),
|
|
46
48
|
(0, class_transformer_1.Expose)(),
|
|
47
49
|
__metadata("design:type", String)
|
|
48
|
-
], CreateSlotDto.prototype, "
|
|
50
|
+
], CreateSlotDto.prototype, "title", void 0);
|
|
49
51
|
__decorate([
|
|
50
|
-
(0, class_validator_1.ValidateIf)((
|
|
52
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
53
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
54
|
+
(0, class_validator_1.IsBoolean)(),
|
|
51
55
|
(0, class_transformer_1.Expose)(),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], CreateSlotDto.prototype, "saved", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId && o.prepaymentType !== prepayment_type_enum_1.PrepaymentTypeEnum.NO),
|
|
60
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 50 : value)),
|
|
52
61
|
(0, class_validator_1.IsPositive)(),
|
|
62
|
+
(0, class_transformer_1.Expose)(),
|
|
53
63
|
__metadata("design:type", Number)
|
|
54
64
|
], CreateSlotDto.prototype, "prepayment", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
67
|
+
(0, class_validator_1.IsEnum)(prepayment_type_enum_1.PrepaymentTypeEnum),
|
|
68
|
+
(0, class_transformer_1.Transform)(({ value }) => value || prepayment_type_enum_1.PrepaymentTypeEnum.PERCENT),
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], CreateSlotDto.prototype, "prepaymentType", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
74
|
+
(0, class_validator_1.IsEnum)(questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum),
|
|
75
|
+
(0, class_transformer_1.Transform)(({ value }) => value || questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.FULL_PRICE),
|
|
76
|
+
(0, class_transformer_1.Expose)(),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], CreateSlotDto.prototype, "cancelationRule", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId && o.cancelationRule !== questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.NO),
|
|
81
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 24 : value)),
|
|
82
|
+
(0, class_validator_1.IsNumber)(),
|
|
83
|
+
(0, class_transformer_1.Expose)(),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], CreateSlotDto.prototype, "minHoursForFreeCanceling", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
88
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 48 : value)),
|
|
89
|
+
(0, class_validator_1.IsNumber)(),
|
|
90
|
+
(0, class_transformer_1.Expose)(),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], CreateSlotDto.prototype, "minHoursForBooking", void 0);
|
|
55
93
|
exports.CreateSlotDto = CreateSlotDto;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
2
|
+
import { PrepaymentTypeEnum } from './enum/prepayment-type.enum';
|
|
3
|
+
export declare class SlotAutocompliteDto {
|
|
4
|
+
days: number[];
|
|
5
|
+
start: string;
|
|
6
|
+
end: string;
|
|
7
|
+
breakInterval: string;
|
|
8
|
+
tariffId: number;
|
|
9
|
+
ruleId: number;
|
|
10
|
+
title: string;
|
|
11
|
+
saved: boolean;
|
|
12
|
+
prepayment: number;
|
|
13
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
14
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
15
|
+
minHoursForFreeCanceling: number;
|
|
16
|
+
minHoursForBooking: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
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.SlotAutocompliteDto = 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 SlotAutocompliteDto {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsArray)(),
|
|
22
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
23
|
+
(0, class_transformer_1.Transform)(({ value }) => value || [0, 1, 2, 3, 4, 5, 6]),
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", Array)
|
|
26
|
+
], SlotAutocompliteDto.prototype, "days", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
29
|
+
(0, class_transformer_1.Transform)(({ value }) => value || '09:00'),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], SlotAutocompliteDto.prototype, "start", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Transform)(({ value }) => value || '22:00'),
|
|
35
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], SlotAutocompliteDto.prototype, "end", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsNumber)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
(0, class_transformer_1.Transform)(({ value }) => value || 30),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], SlotAutocompliteDto.prototype, "breakInterval", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsNumber)(),
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
__metadata("design:type", Number)
|
|
49
|
+
], SlotAutocompliteDto.prototype, "tariffId", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
__metadata("design:type", Number)
|
|
54
|
+
], SlotAutocompliteDto.prototype, "ruleId", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
57
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId && o.saved),
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], SlotAutocompliteDto.prototype, "title", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
63
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
64
|
+
(0, class_validator_1.IsBoolean)(),
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", Boolean)
|
|
67
|
+
], SlotAutocompliteDto.prototype, "saved", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId && o.prepaymentType !== prepayment_type_enum_1.PrepaymentTypeEnum.NO),
|
|
70
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 50 : value)),
|
|
71
|
+
(0, class_validator_1.IsPositive)(),
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], SlotAutocompliteDto.prototype, "prepayment", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
77
|
+
(0, class_validator_1.IsEnum)(prepayment_type_enum_1.PrepaymentTypeEnum),
|
|
78
|
+
(0, class_transformer_1.Transform)(({ value }) => value || prepayment_type_enum_1.PrepaymentTypeEnum.PERCENT),
|
|
79
|
+
(0, class_transformer_1.Expose)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], SlotAutocompliteDto.prototype, "prepaymentType", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
84
|
+
(0, class_validator_1.IsEnum)(questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum),
|
|
85
|
+
(0, class_transformer_1.Transform)(({ value }) => value || questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.FULL_PRICE),
|
|
86
|
+
(0, class_transformer_1.Expose)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], SlotAutocompliteDto.prototype, "cancelationRule", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId && o.cancelationRule !== questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.NO),
|
|
91
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 24 : value)),
|
|
92
|
+
(0, class_validator_1.IsNumber)(),
|
|
93
|
+
(0, class_transformer_1.Expose)(),
|
|
94
|
+
__metadata("design:type", Number)
|
|
95
|
+
], SlotAutocompliteDto.prototype, "minHoursForFreeCanceling", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
98
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 48 : value)),
|
|
99
|
+
(0, class_validator_1.IsNumber)(),
|
|
100
|
+
(0, class_transformer_1.Expose)(),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], SlotAutocompliteDto.prototype, "minHoursForBooking", void 0);
|
|
103
|
+
exports.SlotAutocompliteDto = SlotAutocompliteDto;
|
package/dist/slot/slot.ro.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
1
2
|
import { PrepaymentTypeEnum } from './enum/prepayment-type.enum';
|
|
2
3
|
export declare type SlotRO = {
|
|
3
4
|
id: number;
|
|
@@ -9,8 +10,14 @@ export declare type SlotRO = {
|
|
|
9
10
|
start: string;
|
|
10
11
|
end: string;
|
|
11
12
|
breakReason: string | null;
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
customMinHours?: number;
|
|
14
|
+
rule: {
|
|
15
|
+
minHoursForBooking: number;
|
|
16
|
+
prepayment: number;
|
|
17
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
18
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
19
|
+
minHoursForFreeCanceling: number;
|
|
20
|
+
};
|
|
14
21
|
order?: {
|
|
15
22
|
id: number;
|
|
16
23
|
players: number;
|