@escapenavigator/types 2.0.48 → 2.1.1

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.
@@ -20,5 +20,15 @@ export declare class CreateWidgetDto {
20
20
  consentMode?: WidgetConsentModeEnum;
21
21
  daysAhead?: number;
22
22
  buttonTooltipText?: string;
23
+ /** Пункт «бронирование» в меню плавающей кнопки. По умолчанию включён. */
24
+ buttonShowBooking?: boolean;
25
+ /** Пункт «чат». На сайте появляется только если чат компании включён. */
26
+ buttonShowChat?: boolean;
27
+ /** Пункт «сертификаты». На сайте — только если магазин сертификатов есть. */
28
+ buttonShowCertificates?: boolean;
29
+ /** Пункт «пакеты». На сайте — только если есть опубликованные пакеты. */
30
+ buttonShowPackages?: boolean;
31
+ /** Пункт «заявка». На сайте — только если есть активная форма. */
32
+ buttonShowLead?: boolean;
23
33
  showOtherQuests?: boolean;
24
34
  }
@@ -139,6 +139,41 @@ __decorate([
139
139
  (0, class_transformer_1.Expose)(),
140
140
  __metadata("design:type", String)
141
141
  ], CreateWidgetDto.prototype, "buttonTooltipText", void 0);
142
+ __decorate([
143
+ (0, class_validator_1.IsOptional)(),
144
+ (0, class_validator_1.ValidateIf)((o) => o.type === widget_type_enum_1.WidgetTypeEnum.WIDGET_BUTTON),
145
+ (0, class_validator_1.IsBoolean)(),
146
+ (0, class_transformer_1.Expose)(),
147
+ __metadata("design:type", Boolean)
148
+ ], CreateWidgetDto.prototype, "buttonShowBooking", void 0);
149
+ __decorate([
150
+ (0, class_validator_1.IsOptional)(),
151
+ (0, class_validator_1.ValidateIf)((o) => o.type === widget_type_enum_1.WidgetTypeEnum.WIDGET_BUTTON),
152
+ (0, class_validator_1.IsBoolean)(),
153
+ (0, class_transformer_1.Expose)(),
154
+ __metadata("design:type", Boolean)
155
+ ], CreateWidgetDto.prototype, "buttonShowChat", void 0);
156
+ __decorate([
157
+ (0, class_validator_1.IsOptional)(),
158
+ (0, class_validator_1.ValidateIf)((o) => o.type === widget_type_enum_1.WidgetTypeEnum.WIDGET_BUTTON),
159
+ (0, class_validator_1.IsBoolean)(),
160
+ (0, class_transformer_1.Expose)(),
161
+ __metadata("design:type", Boolean)
162
+ ], CreateWidgetDto.prototype, "buttonShowCertificates", void 0);
163
+ __decorate([
164
+ (0, class_validator_1.IsOptional)(),
165
+ (0, class_validator_1.ValidateIf)((o) => o.type === widget_type_enum_1.WidgetTypeEnum.WIDGET_BUTTON),
166
+ (0, class_validator_1.IsBoolean)(),
167
+ (0, class_transformer_1.Expose)(),
168
+ __metadata("design:type", Boolean)
169
+ ], CreateWidgetDto.prototype, "buttonShowPackages", void 0);
170
+ __decorate([
171
+ (0, class_validator_1.IsOptional)(),
172
+ (0, class_validator_1.ValidateIf)((o) => o.type === widget_type_enum_1.WidgetTypeEnum.WIDGET_BUTTON),
173
+ (0, class_validator_1.IsBoolean)(),
174
+ (0, class_transformer_1.Expose)(),
175
+ __metadata("design:type", Boolean)
176
+ ], CreateWidgetDto.prototype, "buttonShowLead", void 0);
142
177
  __decorate([
143
178
  (0, class_validator_1.ValidateIf)((o) => o.type === widget_type_enum_1.WidgetTypeEnum.ONE_QUESTROOM),
144
179
  (0, class_validator_1.IsOptional)(),
@@ -42,5 +42,11 @@ export type WidgetRO = {
42
42
  leadFormId?: number | null;
43
43
  daysAhead?: number;
44
44
  buttonTooltipText?: string;
45
+ /** Что показывать в меню плавающей кнопки (`WIDGET_BUTTON`). */
46
+ buttonShowBooking?: boolean;
47
+ buttonShowChat?: boolean;
48
+ buttonShowCertificates?: boolean;
49
+ buttonShowPackages?: boolean;
50
+ buttonShowLead?: boolean;
45
51
  showOtherQuests?: boolean;
46
52
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@escapenavigator/types",
3
- "version": "2.0.48",
3
+ "version": "2.1.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -23,7 +23,7 @@
23
23
  "reflect-metadata": "^0.1.13",
24
24
  "rxjs": "^7.5.5"
25
25
  },
26
- "gitHead": "480174116c4a107d2db7e0a4ae92fd0b4e0c63e5",
26
+ "gitHead": "a12ec3a77f18fd9acd233aa2d15696c279b4137f",
27
27
  "devDependencies": {
28
28
  "@types/validator": "13.0.0",
29
29
  "typescript": "^5.6"