@escapenavigator/types 1.4.74 → 1.4.76
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 +9 -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/invoice.ro.d.ts +1 -0
- package/dist/profile/profile.ro.d.ts +24 -11
- package/dist/profile/update-current.dto.d.ts +16 -0
- package/dist/profile/update-current.dto.js +87 -0
- package/dist/questroom/create-questroom.dto.d.ts +0 -8
- package/dist/questroom/create-questroom.dto.js +2 -43
- package/dist/questroom/questroom.ro.d.ts +25 -22
- package/dist/slot/create-slot.dto.d.ts +4 -0
- package/dist/slot/create-slot.dto.js +20 -0
- package/dist/slot/slot.ro.d.ts +4 -0
- package/dist/slot/{remove-breaks.dto.d.ts → update-breaks.dto.d.ts} +2 -1
- package/dist/slot/{add-breaks.dto.js → update-breaks.dto.js} +16 -10
- package/dist/slot/update-few.dto.d.ts +15 -0
- package/dist/slot/update-few.dto.js +81 -0
- package/dist/slot-template/copy-template.dto.d.ts +4 -0
- package/dist/slot-template/copy-template.dto.js +27 -0
- package/dist/slot-template/slot-template-element.d.ts +4 -0
- package/dist/slot-template/update-slot-template-first-step.dto.d.ts +1 -2
- package/dist/slot-template/update-slot-template-first-step.dto.js +5 -10
- 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/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/{slot/remove-breaks.dto.js → user/query-user-report.dto.js} +10 -21
- package/dist/widget-openapi/widget-openapi-questroom.ro.d.ts +0 -3
- package/dist/widget-openapi/widget-openapi-slot.ro.d.ts +4 -0
- 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/add-breaks.dto.d.ts +0 -8
|
@@ -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,24 +1,37 @@
|
|
|
1
|
+
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
1
2
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
3
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
4
|
import { ResponseObject } from '../shared/ro';
|
|
4
|
-
import {
|
|
5
|
+
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
5
6
|
export declare type ProfileRO = ResponseObject & {
|
|
6
7
|
title: string;
|
|
7
8
|
legalTitle: string;
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
phoneForCustomers: string;
|
|
10
|
+
mainEmail: string;
|
|
11
|
+
secondaryEmails: string[];
|
|
10
12
|
site: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
comment?: string;
|
|
15
|
-
logo?: string;
|
|
16
|
-
locationsCount: number;
|
|
17
|
-
questroomsCount: number;
|
|
13
|
+
imprintPhone: string;
|
|
14
|
+
imprintLink: string;
|
|
15
|
+
imprintContact: string;
|
|
18
16
|
contactPhone: string;
|
|
19
17
|
contactName: string;
|
|
18
|
+
facebook: string;
|
|
19
|
+
instagram: string;
|
|
20
|
+
comment: string;
|
|
21
|
+
logo: string;
|
|
22
|
+
slug: string;
|
|
20
23
|
registrationRequestId: number;
|
|
21
|
-
status: ProfileStatusEnum;
|
|
22
24
|
language: Languages;
|
|
23
25
|
country: CountriesEnum;
|
|
26
|
+
locationsCount: number;
|
|
27
|
+
questroomsCount: number;
|
|
28
|
+
lastVisit: Date;
|
|
29
|
+
stripeCustomer: string;
|
|
30
|
+
notPaidBill: Date;
|
|
31
|
+
prepayment: number;
|
|
32
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
33
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
34
|
+
minHoursForFreeCanceling: number;
|
|
35
|
+
minHoursForBooking: number;
|
|
36
|
+
verified: boolean;
|
|
24
37
|
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
2
|
+
import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
|
|
3
|
+
export declare class UpdateCurrentDto {
|
|
4
|
+
title: string;
|
|
5
|
+
site: string;
|
|
6
|
+
phoneForCustomers: string;
|
|
7
|
+
mainEmail: string;
|
|
8
|
+
legalTitle: string;
|
|
9
|
+
instagram?: string;
|
|
10
|
+
facebook?: string;
|
|
11
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
12
|
+
prepayment?: number;
|
|
13
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
14
|
+
minHoursForFreeCanceling: number;
|
|
15
|
+
minHoursForBooking: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 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("../slot/enum/prepayment-type.enum");
|
|
18
|
+
class UpdateCurrentDto {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UpdateCurrentDto.prototype, "title", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsUrl)(),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], UpdateCurrentDto.prototype, "site", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], UpdateCurrentDto.prototype, "phoneForCustomers", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsEmail)(),
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], UpdateCurrentDto.prototype, "mainEmail", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], UpdateCurrentDto.prototype, "legalTitle", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsOptional)(),
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], UpdateCurrentDto.prototype, "instagram", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], UpdateCurrentDto.prototype, "facebook", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsEnum)(prepayment_type_enum_1.PrepaymentTypeEnum),
|
|
59
|
+
(0, class_transformer_1.Transform)(({ value }) => value || prepayment_type_enum_1.PrepaymentTypeEnum.NO),
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], UpdateCurrentDto.prototype, "prepaymentType", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.ValidateIf)((v) => v.prepaymentType !== prepayment_type_enum_1.PrepaymentTypeEnum.NO),
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
(0, class_validator_1.IsPositive)(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], UpdateCurrentDto.prototype, "prepayment", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsEnum)(questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum),
|
|
71
|
+
(0, class_transformer_1.Transform)(({ value }) => value || questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.MIN_PRICE),
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], UpdateCurrentDto.prototype, "cancelationRule", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsInt)(),
|
|
77
|
+
(0, class_transformer_1.Transform)(({ value }) => value || 24),
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], UpdateCurrentDto.prototype, "minHoursForFreeCanceling", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsInt)(),
|
|
83
|
+
(0, class_transformer_1.Transform)(({ value }) => value || 24),
|
|
84
|
+
(0, class_transformer_1.Expose)(),
|
|
85
|
+
__metadata("design:type", Number)
|
|
86
|
+
], UpdateCurrentDto.prototype, "minHoursForBooking", void 0);
|
|
87
|
+
exports.UpdateCurrentDto = UpdateCurrentDto;
|
|
@@ -1,6 +1,5 @@
|
|
|
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;
|
|
@@ -10,8 +9,6 @@ export declare class CreateQuestroomDto {
|
|
|
10
9
|
difficult: number;
|
|
11
10
|
fear: number;
|
|
12
11
|
minAge: number;
|
|
13
|
-
playersMin: number;
|
|
14
|
-
playersMax: number;
|
|
15
12
|
actors: boolean;
|
|
16
13
|
questroomIds: number[];
|
|
17
14
|
languages: Languages[];
|
|
@@ -21,12 +18,7 @@ export declare class CreateQuestroomDto {
|
|
|
21
18
|
cardPaymentsCashbox: number;
|
|
22
19
|
awailableForWidgets: boolean;
|
|
23
20
|
awailableForNavigator: boolean;
|
|
24
|
-
breakInterval: number;
|
|
25
21
|
time: number;
|
|
26
|
-
cancelationRule: QuestroomCancelationTypeEnum;
|
|
27
|
-
minHoursForFreeCanceling: number;
|
|
28
|
-
minHoursForBooking: number;
|
|
29
|
-
minHoursForBookingWeekends: number;
|
|
30
22
|
ticketSystem: boolean;
|
|
31
23
|
photo: string;
|
|
32
24
|
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
|
}
|
|
@@ -57,18 +56,6 @@ __decorate([
|
|
|
57
56
|
(0, class_transformer_1.Expose)(),
|
|
58
57
|
__metadata("design:type", Number)
|
|
59
58
|
], 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
59
|
__decorate([
|
|
73
60
|
(0, class_validator_1.IsBoolean)(),
|
|
74
61
|
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
@@ -120,42 +107,12 @@ __decorate([
|
|
|
120
107
|
(0, class_transformer_1.Expose)(),
|
|
121
108
|
__metadata("design:type", Boolean)
|
|
122
109
|
], 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
110
|
__decorate([
|
|
130
111
|
(0, class_validator_1.IsPositive)(),
|
|
131
112
|
(0, class_transformer_1.Transform)(({ value }) => value || 60),
|
|
132
113
|
(0, class_transformer_1.Expose)(),
|
|
133
114
|
__metadata("design:type", Number)
|
|
134
115
|
], 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
116
|
__decorate([
|
|
160
117
|
(0, class_validator_1.IsBoolean)(),
|
|
161
118
|
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
@@ -186,6 +143,8 @@ __decorate([
|
|
|
186
143
|
], CreateQuestroomDto.prototype, "legend", void 0);
|
|
187
144
|
__decorate([
|
|
188
145
|
(0, class_validator_1.IsArray)(),
|
|
146
|
+
(0, class_validator_1.ArrayMinSize)(2),
|
|
147
|
+
(0, class_validator_1.ArrayMaxSize)(3),
|
|
189
148
|
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
190
149
|
(0, class_transformer_1.Expose)(),
|
|
191
150
|
__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
|
+
hasSchedule: boolean;
|
|
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,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 class CreateSlotDto {
|
|
3
4
|
date: string;
|
|
@@ -7,4 +8,7 @@ export declare class CreateSlotDto {
|
|
|
7
8
|
tariffId: number;
|
|
8
9
|
prepaymentType: PrepaymentTypeEnum;
|
|
9
10
|
prepayment?: number;
|
|
11
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
12
|
+
minHoursForFreeCanceling: number;
|
|
13
|
+
minHoursForBooking: number;
|
|
10
14
|
}
|
|
@@ -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 {
|
|
@@ -43,6 +44,7 @@ __decorate([
|
|
|
43
44
|
], CreateSlotDto.prototype, "tariffId", void 0);
|
|
44
45
|
__decorate([
|
|
45
46
|
(0, class_validator_1.IsEnum)(prepayment_type_enum_1.PrepaymentTypeEnum),
|
|
47
|
+
(0, class_transformer_1.Transform)(({ value }) => value || prepayment_type_enum_1.PrepaymentTypeEnum.NO),
|
|
46
48
|
(0, class_transformer_1.Expose)(),
|
|
47
49
|
__metadata("design:type", String)
|
|
48
50
|
], CreateSlotDto.prototype, "prepaymentType", void 0);
|
|
@@ -52,4 +54,22 @@ __decorate([
|
|
|
52
54
|
(0, class_validator_1.IsPositive)(),
|
|
53
55
|
__metadata("design:type", Number)
|
|
54
56
|
], CreateSlotDto.prototype, "prepayment", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsEnum)(questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum),
|
|
59
|
+
(0, class_transformer_1.Transform)(({ value }) => value || questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.MIN_PRICE),
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], CreateSlotDto.prototype, "cancelationRule", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsInt)(),
|
|
65
|
+
(0, class_transformer_1.Transform)(({ value }) => value || 24),
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", Number)
|
|
68
|
+
], CreateSlotDto.prototype, "minHoursForFreeCanceling", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsInt)(),
|
|
71
|
+
(0, class_transformer_1.Transform)(({ value }) => value || 24),
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], CreateSlotDto.prototype, "minHoursForBooking", void 0);
|
|
55
75
|
exports.CreateSlotDto = CreateSlotDto;
|
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;
|
|
@@ -10,7 +11,10 @@ export declare type SlotRO = {
|
|
|
10
11
|
end: string;
|
|
11
12
|
breakReason: string | null;
|
|
12
13
|
prepayment: number;
|
|
14
|
+
minHoursForBooking: number;
|
|
13
15
|
prepaymentType: PrepaymentTypeEnum;
|
|
16
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
17
|
+
minHoursForFreeCanceling: number;
|
|
14
18
|
order?: {
|
|
15
19
|
id: number;
|
|
16
20
|
players: number;
|
|
@@ -9,35 +9,41 @@ 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.UpdateBreaksDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
|
-
class
|
|
16
|
+
class UpdateBreaksDto {
|
|
17
17
|
}
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, class_validator_1.IsArray)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
20
21
|
(0, class_transformer_1.Transform)(({ value }) => (value && value.length ? value : [])),
|
|
21
22
|
__metadata("design:type", Array)
|
|
22
|
-
],
|
|
23
|
+
], UpdateBreaksDto.prototype, "questroomIds", void 0);
|
|
23
24
|
__decorate([
|
|
24
|
-
(0,
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
25
27
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
28
|
+
], UpdateBreaksDto.prototype, "breakReason", void 0);
|
|
27
29
|
__decorate([
|
|
28
30
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
29
32
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
33
|
+
], UpdateBreaksDto.prototype, "startDate", void 0);
|
|
31
34
|
__decorate([
|
|
32
35
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
33
37
|
__metadata("design:type", String)
|
|
34
|
-
],
|
|
38
|
+
], UpdateBreaksDto.prototype, "endDate", void 0);
|
|
35
39
|
__decorate([
|
|
36
40
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
37
42
|
__metadata("design:type", String)
|
|
38
|
-
],
|
|
43
|
+
], UpdateBreaksDto.prototype, "startTime", void 0);
|
|
39
44
|
__decorate([
|
|
40
45
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
41
47
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
43
|
-
exports.
|
|
48
|
+
], UpdateBreaksDto.prototype, "endTime", void 0);
|
|
49
|
+
exports.UpdateBreaksDto = UpdateBreaksDto;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
2
|
+
import { PrepaymentTypeEnum } from './enum/prepayment-type.enum';
|
|
3
|
+
export declare class UpdateFewDto {
|
|
4
|
+
questroomIds: number[];
|
|
5
|
+
breakReason?: string;
|
|
6
|
+
startDate: string;
|
|
7
|
+
endDate: string;
|
|
8
|
+
startTime: string;
|
|
9
|
+
endTime: string;
|
|
10
|
+
prepaymentType: PrepaymentTypeEnum;
|
|
11
|
+
prepayment?: number;
|
|
12
|
+
cancelationRule: QuestroomCancelationTypeEnum;
|
|
13
|
+
minHoursForFreeCanceling: number;
|
|
14
|
+
minHoursForBooking: number;
|
|
15
|
+
}
|