@zinn-digital/sdk 0.1.1789 → 0.1.1790
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 +25 -4
- package/package.json +1 -1
|
@@ -58407,7 +58407,7 @@ export interface paths {
|
|
|
58407
58407
|
put?: never;
|
|
58408
58408
|
/**
|
|
58409
58409
|
* The store plugin posts order events; each new one sends the shopper an update in their language.
|
|
58410
|
-
* @description Store token only (`Authorization: Bearer zou_…`). A batch of 1-100 events (docs/1297 §4.4). `id` is the plugin's idempotency key (`<site_uuid>:<integration>:<order>:<kind>:<seq>`): a known key inserts nothing and never sends twice (`duplicates`). Each new event starts one durable send that picks the language (the shopper's `locale`, then the store's first language, then English), checks the shopper's order-updates consent and every Campaigns guard (line and channel switches, good standing, STOP opt-out, spike pause, own sender, prepaid credit), and records its outcome on the event. A kind with no template is stored and skipped. 503 when the workflow service is down: the rows are kept and a retry of the same batch starts them.
|
|
58410
|
+
* @description Store token only (`Authorization: Bearer zou_…`). A batch of 1-100 events (docs/1297 §4.4). `id` is the plugin's idempotency key (`<site_uuid>:<integration>:<order>:<kind>:<seq>`): a known key inserts nothing and never sends twice (`duplicates`). Each new event starts one durable send that picks the language (the shopper's `locale`, then the store's first language, then English), checks the shopper's order-updates consent and every Campaigns guard (line and channel switches, good standing, STOP opt-out, spike pause, own sender, prepaid credit), and records its outcome on the event. A kind with no template is stored and skipped. 503 when the workflow service is down: the rows are kept and a retry of the same batch starts them. Zinn® Campaigns flows (docs/1052 §11.9a): `cart_abandoned`, `product_viewed` and `payment_confirmed` enrol the org's active flows of trigger `cart_abandoned`, `product_viewed` and `post_purchase` when `marketing_consent` was ticked for e-mail at or before `occurred_at` (or the contact already holds an e-mail consent by then); `cart_recovered` ends an open cart flow; `order_placed` and `payment_confirmed` end open cart and browse flows. The shopper's `customer.email` finds the contact and is not kept on the event. A suppressed or unsubscribed shopper is never enrolled.
|
|
58411
58411
|
*/
|
|
58412
58412
|
post: operations["ingestStoreEvents"];
|
|
58413
58413
|
delete?: never;
|
|
@@ -86920,7 +86920,7 @@ export interface components {
|
|
|
86920
86920
|
status: "draft" | "active" | "paused";
|
|
86921
86921
|
steps?: components["schemas"]["EmailMarketingFlowStep"][];
|
|
86922
86922
|
/** @enum {string} */
|
|
86923
|
-
trigger: "list_join" | "date";
|
|
86923
|
+
trigger: "list_join" | "date" | "cart_abandoned" | "product_viewed" | "post_purchase";
|
|
86924
86924
|
};
|
|
86925
86925
|
EmailMarketingFlowPage: {
|
|
86926
86926
|
data: components["schemas"]["EmailMarketingFlow"][];
|
|
@@ -86971,7 +86971,7 @@ export interface components {
|
|
|
86971
86971
|
sender_id?: string | null;
|
|
86972
86972
|
steps?: components["schemas"]["EmailMarketingFlowStepWrite"][];
|
|
86973
86973
|
/** @enum {string} */
|
|
86974
|
-
trigger?: "list_join" | "date";
|
|
86974
|
+
trigger?: "list_join" | "date" | "cart_abandoned" | "product_viewed" | "post_purchase";
|
|
86975
86975
|
};
|
|
86976
86976
|
EmailMarketingForm: {
|
|
86977
86977
|
button_label: string;
|
|
@@ -115063,7 +115063,13 @@ export interface components {
|
|
|
115063
115063
|
events: components["schemas"]["StoreEventInput"][];
|
|
115064
115064
|
};
|
|
115065
115065
|
StoreEventInput: {
|
|
115066
|
+
/** @description The store's cart reference (cart_abandoned */
|
|
115067
|
+
cart_key?: string;
|
|
115068
|
+
/** @description The shopper's restore-cart link. Kept as the contact's {{cart_url}} only when it is https on the store's own host. */
|
|
115069
|
+
cart_url?: string;
|
|
115066
115070
|
customer?: {
|
|
115071
|
+
/** @description The shopper's address, for the flow kinds only; used to find the contact, never kept. */
|
|
115072
|
+
email?: string;
|
|
115067
115073
|
first_name?: string;
|
|
115068
115074
|
/** @description E.164. */
|
|
115069
115075
|
phone?: string;
|
|
@@ -115071,10 +115077,20 @@ export interface components {
|
|
|
115071
115077
|
/** @description The idempotency key. */
|
|
115072
115078
|
id: string;
|
|
115073
115079
|
integration?: string;
|
|
115074
|
-
/** @description order_received, payment_confirmed, on_hold, shipped, completed, ready_for_pickup, payment_failed, cancelled or refunded; any other kind is stored and skipped. */
|
|
115080
|
+
/** @description order_received, payment_confirmed, on_hold, shipped, completed, ready_for_pickup, payment_failed, cancelled or refunded; the Campaigns flow kinds cart_abandoned, cart_recovered, order_placed and product_viewed; any other kind is stored and skipped. */
|
|
115075
115081
|
kind: string;
|
|
115076
115082
|
/** @description The shopper's language (BCP 47), e.g. ar. */
|
|
115077
115083
|
locale?: string;
|
|
115084
|
+
/** @description The shopper's marketing tick, as the store captured it. A flow enrols only when `ticked` is true, `channel` is email and `captured_at` is at or before `occurred_at`. */
|
|
115085
|
+
marketing_consent?: {
|
|
115086
|
+
/** Format: date-time */
|
|
115087
|
+
captured_at?: string;
|
|
115088
|
+
channel?: string;
|
|
115089
|
+
ticked?: boolean;
|
|
115090
|
+
/** @description The words beside the box the shopper saw. */
|
|
115091
|
+
wording?: string;
|
|
115092
|
+
wording_version?: string;
|
|
115093
|
+
};
|
|
115078
115094
|
/** Format: date-time */
|
|
115079
115095
|
occurred_at: string;
|
|
115080
115096
|
order_number?: string;
|
|
@@ -115082,6 +115098,11 @@ export interface components {
|
|
|
115082
115098
|
order_url?: string;
|
|
115083
115099
|
/** @description The payment_failed pay-again link, in the shopper's language. */
|
|
115084
115100
|
pay_url?: string;
|
|
115101
|
+
/** @description The product viewed (product_viewed). */
|
|
115102
|
+
product?: {
|
|
115103
|
+
name?: string;
|
|
115104
|
+
url?: string;
|
|
115105
|
+
};
|
|
115085
115106
|
ref?: string;
|
|
115086
115107
|
refund?: {
|
|
115087
115108
|
currency: 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.1790",
|
|
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>",
|