@escapenavigator/types 1.4.32 → 1.4.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/certificate/certificate.ro.d.ts +3 -1
- package/dist/certificate/create-certificate.dto.d.ts +3 -1
- package/dist/certificate/create-certificate.dto.js +14 -3
- package/dist/certificate-sale/create-certificatesale.dto.js +12 -12
- package/dist/location/create-location.dto.d.ts +2 -0
- package/dist/location/create-location.dto.js +10 -0
- package/dist/location/location.ro.d.ts +2 -0
- package/dist/log/log.ro.d.ts +1 -1
- package/dist/profile/create-profile.dto.d.ts +1 -0
- package/dist/profile/create-profile.dto.js +5 -0
- package/dist/profile/profile.ro.d.ts +1 -0
- package/dist/profile/update-profile.dto.d.ts +2 -2
- package/dist/profile/update-profile.dto.js +10 -5
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/widget/create-widget.dto.d.ts +1 -2
- package/dist/widget/create-widget.dto.js +1 -7
- package/dist/widget/widget.ro.d.ts +1 -2
- package/dist/widget-openapi/widget-openapi-certificate-card.ro.d.ts +3 -1
- package/dist/widget-openapi/widget-openapi-day-schedule.dto.d.ts +4 -0
- package/dist/widget-openapi/{widget-openapi-weekly-query.dto.js → widget-openapi-day-schedule.dto.js} +7 -7
- package/dist/widget-openapi/widget-openapi-questroom.ro.d.ts +0 -7
- package/dist/widget-openapi/widget-openapi-week-schedule.dto.d.ts +4 -0
- package/dist/widget-openapi/{widget-openapi-schedule-query.dto.js → widget-openapi-week-schedule.dto.js} +6 -11
- package/dist/widget-openapi/widget-openapi.ro.d.ts +32 -6
- package/package.json +2 -2
- package/dist/widget-openapi/widget-openapi-schedule-query.dto.d.ts +0 -5
- package/dist/widget-openapi/widget-openapi-weekly-query.dto.d.ts +0 -4
|
@@ -21,12 +21,6 @@ __decorate([
|
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], CreateWidgetDto.prototype, "type", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_validator_1.IsOptional)(),
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_transformer_1.Expose)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], CreateWidgetDto.prototype, "color", void 0);
|
|
30
24
|
__decorate([
|
|
31
25
|
(0, class_validator_1.ValidateIf)((o) => o.type === widget_type_enum_1.WidgetTypeEnum.ONE_QUESTROOM),
|
|
32
26
|
(0, class_validator_1.IsPositive)(),
|
|
@@ -39,7 +33,7 @@ __decorate([
|
|
|
39
33
|
(0, class_validator_1.ArrayNotEmpty)(),
|
|
40
34
|
(0, class_transformer_1.Expose)(),
|
|
41
35
|
__metadata("design:type", Array)
|
|
42
|
-
], CreateWidgetDto.prototype, "
|
|
36
|
+
], CreateWidgetDto.prototype, "locationIds", void 0);
|
|
43
37
|
__decorate([
|
|
44
38
|
(0, class_validator_1.IsOptional)(),
|
|
45
39
|
(0, class_validator_1.ValidateIf)((o) => o.type === widget_type_enum_1.WidgetTypeEnum.ALL_CERTIFICATES),
|
|
@@ -2,9 +2,8 @@ import { ResponseObject } from '../shared/ro';
|
|
|
2
2
|
import { WidgetTypeEnum } from './enum/widget-type.enum';
|
|
3
3
|
export declare type WidgetResponseObject = ResponseObject & {
|
|
4
4
|
type: WidgetTypeEnum;
|
|
5
|
-
color?: string;
|
|
6
5
|
theme: string;
|
|
7
6
|
questroomId?: number;
|
|
8
|
-
|
|
7
|
+
locationIds?: number[];
|
|
9
8
|
certificateIds?: number[];
|
|
10
9
|
};
|
|
@@ -9,6 +9,8 @@ export declare type WidgetOpenApiCertificateCardRO = {
|
|
|
9
9
|
extraPrice: number;
|
|
10
10
|
deliveryPossibility: boolean;
|
|
11
11
|
pickupPossibility: boolean;
|
|
12
|
-
|
|
12
|
+
description?: string;
|
|
13
|
+
pickupInfo: string;
|
|
14
|
+
deliveryInfo: string;
|
|
13
15
|
type: CertificateTypeEnum;
|
|
14
16
|
};
|
|
@@ -9,17 +9,17 @@ 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.WidgetOpenapiDayScheduleDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
15
|
-
class
|
|
15
|
+
class WidgetOpenapiDayScheduleDto {
|
|
16
16
|
}
|
|
17
17
|
__decorate([
|
|
18
|
-
(0, class_validator_1.
|
|
19
|
-
__metadata("design:type",
|
|
20
|
-
],
|
|
18
|
+
(0, class_validator_1.IsArray)(),
|
|
19
|
+
__metadata("design:type", Array)
|
|
20
|
+
], WidgetOpenapiDayScheduleDto.prototype, "questroomIds", void 0);
|
|
21
21
|
__decorate([
|
|
22
22
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
23
23
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
25
|
-
exports.
|
|
24
|
+
], WidgetOpenapiDayScheduleDto.prototype, "date", void 0);
|
|
25
|
+
exports.WidgetOpenapiDayScheduleDto = WidgetOpenapiDayScheduleDto;
|
|
@@ -9,16 +9,9 @@ export declare type WidgetOpenApiQuestroomRO = {
|
|
|
9
9
|
photo: string;
|
|
10
10
|
time: number;
|
|
11
11
|
type: QuestroomTypeEnum;
|
|
12
|
-
howToFind: string;
|
|
13
12
|
playersMax: number;
|
|
14
13
|
playersMin: number;
|
|
15
14
|
minAge: number;
|
|
16
15
|
defaultLanguage: Languages;
|
|
17
16
|
languages: Languages[];
|
|
18
|
-
upsellings: {
|
|
19
|
-
id: number;
|
|
20
|
-
title: string;
|
|
21
|
-
description: string;
|
|
22
|
-
amount: number;
|
|
23
|
-
}[];
|
|
24
17
|
};
|
|
@@ -9,21 +9,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
12
|
+
exports.WidgetOpenapiWeekScheduleDto = void 0;
|
|
14
13
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
15
|
-
class
|
|
14
|
+
class WidgetOpenapiWeekScheduleDto {
|
|
16
15
|
}
|
|
17
16
|
__decorate([
|
|
18
|
-
(0,
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], WidgetOpenapiScheduleQueryDto.prototype, "widgetUid", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_validator_1.IsOptional)(),
|
|
17
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
23
18
|
__metadata("design:type", Number)
|
|
24
|
-
],
|
|
19
|
+
], WidgetOpenapiWeekScheduleDto.prototype, "questroomId", void 0);
|
|
25
20
|
__decorate([
|
|
26
21
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
27
22
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
29
|
-
exports.
|
|
23
|
+
], WidgetOpenapiWeekScheduleDto.prototype, "date", void 0);
|
|
24
|
+
exports.WidgetOpenapiWeekScheduleDto = WidgetOpenapiWeekScheduleDto;
|
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
2
|
+
import { UpsellingResponseObject } from '../upselling/upselling.ro';
|
|
2
3
|
import { WidgetTypeEnum } from '../widget/enum/widget-type.enum';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
import { WidgetOpenApiQuestroomRO } from './widget-openapi-questroom.ro';
|
|
5
|
+
declare type WIDGET_BUTTON = {
|
|
6
|
+
type: WidgetTypeEnum.WIDGET_BUTTON;
|
|
7
|
+
questrooms?: never;
|
|
8
|
+
upsellings?: never;
|
|
9
|
+
};
|
|
10
|
+
declare type AGREGATOR = {
|
|
11
|
+
type?: never;
|
|
12
|
+
questrooms?: never;
|
|
13
|
+
upsellings?: never;
|
|
14
|
+
};
|
|
15
|
+
declare type ALL_CERTIFICATES = {
|
|
16
|
+
type: WidgetTypeEnum.ALL_CERTIFICATES;
|
|
17
|
+
questrooms?: never;
|
|
18
|
+
upsellings?: never;
|
|
19
|
+
};
|
|
20
|
+
declare type ONE_QUESTROOM = {
|
|
21
|
+
type: WidgetTypeEnum.ONE_QUESTROOM;
|
|
22
|
+
questrooms: WidgetOpenApiQuestroomRO[];
|
|
23
|
+
upsellings: Array<Pick<UpsellingResponseObject, 'id' | 'allQuestrooms' | 'questroomsIds' | 'price' | 'title' | 'description'>>;
|
|
24
|
+
};
|
|
25
|
+
declare type ALL_QUESTROOM = {
|
|
26
|
+
type: WidgetTypeEnum.ALL_QUESTROOM;
|
|
27
|
+
questrooms: WidgetOpenApiQuestroomRO[];
|
|
28
|
+
upsellings: Array<Pick<UpsellingResponseObject, 'id' | 'allQuestrooms' | 'questroomsIds' | 'price' | 'title' | 'description'>>;
|
|
29
|
+
};
|
|
30
|
+
export declare type WidgetOpenApiRO = {
|
|
31
|
+
color: string;
|
|
6
32
|
theme: string;
|
|
7
|
-
|
|
33
|
+
uuid: string;
|
|
8
34
|
currency: ProfileCurrencyEnum;
|
|
9
|
-
|
|
10
|
-
};
|
|
35
|
+
} & (WIDGET_BUTTON | ALL_QUESTROOM | ONE_QUESTROOM | ALL_CERTIFICATES | AGREGATOR);
|
|
36
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/types",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.33",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "7b1eb885dd3a1be36ce9c7f57ef440732a2fd7be",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/validator": "13.0.0",
|
|
26
26
|
"alphakit-presets-lint": "^1.0.0",
|