@zinn-digital/sdk 0.1.2126 → 0.1.2127

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.
@@ -50511,7 +50511,7 @@ export interface paths {
50511
50511
  };
50512
50512
  /**
50513
50513
  * The org's wholesale reseller agreement.
50514
- * @description Returns 404 when the org is not enrolled — "not a reseller" is a state the screen renders, and the same 404 is what an out-of-scope org gets, so this is not an existence oracle. Requires `reseller.view`.
50514
+ * @description An org that is not enrolled gets 200 with `enrolled: false` and `can_apply` (whether this caller may apply) — "not a reseller yet" is a state the screen renders with a way to join, not an error. An org outside your scope is a 404, so this is not an existence oracle. Requires `reseller.view`.
50515
50515
  */
50516
50516
  get: operations["getResellerProgram"];
50517
50517
  put?: never;
@@ -108871,6 +108871,8 @@ export interface components {
108871
108871
  created_at: string;
108872
108872
  /** @description Basis points added to Zinn®'s list price for plans you have not priced explicitly. 0 means "sell at list", which is not zero margin — you still keep the wholesale discount. */
108873
108873
  default_markup_bps: number;
108874
+ /** @description `true` on the read of an enrolled org (`GET /v1/reseller/program`), which also answers `enrolled: false` for an org that is not enrolled. */
108875
+ enrolled?: boolean;
108874
108876
  /** @description Whether we hold the company details your client invoices are issued under. False means you cannot invoice a client yet. */
108875
108877
  has_invoicing_entity: boolean;
108876
108878
  id: components["schemas"]["Uuid"];
@@ -108892,6 +108894,13 @@ export interface components {
108892
108894
  */
108893
108895
  trial_ends_at?: string | null;
108894
108896
  };
108897
+ /** @description The org has no reseller programme yet. The screen shows the programme and, when `can_apply` is true, the way to join (`POST /v1/reseller/program`). */
108898
+ ResellerProgramNotEnrolled: {
108899
+ /** @description Whether this caller holds `reseller.manage` here, so may apply. */
108900
+ can_apply: boolean;
108901
+ /** @enum {boolean} */
108902
+ enrolled: false;
108903
+ };
108895
108904
  ResellerProgramUpdate: {
108896
108905
  billing_day?: number;
108897
108906
  /** @description Turn on to invoice your own clients yourself — we stop issuing to them from the next run. Nothing already issued changes: an invoice is immutable. Turning it back off resumes issuing, including for orders placed while it was on. */
@@ -211080,7 +211089,7 @@ export interface operations {
211080
211089
  [name: string]: unknown;
211081
211090
  };
211082
211091
  content: {
211083
- "application/json": components["schemas"]["ResellerProgram"];
211092
+ "application/json": components["schemas"]["ResellerProgram"] | components["schemas"]["ResellerProgramNotEnrolled"];
211084
211093
  };
211085
211094
  };
211086
211095
  401: components["responses"]["Unauthorized"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zinn-digital/sdk",
3
- "version": "0.1.2126",
3
+ "version": "0.1.2127",
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>",