@zinn-digital/sdk 0.1.1590 → 0.1.1591
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 +47 -0
- package/package.json +1 -1
|
@@ -82491,6 +82491,24 @@ export interface components {
|
|
|
82491
82491
|
rate_limit_per_min: number;
|
|
82492
82492
|
route_through_proxy: boolean;
|
|
82493
82493
|
};
|
|
82494
|
+
EmailMarketingAbResult: {
|
|
82495
|
+
a: components["schemas"]["EmailMarketingAbVariant"];
|
|
82496
|
+
b: components["schemas"]["EmailMarketingAbVariant"];
|
|
82497
|
+
/** Format: date-time */
|
|
82498
|
+
decided_at: string | null;
|
|
82499
|
+
/** @enum {string} */
|
|
82500
|
+
metric: "opens" | "clicks";
|
|
82501
|
+
/** @enum {string|null} */
|
|
82502
|
+
winner: "a" | "b" | null;
|
|
82503
|
+
};
|
|
82504
|
+
EmailMarketingAbVariant: {
|
|
82505
|
+
/** @description Unique clicks. */
|
|
82506
|
+
clicked: number;
|
|
82507
|
+
/** @description Unique opens. */
|
|
82508
|
+
opened: number;
|
|
82509
|
+
sent: number;
|
|
82510
|
+
subject: string;
|
|
82511
|
+
};
|
|
82494
82512
|
EmailMarketingAiDraft: {
|
|
82495
82513
|
/** @description The body */
|
|
82496
82514
|
html: string;
|
|
@@ -82512,6 +82530,14 @@ export interface components {
|
|
|
82512
82530
|
tone: "friendly" | "professional" | "playful" | "urgent" | "calm";
|
|
82513
82531
|
};
|
|
82514
82532
|
EmailMarketingCampaign: {
|
|
82533
|
+
/** Format: date-time */
|
|
82534
|
+
ab_decided_at: string | null;
|
|
82535
|
+
/** @enum {string} */
|
|
82536
|
+
ab_metric: "opens" | "clicks";
|
|
82537
|
+
ab_test_pct: number;
|
|
82538
|
+
ab_wait_minutes: number;
|
|
82539
|
+
/** @enum {string|null} */
|
|
82540
|
+
ab_winner: "a" | "b" | null;
|
|
82515
82541
|
/** Format: date-time */
|
|
82516
82542
|
created_at: string;
|
|
82517
82543
|
/** Format: date-time */
|
|
@@ -82530,6 +82556,8 @@ export interface components {
|
|
|
82530
82556
|
refusal_code: "not_open" | "account_on_hold" | "not_included" | "incomplete" | "pool_warming" | "sender_unverified" | "domain_auth" | "paused" | "quota" | "review" | "empty" | null;
|
|
82531
82557
|
refusal_message: string | null;
|
|
82532
82558
|
reply_to: string;
|
|
82559
|
+
/** @enum {string} */
|
|
82560
|
+
send_time_mode: "now" | "optimised";
|
|
82533
82561
|
/** Format: uuid */
|
|
82534
82562
|
sender_id: string | null;
|
|
82535
82563
|
/** Format: date-time */
|
|
@@ -82537,6 +82565,7 @@ export interface components {
|
|
|
82537
82565
|
/** @enum {string} */
|
|
82538
82566
|
status: "draft" | "sending" | "paused" | "sent" | "refused";
|
|
82539
82567
|
subject: string;
|
|
82568
|
+
subject_b: string;
|
|
82540
82569
|
/** @enum {string} */
|
|
82541
82570
|
template: "basic" | "raw";
|
|
82542
82571
|
text: string;
|
|
@@ -82549,6 +82578,8 @@ export interface components {
|
|
|
82549
82578
|
next_after: string | null;
|
|
82550
82579
|
};
|
|
82551
82580
|
EmailMarketingCampaignReport: {
|
|
82581
|
+
/** @description The A/B subject test, or null when the campaign is not a test. */
|
|
82582
|
+
ab?: components["schemas"]["EmailMarketingAbResult"] | null;
|
|
82552
82583
|
bounce_rate_bps: number;
|
|
82553
82584
|
bounced: number;
|
|
82554
82585
|
by_status: {
|
|
@@ -82570,6 +82601,15 @@ export interface components {
|
|
|
82570
82601
|
unsubscribed: number;
|
|
82571
82602
|
};
|
|
82572
82603
|
EmailMarketingCampaignWrite: {
|
|
82604
|
+
/**
|
|
82605
|
+
* @description A/B test: what the winner is measured on (unique opens or unique clicks per sent).
|
|
82606
|
+
* @enum {string}
|
|
82607
|
+
*/
|
|
82608
|
+
ab_metric?: "opens" | "clicks";
|
|
82609
|
+
/** @description A/B test: the share of the audience (%) split between A and B; the rest gets the winner. 0 = no test. Clamped to 0-50. */
|
|
82610
|
+
ab_test_pct?: number;
|
|
82611
|
+
/** @description A/B test: minutes from the start before the winner is chosen. Clamped to 30-2880. */
|
|
82612
|
+
ab_wait_minutes?: number;
|
|
82573
82613
|
from_name?: string;
|
|
82574
82614
|
html?: string;
|
|
82575
82615
|
/** Format: uuid */
|
|
@@ -82578,9 +82618,16 @@ export interface components {
|
|
|
82578
82618
|
postal_address?: string;
|
|
82579
82619
|
preheader?: string;
|
|
82580
82620
|
reply_to?: string;
|
|
82621
|
+
/**
|
|
82622
|
+
* @description `optimised` holds each recipient until their own best hour (from past opens and clicks, Apple proxy opens discounted), within 24 hours of the start.
|
|
82623
|
+
* @enum {string}
|
|
82624
|
+
*/
|
|
82625
|
+
send_time_mode?: "now" | "optimised";
|
|
82581
82626
|
/** Format: uuid */
|
|
82582
82627
|
sender_id?: string | null;
|
|
82583
82628
|
subject?: string;
|
|
82629
|
+
/** @description A/B test: the second subject line. Blank = no test. */
|
|
82630
|
+
subject_b?: string;
|
|
82584
82631
|
/** @enum {string} */
|
|
82585
82632
|
template?: "basic" | "raw";
|
|
82586
82633
|
text?: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1591",
|
|
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>",
|