@escapenavigator/types 2.1.2 → 2.1.4

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.
@@ -143,6 +143,12 @@ export type EmailDataV2 = EmailContentJsonV2 & {
143
143
  * still contain `{servicesList}` are silently dropped by the converter.
144
144
  */
145
145
  blockPayloads?: Record<string, string>;
146
+ /**
147
+ * All team-photo URLs from the booking. `variables.photos` stays the
148
+ * first URL (image-node `src`); the renderer clones that tile for
149
+ * the rest at send-time. Omitted / one URL — no expansion.
150
+ */
151
+ expandPhotos?: string[];
146
152
  };
147
153
  /**
148
154
  * Payload письма, тело которого — готовый HTML из внешнего редактора
@@ -159,6 +165,7 @@ export type EmailDataRawHtml = EmailContentRawHtml & {
159
165
  preheader?: string | null;
160
166
  footer: EmailDataV2['footer'];
161
167
  utm?: EmailDataV2['utm'];
168
+ expandPhotos?: string[];
162
169
  };
163
170
  export type SendEmailData = EmailDataV1 | EmailDataV2 | EmailDataRawHtml;
164
171
  export type SendEmailRequestParams = {
@@ -46,6 +46,13 @@ export declare class PackageResponseObject extends RO {
46
46
  extraPlayerPrice: number;
47
47
  prepayment: number;
48
48
  addonUpsellingIds: number[];
49
+ /**
50
+ * `upsellingId` → название услуги состава. Каталог виджета публикует только
51
+ * услуги с ценой (`UpsellingService.findForWidget`), а в пакет может входить
52
+ * услуга без неё — без денормализации виджет писал бы «Услуга» вместо
53
+ * названия. Заполняется только на чтении для виджета.
54
+ */
55
+ upsellingTitles?: Record<string, string>;
49
56
  discountType: PackageDiscountTypeEnum;
50
57
  discountAmount: number;
51
58
  salesLimit?: number | null;
@@ -170,6 +170,10 @@ __decorate([
170
170
  (0, class_transformer_1.Expose)(),
171
171
  __metadata("design:type", Array)
172
172
  ], PackageResponseObject.prototype, "addonUpsellingIds", void 0);
173
+ __decorate([
174
+ (0, class_transformer_1.Expose)(),
175
+ __metadata("design:type", Object)
176
+ ], PackageResponseObject.prototype, "upsellingTitles", void 0);
173
177
  __decorate([
174
178
  (0, class_transformer_1.Expose)(),
175
179
  __metadata("design:type", String)