@zinn-digital/sdk 0.1.1612 → 0.1.1614
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 +374 -0
- package/package.json +1 -1
|
@@ -33775,6 +33775,98 @@ export interface paths {
|
|
|
33775
33775
|
patch?: never;
|
|
33776
33776
|
trace?: never;
|
|
33777
33777
|
};
|
|
33778
|
+
"/v1/email-marketing/flows": {
|
|
33779
|
+
parameters: {
|
|
33780
|
+
query?: never;
|
|
33781
|
+
header?: never;
|
|
33782
|
+
path?: never;
|
|
33783
|
+
cookie?: never;
|
|
33784
|
+
};
|
|
33785
|
+
/**
|
|
33786
|
+
* E-mail flows (welcome, drip, a yearly date), one keyset page.
|
|
33787
|
+
* @description Gated on `email_marketing.view`. A flow is a list, a trigger and a sequence of steps; it sends nothing itself: every 15 minutes each due step becomes an ordinary campaign run, which is checked like any campaign (line open, account in good standing, quota, a verified sender) and is listed under the flow, never among the campaigns.
|
|
33788
|
+
*/
|
|
33789
|
+
get: operations["listEmailMarketingFlows"];
|
|
33790
|
+
put?: never;
|
|
33791
|
+
/**
|
|
33792
|
+
* Create a flow (it starts as a draft).
|
|
33793
|
+
* @description Gated on `email_marketing.manage`. `name` and `list_id` are required; `steps` (at most 20) each need a subject. A `date` flow names a contact attribute holding `YYYY-MM-DD`.
|
|
33794
|
+
*/
|
|
33795
|
+
post: operations["createEmailMarketingFlow"];
|
|
33796
|
+
delete?: never;
|
|
33797
|
+
options?: never;
|
|
33798
|
+
head?: never;
|
|
33799
|
+
patch?: never;
|
|
33800
|
+
trace?: never;
|
|
33801
|
+
};
|
|
33802
|
+
"/v1/email-marketing/flows/{flow_id}": {
|
|
33803
|
+
parameters: {
|
|
33804
|
+
query?: never;
|
|
33805
|
+
header?: never;
|
|
33806
|
+
path?: never;
|
|
33807
|
+
cookie?: never;
|
|
33808
|
+
};
|
|
33809
|
+
/**
|
|
33810
|
+
* One flow with its steps and its report (enrolled, in progress, runs and recipients per step).
|
|
33811
|
+
* @description Gated on `email_marketing.view`.
|
|
33812
|
+
*/
|
|
33813
|
+
get: operations["getEmailMarketingFlow"];
|
|
33814
|
+
put?: never;
|
|
33815
|
+
post?: never;
|
|
33816
|
+
/**
|
|
33817
|
+
* Delete a flow and its enrolments (its sent runs stay, as campaigns).
|
|
33818
|
+
* @description Gated on `email_marketing.manage`.
|
|
33819
|
+
*/
|
|
33820
|
+
delete: operations["deleteEmailMarketingFlow"];
|
|
33821
|
+
options?: never;
|
|
33822
|
+
head?: never;
|
|
33823
|
+
/**
|
|
33824
|
+
* Change a flow; `steps`, when given, replaces the whole sequence.
|
|
33825
|
+
* @description Gated on `email_marketing.manage`. Contacts already in the flow continue at their next step number.
|
|
33826
|
+
*/
|
|
33827
|
+
patch: operations["updateEmailMarketingFlow"];
|
|
33828
|
+
trace?: never;
|
|
33829
|
+
};
|
|
33830
|
+
"/v1/email-marketing/flows/{flow_id}/activate": {
|
|
33831
|
+
parameters: {
|
|
33832
|
+
query?: never;
|
|
33833
|
+
header?: never;
|
|
33834
|
+
path?: never;
|
|
33835
|
+
cookie?: never;
|
|
33836
|
+
};
|
|
33837
|
+
get?: never;
|
|
33838
|
+
put?: never;
|
|
33839
|
+
/**
|
|
33840
|
+
* Switch a flow on; only people who join the list from now on are enrolled.
|
|
33841
|
+
* @description Gated on `email_marketing.manage`. Refused (400) without at least one step, a postal address, or a body on every step. A paused flow resumes: its waiting steps are sent.
|
|
33842
|
+
*/
|
|
33843
|
+
post: operations["activateEmailMarketingFlow"];
|
|
33844
|
+
delete?: never;
|
|
33845
|
+
options?: never;
|
|
33846
|
+
head?: never;
|
|
33847
|
+
patch?: never;
|
|
33848
|
+
trace?: never;
|
|
33849
|
+
};
|
|
33850
|
+
"/v1/email-marketing/flows/{flow_id}/pause": {
|
|
33851
|
+
parameters: {
|
|
33852
|
+
query?: never;
|
|
33853
|
+
header?: never;
|
|
33854
|
+
path?: never;
|
|
33855
|
+
cookie?: never;
|
|
33856
|
+
};
|
|
33857
|
+
get?: never;
|
|
33858
|
+
put?: never;
|
|
33859
|
+
/**
|
|
33860
|
+
* Pause a flow; due steps wait and nobody new is mailed until it is switched back on.
|
|
33861
|
+
* @description Gated on `email_marketing.manage`.
|
|
33862
|
+
*/
|
|
33863
|
+
post: operations["pauseEmailMarketingFlow"];
|
|
33864
|
+
delete?: never;
|
|
33865
|
+
options?: never;
|
|
33866
|
+
head?: never;
|
|
33867
|
+
patch?: never;
|
|
33868
|
+
trace?: never;
|
|
33869
|
+
};
|
|
33778
33870
|
"/v1/email-marketing/forms": {
|
|
33779
33871
|
parameters: {
|
|
33780
33872
|
query?: never;
|
|
@@ -83050,6 +83142,84 @@ export interface components {
|
|
|
83050
83142
|
/** Format: uuid */
|
|
83051
83143
|
next_after: string | null;
|
|
83052
83144
|
};
|
|
83145
|
+
EmailMarketingFlow: {
|
|
83146
|
+
/** Format: date-time */
|
|
83147
|
+
activated_at: string | null;
|
|
83148
|
+
/** Format: date-time */
|
|
83149
|
+
created_at: string | null;
|
|
83150
|
+
date_field: string;
|
|
83151
|
+
from_name: string;
|
|
83152
|
+
/** Format: uuid */
|
|
83153
|
+
id: string;
|
|
83154
|
+
/** @description Why the last due step was not sent (it is retried hourly); null while sending normally. */
|
|
83155
|
+
last_refusal_code: string | null;
|
|
83156
|
+
/** @description The refusal catalogue key behind last_refusal_code, to render in the reader's language. */
|
|
83157
|
+
last_refusal_key: string | null;
|
|
83158
|
+
/** Format: uuid */
|
|
83159
|
+
list_id: string;
|
|
83160
|
+
name: string;
|
|
83161
|
+
postal_address: string;
|
|
83162
|
+
reply_to: string;
|
|
83163
|
+
report?: components["schemas"]["EmailMarketingFlowReport"];
|
|
83164
|
+
/** Format: uuid */
|
|
83165
|
+
sender_id: string | null;
|
|
83166
|
+
/** @enum {string} */
|
|
83167
|
+
status: "draft" | "active" | "paused";
|
|
83168
|
+
steps?: components["schemas"]["EmailMarketingFlowStep"][];
|
|
83169
|
+
/** @enum {string} */
|
|
83170
|
+
trigger: "list_join" | "date";
|
|
83171
|
+
};
|
|
83172
|
+
EmailMarketingFlowPage: {
|
|
83173
|
+
data: components["schemas"]["EmailMarketingFlow"][];
|
|
83174
|
+
/** Format: uuid */
|
|
83175
|
+
next_after: string | null;
|
|
83176
|
+
};
|
|
83177
|
+
EmailMarketingFlowReport: {
|
|
83178
|
+
enrolled: number;
|
|
83179
|
+
in_progress: number;
|
|
83180
|
+
steps: {
|
|
83181
|
+
position: number;
|
|
83182
|
+
/** @description Recipients by status. */
|
|
83183
|
+
recipients: {
|
|
83184
|
+
[key: string]: number;
|
|
83185
|
+
};
|
|
83186
|
+
runs: number;
|
|
83187
|
+
}[];
|
|
83188
|
+
};
|
|
83189
|
+
EmailMarketingFlowStep: {
|
|
83190
|
+
/** @description Minutes after the previous step (after the trigger for the first). */
|
|
83191
|
+
delay_minutes: number;
|
|
83192
|
+
html: string;
|
|
83193
|
+
position: number;
|
|
83194
|
+
preheader: string;
|
|
83195
|
+
subject: string;
|
|
83196
|
+
/** @enum {string} */
|
|
83197
|
+
template: "basic" | "raw";
|
|
83198
|
+
text: string;
|
|
83199
|
+
};
|
|
83200
|
+
EmailMarketingFlowStepWrite: {
|
|
83201
|
+
delay_minutes?: number;
|
|
83202
|
+
html?: string;
|
|
83203
|
+
preheader?: string;
|
|
83204
|
+
subject: string;
|
|
83205
|
+
/** @enum {string} */
|
|
83206
|
+
template?: "basic" | "raw";
|
|
83207
|
+
text?: string;
|
|
83208
|
+
};
|
|
83209
|
+
EmailMarketingFlowWrite: {
|
|
83210
|
+
date_field?: string;
|
|
83211
|
+
from_name?: string;
|
|
83212
|
+
/** Format: uuid */
|
|
83213
|
+
list_id?: string;
|
|
83214
|
+
name?: string;
|
|
83215
|
+
postal_address?: string;
|
|
83216
|
+
reply_to?: string;
|
|
83217
|
+
/** Format: uuid */
|
|
83218
|
+
sender_id?: string | null;
|
|
83219
|
+
steps?: components["schemas"]["EmailMarketingFlowStepWrite"][];
|
|
83220
|
+
/** @enum {string} */
|
|
83221
|
+
trigger?: "list_join" | "date";
|
|
83222
|
+
};
|
|
83053
83223
|
EmailMarketingForm: {
|
|
83054
83224
|
button_label: string;
|
|
83055
83225
|
confirmed: number;
|
|
@@ -172359,6 +172529,208 @@ export interface operations {
|
|
|
172359
172529
|
503: components["responses"]["ServiceUnavailable"];
|
|
172360
172530
|
};
|
|
172361
172531
|
};
|
|
172532
|
+
listEmailMarketingFlows: {
|
|
172533
|
+
parameters: {
|
|
172534
|
+
query?: {
|
|
172535
|
+
after?: string;
|
|
172536
|
+
limit?: number;
|
|
172537
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
172538
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
172539
|
+
};
|
|
172540
|
+
header?: never;
|
|
172541
|
+
path?: never;
|
|
172542
|
+
cookie?: never;
|
|
172543
|
+
};
|
|
172544
|
+
requestBody?: never;
|
|
172545
|
+
responses: {
|
|
172546
|
+
/** @description One page of flows. */
|
|
172547
|
+
200: {
|
|
172548
|
+
headers: {
|
|
172549
|
+
[name: string]: unknown;
|
|
172550
|
+
};
|
|
172551
|
+
content: {
|
|
172552
|
+
"application/json": components["schemas"]["EmailMarketingFlowPage"];
|
|
172553
|
+
};
|
|
172554
|
+
};
|
|
172555
|
+
401: components["responses"]["Unauthorized"];
|
|
172556
|
+
403: components["responses"]["Forbidden"];
|
|
172557
|
+
};
|
|
172558
|
+
};
|
|
172559
|
+
createEmailMarketingFlow: {
|
|
172560
|
+
parameters: {
|
|
172561
|
+
query?: {
|
|
172562
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
172563
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
172564
|
+
};
|
|
172565
|
+
header?: never;
|
|
172566
|
+
path?: never;
|
|
172567
|
+
cookie?: never;
|
|
172568
|
+
};
|
|
172569
|
+
requestBody: {
|
|
172570
|
+
content: {
|
|
172571
|
+
"application/json": components["schemas"]["EmailMarketingFlowWrite"];
|
|
172572
|
+
};
|
|
172573
|
+
};
|
|
172574
|
+
responses: {
|
|
172575
|
+
/** @description The flow, with its steps and per-step report. */
|
|
172576
|
+
201: {
|
|
172577
|
+
headers: {
|
|
172578
|
+
[name: string]: unknown;
|
|
172579
|
+
};
|
|
172580
|
+
content: {
|
|
172581
|
+
"application/json": components["schemas"]["EmailMarketingFlow"];
|
|
172582
|
+
};
|
|
172583
|
+
};
|
|
172584
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
172585
|
+
401: components["responses"]["Unauthorized"];
|
|
172586
|
+
403: components["responses"]["Forbidden"];
|
|
172587
|
+
404: components["responses"]["NotFound"];
|
|
172588
|
+
};
|
|
172589
|
+
};
|
|
172590
|
+
getEmailMarketingFlow: {
|
|
172591
|
+
parameters: {
|
|
172592
|
+
query?: {
|
|
172593
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
172594
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
172595
|
+
};
|
|
172596
|
+
header?: never;
|
|
172597
|
+
path: {
|
|
172598
|
+
flow_id: string;
|
|
172599
|
+
};
|
|
172600
|
+
cookie?: never;
|
|
172601
|
+
};
|
|
172602
|
+
requestBody?: never;
|
|
172603
|
+
responses: {
|
|
172604
|
+
/** @description The flow, with its steps and per-step report. */
|
|
172605
|
+
200: {
|
|
172606
|
+
headers: {
|
|
172607
|
+
[name: string]: unknown;
|
|
172608
|
+
};
|
|
172609
|
+
content: {
|
|
172610
|
+
"application/json": components["schemas"]["EmailMarketingFlow"];
|
|
172611
|
+
};
|
|
172612
|
+
};
|
|
172613
|
+
401: components["responses"]["Unauthorized"];
|
|
172614
|
+
403: components["responses"]["Forbidden"];
|
|
172615
|
+
404: components["responses"]["NotFound"];
|
|
172616
|
+
};
|
|
172617
|
+
};
|
|
172618
|
+
deleteEmailMarketingFlow: {
|
|
172619
|
+
parameters: {
|
|
172620
|
+
query?: {
|
|
172621
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
172622
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
172623
|
+
};
|
|
172624
|
+
header?: never;
|
|
172625
|
+
path: {
|
|
172626
|
+
flow_id: string;
|
|
172627
|
+
};
|
|
172628
|
+
cookie?: never;
|
|
172629
|
+
};
|
|
172630
|
+
requestBody?: never;
|
|
172631
|
+
responses: {
|
|
172632
|
+
/** @description Deleted. */
|
|
172633
|
+
204: {
|
|
172634
|
+
headers: {
|
|
172635
|
+
[name: string]: unknown;
|
|
172636
|
+
};
|
|
172637
|
+
content?: never;
|
|
172638
|
+
};
|
|
172639
|
+
401: components["responses"]["Unauthorized"];
|
|
172640
|
+
403: components["responses"]["Forbidden"];
|
|
172641
|
+
404: components["responses"]["NotFound"];
|
|
172642
|
+
};
|
|
172643
|
+
};
|
|
172644
|
+
updateEmailMarketingFlow: {
|
|
172645
|
+
parameters: {
|
|
172646
|
+
query?: {
|
|
172647
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
172648
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
172649
|
+
};
|
|
172650
|
+
header?: never;
|
|
172651
|
+
path: {
|
|
172652
|
+
flow_id: string;
|
|
172653
|
+
};
|
|
172654
|
+
cookie?: never;
|
|
172655
|
+
};
|
|
172656
|
+
requestBody: {
|
|
172657
|
+
content: {
|
|
172658
|
+
"application/json": components["schemas"]["EmailMarketingFlowWrite"];
|
|
172659
|
+
};
|
|
172660
|
+
};
|
|
172661
|
+
responses: {
|
|
172662
|
+
/** @description The flow, with its steps and per-step report. */
|
|
172663
|
+
200: {
|
|
172664
|
+
headers: {
|
|
172665
|
+
[name: string]: unknown;
|
|
172666
|
+
};
|
|
172667
|
+
content: {
|
|
172668
|
+
"application/json": components["schemas"]["EmailMarketingFlow"];
|
|
172669
|
+
};
|
|
172670
|
+
};
|
|
172671
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
172672
|
+
401: components["responses"]["Unauthorized"];
|
|
172673
|
+
403: components["responses"]["Forbidden"];
|
|
172674
|
+
404: components["responses"]["NotFound"];
|
|
172675
|
+
};
|
|
172676
|
+
};
|
|
172677
|
+
activateEmailMarketingFlow: {
|
|
172678
|
+
parameters: {
|
|
172679
|
+
query?: {
|
|
172680
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
172681
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
172682
|
+
};
|
|
172683
|
+
header?: never;
|
|
172684
|
+
path: {
|
|
172685
|
+
flow_id: string;
|
|
172686
|
+
};
|
|
172687
|
+
cookie?: never;
|
|
172688
|
+
};
|
|
172689
|
+
requestBody?: never;
|
|
172690
|
+
responses: {
|
|
172691
|
+
/** @description The flow, with its steps and per-step report. */
|
|
172692
|
+
200: {
|
|
172693
|
+
headers: {
|
|
172694
|
+
[name: string]: unknown;
|
|
172695
|
+
};
|
|
172696
|
+
content: {
|
|
172697
|
+
"application/json": components["schemas"]["EmailMarketingFlow"];
|
|
172698
|
+
};
|
|
172699
|
+
};
|
|
172700
|
+
400: components["responses"]["UnprocessableEntity"];
|
|
172701
|
+
401: components["responses"]["Unauthorized"];
|
|
172702
|
+
403: components["responses"]["Forbidden"];
|
|
172703
|
+
404: components["responses"]["NotFound"];
|
|
172704
|
+
};
|
|
172705
|
+
};
|
|
172706
|
+
pauseEmailMarketingFlow: {
|
|
172707
|
+
parameters: {
|
|
172708
|
+
query?: {
|
|
172709
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
172710
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
172711
|
+
};
|
|
172712
|
+
header?: never;
|
|
172713
|
+
path: {
|
|
172714
|
+
flow_id: string;
|
|
172715
|
+
};
|
|
172716
|
+
cookie?: never;
|
|
172717
|
+
};
|
|
172718
|
+
requestBody?: never;
|
|
172719
|
+
responses: {
|
|
172720
|
+
/** @description The flow, with its steps and per-step report. */
|
|
172721
|
+
200: {
|
|
172722
|
+
headers: {
|
|
172723
|
+
[name: string]: unknown;
|
|
172724
|
+
};
|
|
172725
|
+
content: {
|
|
172726
|
+
"application/json": components["schemas"]["EmailMarketingFlow"];
|
|
172727
|
+
};
|
|
172728
|
+
};
|
|
172729
|
+
401: components["responses"]["Unauthorized"];
|
|
172730
|
+
403: components["responses"]["Forbidden"];
|
|
172731
|
+
404: components["responses"]["NotFound"];
|
|
172732
|
+
};
|
|
172733
|
+
};
|
|
172362
172734
|
listEmailMarketingForms: {
|
|
172363
172735
|
parameters: {
|
|
172364
172736
|
query?: {
|
|
@@ -189856,6 +190228,8 @@ export interface operations {
|
|
|
189856
190228
|
query?: {
|
|
189857
190229
|
/** @description ISO-4217 code to price this response in — the same assertion `X-Zinn-Currency` makes, in a form a caller that cannot send custom headers can use. The public funnel is exactly that caller: its transport forbids them outright, because `X-Zinn-Currency` once shipped on an SPA without its engine CORS entry and took production down with every deploy green. An unknown or unoffered code falls back silently rather than raising — a bad value must never break a pricing page. */
|
|
189858
190230
|
currency?: string;
|
|
190231
|
+
/** @description The interface language the page renders in (`de`, `pt-BR`, …). The add-ons' names and descriptions come back in it, the seeded English where a string has no translation yet. Missing or unsupported keeps the English. Never read from `Accept-Language`: the value comes from the page the copy sits in (1108#14). */
|
|
190232
|
+
locale?: string;
|
|
189859
190233
|
};
|
|
189860
190234
|
header?: never;
|
|
189861
190235
|
path: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1614",
|
|
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>",
|