@zinn-digital/sdk 0.1.1635 → 0.1.1636

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.
@@ -83195,6 +83195,8 @@ export interface components {
83195
83195
  ab_wait_minutes: number;
83196
83196
  /** @enum {string|null} */
83197
83197
  ab_winner: "a" | "b" | null;
83198
+ /** @description F32 block designer layout (cleaned); null when the campaign was never designed in blocks. */
83199
+ blocks?: components["schemas"]["EmailMarketingCampaignBlock"][] | null;
83198
83200
  /** Format: date-time */
83199
83201
  created_at: string;
83200
83202
  /** Format: date-time */
@@ -83225,11 +83227,29 @@ export interface components {
83225
83227
  subject: string;
83226
83228
  subject_b: string;
83227
83229
  /** @enum {string} */
83228
- template: "basic" | "raw";
83230
+ template: "basic" | "raw" | "blocks";
83229
83231
  text: string;
83230
83232
  /** Format: date-time */
83231
83233
  updated_at: string;
83232
83234
  };
83235
+ /** @description One F32 designer block. `heading` (text, level 1-3), `text` (text; a blank line starts a paragraph), `button` (label, url https or mailto, color #rrggbb or blank for the brand colour), `image` (src https, alt, url, width 40-552), `divider`, `spacer` (size). `align` is `start` (follows the language direction) or `center`. */
83236
+ EmailMarketingCampaignBlock: {
83237
+ /** @enum {string} */
83238
+ align?: "start" | "center";
83239
+ alt?: string;
83240
+ color?: string;
83241
+ label?: string;
83242
+ /** @enum {integer} */
83243
+ level?: 1 | 2 | 3;
83244
+ /** @enum {integer} */
83245
+ size?: 8 | 16 | 24 | 32 | 48 | 64;
83246
+ src?: string;
83247
+ text?: string;
83248
+ /** @enum {string} */
83249
+ type: "heading" | "text" | "button" | "image" | "divider" | "spacer";
83250
+ url?: string;
83251
+ width?: number;
83252
+ };
83233
83253
  EmailMarketingCampaignPage: {
83234
83254
  data: components["schemas"]["EmailMarketingCampaign"][];
83235
83255
  /** Format: uuid */
@@ -83286,6 +83306,8 @@ export interface components {
83286
83306
  ab_test_pct?: number;
83287
83307
  /** @description A/B test: minutes from the start before the winner is chosen. Clamped to 30-2880. */
83288
83308
  ab_wait_minutes?: number;
83309
+ /** @description F32 block designer layout. Cleaned on save: an unknown type, an empty block or an unsafe address is dropped, at most 60 kept. */
83310
+ blocks?: components["schemas"]["EmailMarketingCampaignBlock"][] | null;
83289
83311
  from_name?: string;
83290
83312
  html?: string;
83291
83313
  /** Format: uuid */
@@ -83306,8 +83328,11 @@ export interface components {
83306
83328
  subject?: string;
83307
83329
  /** @description A/B test: the second subject line. Blank = no test. */
83308
83330
  subject_b?: string;
83309
- /** @enum {string} */
83310
- template?: "basic" | "raw";
83331
+ /**
83332
+ * @description `basic` wraps the body in our layout; `raw` sends the HTML as written; `blocks` (F32 designer) is `basic` with `html` and `text` COMPILED by the server from `blocks` on every save (any `html`/`text` sent with it is ignored).
83333
+ * @enum {string}
83334
+ */
83335
+ template?: "basic" | "raw" | "blocks";
83311
83336
  text?: string;
83312
83337
  };
83313
83338
  EmailMarketingContact: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1635",
3
+ "version": "0.1.1636",
4
4
  "description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
5
5
  "license": "MIT",
6
6
  "author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",