@zinn-digital/sdk 0.1.1760 → 0.1.1761

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.
@@ -58026,6 +58026,26 @@ export interface paths {
58026
58026
  patch?: never;
58027
58027
  trace?: never;
58028
58028
  };
58029
+ "/v1/store-connect/campaigns": {
58030
+ parameters: {
58031
+ query?: never;
58032
+ header?: never;
58033
+ path?: never;
58034
+ cookie?: never;
58035
+ };
58036
+ /**
58037
+ * The Zinn® Campaigns WordPress plugin reads whether its Pro add-on is unlocked.
58038
+ * @description Store token only (`Authorization: Bearer zou_…`). The ENGINE decides Pro, never the plugin (docs/1052 §11.9b). `active` = the org is in good standing and holds a live, active, non-zero-priced plan on the Zinn® Campaigns line (any paid plan, no separate licence). `trial` = no paid plan, the org is active and fewer than 30 days have passed since the org first connected a store (disconnecting and reconnecting never restarts it). `lapsed` = anything else: the add-on keeps every setting and stops its Pro features until a paid plan is live again.
58039
+ */
58040
+ get: operations["getStoreCampaignsPlan"];
58041
+ put?: never;
58042
+ post?: never;
58043
+ delete?: never;
58044
+ options?: never;
58045
+ head?: never;
58046
+ patch?: never;
58047
+ trace?: never;
58048
+ };
58029
58049
  "/v1/store-connect/connection": {
58030
58050
  parameters: {
58031
58051
  query?: never;
@@ -58126,6 +58146,30 @@ export interface paths {
58126
58146
  patch?: never;
58127
58147
  trace?: never;
58128
58148
  };
58149
+ "/v1/store-connect/forms": {
58150
+ parameters: {
58151
+ query?: never;
58152
+ header?: never;
58153
+ path?: never;
58154
+ cookie?: never;
58155
+ };
58156
+ /**
58157
+ * The WordPress plugin lists the store org's enabled sign-up forms for its form picker.
58158
+ * @description Store token only. At most 100, newest first. Only forms of the token's own org.
58159
+ */
58160
+ get: operations["listStoreForms"];
58161
+ put?: never;
58162
+ /**
58163
+ * The WordPress plugin posts one visitor's sign-up from the site's server (double opt-in).
58164
+ * @description Store token only. The plugin sends it only when the visitor ticked the consent box. The same path as the hosted form (F20, docs/1052 §10f): ONE confirmation e-mail goes out and nobody is a contact until they click it. No oracle: a new, pending, confirmed, throttled, suppressed or over-allowance address all answer `ok`; `closed` is a fact about the form (off, Campaigns not open, or the account not in good standing). A form of another org is 404.
58165
+ */
58166
+ post: operations["submitStoreForm"];
58167
+ delete?: never;
58168
+ options?: never;
58169
+ head?: never;
58170
+ patch?: never;
58171
+ trace?: never;
58172
+ };
58129
58173
  "/v1/store-connect/orders/{ref}/messages": {
58130
58174
  parameters: {
58131
58175
  query?: never;
@@ -216233,6 +216277,39 @@ export interface operations {
216233
216277
  422: components["responses"]["UnprocessableEntity"];
216234
216278
  };
216235
216279
  };
216280
+ getStoreCampaignsPlan: {
216281
+ parameters: {
216282
+ query?: never;
216283
+ header?: never;
216284
+ path?: never;
216285
+ cookie?: never;
216286
+ };
216287
+ requestBody?: never;
216288
+ responses: {
216289
+ /** @description The Pro state. */
216290
+ 200: {
216291
+ headers: {
216292
+ [name: string]: unknown;
216293
+ };
216294
+ content: {
216295
+ "application/json": {
216296
+ /** @description The paid plan's code, or empty. */
216297
+ plan_code: string;
216298
+ /** @description A paid Campaigns plan exists (it may be unusable while the account is not in good standing). */
216299
+ plan_paid: boolean;
216300
+ /** @enum {string} */
216301
+ pro: "active" | "trial" | "lapsed";
216302
+ /** @enum {integer} */
216303
+ trial_days: 30;
216304
+ /** Format: date-time */
216305
+ trial_ends_at: string | null;
216306
+ };
216307
+ };
216308
+ };
216309
+ 401: components["responses"]["Unauthorized"];
216310
+ 429: components["responses"]["TooManyRequests"];
216311
+ };
216312
+ };
216236
216313
  disconnectStore: {
216237
216314
  parameters: {
216238
216315
  query?: never;
@@ -216361,6 +216438,79 @@ export interface operations {
216361
216438
  503: components["responses"]["ServiceUnavailable"];
216362
216439
  };
216363
216440
  };
216441
+ listStoreForms: {
216442
+ parameters: {
216443
+ query?: never;
216444
+ header?: never;
216445
+ path?: never;
216446
+ cookie?: never;
216447
+ };
216448
+ requestBody?: never;
216449
+ responses: {
216450
+ /** @description The forms. */
216451
+ 200: {
216452
+ headers: {
216453
+ [name: string]: unknown;
216454
+ };
216455
+ content: {
216456
+ "application/json": {
216457
+ forms: {
216458
+ button_label: string;
216459
+ /** @description The consent sentence the plugin must show beside the required tick box. */
216460
+ consent_text: string;
216461
+ /** @description The form's public id. */
216462
+ id: string;
216463
+ intro: string;
216464
+ list_name: string;
216465
+ locale: string;
216466
+ title: string;
216467
+ }[];
216468
+ };
216469
+ };
216470
+ };
216471
+ 401: components["responses"]["Unauthorized"];
216472
+ 429: components["responses"]["TooManyRequests"];
216473
+ };
216474
+ };
216475
+ submitStoreForm: {
216476
+ parameters: {
216477
+ query?: never;
216478
+ header?: never;
216479
+ path?: never;
216480
+ cookie?: never;
216481
+ };
216482
+ requestBody: {
216483
+ content: {
216484
+ "application/json": {
216485
+ /** @description The visitor's IP as the site saw it, kept as consent evidence; ignored when not an IP address. */
216486
+ client_ip?: string;
216487
+ email: string;
216488
+ form_id: string;
216489
+ /** @description The page the form was on. */
216490
+ source_page?: string;
216491
+ user_agent?: string;
216492
+ };
216493
+ };
216494
+ };
216495
+ responses: {
216496
+ /** @description Recorded. */
216497
+ 202: {
216498
+ headers: {
216499
+ [name: string]: unknown;
216500
+ };
216501
+ content: {
216502
+ "application/json": {
216503
+ /** @enum {string} */
216504
+ result: "ok" | "closed";
216505
+ };
216506
+ };
216507
+ };
216508
+ 401: components["responses"]["Unauthorized"];
216509
+ 404: components["responses"]["NotFound"];
216510
+ 422: components["responses"]["UnprocessableEntity"];
216511
+ 429: components["responses"]["TooManyRequests"];
216512
+ };
216513
+ };
216364
216514
  getStoreOrderMessages: {
216365
216515
  parameters: {
216366
216516
  query?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1760",
3
+ "version": "0.1.1761",
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>",