@zinn-digital/sdk 0.1.1635 → 0.1.1637
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/generated/schema.d.ts +29 -4
- package/package.json +1 -1
|
@@ -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
|
-
/**
|
|
83310
|
-
|
|
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: {
|
|
@@ -162977,7 +163002,7 @@ export interface operations {
|
|
|
162977
163002
|
};
|
|
162978
163003
|
401: components["responses"]["Unauthorized"];
|
|
162979
163004
|
403: components["responses"]["Forbidden"];
|
|
162980
|
-
/** @description The basket could not be adopted. The error `code` distinguishes `not_found` (expired or never existed), `already_converted` (already turned into an order)
|
|
163005
|
+
/** @description The basket could not be adopted. The error `code` distinguishes `not_found` (expired or never existed), `already_converted` (already turned into an order), `currency_conflict` (the account's existing basket is in another currency) and `checkout_in_progress` (the basket is already part of a guest checkout for another account) — kept apart because each leads the customer to do something different. */
|
|
162981
163006
|
422: {
|
|
162982
163007
|
headers: {
|
|
162983
163008
|
[name: string]: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1637",
|
|
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>",
|