@zinn-digital/sdk 0.1.2124 → 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.
- package/dist/generated/schema.d.ts +132 -3
- package/package.json +1 -1
|
@@ -50143,6 +50143,30 @@ export interface paths {
|
|
|
50143
50143
|
patch: operations["setResellerCurrencies"];
|
|
50144
50144
|
trace?: never;
|
|
50145
50145
|
};
|
|
50146
|
+
"/v1/reseller/default-package": {
|
|
50147
|
+
parameters: {
|
|
50148
|
+
query?: never;
|
|
50149
|
+
header?: never;
|
|
50150
|
+
path?: never;
|
|
50151
|
+
cookie?: never;
|
|
50152
|
+
};
|
|
50153
|
+
/**
|
|
50154
|
+
* The package a client with no plan of their own is given.
|
|
50155
|
+
* @description `plan_version_id` is your default client package, or `null` when you have not set one. A client of yours with no package is given this one automatically: it is never charged to the client, and you pay for it at wholesale on your statement like any client package. With no default, the client is told their provider is still setting their account up, and you are notified once per client. `choices` lists every client plan your panel offers that has a monthly price in `currency` (what you are settled in). Your own reseller plan is never a choice. Requires `reseller.view`.
|
|
50156
|
+
*/
|
|
50157
|
+
get: operations["getResellerDefaultPackage"];
|
|
50158
|
+
put?: never;
|
|
50159
|
+
post?: never;
|
|
50160
|
+
delete?: never;
|
|
50161
|
+
options?: never;
|
|
50162
|
+
head?: never;
|
|
50163
|
+
/**
|
|
50164
|
+
* Choose or clear your default client package.
|
|
50165
|
+
* @description Send one of the `choices` from the GET as `plan_version_id`, or `null` to clear it. A reseller plan, a plan with no monthly price in the currency you are settled in, or a plan your panel does not offer is refused with a reason. Requires `reseller.manage`.
|
|
50166
|
+
*/
|
|
50167
|
+
patch: operations["setResellerDefaultPackage"];
|
|
50168
|
+
trace?: never;
|
|
50169
|
+
};
|
|
50146
50170
|
"/v1/reseller/dunning": {
|
|
50147
50171
|
parameters: {
|
|
50148
50172
|
query?: never;
|
|
@@ -50487,7 +50511,7 @@ export interface paths {
|
|
|
50487
50511
|
};
|
|
50488
50512
|
/**
|
|
50489
50513
|
* The org's wholesale reseller agreement.
|
|
50490
|
-
* @description
|
|
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`.
|
|
50491
50515
|
*/
|
|
50492
50516
|
get: operations["getResellerProgram"];
|
|
50493
50517
|
put?: never;
|
|
@@ -108373,6 +108397,35 @@ export interface components {
|
|
|
108373
108397
|
/** @description Whether the currency control renders in your clients' panel. */
|
|
108374
108398
|
switcher?: boolean;
|
|
108375
108399
|
};
|
|
108400
|
+
ResellerDefaultPackage: {
|
|
108401
|
+
choices: components["schemas"]["ResellerDefaultPackageChoice"][];
|
|
108402
|
+
/** @description The currency you are settled in; choices are priced in it. */
|
|
108403
|
+
currency: string;
|
|
108404
|
+
/** @description Your clients that have no package while you have no default set, oldest first. You are e-mailed once per client; a client leaves this list as soon as it holds a package. */
|
|
108405
|
+
pending_clients: components["schemas"]["ResellerPendingClient"][];
|
|
108406
|
+
/**
|
|
108407
|
+
* Format: uuid
|
|
108408
|
+
* @description Your default client package, or null when none is set.
|
|
108409
|
+
*/
|
|
108410
|
+
plan_version_id: string | null;
|
|
108411
|
+
};
|
|
108412
|
+
ResellerDefaultPackageChoice: {
|
|
108413
|
+
currency: string;
|
|
108414
|
+
/** @description The monthly list price in minor units of `currency`. */
|
|
108415
|
+
monthly_minor: number;
|
|
108416
|
+
name: string;
|
|
108417
|
+
plan_code: string;
|
|
108418
|
+
/** Format: uuid */
|
|
108419
|
+
plan_version_id: string;
|
|
108420
|
+
product_line: string;
|
|
108421
|
+
};
|
|
108422
|
+
ResellerDefaultPackageWrite: {
|
|
108423
|
+
/**
|
|
108424
|
+
* Format: uuid
|
|
108425
|
+
* @description One of the GET's `choices`, or null to clear the default.
|
|
108426
|
+
*/
|
|
108427
|
+
plan_version_id: string | null;
|
|
108428
|
+
};
|
|
108376
108429
|
/** @description A reseller's own dunning ladder, or the platform default they fall back to. */
|
|
108377
108430
|
ResellerDunning: {
|
|
108378
108431
|
/** @description The ladder in force. On the platform-default view this is synthesised rather than read from a row, so `id` is null and `version` is 0. */
|
|
@@ -108732,6 +108785,13 @@ export interface components {
|
|
|
108732
108785
|
gap: boolean;
|
|
108733
108786
|
manage_route: string;
|
|
108734
108787
|
};
|
|
108788
|
+
ResellerPendingClient: {
|
|
108789
|
+
client_name: string;
|
|
108790
|
+
/** Format: uuid */
|
|
108791
|
+
client_org_id: string;
|
|
108792
|
+
/** Format: date-time */
|
|
108793
|
+
since: string;
|
|
108794
|
+
};
|
|
108735
108795
|
ResellerPluginAffiliateProgramme: {
|
|
108736
108796
|
/**
|
|
108737
108797
|
* Format: uri
|
|
@@ -108811,6 +108871,8 @@ export interface components {
|
|
|
108811
108871
|
created_at: string;
|
|
108812
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. */
|
|
108813
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;
|
|
108814
108876
|
/** @description Whether we hold the company details your client invoices are issued under. False means you cannot invoice a client yet. */
|
|
108815
108877
|
has_invoicing_entity: boolean;
|
|
108816
108878
|
id: components["schemas"]["Uuid"];
|
|
@@ -108832,6 +108894,13 @@ export interface components {
|
|
|
108832
108894
|
*/
|
|
108833
108895
|
trial_ends_at?: string | null;
|
|
108834
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
|
+
};
|
|
108835
108904
|
ResellerProgramUpdate: {
|
|
108836
108905
|
billing_day?: number;
|
|
108837
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. */
|
|
@@ -121291,7 +121360,7 @@ export interface components {
|
|
|
121291
121360
|
* @enum {string}
|
|
121292
121361
|
*/
|
|
121293
121362
|
display_mode: "gross" | "net";
|
|
121294
|
-
/** @description The figures ran on weak evidence (a geo hint, no billing address) and are indicative. The charge is rated again at checkout against full place-of-supply evidence, and **that** is the number on the invoice. */
|
|
121363
|
+
/** @description The figures ran on weak evidence (a geo hint, no billing address) and are indicative. The charge is rated again at checkout against full place-of-supply evidence, and **that** is the number on the invoice. On the authenticated route a body `country` equal to the buyer's saved billing country is not a guess and answers `false`; only a country that differs from the saved one (or no saved country at all) answers `true`. */
|
|
121295
121364
|
estimated: boolean;
|
|
121296
121365
|
/** @description ⛔ Equal to net in the `indeterminate` fallback, **never 0** — a caller rendering this field unconditionally must show the price rather than a free product. */
|
|
121297
121366
|
gross_total_minor: number;
|
|
@@ -210207,6 +210276,66 @@ export interface operations {
|
|
|
210207
210276
|
429: components["responses"]["TooManyRequests"];
|
|
210208
210277
|
};
|
|
210209
210278
|
};
|
|
210279
|
+
getResellerDefaultPackage: {
|
|
210280
|
+
parameters: {
|
|
210281
|
+
query?: {
|
|
210282
|
+
/** @description Which of your organizations this applies to. Required only when you belong to more than one here — otherwise it is inferred, and an id outside your direct memberships is a 404 rather than a 403, so this can never widen scope. */
|
|
210283
|
+
org_id?: components["schemas"]["Uuid"];
|
|
210284
|
+
};
|
|
210285
|
+
header?: never;
|
|
210286
|
+
path?: never;
|
|
210287
|
+
cookie?: never;
|
|
210288
|
+
};
|
|
210289
|
+
requestBody?: never;
|
|
210290
|
+
responses: {
|
|
210291
|
+
/** @description Your default client package and the plans you may choose from. */
|
|
210292
|
+
200: {
|
|
210293
|
+
headers: {
|
|
210294
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
210295
|
+
[name: string]: unknown;
|
|
210296
|
+
};
|
|
210297
|
+
content: {
|
|
210298
|
+
"application/json": components["schemas"]["ResellerDefaultPackage"];
|
|
210299
|
+
};
|
|
210300
|
+
};
|
|
210301
|
+
401: components["responses"]["Unauthorized"];
|
|
210302
|
+
403: components["responses"]["Forbidden"];
|
|
210303
|
+
404: components["responses"]["NotFound"];
|
|
210304
|
+
429: components["responses"]["TooManyRequests"];
|
|
210305
|
+
};
|
|
210306
|
+
};
|
|
210307
|
+
setResellerDefaultPackage: {
|
|
210308
|
+
parameters: {
|
|
210309
|
+
query?: {
|
|
210310
|
+
/** @description Which of your organizations this applies to. Required only when you belong to more than one here — otherwise it is inferred, and an id outside your direct memberships is a 404 rather than a 403, so this can never widen scope. */
|
|
210311
|
+
org_id?: components["schemas"]["Uuid"];
|
|
210312
|
+
};
|
|
210313
|
+
header?: never;
|
|
210314
|
+
path?: never;
|
|
210315
|
+
cookie?: never;
|
|
210316
|
+
};
|
|
210317
|
+
requestBody: {
|
|
210318
|
+
content: {
|
|
210319
|
+
"application/json": components["schemas"]["ResellerDefaultPackageWrite"];
|
|
210320
|
+
};
|
|
210321
|
+
};
|
|
210322
|
+
responses: {
|
|
210323
|
+
/** @description Your default client package, as stored. */
|
|
210324
|
+
200: {
|
|
210325
|
+
headers: {
|
|
210326
|
+
[name: string]: unknown;
|
|
210327
|
+
};
|
|
210328
|
+
content: {
|
|
210329
|
+
"application/json": components["schemas"]["ResellerDefaultPackage"];
|
|
210330
|
+
};
|
|
210331
|
+
};
|
|
210332
|
+
401: components["responses"]["Unauthorized"];
|
|
210333
|
+
403: components["responses"]["Forbidden"];
|
|
210334
|
+
404: components["responses"]["NotFound"];
|
|
210335
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
210336
|
+
429: components["responses"]["TooManyRequests"];
|
|
210337
|
+
};
|
|
210338
|
+
};
|
|
210210
210339
|
getResellerDunning: {
|
|
210211
210340
|
parameters: {
|
|
210212
210341
|
query?: {
|
|
@@ -210960,7 +211089,7 @@ export interface operations {
|
|
|
210960
211089
|
[name: string]: unknown;
|
|
210961
211090
|
};
|
|
210962
211091
|
content: {
|
|
210963
|
-
"application/json": components["schemas"]["ResellerProgram"];
|
|
211092
|
+
"application/json": components["schemas"]["ResellerProgram"] | components["schemas"]["ResellerProgramNotEnrolled"];
|
|
210964
211093
|
};
|
|
210965
211094
|
};
|
|
210966
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.
|
|
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>",
|