@zinn-digital/sdk 0.1.1773 → 0.1.1775
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 +75 -0
- package/package.json +1 -1
|
@@ -48040,6 +48040,26 @@ export interface paths {
|
|
|
48040
48040
|
patch?: never;
|
|
48041
48041
|
trace?: never;
|
|
48042
48042
|
};
|
|
48043
|
+
"/v1/reseller/plugin-affiliates": {
|
|
48044
|
+
parameters: {
|
|
48045
|
+
query?: never;
|
|
48046
|
+
header?: never;
|
|
48047
|
+
path?: never;
|
|
48048
|
+
cookie?: never;
|
|
48049
|
+
};
|
|
48050
|
+
/**
|
|
48051
|
+
* The Pro-plugin affiliate programmes a reseller can earn commission from.
|
|
48052
|
+
* @description Every active, visible Freemius affiliation programme across our Pro plugins, with the commission Freemius holds today (never a typed figure) and where to apply. Licences sold through these programmes are sold under the Zinn® brand; the reseller earns the commission (owner ruling 2026-11-13, "A: affiliate link"). `complete` is false when a product could not be asked, so a short list is never read as "none". Cached for an hour. 404 when the org has no reseller programme. Requires `reseller.view`.
|
|
48053
|
+
*/
|
|
48054
|
+
get: operations["listResellerPluginAffiliates"];
|
|
48055
|
+
put?: never;
|
|
48056
|
+
post?: never;
|
|
48057
|
+
delete?: never;
|
|
48058
|
+
options?: never;
|
|
48059
|
+
head?: never;
|
|
48060
|
+
patch?: never;
|
|
48061
|
+
trace?: never;
|
|
48062
|
+
};
|
|
48043
48063
|
"/v1/reseller/prices": {
|
|
48044
48064
|
parameters: {
|
|
48045
48065
|
query?: never;
|
|
@@ -65648,6 +65668,8 @@ export interface components {
|
|
|
65648
65668
|
AdminResellerProgram: components["schemas"]["ResellerProgram"] & {
|
|
65649
65669
|
org_id: components["schemas"]["Uuid"];
|
|
65650
65670
|
org_name: string;
|
|
65671
|
+
/** @description RESELLMKT1113 (owner 2026-11-13): whether this reseller sees our Pro-plugin affiliate programmes. Default true. Turning it off never claws back commission already earned. Present on the programme and its drill-down, not on table rows. */
|
|
65672
|
+
plugin_affiliates_enabled?: boolean;
|
|
65651
65673
|
};
|
|
65652
65674
|
AdminResellerProgramList: {
|
|
65653
65675
|
data: components["schemas"]["AdminResellerProgramRow"][];
|
|
@@ -65678,6 +65700,8 @@ export interface components {
|
|
|
65678
65700
|
/** @description Empty means the reseller offers every language we ship. */
|
|
65679
65701
|
client_locales?: string[];
|
|
65680
65702
|
client_sell_in_currency?: string;
|
|
65703
|
+
/** @description RESELLMKT1113 (owner 2026-11-13): staff switch for this reseller's Pro-plugin affiliate programmes. Off hides them; commission already earned is never clawed back. */
|
|
65704
|
+
plugin_affiliates_enabled?: boolean;
|
|
65681
65705
|
/** @enum {string} */
|
|
65682
65706
|
status?: "pending" | "active" | "suspended";
|
|
65683
65707
|
};
|
|
@@ -103947,6 +103971,29 @@ export interface components {
|
|
|
103947
103971
|
gap: boolean;
|
|
103948
103972
|
manage_route: string;
|
|
103949
103973
|
};
|
|
103974
|
+
ResellerPluginAffiliateProgramme: {
|
|
103975
|
+
/**
|
|
103976
|
+
* Format: uri
|
|
103977
|
+
* @description The public page that takes an application, or null when there is none yet.
|
|
103978
|
+
*/
|
|
103979
|
+
apply_url: string | null;
|
|
103980
|
+
/** @description Percentage points when `commission_type` is `percentage`; otherwise the amount Freemius holds. */
|
|
103981
|
+
commission: number;
|
|
103982
|
+
/** @description Freemius commission type, e.g. `percentage`. */
|
|
103983
|
+
commission_type: string;
|
|
103984
|
+
cookie_days: number | null;
|
|
103985
|
+
/** Format: uri */
|
|
103986
|
+
landing_url: string | null;
|
|
103987
|
+
product_slug: string;
|
|
103988
|
+
product_title: string;
|
|
103989
|
+
};
|
|
103990
|
+
ResellerPluginAffiliates: {
|
|
103991
|
+
/** @description False when at least one product could not be asked; the list may be short. */
|
|
103992
|
+
complete: boolean;
|
|
103993
|
+
/** @description False when Zinn® staff turned the Pro-plugin affiliate programmes off for this reseller (then `programmes` is empty). Commission already earned is never clawed back. */
|
|
103994
|
+
enabled: boolean;
|
|
103995
|
+
programmes: components["schemas"]["ResellerPluginAffiliateProgramme"][];
|
|
103996
|
+
};
|
|
103950
103997
|
ResellerPrice: {
|
|
103951
103998
|
/** @description What YOUR client pays, in minor units. */
|
|
103952
103999
|
amount_minor: number;
|
|
@@ -200790,6 +200837,34 @@ export interface operations {
|
|
|
200790
200837
|
429: components["responses"]["TooManyRequests"];
|
|
200791
200838
|
};
|
|
200792
200839
|
};
|
|
200840
|
+
listResellerPluginAffiliates: {
|
|
200841
|
+
parameters: {
|
|
200842
|
+
query?: {
|
|
200843
|
+
/** @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. */
|
|
200844
|
+
org_id?: components["schemas"]["Uuid"];
|
|
200845
|
+
};
|
|
200846
|
+
header?: never;
|
|
200847
|
+
path?: never;
|
|
200848
|
+
cookie?: never;
|
|
200849
|
+
};
|
|
200850
|
+
requestBody?: never;
|
|
200851
|
+
responses: {
|
|
200852
|
+
/** @description The programmes. */
|
|
200853
|
+
200: {
|
|
200854
|
+
headers: {
|
|
200855
|
+
"RateLimit-Remaining": components["headers"]["RateLimitRemaining"];
|
|
200856
|
+
[name: string]: unknown;
|
|
200857
|
+
};
|
|
200858
|
+
content: {
|
|
200859
|
+
"application/json": components["schemas"]["ResellerPluginAffiliates"];
|
|
200860
|
+
};
|
|
200861
|
+
};
|
|
200862
|
+
401: components["responses"]["Unauthorized"];
|
|
200863
|
+
403: components["responses"]["Forbidden"];
|
|
200864
|
+
404: components["responses"]["NotFound"];
|
|
200865
|
+
429: components["responses"]["TooManyRequests"];
|
|
200866
|
+
};
|
|
200867
|
+
};
|
|
200793
200868
|
listResellerPrices: {
|
|
200794
200869
|
parameters: {
|
|
200795
200870
|
query?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1775",
|
|
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>",
|