@zinn-digital/sdk 0.1.2052 → 0.1.2053

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.
@@ -33916,7 +33916,7 @@ export interface paths {
33916
33916
  };
33917
33917
  /**
33918
33918
  * The managed-database sizes and engine versions on sale.
33919
- * @description What may be bought right now, per engine. Gated on `databases.view`. Each engine's versions are served from its own fence, so a major approaching end of life disappears from the picker with no frontend change — we stop selling one 180 days before upstream stops patching it, because a customer part-way through a term must never be stranded on an unpatched engine. MySQL 8.0 is the one exception and it says so: it is past upstream end of life, offered under a recorded carve-out on Percona's patched build, and flagged `past_upstream_eol` so a customer choosing it knows what they are choosing.
33919
+ * @description What may be bought right now, per engine. Gated on `databases.view`. Each engine's versions are served from its own fence, so a major approaching end of life disappears from the picker with no frontend change — we stop selling one 180 days before upstream stops patching it, because a customer part-way through a term must never be stranded on an unpatched engine. MySQL 8.0 is the one exception and it says so: it is past upstream end of life, offered under a recorded carve-out on Percona's patched build, and flagged `past_upstream_eol` so a customer choosing it knows what they are choosing. Each size's `price_minor` + `currency` is what the basket will charge for one month, from the same source the cart prices from (the reseller's list for a reseller's client, else the catalogue price in `currency`), so the figure beside Buy is the charged figure. A currency with no price answers in USD, labelled USD; a client's cart stays in the buyer's currency and rates itself. A size priced in neither is left out.
33920
33920
  */
33921
33921
  get: operations["getManagedDatabaseCatalogue"];
33922
33922
  put?: never;
@@ -86254,6 +86254,15 @@ export interface components {
86254
86254
  /** @description The data centre */
86255
86255
  zone: string;
86256
86256
  }[];
86257
+ /** @description What a term cart in the requested `?currency=` charges for this size, per cadence, from the same price source the cart reads. Empty when no currency was requested, on a size priced per data centre (the cart holds those in USD and refuses another currency), or when the cart has no price in that currency. */
86258
+ cart_prices?: {
86259
+ /** @description The price */
86260
+ amount_minor: number;
86261
+ /** @description ISO 4217 code of `amount_minor`. */
86262
+ currency: string;
86263
+ /** @enum {string} */
86264
+ interval: "monthly" | "annual";
86265
+ }[];
86257
86266
  /** @description vCPU count, or null when the plan does not state one. */
86258
86267
  cores: number | null;
86259
86268
  /** @description The currency `price_minor` is quoted in. */
@@ -95930,11 +95939,11 @@ export interface components {
95930
95939
  };
95931
95940
  ManagedDatabaseSize: {
95932
95941
  code: string;
95933
- /** @example USD */
95942
+ /** @example EUR */
95934
95943
  currency: string;
95935
95944
  high_availability: boolean;
95936
95945
  name: string;
95937
- /** @description Monthly price in integer minor units (§2.8 — money is never a float). */
95946
+ /** @description Monthly price in integer minor units (§2.8 — money is never a float): what the basket charges in `currency`. */
95938
95947
  price_minor: number;
95939
95948
  ram_gb: number;
95940
95949
  storage_gb: number;
@@ -176744,6 +176753,8 @@ export interface operations {
176744
176753
  getComputeCatalogue: {
176745
176754
  parameters: {
176746
176755
  query?: {
176756
+ /** @description ISO 4217 code the buyer's cart will be opened in. Fills each tier's `cart_prices` with what that cart charges; `prices` are unchanged. */
176757
+ currency?: string;
176747
176758
  /** @description The organisation to configure against. Required only when the caller belongs to more than one; omitted, it is their own. */
176748
176759
  org_id?: components["schemas"]["Uuid"];
176749
176760
  /** @description Which compute range to describe. Defaults to Zinn® Cloud, the branded product; the VPS range is the same seam with a different target. */
@@ -182342,7 +182353,12 @@ export interface operations {
182342
182353
  };
182343
182354
  getManagedDatabaseCatalogue: {
182344
182355
  parameters: {
182345
- query?: never;
182356
+ query?: {
182357
+ /** @description ISO 4217 code of the basket the customer will buy in. Omitted means USD. */
182358
+ currency?: string;
182359
+ /** @description The org the database will be bought for (must be one of the caller's). Decides whether a reseller's price list applies. Omitted uses the caller's only org. */
182360
+ org_id?: string;
182361
+ };
182346
182362
  header?: never;
182347
182363
  path?: never;
182348
182364
  cookie?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2052",
3
+ "version": "0.1.2053",
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>",