@escapenavigator/types 2.0.39 → 2.0.40

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.
@@ -77,4 +77,8 @@ export declare class ProfileRO {
77
77
  taxIncluded: boolean;
78
78
  /** Включён ли виджет-чат для компании. */
79
79
  widgetChatEnabled: boolean;
80
+ /** Быстрый вход по PIN: обязательный PIN у сотрудников + блокировка CRM. */
81
+ pinLockEnabled: boolean;
82
+ /** Простой до блокировки, в минутах. 0 — не блокировать по простою. */
83
+ pinLockIdleMinutes: number;
80
84
  }
@@ -215,3 +215,13 @@ __decorate([
215
215
  (0, class_transformer_1.Expose)(),
216
216
  __metadata("design:type", Boolean)
217
217
  ], ProfileRO.prototype, "widgetChatEnabled", void 0);
218
+ __decorate([
219
+ (0, class_transformer_1.Expose)(),
220
+ (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : true),
221
+ __metadata("design:type", Boolean)
222
+ ], ProfileRO.prototype, "pinLockEnabled", void 0);
223
+ __decorate([
224
+ (0, class_transformer_1.Expose)(),
225
+ (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : 20),
226
+ __metadata("design:type", Number)
227
+ ], ProfileRO.prototype, "pinLockIdleMinutes", void 0);
@@ -15,4 +15,11 @@ export declare class UpdateCurrentDto extends UpdateCurrentBaseDto {
15
15
  gaCoversationId: string;
16
16
  gaCoversationLabel: string;
17
17
  refundsValidTo: number;
18
+ pinLockEnabled: boolean;
19
+ /**
20
+ * 0 — не блокировать по простою (лок только при возврате из сна/скрытой
21
+ * вкладки). Значения меньше 20 клиент всё равно поднимает до 20 минут:
22
+ * блокировать чаще — мешать работе.
23
+ */
24
+ pinLockIdleMinutes: number;
18
25
  }
@@ -94,3 +94,17 @@ __decorate([
94
94
  (0, class_transformer_1.Expose)(),
95
95
  __metadata("design:type", Number)
96
96
  ], UpdateCurrentDto.prototype, "refundsValidTo", void 0);
97
+ __decorate([
98
+ (0, class_validator_1.IsOptional)(),
99
+ (0, class_validator_1.IsBoolean)(),
100
+ (0, class_transformer_1.Expose)(),
101
+ __metadata("design:type", Boolean)
102
+ ], UpdateCurrentDto.prototype, "pinLockEnabled", void 0);
103
+ __decorate([
104
+ (0, class_validator_1.IsOptional)(),
105
+ (0, class_validator_1.IsInt)(),
106
+ (0, class_validator_1.Min)(0),
107
+ (0, class_validator_1.Max)(240),
108
+ (0, class_transformer_1.Expose)(),
109
+ __metadata("design:type", Number)
110
+ ], UpdateCurrentDto.prototype, "pinLockIdleMinutes", void 0);