@zinn-digital/sdk 0.1.1766 → 0.1.1768
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 +80 -1
- package/package.json +1 -1
|
@@ -28577,6 +28577,26 @@ export interface paths {
|
|
|
28577
28577
|
patch?: never;
|
|
28578
28578
|
trace?: never;
|
|
28579
28579
|
};
|
|
28580
|
+
"/v1/catalog/reseller-terms": {
|
|
28581
|
+
parameters: {
|
|
28582
|
+
query?: never;
|
|
28583
|
+
header?: never;
|
|
28584
|
+
path?: never;
|
|
28585
|
+
cookie?: never;
|
|
28586
|
+
};
|
|
28587
|
+
/**
|
|
28588
|
+
* The platform-wide reseller wholesale discount, per product line.
|
|
28589
|
+
* @description The discount off list price that every reseller gets, per product line a reseller can sell, plus the discount on AI credit packs. **Public**: the reseller marketing pages state the discount model from this rather than from a typed percentage, because the discount is a dated wholesale-rate row that changes without a deploy. Only the platform-wide rates are returned; a reseller's own negotiated rate is never public. `discount_bps` is basis points (2500 = 25%). `scope` is `platform_product_line` when the line has its own rate, `platform` when it inherits the standard one, and empty when no rate is in force (the reseller then pays full list). Cacheable: strong `ETag` and `Cache-Control: public, max-age=60`.
|
|
28590
|
+
*/
|
|
28591
|
+
get: operations["getResellerTerms"];
|
|
28592
|
+
put?: never;
|
|
28593
|
+
post?: never;
|
|
28594
|
+
delete?: never;
|
|
28595
|
+
options?: never;
|
|
28596
|
+
head?: never;
|
|
28597
|
+
patch?: never;
|
|
28598
|
+
trace?: never;
|
|
28599
|
+
};
|
|
28580
28600
|
"/v1/cdn/credit": {
|
|
28581
28601
|
parameters: {
|
|
28582
28602
|
query?: never;
|
|
@@ -103608,6 +103628,17 @@ export interface components {
|
|
|
103608
103628
|
/** @description Sellable plans in this line. */
|
|
103609
103629
|
plan_count: number;
|
|
103610
103630
|
};
|
|
103631
|
+
ResellerLineDiscount: {
|
|
103632
|
+
/** @description The discount off list on this line, in basis points. */
|
|
103633
|
+
discount_bps: number;
|
|
103634
|
+
/** @description The product-line code, e.g. `zinn_campaigns`. */
|
|
103635
|
+
product_line: string;
|
|
103636
|
+
/**
|
|
103637
|
+
* @description Which platform-wide rate applies; empty when none is in force.
|
|
103638
|
+
* @enum {string}
|
|
103639
|
+
*/
|
|
103640
|
+
scope: "platform" | "platform_product_line" | "";
|
|
103641
|
+
};
|
|
103611
103642
|
ResellerLineList: {
|
|
103612
103643
|
data: components["schemas"]["ResellerLine"][];
|
|
103613
103644
|
};
|
|
@@ -104025,6 +104056,16 @@ export interface components {
|
|
|
104025
104056
|
outcome: "ended" | "deleted";
|
|
104026
104057
|
};
|
|
104027
104058
|
};
|
|
104059
|
+
ResellerTerms: {
|
|
104060
|
+
/** @description The discount on AI credit packs, in basis points. */
|
|
104061
|
+
ai_credits_discount_bps: number;
|
|
104062
|
+
lines: components["schemas"]["ResellerLineDiscount"][];
|
|
104063
|
+
/** @description The discount off list on every line with no rate of its own, in basis points. */
|
|
104064
|
+
standard_discount_bps: number;
|
|
104065
|
+
};
|
|
104066
|
+
ResellerTermsResponse: {
|
|
104067
|
+
data: components["schemas"]["ResellerTerms"];
|
|
104068
|
+
};
|
|
104028
104069
|
ResellerVendorPolicy: {
|
|
104029
104070
|
/** @description Basis points of the pool at which you are warned. 8000 = 80%. */
|
|
104030
104071
|
alert_at_bps: number;
|
|
@@ -109129,7 +109170,7 @@ export interface components {
|
|
|
109129
109170
|
outcome?: "ok" | "skipped" | "failed" | "dry_run";
|
|
109130
109171
|
rung?: string;
|
|
109131
109172
|
}[];
|
|
109132
|
-
/** @description `box_down`, `plugin_fatal`, `theme_fatal`, `quota_full`, `database` (cannot connect), `database_empty` (connects, but holds no WordPress site - the customer's), `site_forbidden` (the site answers 403 Forbidden from its own access rules - the customer's), `disk_full`, or `origin` (empty until classified). */
|
|
109173
|
+
/** @description `box_down`, `plugin_fatal`, `theme_fatal`, `quota_full`, `database` (cannot connect), `database_empty` (connects, but holds no WordPress site - the customer's), `site_forbidden` (the site answers 403 Forbidden from its own access rules - the customer's), `plugins_missing` (an active plugin's folder is there but its main file is gone - the customer's, unless one of our own plugin updates touched the site within 24 h), `disk_full`, or `origin` (empty until classified). */
|
|
109133
109174
|
classification?: string;
|
|
109134
109175
|
detail?: string;
|
|
109135
109176
|
domain?: string;
|
|
@@ -168730,6 +168771,44 @@ export interface operations {
|
|
|
168730
168771
|
429: components["responses"]["TooManyRequests"];
|
|
168731
168772
|
};
|
|
168732
168773
|
};
|
|
168774
|
+
getResellerTerms: {
|
|
168775
|
+
parameters: {
|
|
168776
|
+
query?: never;
|
|
168777
|
+
header?: {
|
|
168778
|
+
/** @description A previously returned `ETag`; a match responds `304`. */
|
|
168779
|
+
"If-None-Match"?: string;
|
|
168780
|
+
};
|
|
168781
|
+
path?: never;
|
|
168782
|
+
cookie?: never;
|
|
168783
|
+
};
|
|
168784
|
+
requestBody?: never;
|
|
168785
|
+
responses: {
|
|
168786
|
+
/** @description The platform-wide reseller discounts in force today. */
|
|
168787
|
+
200: {
|
|
168788
|
+
headers: {
|
|
168789
|
+
/** @description Always `public, max-age=60`. */
|
|
168790
|
+
"Cache-Control"?: string;
|
|
168791
|
+
/** @description Strong validator over the response contents. */
|
|
168792
|
+
ETag?: string;
|
|
168793
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
168794
|
+
[name: string]: unknown;
|
|
168795
|
+
};
|
|
168796
|
+
content: {
|
|
168797
|
+
"application/json": components["schemas"]["ResellerTermsResponse"];
|
|
168798
|
+
};
|
|
168799
|
+
};
|
|
168800
|
+
/** @description Unchanged since the supplied `If-None-Match`. */
|
|
168801
|
+
304: {
|
|
168802
|
+
headers: {
|
|
168803
|
+
/** @description The unchanged validator. */
|
|
168804
|
+
ETag?: string;
|
|
168805
|
+
[name: string]: unknown;
|
|
168806
|
+
};
|
|
168807
|
+
content?: never;
|
|
168808
|
+
};
|
|
168809
|
+
429: components["responses"]["TooManyRequests"];
|
|
168810
|
+
};
|
|
168811
|
+
};
|
|
168733
168812
|
getCdnCredit: {
|
|
168734
168813
|
parameters: {
|
|
168735
168814
|
query?: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1768",
|
|
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>",
|