@zinn-digital/sdk 0.1.1838 → 0.1.1840
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 +56 -3
- package/package.json +1 -1
|
@@ -28275,7 +28275,11 @@ export interface paths {
|
|
|
28275
28275
|
path?: never;
|
|
28276
28276
|
cookie?: never;
|
|
28277
28277
|
};
|
|
28278
|
-
|
|
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.
|
|
@@ -55814,7 +55818,7 @@ export interface paths {
|
|
|
55814
55818
|
* Buy more disk or file allowance for one site.
|
|
55815
55819
|
* @description Raises this site's ceiling by `steps` purchasable steps (1 GB of disk, 50,000 inodes) and applies it to the box. Recorded as an open-ended grant rather than by editing the base, so *what the site started with* and *what the customer bought* stay separately revocable.
|
|
55816
55820
|
*
|
|
55817
|
-
* ⛔⛔ **The charge is created BEFORE the ceiling is raised, and an upgrade that cannot be charged for is refused with `422` — no grant, nothing on the box.** Both refusals answer `422` and the body distinguishes them: no published price in the caller's currency, or no way to take the payment. Free capacity on a real box is the failure no customer reports, because they received what they asked for.
|
|
55821
|
+
* ⛔⛔ **The charge is created BEFORE the ceiling is raised, and an upgrade that cannot be charged for is refused with `422` — no grant, nothing on the box.** Both refusals answer `422` and the body distinguishes them: no published price in the caller's currency, or no way to take the payment. Free capacity on a real box is the failure no customer reports, because they received what they asked for. An org with no way to pay at all (no usable stored payment method and no crypto election) is refused with `422` `refusal.siteQuota.noPaymentMethod` before anything is created: the upgrade renews monthly through the unattended ad-hoc sweep, which could never collect it.
|
|
55818
55822
|
*
|
|
55819
55823
|
* Charge-then-apply is deliberate: a charged-but-unapplied upgrade is repaired by the ten-minute reconciler, and free capacity is repaired by nobody. An upgrade also **lifts a quota freeze immediately**, because paying is the remedy and waiting for a sweep would be the worst minute of the product to leave to a schedule.
|
|
55820
55824
|
*
|
|
@@ -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.
|
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1840",
|
|
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>",
|