@escapenavigator/types 1.4.70 → 1.4.72
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/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/role/create-role.dto.d.ts +1 -0
- package/dist/role/create-role.dto.js +6 -0
- package/dist/role/role.ro.d.ts +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/current-user.ro.d.ts +1 -0
- package/dist/user/user-monthly-report.ro.d.ts +2 -0
- package/dist/user/user.ro.d.ts +0 -5
- 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 +8 -0
- package/dist/widget/update-widget-customization.dto.js +40 -0
- package/dist/widget/widget-customization.ro.d.ts +9 -0
- package/dist/widget/widget-customization.ro.js +2 -0
- package/dist/widget/widget.ro.d.ts +1 -1
- package/dist/widget-openapi/widget-openapi.ro.d.ts +5 -1
- package/package.json +2 -2
package/dist/user/user.ro.d.ts
CHANGED
|
@@ -13,11 +13,6 @@ export declare type UserRO = ResponseObject & {
|
|
|
13
13
|
useTimer: boolean;
|
|
14
14
|
accessToTimerByLocationIp: boolean;
|
|
15
15
|
hoursContract?: number;
|
|
16
|
-
secondsThisMonth?: number;
|
|
17
|
-
timer: {
|
|
18
|
-
startIp: string;
|
|
19
|
-
createdAt: Date;
|
|
20
|
-
};
|
|
21
16
|
access: boolean;
|
|
22
17
|
roleId: number;
|
|
23
18
|
notifications: NotificationEnum[];
|
|
@@ -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 = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { WidgetBookingFiledEnum } from './enum/widget-booking-filed.enum';
|
|
2
|
+
import { WidgetThemeEnum } from './enum/widget-theme.enum';
|
|
3
|
+
export declare class UpdateWidgetCustomizationDto {
|
|
4
|
+
allowOrdersOnlinePayments: boolean;
|
|
5
|
+
color: string;
|
|
6
|
+
theme: WidgetThemeEnum;
|
|
7
|
+
bookingFields: WidgetBookingFiledEnum[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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.UpdateWidgetCustomizationDto = 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 widget_theme_enum_1 = require("./enum/widget-theme.enum");
|
|
17
|
+
class UpdateWidgetCustomizationDto {
|
|
18
|
+
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsBoolean)(),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", Boolean)
|
|
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);
|
|
40
|
+
exports.UpdateWidgetCustomizationDto = UpdateWidgetCustomizationDto;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ResponseObject } from '../shared/ro';
|
|
2
|
+
import { WidgetBookingFiledEnum } from './enum/widget-booking-filed.enum';
|
|
3
|
+
import { WidgetThemeEnum } from './enum/widget-theme.enum';
|
|
4
|
+
export declare type WidgetCustomizationRO = ResponseObject & {
|
|
5
|
+
allowOrdersOnlinePayments: boolean;
|
|
6
|
+
bookingFields: WidgetBookingFiledEnum[];
|
|
7
|
+
theme: WidgetThemeEnum;
|
|
8
|
+
color: string;
|
|
9
|
+
};
|
|
@@ -4,7 +4,7 @@ import { Languages } from '../shared/enum/languages.enum';
|
|
|
4
4
|
import { ResponseObject } from '../shared/ro';
|
|
5
5
|
import { WidgetThemeEnum } from './enum/widget-theme.enum';
|
|
6
6
|
import { WidgetTypeEnum } from './enum/widget-type.enum';
|
|
7
|
-
export declare type
|
|
7
|
+
export declare type WidgetRO = ResponseObject & {
|
|
8
8
|
type: WidgetTypeEnum;
|
|
9
9
|
theme: WidgetThemeEnum;
|
|
10
10
|
questroomId?: number;
|
|
@@ -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.72",
|
|
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": "9ebef226872f11a3e33c39278d40b442a6ee8b41",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/validator": "13.0.0",
|
|
26
26
|
"alphakit-presets-lint": "^1.0.0",
|