@escapenavigator/types 1.4.71 → 1.4.73
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/client/client.ro.d.ts +1 -0
- package/dist/client/create-client-from-widget.dto.d.ts +7 -2
- package/dist/client/create-client-from-widget.dto.js +34 -2
- package/dist/profile/create-profile.dto.d.ts +0 -1
- package/dist/profile/create-profile.dto.js +0 -5
- package/dist/profile/profile.ro.d.ts +0 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/widget/enum/widget-booking-filed.enum.d.ts +6 -0
- package/dist/widget/enum/widget-booking-filed.enum.js +10 -0
- package/dist/widget/update-widget-customization.dto.d.ts +5 -0
- package/dist/widget/update-widget-customization.dto.js +18 -0
- package/dist/widget/widget-customization.ro.d.ts +5 -0
- package/dist/widget-openapi/widget-openapi-create-order.dto.js +4 -4
- package/dist/widget-openapi/widget-openapi.ro.d.ts +5 -1
- package/package.json +2 -2
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WidgetBookingFiledEnum = void 0;
|
|
4
|
+
var WidgetBookingFiledEnum;
|
|
5
|
+
(function (WidgetBookingFiledEnum) {
|
|
6
|
+
WidgetBookingFiledEnum["NAME"] = "name";
|
|
7
|
+
WidgetBookingFiledEnum["SURNAME"] = "surname";
|
|
8
|
+
WidgetBookingFiledEnum["ADDRESS"] = "address";
|
|
9
|
+
WidgetBookingFiledEnum["PHONE"] = "phone";
|
|
10
|
+
})(WidgetBookingFiledEnum = exports.WidgetBookingFiledEnum || (exports.WidgetBookingFiledEnum = {}));
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
import { WidgetBookingFiledEnum } from './enum/widget-booking-filed.enum';
|
|
2
|
+
import { WidgetThemeEnum } from './enum/widget-theme.enum';
|
|
1
3
|
export declare class UpdateWidgetCustomizationDto {
|
|
2
4
|
allowOrdersOnlinePayments: boolean;
|
|
5
|
+
color: string;
|
|
6
|
+
theme: WidgetThemeEnum;
|
|
7
|
+
bookingFields: WidgetBookingFiledEnum[];
|
|
3
8
|
}
|
|
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.UpdateWidgetCustomizationDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
|
+
const widget_theme_enum_1 = require("./enum/widget-theme.enum");
|
|
15
17
|
class UpdateWidgetCustomizationDto {
|
|
16
18
|
}
|
|
17
19
|
__decorate([
|
|
@@ -19,4 +21,20 @@ __decorate([
|
|
|
19
21
|
(0, class_transformer_1.Expose)(),
|
|
20
22
|
__metadata("design:type", Boolean)
|
|
21
23
|
], UpdateWidgetCustomizationDto.prototype, "allowOrdersOnlinePayments", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], UpdateWidgetCustomizationDto.prototype, "color", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsEnum)(widget_theme_enum_1.WidgetThemeEnum),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], UpdateWidgetCustomizationDto.prototype, "theme", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsArray)(),
|
|
36
|
+
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], UpdateWidgetCustomizationDto.prototype, "bookingFields", void 0);
|
|
22
40
|
exports.UpdateWidgetCustomizationDto = UpdateWidgetCustomizationDto;
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { ResponseObject } from '../shared/ro';
|
|
2
|
+
import { WidgetBookingFiledEnum } from './enum/widget-booking-filed.enum';
|
|
3
|
+
import { WidgetThemeEnum } from './enum/widget-theme.enum';
|
|
2
4
|
export declare type WidgetCustomizationRO = ResponseObject & {
|
|
3
5
|
allowOrdersOnlinePayments: boolean;
|
|
6
|
+
bookingFields: WidgetBookingFiledEnum[];
|
|
7
|
+
theme: WidgetThemeEnum;
|
|
8
|
+
color: string;
|
|
4
9
|
};
|
|
@@ -17,12 +17,12 @@ const is_not_blank_1 = require("../shared/is-not-blank");
|
|
|
17
17
|
class WidgetOpenapiCreateOrderDto {
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, class_validator_1.
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], WidgetOpenapiCreateOrderDto.prototype, "name", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, class_validator_1.
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
28
|
], WidgetOpenapiCreateOrderDto.prototype, "surname", void 0);
|
|
@@ -32,12 +32,12 @@ __decorate([
|
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], WidgetOpenapiCreateOrderDto.prototype, "email", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
-
(0,
|
|
35
|
+
(0, class_validator_1.IsOptional)(),
|
|
36
36
|
(0, class_transformer_1.Expose)(),
|
|
37
37
|
__metadata("design:type", String)
|
|
38
38
|
], WidgetOpenapiCreateOrderDto.prototype, "phone", void 0);
|
|
39
39
|
__decorate([
|
|
40
|
-
(0,
|
|
40
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
41
|
(0, class_transformer_1.Expose)(),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
43
|
], WidgetOpenapiCreateOrderDto.prototype, "address", void 0);
|
|
@@ -2,6 +2,8 @@ import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
|
2
2
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
3
3
|
import { Languages } from '../shared/enum/languages.enum';
|
|
4
4
|
import { UpsellingResponseObject } from '../upselling/upselling.ro';
|
|
5
|
+
import { WidgetBookingFiledEnum } from '../widget/enum/widget-booking-filed.enum';
|
|
6
|
+
import { WidgetThemeEnum } from '../widget/enum/widget-theme.enum';
|
|
5
7
|
import { WidgetTypeEnum } from '../widget/enum/widget-type.enum';
|
|
6
8
|
import { WidgetOpenApiCertificateCardRO } from './widget-openapi-certificate-card.ro';
|
|
7
9
|
import { WidgetOpenApiQuestroomRO } from './widget-openapi-questroom.ro';
|
|
@@ -34,8 +36,10 @@ export declare type WidgetOpenApiRO = {
|
|
|
34
36
|
color: string;
|
|
35
37
|
profileId: number;
|
|
36
38
|
phone: string;
|
|
37
|
-
theme:
|
|
39
|
+
theme: WidgetThemeEnum;
|
|
38
40
|
uuid: string;
|
|
41
|
+
allowOnlinePayments: boolean;
|
|
42
|
+
bookingFields: WidgetBookingFiledEnum[];
|
|
39
43
|
language: Languages;
|
|
40
44
|
country: CountriesEnum;
|
|
41
45
|
currency: ProfileCurrencyEnum;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/types",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.73",
|
|
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": "05ad8df8baf6068618dd00145724cf1e0eab4d51",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/validator": "13.0.0",
|
|
26
26
|
"alphakit-presets-lint": "^1.0.0",
|