@escapenavigator/types 1.6.38 → 1.6.39
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/dashboard/create-announcement.dto.js +1 -1
- package/dist/google-calendar/create-google-calendar.dto.d.ts +7 -0
- package/dist/google-calendar/create-google-calendar.dto.js +46 -0
- package/dist/google-calendar/google-calendar.ro.d.ts +7 -0
- package/dist/google-calendar/google-calendar.ro.js +33 -0
- package/dist/google-calendar/initial-google-calendar.dto.d.ts +3 -0
- package/dist/google-calendar/initial-google-calendar.dto.js +22 -0
- package/dist/google-calendar/initial-google-calendar.ro.d.ts +5 -0
- package/dist/google-calendar/initial-google-calendar.ro.js +28 -0
- package/dist/google-calendar/update-google-calendar.dto.d.ts +4 -0
- package/dist/google-calendar/update-google-calendar.dto.js +31 -0
- package/dist/slot-rule/rule.ro.d.ts +2 -2
- package/dist/slot-rule/rule.ro.js +56 -0
- package/dist/tariff/tariff.ro.d.ts +5 -5
- package/dist/tariff/tariff.ro.js +35 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/crud/update-user.dto.js +1 -1
- package/dist/widget/create-widget.dto.d.ts +3 -3
- package/dist/widget/init-widgets-form.dto.d.ts +15 -0
- package/dist/widget/init-widgets-form.dto.js +77 -0
- package/dist/widget/init-widgets.dto.js +1 -1
- package/package.json +2 -2
|
@@ -34,7 +34,7 @@ __decorate([
|
|
|
34
34
|
], UpdateUserDto.prototype, "hoursContract", void 0);
|
|
35
35
|
__decorate([
|
|
36
36
|
(0, class_validator_1.IsBoolean)(),
|
|
37
|
-
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value :
|
|
37
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
38
38
|
(0, class_transformer_1.Expose)(),
|
|
39
39
|
__metadata("design:type", Boolean)
|
|
40
40
|
], UpdateUserDto.prototype, "allLocations", void 0);
|
|
@@ -7,7 +7,7 @@ export declare class CreateWidgetDto {
|
|
|
7
7
|
allLocations: boolean;
|
|
8
8
|
locationIds: number[];
|
|
9
9
|
certificateIds: number[];
|
|
10
|
-
ga4Id
|
|
11
|
-
gaCoversationId
|
|
12
|
-
gaCoversationLabel
|
|
10
|
+
ga4Id?: string;
|
|
11
|
+
gaCoversationId?: string;
|
|
12
|
+
gaCoversationLabel?: string;
|
|
13
13
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WidgetTypeEnum } from './enum/widget-type.enum';
|
|
2
|
+
declare class CreateWidgetForm {
|
|
3
|
+
id: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
type: WidgetTypeEnum;
|
|
6
|
+
url: string;
|
|
7
|
+
allCertificates?: boolean;
|
|
8
|
+
allLocations: boolean;
|
|
9
|
+
locationIds?: number[];
|
|
10
|
+
certificateIds?: number[];
|
|
11
|
+
}
|
|
12
|
+
export declare class InitWidgetsFormDto {
|
|
13
|
+
widgets: CreateWidgetForm[];
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,77 @@
|
|
|
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.InitWidgetsFormDto = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
|
+
const widget_type_enum_1 = require("./enum/widget-type.enum");
|
|
18
|
+
class CreateWidgetForm {
|
|
19
|
+
}
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreateWidgetForm.prototype, "id", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateWidgetForm.prototype, "label", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsEnum)(widget_type_enum_1.WidgetTypeEnum),
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], CreateWidgetForm.prototype, "type", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsUrl)(),
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateWidgetForm.prototype, "url", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsBoolean)(),
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], CreateWidgetForm.prototype, "allCertificates", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
(0, class_validator_1.IsBoolean)(),
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], CreateWidgetForm.prototype, "allLocations", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.ValidateIf)((o) => (o.type === widget_type_enum_1.WidgetTypeEnum.ALL_QUESTROOM && !o.allLocations) ||
|
|
54
|
+
(o.type === widget_type_enum_1.WidgetTypeEnum.WIDGET_BUTTON && !o.allLocations)),
|
|
55
|
+
(0, class_validator_1.IsArray)(),
|
|
56
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", Array)
|
|
59
|
+
], CreateWidgetForm.prototype, "locationIds", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.ValidateIf)((o) => o.type === widget_type_enum_1.WidgetTypeEnum.ALL_CERTIFICATES && !o.allCertificates),
|
|
62
|
+
(0, class_validator_1.IsArray)(),
|
|
63
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
__metadata("design:type", Array)
|
|
66
|
+
], CreateWidgetForm.prototype, "certificateIds", void 0);
|
|
67
|
+
class InitWidgetsFormDto {
|
|
68
|
+
}
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsArray)(),
|
|
71
|
+
(0, class_transformer_1.Transform)(({ value }) => value || []),
|
|
72
|
+
(0, class_transformer_1.Type)(() => CreateWidgetForm),
|
|
73
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
74
|
+
(0, class_transformer_1.Expose)(),
|
|
75
|
+
__metadata("design:type", Array)
|
|
76
|
+
], InitWidgetsFormDto.prototype, "widgets", void 0);
|
|
77
|
+
exports.InitWidgetsFormDto = InitWidgetsFormDto;
|
|
@@ -19,7 +19,7 @@ __decorate([
|
|
|
19
19
|
(0, class_validator_1.IsArray)(),
|
|
20
20
|
(0, class_transformer_1.Transform)(({ value }) => value || []),
|
|
21
21
|
(0, class_transformer_1.Type)(() => create_widget_dto_1.CreateWidgetDto),
|
|
22
|
-
(0, class_validator_1.ValidateNested)(
|
|
22
|
+
(0, class_validator_1.ValidateNested)(),
|
|
23
23
|
(0, class_transformer_1.Expose)(),
|
|
24
24
|
__metadata("design:type", Array)
|
|
25
25
|
], InitWidgetsDto.prototype, "widgets", void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/types",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.39",
|
|
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": "9789509165a0bd6ce223b5b735a52b556412731c",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/validator": "13.0.0",
|
|
26
26
|
"alphakit-presets-lint": "^1.0.0",
|