@zinn-digital/sdk 0.1.1837 → 0.1.1839

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.
@@ -28275,7 +28275,11 @@ export interface paths {
28275
28275
  path?: never;
28276
28276
  cookie?: never;
28277
28277
  };
28278
- get?: never;
28278
+ /**
28279
+ * List the open baskets in scope.
28280
+ * @description The organization's OPEN carts that hold at least one line, newest first by paging, so the dashboard's basket screen can open the customer's basket when it is reached without a cart id (a reload, a bookmark, the nav). An empty cart and a converted or abandoned one are not listed. Lines are not re-priced here; read one with `getCart`. Requires `billing.payment.manage`, the permission every other cart operation needs.
28281
+ */
28282
+ get: operations["listCarts"];
28279
28283
  put?: never;
28280
28284
  /**
28281
28285
  * Open a shopping cart.
@@ -36012,8 +36016,8 @@ export interface paths {
36012
36016
  get: operations["listEmailMarketingWhatsappTemplates"];
36013
36017
  put?: never;
36014
36018
  /**
36015
- * Submit a plain-text template for Meta's review.
36016
- * @description Gated on `email_marketing.manage`. Submits ONE template language to Meta for review (free; Meta usually decides within minutes to a day). Plain text only (no numbered placeholders). Refusal `CAMPAIGNS_WHATSAPP_TEMPLATE_REFUSED` (`details[].code`: `name_invalid`, `language_invalid`, `category_invalid`, `body_invalid`, `duplicate`, `refused`, `not_connected` 409, `unavailable` 503, `token_expired`). Audited (`email_marketing.whatsapp.template_create`).
36019
+ * Submit a template for Meta's review.
36020
+ * @description Gated on `email_marketing.manage`. Submits ONE template language to Meta for review (free; Meta usually decides within minutes to a day). The body may carry positional placeholders `{{1}}`, `{{2}}` and so on, numbered from 1 in order of appearance with no gap or repeat, and `examples` carries ONE example value per placeholder in the same order (sent to Meta as the body's `example.body_text`; a plain body sends none). Refusal `CAMPAIGNS_WHATSAPP_TEMPLATE_REFUSED` (`details[].code`: `name_invalid`, `language_invalid`, `category_invalid`, `body_invalid`, `placeholders_invalid` (a gap, a repeat, a wrong order, or a named or malformed placeholder), `examples_invalid` (not exactly one non-blank example per placeholder), `duplicate`, `refused`, `not_connected` 409, `unavailable` 503, `token_expired`); a refused body makes no Meta call. Audited (`email_marketing.whatsapp.template_create`).
36017
36021
  */
36018
36022
  post: operations["createEmailMarketingWhatsappTemplate"];
36019
36023
  delete?: never;
@@ -80620,6 +80624,24 @@ export interface components {
80620
80624
  /** @description Required for a domain line. */
80621
80625
  tld?: string;
80622
80626
  };
80627
+ /** @description An open basket as the basket list shows it, not re-priced (`getCart` re-prices). */
80628
+ CartSummary: {
80629
+ /** Format: date-time */
80630
+ created_at: string;
80631
+ /** @description ISO 4217 code the basket is priced in; null until its first line. */
80632
+ currency: string | null;
80633
+ /** Format: uuid */
80634
+ id: string;
80635
+ line_count: number;
80636
+ /** Format: uuid */
80637
+ org_id: string;
80638
+ /** Format: date-time */
80639
+ updated_at: string;
80640
+ };
80641
+ CartSummaryPage: {
80642
+ data: components["schemas"]["CartSummary"][];
80643
+ page: components["schemas"]["PageMeta"];
80644
+ };
80623
80645
  CatalogAddon: {
80624
80646
  all_lines: boolean;
80625
80647
  category: string;
@@ -169665,6 +169687,37 @@ export interface operations {
169665
169687
  422: components["responses"]["UnprocessableEntity"];
169666
169688
  };
169667
169689
  };
169690
+ listCarts: {
169691
+ parameters: {
169692
+ query?: {
169693
+ /** @description Opaque cursor from a previous page's `page.next_cursor`. */
169694
+ cursor?: components["parameters"]["Cursor"];
169695
+ /** @description Maximum items to return (page size). */
169696
+ limit?: components["parameters"]["Limit"];
169697
+ /** @description Restrict to one organization in scope. */
169698
+ org_id?: components["schemas"]["Uuid"];
169699
+ };
169700
+ header?: never;
169701
+ path?: never;
169702
+ cookie?: never;
169703
+ };
169704
+ requestBody?: never;
169705
+ responses: {
169706
+ /** @description A page of open baskets. */
169707
+ 200: {
169708
+ headers: {
169709
+ [name: string]: unknown;
169710
+ };
169711
+ content: {
169712
+ "application/json": components["schemas"]["CartSummaryPage"];
169713
+ };
169714
+ };
169715
+ 401: components["responses"]["Unauthorized"];
169716
+ 403: components["responses"]["Forbidden"];
169717
+ 422: components["responses"]["UnprocessableEntity"];
169718
+ 429: components["responses"]["TooManyRequests"];
169719
+ };
169720
+ };
169668
169721
  createCart: {
169669
169722
  parameters: {
169670
169723
  query?: never;
@@ -169913,7 +169966,7 @@ export interface operations {
169913
169966
  };
169914
169967
  401: components["responses"]["Unauthorized"];
169915
169968
  403: components["responses"]["Forbidden"];
169916
- /** @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. */
169969
+ /** @description The basket could not be adopted. `error.refusal.key` distinguishes `refusal.cart.adoptNotFound` (expired or never existed), `refusal.cart.adoptAlreadyOrdered` (already turned into an order), `refusal.cart.adoptAlreadyAdded` (another tab adopted it first) and `refusal.cart.adoptGuestCheckout` (the basket is already part of a guest checkout for another account) — kept apart because each leads the customer to do something different. A guest basket in a different currency from the account's other basket is NOT refused: it is adopted into its own basket in the currency it was quoted in (CARTADOPT1115). */
169917
169970
  422: {
169918
169971
  headers: {
169919
169972
  [name: string]: unknown;
@@ -182747,6 +182800,8 @@ export interface operations {
182747
182800
  body: string;
182748
182801
  /** @enum {string} */
182749
182802
  category: "MARKETING" | "UTILITY";
182803
+ /** @description One example value per `{{n}}` placeholder in `body`, in order. */
182804
+ examples?: string[];
182750
182805
  language: string;
182751
182806
  name: string;
182752
182807
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.1837",
3
+ "version": "0.1.1839",
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>",