@escapenavigator/types 1.10.89 → 1.10.91
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/emails/enum/email.senders.d.ts +1 -0
- package/dist/emails/enum/email.senders.js +1 -0
- package/dist/landing-review/create-landing-review.dto.d.ts +10 -0
- package/dist/landing-review/create-landing-review.dto.js +57 -0
- package/dist/landing-review/enum/landing-review-type.enum.d.ts +4 -0
- package/dist/landing-review/enum/landing-review-type.enum.js +8 -0
- package/dist/landing-review/landing-review.ro.d.ts +11 -0
- package/dist/landing-review/landing-review.ro.js +2 -0
- package/dist/landing-review/update-landing-review.dto.d.ts +5 -0
- package/dist/landing-review/update-landing-review.dto.js +8 -0
- package/dist/openapi/profiles/openapi-profile-booking-list-item.ro.d.ts +14 -0
- package/dist/openapi/profiles/openapi-profile-booking-list-item.ro.js +92 -0
- package/dist/openapi/profiles/openapi-profile-booking-participants.ro.d.ts +12 -0
- package/dist/openapi/profiles/openapi-profile-booking-participants.ro.js +66 -0
- package/dist/openapi/profiles/openapi-profile-bookings-date-query.dto.d.ts +3 -0
- package/dist/openapi/profiles/openapi-profile-bookings-date-query.dto.js +26 -0
- package/dist/openapi/shared/openapi-booking-rule.ro.js +28 -1
- package/dist/openapi/slots/openapi-widget-slot.ro.js +64 -16
- package/dist/openapi/widget/openapi-widget-info.ro.d.ts +6 -0
- package/dist/openapi/widget/openapi-widget-info.ro.js +21 -0
- package/dist/profile/widget-customization/enum/widget-roundness.enum.d.ts +6 -0
- package/dist/profile/widget-customization/enum/widget-roundness.enum.js +10 -0
- package/dist/profile/widget-customization/update-widget-customization.dto.d.ts +4 -0
- package/dist/profile/widget-customization/update-widget-customization.dto.js +18 -0
- package/dist/profile/widget-customization/widget-customization.ro.d.ts +4 -0
- package/dist/profile/widget-customization/widget-customization.ro.js +13 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/widget/admin-installed-widget.ro.d.ts +7 -0
- package/dist/widget/admin-installed-widget.ro.js +2 -0
- package/dist/widget/create-widget.dto.d.ts +2 -0
- package/dist/widget/create-widget.dto.js +16 -0
- package/dist/widget/widget.ro.d.ts +2 -0
- package/dist/widget-chat/enum/widget-chat-message-author.enum.d.ts +4 -0
- package/dist/widget-chat/enum/widget-chat-message-author.enum.js +8 -0
- package/dist/widget-chat/widget-chat-conversation.ro.d.ts +16 -0
- package/dist/widget-chat/widget-chat-conversation.ro.js +2 -0
- package/dist/widget-chat/widget-chat-conversations-query.dto.d.ts +2 -0
- package/dist/widget-chat/widget-chat-conversations-query.dto.js +6 -0
- package/dist/widget-chat/widget-chat-init.dto.d.ts +6 -0
- package/dist/widget-chat/widget-chat-init.dto.js +41 -0
- package/dist/widget-chat/widget-chat-init.ro.d.ts +7 -0
- package/dist/widget-chat/widget-chat-init.ro.js +2 -0
- package/dist/widget-chat/widget-chat-message.ro.d.ts +11 -0
- package/dist/widget-chat/widget-chat-message.ro.js +2 -0
- package/dist/widget-chat/widget-chat-messages-query.dto.d.ts +3 -0
- package/dist/widget-chat/widget-chat-messages-query.dto.js +24 -0
- package/dist/widget-chat/widget-chat-public-messages-query.dto.d.ts +4 -0
- package/dist/widget-chat/widget-chat-public-messages-query.dto.js +30 -0
- package/package.json +2 -2
|
@@ -5,5 +5,6 @@ var EmailSenderEnum;
|
|
|
5
5
|
(function (EmailSenderEnum) {
|
|
6
6
|
EmailSenderEnum["INFO"] = "info@escapenavigator.com";
|
|
7
7
|
EmailSenderEnum["SALES"] = "sales@escapenavigator.com";
|
|
8
|
+
EmailSenderEnum["ANREW"] = "ribitsky.a@escapenavigator.com";
|
|
8
9
|
EmailSenderEnum["SUPPORT"] = "support@escapenavigator.com";
|
|
9
10
|
})(EmailSenderEnum = exports.EmailSenderEnum || (exports.EmailSenderEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LandingReviewTypeEnum } from './enum/landing-review-type.enum';
|
|
2
|
+
export declare class CreateLandingReviewDto {
|
|
3
|
+
type: LandingReviewTypeEnum;
|
|
4
|
+
videoUrl?: string;
|
|
5
|
+
text?: string;
|
|
6
|
+
previewText?: string;
|
|
7
|
+
companyName: string;
|
|
8
|
+
authorName: string;
|
|
9
|
+
authorPosition: string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.CreateLandingReviewDto = 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
|
+
const landing_review_type_enum_1 = require("./enum/landing-review-type.enum");
|
|
17
|
+
class CreateLandingReviewDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsEnum)(landing_review_type_enum_1.LandingReviewTypeEnum),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateLandingReviewDto.prototype, "type", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.ValidateIf)(({ type }) => type === landing_review_type_enum_1.LandingReviewTypeEnum.VIDEO),
|
|
26
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateLandingReviewDto.prototype, "videoUrl", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.ValidateIf)(({ type }) => type === landing_review_type_enum_1.LandingReviewTypeEnum.TEXT),
|
|
32
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CreateLandingReviewDto.prototype, "text", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.ValidateIf)(({ type }) => type === landing_review_type_enum_1.LandingReviewTypeEnum.TEXT),
|
|
38
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CreateLandingReviewDto.prototype, "previewText", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], CreateLandingReviewDto.prototype, "companyName", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], CreateLandingReviewDto.prototype, "authorName", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
54
|
+
(0, class_transformer_1.Expose)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], CreateLandingReviewDto.prototype, "authorPosition", void 0);
|
|
57
|
+
exports.CreateLandingReviewDto = CreateLandingReviewDto;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LandingReviewTypeEnum = void 0;
|
|
4
|
+
var LandingReviewTypeEnum;
|
|
5
|
+
(function (LandingReviewTypeEnum) {
|
|
6
|
+
LandingReviewTypeEnum["TEXT"] = "text";
|
|
7
|
+
LandingReviewTypeEnum["VIDEO"] = "video";
|
|
8
|
+
})(LandingReviewTypeEnum = exports.LandingReviewTypeEnum || (exports.LandingReviewTypeEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ResponseObject } from '../shared/ro';
|
|
2
|
+
import { LandingReviewTypeEnum } from './enum/landing-review-type.enum';
|
|
3
|
+
export type LandingReviewRO = ResponseObject & {
|
|
4
|
+
type: LandingReviewTypeEnum;
|
|
5
|
+
videoUrl?: string;
|
|
6
|
+
text?: string;
|
|
7
|
+
previewText?: string;
|
|
8
|
+
companyName: string;
|
|
9
|
+
authorName: string;
|
|
10
|
+
authorPosition: string;
|
|
11
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CreateLandingReviewDto } from './create-landing-review.dto';
|
|
2
|
+
declare const UpdateLandingReviewDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateLandingReviewDto>>;
|
|
3
|
+
export declare class UpdateLandingReviewDto extends UpdateLandingReviewDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateLandingReviewDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_landing_review_dto_1 = require("./create-landing-review.dto");
|
|
6
|
+
class UpdateLandingReviewDto extends (0, mapped_types_1.PartialType)(create_landing_review_dto_1.CreateLandingReviewDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateLandingReviewDto = UpdateLandingReviewDto;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class OpenapiProfileBookingQuestroomRO {
|
|
2
|
+
id: number;
|
|
3
|
+
title: string;
|
|
4
|
+
}
|
|
5
|
+
export declare class OpenapiProfileBookingListItemRO {
|
|
6
|
+
orderId: number;
|
|
7
|
+
questroom: OpenapiProfileBookingQuestroomRO;
|
|
8
|
+
date: string | null;
|
|
9
|
+
canceled: boolean;
|
|
10
|
+
players: number;
|
|
11
|
+
children: number;
|
|
12
|
+
payed: number;
|
|
13
|
+
total: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
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.OpenapiProfileBookingListItemRO = exports.OpenapiProfileBookingQuestroomRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
15
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
16
|
+
const class_transformer_1 = require("class-transformer");
|
|
17
|
+
class OpenapiProfileBookingQuestroomRO {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, swagger_1.ApiProperty)({ example: 42 }),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], OpenapiProfileBookingQuestroomRO.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
(0, swagger_1.ApiProperty)({ example: 'The Saw' }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], OpenapiProfileBookingQuestroomRO.prototype, "title", void 0);
|
|
29
|
+
exports.OpenapiProfileBookingQuestroomRO = OpenapiProfileBookingQuestroomRO;
|
|
30
|
+
class OpenapiProfileBookingListItemRO {
|
|
31
|
+
}
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
(0, swagger_1.ApiProperty)({ example: 12345 }),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], OpenapiProfileBookingListItemRO.prototype, "orderId", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
(0, class_transformer_1.Type)(() => OpenapiProfileBookingQuestroomRO),
|
|
40
|
+
(0, swagger_1.ApiProperty)({
|
|
41
|
+
type: 'object',
|
|
42
|
+
properties: {
|
|
43
|
+
id: { type: 'number', example: 42 },
|
|
44
|
+
title: { type: 'string', example: 'The Saw' },
|
|
45
|
+
},
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", OpenapiProfileBookingQuestroomRO)
|
|
48
|
+
], OpenapiProfileBookingListItemRO.prototype, "questroom", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_transformer_1.Expose)(),
|
|
51
|
+
(0, swagger_1.ApiProperty)({
|
|
52
|
+
example: '2026-03-30T18:30:00',
|
|
53
|
+
nullable: true,
|
|
54
|
+
description: 'Order date and time',
|
|
55
|
+
}),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], OpenapiProfileBookingListItemRO.prototype, "date", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
(0, swagger_1.ApiProperty)({
|
|
61
|
+
example: false,
|
|
62
|
+
description: 'True when booking is cancelled',
|
|
63
|
+
}),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], OpenapiProfileBookingListItemRO.prototype, "canceled", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
(0, swagger_1.ApiProperty)({ example: 4, description: 'Number of adults' }),
|
|
69
|
+
__metadata("design:type", Number)
|
|
70
|
+
], OpenapiProfileBookingListItemRO.prototype, "players", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
(0, swagger_1.ApiProperty)({ example: 1, description: 'Number of children' }),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], OpenapiProfileBookingListItemRO.prototype, "children", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_transformer_1.Expose)(),
|
|
78
|
+
(0, swagger_1.ApiProperty)({
|
|
79
|
+
example: 5000,
|
|
80
|
+
description: 'Paid amount in minor currency units',
|
|
81
|
+
}),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], OpenapiProfileBookingListItemRO.prototype, "payed", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_transformer_1.Expose)(),
|
|
86
|
+
(0, swagger_1.ApiProperty)({
|
|
87
|
+
example: 7500,
|
|
88
|
+
description: 'Total amount in minor currency units',
|
|
89
|
+
}),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], OpenapiProfileBookingListItemRO.prototype, "total", void 0);
|
|
92
|
+
exports.OpenapiProfileBookingListItemRO = OpenapiProfileBookingListItemRO;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class OpenapiProfileBookingParticipantItemRO {
|
|
2
|
+
name: string | null;
|
|
3
|
+
surname: string | null;
|
|
4
|
+
phone: string | null;
|
|
5
|
+
email: string | null;
|
|
6
|
+
waiverSigned: boolean;
|
|
7
|
+
waiverSignedAt: Date | null;
|
|
8
|
+
}
|
|
9
|
+
export declare class OpenapiProfileBookingParticipantsRO {
|
|
10
|
+
orderId: number;
|
|
11
|
+
participants: OpenapiProfileBookingParticipantItemRO[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.OpenapiProfileBookingParticipantsRO = exports.OpenapiProfileBookingParticipantItemRO = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_transformer_1 = require("class-transformer");
|
|
16
|
+
class OpenapiProfileBookingParticipantItemRO {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
(0, swagger_1.ApiProperty)({ example: 'John', nullable: true }),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], OpenapiProfileBookingParticipantItemRO.prototype, "name", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
(0, swagger_1.ApiProperty)({ example: 'Doe', nullable: true }),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], OpenapiProfileBookingParticipantItemRO.prototype, "surname", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
(0, swagger_1.ApiProperty)({ example: '+491701234567', nullable: true }),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], OpenapiProfileBookingParticipantItemRO.prototype, "phone", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
(0, swagger_1.ApiProperty)({ example: 'john@example.com', nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], OpenapiProfileBookingParticipantItemRO.prototype, "email", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
(0, swagger_1.ApiProperty)({ example: true }),
|
|
41
|
+
__metadata("design:type", Boolean)
|
|
42
|
+
], OpenapiProfileBookingParticipantItemRO.prototype, "waiverSigned", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, swagger_1.ApiProperty)({
|
|
46
|
+
example: '2026-03-30T16:20:00.000Z',
|
|
47
|
+
nullable: true,
|
|
48
|
+
description: 'UTC timestamp when waiver was signed',
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", Date)
|
|
51
|
+
], OpenapiProfileBookingParticipantItemRO.prototype, "waiverSignedAt", void 0);
|
|
52
|
+
exports.OpenapiProfileBookingParticipantItemRO = OpenapiProfileBookingParticipantItemRO;
|
|
53
|
+
class OpenapiProfileBookingParticipantsRO {
|
|
54
|
+
}
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_transformer_1.Expose)(),
|
|
57
|
+
(0, swagger_1.ApiProperty)({ example: 12345 }),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], OpenapiProfileBookingParticipantsRO.prototype, "orderId", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
(0, class_transformer_1.Type)(() => OpenapiProfileBookingParticipantItemRO),
|
|
63
|
+
(0, swagger_1.ApiProperty)({ type: OpenapiProfileBookingParticipantItemRO, isArray: true }),
|
|
64
|
+
__metadata("design:type", Array)
|
|
65
|
+
], OpenapiProfileBookingParticipantsRO.prototype, "participants", void 0);
|
|
66
|
+
exports.OpenapiProfileBookingParticipantsRO = OpenapiProfileBookingParticipantsRO;
|
|
@@ -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.OpenapiProfileBookingsDateQueryDto = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class OpenapiProfileBookingsDateQueryDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, swagger_1.ApiProperty)({
|
|
19
|
+
example: '2026-03-30',
|
|
20
|
+
description: 'Дата по полю utcDate заказа (первые 10 символов ISO UTC, yyyy-MM-dd)',
|
|
21
|
+
}),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
(0, class_validator_1.IsDateString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], OpenapiProfileBookingsDateQueryDto.prototype, "date", void 0);
|
|
26
|
+
exports.OpenapiProfileBookingsDateQueryDto = OpenapiProfileBookingsDateQueryDto;
|
|
@@ -17,27 +17,54 @@ const prepayment_type_enum_1 = require("../../slot/enum/prepayment-type.enum");
|
|
|
17
17
|
class OpenapiBokingRuleRO {
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, swagger_1.ApiProperty)(
|
|
20
|
+
(0, swagger_1.ApiProperty)({
|
|
21
|
+
description: 'Prepayment value. Interpretation depends on prepaymentType.',
|
|
22
|
+
example: 30,
|
|
23
|
+
}),
|
|
21
24
|
(0, class_transformer_1.Expose)(),
|
|
22
25
|
__metadata("design:type", Number)
|
|
23
26
|
], OpenapiBokingRuleRO.prototype, "prepayment", void 0);
|
|
24
27
|
__decorate([
|
|
28
|
+
(0, swagger_1.ApiProperty)({
|
|
29
|
+
description: 'Prepayment mode (percentage/fixed/none).',
|
|
30
|
+
enum: prepayment_type_enum_1.PrepaymentTypeEnum,
|
|
31
|
+
example: prepayment_type_enum_1.PrepaymentTypeEnum.PERCENT,
|
|
32
|
+
}),
|
|
25
33
|
(0, class_transformer_1.Expose)(),
|
|
26
34
|
__metadata("design:type", String)
|
|
27
35
|
], OpenapiBokingRuleRO.prototype, "prepaymentType", void 0);
|
|
28
36
|
__decorate([
|
|
37
|
+
(0, swagger_1.ApiProperty)({
|
|
38
|
+
description: 'Cancellation policy type for this quest room.',
|
|
39
|
+
enum: questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum,
|
|
40
|
+
nullable: true,
|
|
41
|
+
example: questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.HALF_PRICE,
|
|
42
|
+
}),
|
|
29
43
|
(0, class_transformer_1.Expose)(),
|
|
30
44
|
__metadata("design:type", String)
|
|
31
45
|
], OpenapiBokingRuleRO.prototype, "cancelationRule", void 0);
|
|
32
46
|
__decorate([
|
|
47
|
+
(0, swagger_1.ApiProperty)({
|
|
48
|
+
description: 'Minimum hours before start when cancellation is still free.',
|
|
49
|
+
nullable: true,
|
|
50
|
+
example: 24,
|
|
51
|
+
}),
|
|
33
52
|
(0, class_transformer_1.Expose)(),
|
|
34
53
|
__metadata("design:type", Number)
|
|
35
54
|
], OpenapiBokingRuleRO.prototype, "minHoursForFreeCanceling", void 0);
|
|
36
55
|
__decorate([
|
|
56
|
+
(0, swagger_1.ApiProperty)({
|
|
57
|
+
description: 'Minimum hours before start when full fine starts to apply.',
|
|
58
|
+
example: 3,
|
|
59
|
+
}),
|
|
37
60
|
(0, class_transformer_1.Expose)(),
|
|
38
61
|
__metadata("design:type", Number)
|
|
39
62
|
], OpenapiBokingRuleRO.prototype, "minHoursForFullFine", void 0);
|
|
40
63
|
__decorate([
|
|
64
|
+
(0, swagger_1.ApiProperty)({
|
|
65
|
+
description: 'Tax rate in basis points (10000 = 100%).',
|
|
66
|
+
example: 1900,
|
|
67
|
+
}),
|
|
41
68
|
(0, class_transformer_1.Expose)(),
|
|
42
69
|
__metadata("design:type", Number)
|
|
43
70
|
], OpenapiBokingRuleRO.prototype, "tax", void 0);
|
|
@@ -10,6 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.OpenapiSlotRO = void 0;
|
|
13
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
13
14
|
/* eslint-disable max-classes-per-file */
|
|
14
15
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
16
|
const class_transformer_1 = require("class-transformer");
|
|
@@ -17,7 +18,7 @@ const openapi_booking_rule_ro_1 = require("../shared/openapi-booking-rule.ro");
|
|
|
17
18
|
const openapi_tariff_ro_1 = require("../shared/openapi-tariff.ro");
|
|
18
19
|
var SType;
|
|
19
20
|
(function (SType) {
|
|
20
|
-
SType["BOOKEO"] = "
|
|
21
|
+
SType["BOOKEO"] = "bookeo";
|
|
21
22
|
SType["CRM"] = "crm";
|
|
22
23
|
SType["MYERP"] = "myerp";
|
|
23
24
|
SType["KVESTADMIN"] = "kvestadmin";
|
|
@@ -26,82 +27,129 @@ class OpenapiSlotRO {
|
|
|
26
27
|
}
|
|
27
28
|
__decorate([
|
|
28
29
|
(0, swagger_1.ApiProperty)({
|
|
29
|
-
description: '
|
|
30
|
+
description: 'Source system where the slot comes from',
|
|
30
31
|
enum: SType,
|
|
31
32
|
required: false,
|
|
33
|
+
example: SType.CRM,
|
|
32
34
|
}),
|
|
33
35
|
(0, class_transformer_1.Expose)(),
|
|
34
36
|
__metadata("design:type", String)
|
|
35
37
|
], OpenapiSlotRO.prototype, "type", void 0);
|
|
36
38
|
__decorate([
|
|
37
|
-
(0, swagger_1.ApiProperty)(
|
|
39
|
+
(0, swagger_1.ApiProperty)({
|
|
40
|
+
description: 'Quest room identifier',
|
|
41
|
+
example: 123,
|
|
42
|
+
}),
|
|
38
43
|
(0, class_transformer_1.Expose)(),
|
|
39
44
|
__metadata("design:type", Number)
|
|
40
45
|
], OpenapiSlotRO.prototype, "questroomId", void 0);
|
|
41
46
|
__decorate([
|
|
42
|
-
(0, swagger_1.ApiProperty)(
|
|
47
|
+
(0, swagger_1.ApiProperty)({
|
|
48
|
+
description: 'Base slot price in minor currency units',
|
|
49
|
+
required: false,
|
|
50
|
+
example: 7500,
|
|
51
|
+
}),
|
|
43
52
|
(0, class_transformer_1.Expose)(),
|
|
44
53
|
__metadata("design:type", Number)
|
|
45
54
|
], OpenapiSlotRO.prototype, "basePrice", void 0);
|
|
46
55
|
__decorate([
|
|
47
|
-
(0, swagger_1.ApiProperty)(
|
|
56
|
+
(0, swagger_1.ApiProperty)({
|
|
57
|
+
description: 'External product identifier in source system',
|
|
58
|
+
nullable: true,
|
|
59
|
+
example: 'bookeo-product-42',
|
|
60
|
+
}),
|
|
48
61
|
(0, class_transformer_1.Expose)(),
|
|
49
62
|
(0, class_transformer_1.Transform)(({ value }) => value || null),
|
|
50
63
|
__metadata("design:type", String)
|
|
51
64
|
], OpenapiSlotRO.prototype, "productId", void 0);
|
|
52
65
|
__decorate([
|
|
53
|
-
(0, swagger_1.ApiProperty)(
|
|
66
|
+
(0, swagger_1.ApiProperty)({
|
|
67
|
+
description: 'External slot/event identifier in source system',
|
|
68
|
+
example: 'evt_987654321',
|
|
69
|
+
}),
|
|
54
70
|
(0, class_transformer_1.Expose)(),
|
|
55
71
|
__metadata("design:type", String)
|
|
56
72
|
], OpenapiSlotRO.prototype, "eventId", void 0);
|
|
57
73
|
__decorate([
|
|
58
|
-
(0, swagger_1.ApiProperty)(
|
|
74
|
+
(0, swagger_1.ApiProperty)({
|
|
75
|
+
description: 'Slot start time (HH:mm)',
|
|
76
|
+
example: '18:30',
|
|
77
|
+
}),
|
|
59
78
|
(0, class_transformer_1.Expose)(),
|
|
60
79
|
__metadata("design:type", String)
|
|
61
80
|
], OpenapiSlotRO.prototype, "start", void 0);
|
|
62
81
|
__decorate([
|
|
63
|
-
(0, swagger_1.ApiProperty)(
|
|
82
|
+
(0, swagger_1.ApiProperty)({
|
|
83
|
+
description: 'Slot end time (HH:mm)',
|
|
84
|
+
example: '20:00',
|
|
85
|
+
}),
|
|
64
86
|
(0, class_transformer_1.Expose)(),
|
|
65
87
|
__metadata("design:type", String)
|
|
66
88
|
], OpenapiSlotRO.prototype, "end", void 0);
|
|
67
89
|
__decorate([
|
|
68
|
-
(0, swagger_1.ApiProperty)(
|
|
90
|
+
(0, swagger_1.ApiProperty)({
|
|
91
|
+
description: 'Game date in yyyy-MM-dd format',
|
|
92
|
+
example: '2026-03-30',
|
|
93
|
+
}),
|
|
69
94
|
(0, class_transformer_1.Expose)(),
|
|
70
95
|
__metadata("design:type", String)
|
|
71
96
|
], OpenapiSlotRO.prototype, "date", void 0);
|
|
72
97
|
__decorate([
|
|
73
|
-
(0, swagger_1.ApiProperty)(
|
|
98
|
+
(0, swagger_1.ApiProperty)({
|
|
99
|
+
description: 'Number of available seats',
|
|
100
|
+
example: 4,
|
|
101
|
+
}),
|
|
74
102
|
(0, class_transformer_1.Expose)(),
|
|
75
103
|
__metadata("design:type", Number)
|
|
76
104
|
], OpenapiSlotRO.prototype, "numSeatsAvailable", void 0);
|
|
77
105
|
__decorate([
|
|
78
|
-
(0, swagger_1.ApiProperty)(
|
|
106
|
+
(0, swagger_1.ApiProperty)({
|
|
107
|
+
description: 'Discount value in source pricing model',
|
|
108
|
+
example: 0,
|
|
109
|
+
}),
|
|
79
110
|
(0, class_transformer_1.Expose)(),
|
|
80
111
|
__metadata("design:type", Number)
|
|
81
112
|
], OpenapiSlotRO.prototype, "discount", void 0);
|
|
82
113
|
__decorate([
|
|
83
|
-
(0, swagger_1.ApiProperty)(
|
|
114
|
+
(0, swagger_1.ApiProperty)({
|
|
115
|
+
description: 'Booking can be completed only via phone',
|
|
116
|
+
example: false,
|
|
117
|
+
}),
|
|
84
118
|
(0, class_transformer_1.Expose)(),
|
|
85
119
|
__metadata("design:type", Boolean)
|
|
86
120
|
], OpenapiSlotRO.prototype, "onlyPhone", void 0);
|
|
87
121
|
__decorate([
|
|
88
|
-
(0, swagger_1.ApiProperty)(
|
|
122
|
+
(0, swagger_1.ApiProperty)({
|
|
123
|
+
description: 'Slot tariff information',
|
|
124
|
+
type: openapi_tariff_ro_1.OpenapiTariffRO,
|
|
125
|
+
}),
|
|
89
126
|
(0, class_transformer_1.Expose)(),
|
|
90
127
|
__metadata("design:type", openapi_tariff_ro_1.OpenapiTariffRO)
|
|
91
128
|
], OpenapiSlotRO.prototype, "tariff", void 0);
|
|
92
129
|
__decorate([
|
|
93
|
-
(0, swagger_1.ApiProperty)(
|
|
130
|
+
(0, swagger_1.ApiProperty)({
|
|
131
|
+
description: 'Current slot availability status',
|
|
132
|
+
enum: ['bussy', 'call', 'free', 'hold'],
|
|
133
|
+
example: 'free',
|
|
134
|
+
}),
|
|
94
135
|
(0, class_transformer_1.Expose)(),
|
|
95
136
|
__metadata("design:type", String)
|
|
96
137
|
], OpenapiSlotRO.prototype, "status", void 0);
|
|
97
138
|
__decorate([
|
|
98
|
-
(0, swagger_1.ApiProperty)(
|
|
139
|
+
(0, swagger_1.ApiProperty)({
|
|
140
|
+
description: 'Booking and cancellation rules for this slot',
|
|
141
|
+
type: openapi_booking_rule_ro_1.OpenapiBokingRuleRO,
|
|
142
|
+
}),
|
|
99
143
|
(0, class_transformer_1.Expose)(),
|
|
100
144
|
(0, class_transformer_1.Type)(() => openapi_booking_rule_ro_1.OpenapiBokingRuleRO),
|
|
101
145
|
__metadata("design:type", openapi_booking_rule_ro_1.OpenapiBokingRuleRO)
|
|
102
146
|
], OpenapiSlotRO.prototype, "rule", void 0);
|
|
103
147
|
__decorate([
|
|
104
|
-
(0, swagger_1.ApiProperty)(
|
|
148
|
+
(0, swagger_1.ApiProperty)({
|
|
149
|
+
description: 'Indicates a private event slot',
|
|
150
|
+
required: false,
|
|
151
|
+
example: false,
|
|
152
|
+
}),
|
|
105
153
|
(0, class_transformer_1.Expose)(),
|
|
106
154
|
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
107
155
|
__metadata("design:type", Boolean)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CustomFieldTypeEnum } from '../../custom-field/enum/custom-field-type.enum';
|
|
2
2
|
import { ProfileCurrencyEnum } from '../../profile/enum/profile-currency';
|
|
3
|
+
import { WidgetRoundnessEnum } from '../../profile/widget-customization/enum/widget-roundness.enum';
|
|
3
4
|
import { WidgetStyleEnum } from '../../profile/widget-customization/enum/widget-style.enum';
|
|
4
5
|
import { WidgetViewEnum } from '../../profile/widget-customization/enum/widget-view.enum';
|
|
5
6
|
import { CountriesEnum } from '../../shared/enum/countries.enum';
|
|
@@ -17,6 +18,9 @@ declare class Customization {
|
|
|
17
18
|
mainColor: string;
|
|
18
19
|
style: WidgetStyleEnum;
|
|
19
20
|
view: WidgetViewEnum;
|
|
21
|
+
roundness: WidgetRoundnessEnum;
|
|
22
|
+
widgetFontFamily?: string;
|
|
23
|
+
bgColor?: string;
|
|
20
24
|
}
|
|
21
25
|
declare class MailchimpLocale {
|
|
22
26
|
text: string;
|
|
@@ -39,6 +43,7 @@ declare class Profile {
|
|
|
39
43
|
country: CountriesEnum;
|
|
40
44
|
bookingFields: WidgetBookingFiledEnum[];
|
|
41
45
|
agreementLink: string;
|
|
46
|
+
title: string;
|
|
42
47
|
availableLanguages: Languages[];
|
|
43
48
|
canBookFewSlots: boolean;
|
|
44
49
|
language: Languages;
|
|
@@ -64,5 +69,6 @@ export declare class OpenapiWidgetInfoRO {
|
|
|
64
69
|
customization: Customization;
|
|
65
70
|
mailchimp?: string | Mailchimp;
|
|
66
71
|
daysAhead?: number;
|
|
72
|
+
buttonTooltipText?: string;
|
|
67
73
|
}
|
|
68
74
|
export {};
|
|
@@ -15,6 +15,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
15
15
|
const currency_by_country_1 = require("../../constants/currency-by-country");
|
|
16
16
|
const custom_field_type_enum_1 = require("../../custom-field/enum/custom-field-type.enum");
|
|
17
17
|
const profile_currency_1 = require("../../profile/enum/profile-currency");
|
|
18
|
+
const widget_roundness_enum_1 = require("../../profile/widget-customization/enum/widget-roundness.enum");
|
|
18
19
|
const widget_style_enum_1 = require("../../profile/widget-customization/enum/widget-style.enum");
|
|
19
20
|
const widget_view_enum_1 = require("../../profile/widget-customization/enum/widget-view.enum");
|
|
20
21
|
const countries_enum_1 = require("../../shared/enum/countries.enum");
|
|
@@ -53,6 +54,18 @@ __decorate([
|
|
|
53
54
|
(0, class_transformer_1.Expose)(),
|
|
54
55
|
__metadata("design:type", String)
|
|
55
56
|
], Customization.prototype, "view", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], Customization.prototype, "roundness", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_transformer_1.Expose)(),
|
|
63
|
+
__metadata("design:type", String)
|
|
64
|
+
], Customization.prototype, "widgetFontFamily", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], Customization.prototype, "bgColor", void 0);
|
|
56
69
|
class MailchimpLocale {
|
|
57
70
|
}
|
|
58
71
|
__decorate([
|
|
@@ -118,6 +131,10 @@ __decorate([
|
|
|
118
131
|
(0, class_transformer_1.Expose)(),
|
|
119
132
|
__metadata("design:type", String)
|
|
120
133
|
], Profile.prototype, "agreementLink", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, class_transformer_1.Expose)(),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], Profile.prototype, "title", void 0);
|
|
121
138
|
__decorate([
|
|
122
139
|
(0, class_transformer_1.Expose)(),
|
|
123
140
|
__metadata("design:type", Array)
|
|
@@ -227,4 +244,8 @@ __decorate([
|
|
|
227
244
|
(0, class_transformer_1.Expose)(),
|
|
228
245
|
__metadata("design:type", Number)
|
|
229
246
|
], OpenapiWidgetInfoRO.prototype, "daysAhead", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
(0, class_transformer_1.Expose)(),
|
|
249
|
+
__metadata("design:type", String)
|
|
250
|
+
], OpenapiWidgetInfoRO.prototype, "buttonTooltipText", void 0);
|
|
230
251
|
exports.OpenapiWidgetInfoRO = OpenapiWidgetInfoRO;
|