@zinn-digital/sdk 0.1.1601 → 0.1.1603
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 +139 -3
- package/package.json +1 -1
|
@@ -33651,6 +33651,46 @@ export interface paths {
|
|
|
33651
33651
|
patch?: never;
|
|
33652
33652
|
trace?: never;
|
|
33653
33653
|
};
|
|
33654
|
+
"/v1/email-marketing/campaigns/{campaign_id}/translate": {
|
|
33655
|
+
parameters: {
|
|
33656
|
+
query?: never;
|
|
33657
|
+
header?: never;
|
|
33658
|
+
path?: never;
|
|
33659
|
+
cookie?: never;
|
|
33660
|
+
};
|
|
33661
|
+
get?: never;
|
|
33662
|
+
put?: never;
|
|
33663
|
+
/**
|
|
33664
|
+
* Translate a campaign into every contact language that is missing or stale.
|
|
33665
|
+
* @description Gated on `email_marketing.manage`. Starts a durable workflow (`202`) that makes TWO batched calls on the house translation model for every missing or stale language at once: the short fields (subject, subject B, preheader, plain text) and the HTML body. Merge tags such as `{{first_name}}` are kept. It is the customer's AI use, metered on the organisation's AI meter (credits, then the included allowance; listed on the AI spend page as "Translating campaign emails"). Nothing to translate answers `200` with `started: false` and spends nothing. Refused with `402` before anything starts while the account is on hold (`refusal.campaigns.translateOnHold`) or when no credits or allowance are left (`refusal.campaigns.translateNoAllowance`). Each contact is sent the current translation for their language, else the source copy. Audited as `email_marketing.campaign.translate`.
|
|
33666
|
+
*/
|
|
33667
|
+
post: operations["translateEmailMarketingCampaign"];
|
|
33668
|
+
delete?: never;
|
|
33669
|
+
options?: never;
|
|
33670
|
+
head?: never;
|
|
33671
|
+
patch?: never;
|
|
33672
|
+
trace?: never;
|
|
33673
|
+
};
|
|
33674
|
+
"/v1/email-marketing/campaigns/{campaign_id}/translations": {
|
|
33675
|
+
parameters: {
|
|
33676
|
+
query?: never;
|
|
33677
|
+
header?: never;
|
|
33678
|
+
path?: never;
|
|
33679
|
+
cookie?: never;
|
|
33680
|
+
};
|
|
33681
|
+
/**
|
|
33682
|
+
* Each contact language of a campaign's list and whether its translation is current.
|
|
33683
|
+
* @description Gated on `email_marketing.view`. The languages are the distinct languages of the list's subscribed contacts, mapped onto the 58 platform languages, minus the campaign's `source_locale`. `state` is `current` (made from the copy as it is now), `stale` (the copy changed since; the contact gets the source copy until it is translated again) or `missing`. A row with `wanted: false` is a translation kept for a language no contact uses any more.
|
|
33684
|
+
*/
|
|
33685
|
+
get: operations["listEmailMarketingCampaignTranslations"];
|
|
33686
|
+
put?: never;
|
|
33687
|
+
post?: never;
|
|
33688
|
+
delete?: never;
|
|
33689
|
+
options?: never;
|
|
33690
|
+
head?: never;
|
|
33691
|
+
patch?: never;
|
|
33692
|
+
trace?: never;
|
|
33693
|
+
};
|
|
33654
33694
|
"/v1/email-marketing/contacts": {
|
|
33655
33695
|
parameters: {
|
|
33656
33696
|
query?: never;
|
|
@@ -48859,7 +48899,7 @@ export interface paths {
|
|
|
48859
48899
|
};
|
|
48860
48900
|
/**
|
|
48861
48901
|
* Read a site's automatic app updates add-on and its window.
|
|
48862
|
-
* @description The paid automatic-updates add-on for the app the site runs (`wordpress_auto_updates`, `woocommerce_auto_updates`, `joomla_auto_updates`, `drupal_auto_updates`, `mediawiki_auto_updates`, `phpbb_auto_updates`, `matomo_auto_updates`, `typo3_auto_updates`, `concretecms_auto_updates`, `strapi_auto_updates`, `payload_auto_updates`, `dolibarr_auto_updates`, `silverstripe_auto_updates`, `craft_auto_updates`, `osticket_auto_updates`, `piwigo_auto_updates`, `modx_auto_updates`, `suitecrm_auto_updates` or `zenphoto_auto_updates`, USD 29 a year per site; `nextcloud_auto_updates`, `owncloud_auto_updates`, `prestashop_auto_updates`, `magento_auto_updates` or `
|
|
48902
|
+
* @description The paid automatic-updates add-on for the app the site runs (`wordpress_auto_updates`, `woocommerce_auto_updates`, `joomla_auto_updates`, `drupal_auto_updates`, `mediawiki_auto_updates`, `phpbb_auto_updates`, `matomo_auto_updates`, `typo3_auto_updates`, `concretecms_auto_updates`, `strapi_auto_updates`, `payload_auto_updates`, `dolibarr_auto_updates`, `silverstripe_auto_updates`, `craft_auto_updates`, `osticket_auto_updates`, `piwigo_auto_updates`, `modx_auto_updates`, `suitecrm_auto_updates` or `zenphoto_auto_updates`, USD 29 a year per site; `nextcloud_auto_updates`, `owncloud_auto_updates`, `prestashop_auto_updates`, `magento_auto_updates`, `oscommerce_auto_updates` or `opencart_auto_updates`, USD 50 a year per site; s1014 row 41): whether it is on sale and on, its price in the caller's currency, the renewal, the quiet window and the last run. Each run takes a safety backup first and rolls back to it when the homepage breaks. WordPress: core, plugins and themes (a held plugin version is never applied). Joomla!: the core only, through Joomla's own console; extensions and templates are not updated. Nextcloud: the server through its own updater, then every app with an update. Drupal: the core only (the newest release of the installed major version, then its database updates); contributed modules and themes are not updated. MediaWiki: the newest stable release with its bundled extensions and skins, then its own update script; extensions the customer added are not updated. phpBB: the newest release of the installed branch with its bundled style, language and extension, then its own `db:migrate`; styles, language packs and extensions the customer added are not updated. ownCloud: the newest release of the installed major version (the complete build, with its bundled apps), then its own `occ upgrade`; apps from the ownCloud marketplace are not updated. PrestaShop: the newest stable release of the installed major version through PrestaShop's own Update Assistant (files, database and native modules); modules the customer added are kept, never uninstalled, and are not updated. Magento: the newest security patch of the installed 2.x.y line (the source release's code, its Composer lock and `setup:upgrade`); modules and themes the customer added are kept and not updated, and a store that added Composer packages is refused with nothing changed. Strapi and Payload: the newest release of the installed major from npm (every package of the app's own family on the core's version moves together), then the app's own build (`strapi build`; for Payload a schema migration when the release needs one, `payload migrate` and `next build`) and a process restart; other npm packages the customer added are kept and not updated. osCommerce: the vendor's newest osCommerce 4 build (its code over the store's, then its own database migrations and cache rebuild); the store's configuration, images and uploads are kept, and extensions and themes the customer added are kept and not updated. Dolibarr: the newest release of the installed major version (the tag's `htdocs`), then its own CLI upgrade (`install/upgrade.php`, `upgrade2.php`, `step5.php`) until the database records the new version; modules the customer added in `custom/` are kept and not updated. Buy it through `purchaseExtra` with `site_id`. Requires Silverstripe CMS: Composer moves the site to the newest release of the installed major (the newest `silverstripe/installer` constraints for the packages the site already requires), then its own `sake db:build --flush`; packages the customer added move only within their own constraints. Craft CMS: Composer moves `craftcms/cms` and every plugin to the newest release the project's own `composer.json` allows (the installed major), then its own `craft up` (migrations and project config) and `clear-caches/all`; done only when both the code and the database report the new version. osTicket: the newest release of the installed version line (1.17 or 1.18; its `upload/` folder, the desk's `include/ost-config.php` kept), then its own `manage.php upgrade` until no upgrade is pending; plugins and language packs the customer added are kept and not updated. Piwigo: the newest release of the installed major (the gallery's `local/` settings and every photo kept), then its own database upgrades (`upgrade_feed.php`) until none is left; plugins and themes the customer added are kept and not updated. MODX: the newest release of the installed major (`core/config` and installed Extras kept), then its own setup in upgrade mode (`setup/` removed after every run) until the database records the new version; Extras the customer installed are kept and not updated. SuiteCRM: the newest release of the installed major through SuiteCRM 8's own console upgrader (`suitecrm:app:upgrade`, then `upgrade-finalize -m keep`, customisations kept) until `suitecrm:version` reports the new version; modules the customer added are kept and not updated. Zenphoto: the newest release of the installed major swapped in (zp-data, albums, uploaded and the caches kept; plugins and themes merged), then Zenphoto's own setup driven over loopback signed in as the site's administrator (setup's blind autorun stops on LiteSpeed), setup protected again on every exit, until the database's install signature records the new version; a run whose setup failed after its swap is finished by the next run. OpenCart: the newest patch release of the installed major.minor (its `upload/` folder; `config.php`, `admin/config.php` and the store's storage kept; extensions merged), then OpenCart's own upgrade steps (`install/controller/upgrade/upgrade_1` onwards) run on the command line through its own framework with the installer kept outside the web root, both config files restored byte for byte on every exit; a run whose steps failed after its swap is finished by the next run; extensions the customer added are kept and not updated. `sites.view`.
|
|
48863
48903
|
*/
|
|
48864
48904
|
get: operations["getSiteAppAutoUpdate"];
|
|
48865
48905
|
/**
|
|
@@ -82781,6 +82821,7 @@ export interface components {
|
|
|
82781
82821
|
send_time_mode: "now" | "optimised";
|
|
82782
82822
|
/** Format: uuid */
|
|
82783
82823
|
sender_id: string | null;
|
|
82824
|
+
source_locale: string;
|
|
82784
82825
|
/** Format: date-time */
|
|
82785
82826
|
started_at: string | null;
|
|
82786
82827
|
/** @enum {string} */
|
|
@@ -82821,6 +82862,24 @@ export interface components {
|
|
|
82821
82862
|
status: "draft" | "sending" | "paused" | "sent" | "refused";
|
|
82822
82863
|
unsubscribed: number;
|
|
82823
82864
|
};
|
|
82865
|
+
EmailMarketingCampaignTranslateResult: components["schemas"]["EmailMarketingCampaignTranslations"] & {
|
|
82866
|
+
started: boolean;
|
|
82867
|
+
};
|
|
82868
|
+
EmailMarketingCampaignTranslations: {
|
|
82869
|
+
/** Format: uuid */
|
|
82870
|
+
campaign_id: string;
|
|
82871
|
+
locales: {
|
|
82872
|
+
locale: string;
|
|
82873
|
+
/** @enum {string} */
|
|
82874
|
+
state: "current" | "stale" | "missing";
|
|
82875
|
+
/** Format: date-time */
|
|
82876
|
+
translated_at: string | null;
|
|
82877
|
+
/** @description Whether a subscribed contact of the list uses this language. */
|
|
82878
|
+
wanted: boolean;
|
|
82879
|
+
}[];
|
|
82880
|
+
/** @description The language the campaign is written in. */
|
|
82881
|
+
source_locale: string;
|
|
82882
|
+
};
|
|
82824
82883
|
EmailMarketingCampaignWrite: {
|
|
82825
82884
|
/**
|
|
82826
82885
|
* @description A/B test: what the winner is measured on (unique opens or unique clicks per sent).
|
|
@@ -82846,6 +82905,8 @@ export interface components {
|
|
|
82846
82905
|
send_time_mode?: "now" | "optimised";
|
|
82847
82906
|
/** Format: uuid */
|
|
82848
82907
|
sender_id?: string | null;
|
|
82908
|
+
/** @description The language the campaign is written in (one of the 58 platform languages; anything else keeps the old one). Default en. */
|
|
82909
|
+
source_locale?: string;
|
|
82849
82910
|
subject?: string;
|
|
82850
82911
|
/** @description A/B test: the second subject line. Blank = no test. */
|
|
82851
82912
|
subject_b?: string;
|
|
@@ -102293,7 +102354,7 @@ export interface components {
|
|
|
102293
102354
|
total_ms: number;
|
|
102294
102355
|
transaction: string;
|
|
102295
102356
|
};
|
|
102296
|
-
/** @description The paid automatic app updates add-on for one site (s1014 row 41): the code that applies (`wordpress_auto_updates`, `woocommerce_auto_updates`, `joomla_auto_updates`, `nextcloud_auto_updates`, `drupal_auto_updates`, `mediawiki_auto_updates`, `phpbb_auto_updates`, `owncloud_auto_updates`, `matomo_auto_updates`, `typo3_auto_updates`, `concretecms_auto_updates`, `prestashop_auto_updates`, `magento_auto_updates`, `strapi_auto_updates`, `payload_auto_updates`, `oscommerce_auto_updates`, `dolibarr_auto_updates`, `silverstripe_auto_updates`, `craft_auto_updates`, `osticket_auto_updates`, `piwigo_auto_updates`, `modx_auto_updates`, `suitecrm_auto_updates` or `
|
|
102357
|
+
/** @description The paid automatic app updates add-on for one site (s1014 row 41): the code that applies (`wordpress_auto_updates`, `woocommerce_auto_updates`, `joomla_auto_updates`, `nextcloud_auto_updates`, `drupal_auto_updates`, `mediawiki_auto_updates`, `phpbb_auto_updates`, `owncloud_auto_updates`, `matomo_auto_updates`, `typo3_auto_updates`, `concretecms_auto_updates`, `prestashop_auto_updates`, `magento_auto_updates`, `strapi_auto_updates`, `payload_auto_updates`, `oscommerce_auto_updates`, `dolibarr_auto_updates`, `silverstripe_auto_updates`, `craft_auto_updates`, `osticket_auto_updates`, `piwigo_auto_updates`, `modx_auto_updates`, `suitecrm_auto_updates`, `zenphoto_auto_updates` or `opencart_auto_updates`), the window and the last run's outcome. */
|
|
102297
102358
|
SiteAppAutoUpdate: {
|
|
102298
102359
|
/** @description Whether the add-on is on and in good standing now. */
|
|
102299
102360
|
active: boolean;
|
|
@@ -102301,7 +102362,7 @@ export interface components {
|
|
|
102301
102362
|
* @description The app the add-on serves on this site, or null when none is sold for it.
|
|
102302
102363
|
* @enum {string|null}
|
|
102303
102364
|
*/
|
|
102304
|
-
app_key: "wordpress" | "woocommerce" | "joomla" | "nextcloud" | "phpbb" | "owncloud" | "mediawiki" | "drupal" | "matomo" | "typo3" | "concretecms" | "prestashop" | "magento" | "strapi" | "payload" | "oscommerce" | "dolibarr" | "silverstripe" | "craft" | "osticket" | "piwigo" | "modx" | "suitecrm" | "zenphoto" | null;
|
|
102365
|
+
app_key: "wordpress" | "woocommerce" | "joomla" | "nextcloud" | "phpbb" | "owncloud" | "mediawiki" | "drupal" | "matomo" | "typo3" | "concretecms" | "prestashop" | "magento" | "strapi" | "payload" | "oscommerce" | "dolibarr" | "silverstripe" | "craft" | "osticket" | "piwigo" | "modx" | "suitecrm" | "zenphoto" | "opencart" | null;
|
|
102305
102366
|
can_buy: boolean;
|
|
102306
102367
|
/** @description The catalogue code to buy (`<app_key>_auto_updates`). */
|
|
102307
102368
|
code: string | null;
|
|
@@ -171915,6 +171976,81 @@ export interface operations {
|
|
|
171915
171976
|
};
|
|
171916
171977
|
};
|
|
171917
171978
|
};
|
|
171979
|
+
translateEmailMarketingCampaign: {
|
|
171980
|
+
parameters: {
|
|
171981
|
+
query?: {
|
|
171982
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
171983
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
171984
|
+
};
|
|
171985
|
+
header?: never;
|
|
171986
|
+
path: {
|
|
171987
|
+
campaign_id: string;
|
|
171988
|
+
};
|
|
171989
|
+
cookie?: never;
|
|
171990
|
+
};
|
|
171991
|
+
requestBody?: never;
|
|
171992
|
+
responses: {
|
|
171993
|
+
/** @description Nothing was missing or stale; nothing was started. */
|
|
171994
|
+
200: {
|
|
171995
|
+
headers: {
|
|
171996
|
+
[name: string]: unknown;
|
|
171997
|
+
};
|
|
171998
|
+
content: {
|
|
171999
|
+
"application/json": components["schemas"]["EmailMarketingCampaignTranslateResult"];
|
|
172000
|
+
};
|
|
172001
|
+
};
|
|
172002
|
+
/** @description The translation was started; poll the translations list. */
|
|
172003
|
+
202: {
|
|
172004
|
+
headers: {
|
|
172005
|
+
[name: string]: unknown;
|
|
172006
|
+
};
|
|
172007
|
+
content: {
|
|
172008
|
+
"application/json": components["schemas"]["EmailMarketingCampaignTranslateResult"];
|
|
172009
|
+
};
|
|
172010
|
+
};
|
|
172011
|
+
401: components["responses"]["Unauthorized"];
|
|
172012
|
+
/** @description The account is on hold, or no AI credits or allowance are left. */
|
|
172013
|
+
402: {
|
|
172014
|
+
headers: {
|
|
172015
|
+
[name: string]: unknown;
|
|
172016
|
+
};
|
|
172017
|
+
content: {
|
|
172018
|
+
"application/json": components["schemas"]["Error"];
|
|
172019
|
+
};
|
|
172020
|
+
};
|
|
172021
|
+
403: components["responses"]["Forbidden"];
|
|
172022
|
+
404: components["responses"]["NotFound"];
|
|
172023
|
+
409: components["responses"]["Conflict"];
|
|
172024
|
+
};
|
|
172025
|
+
};
|
|
172026
|
+
listEmailMarketingCampaignTranslations: {
|
|
172027
|
+
parameters: {
|
|
172028
|
+
query?: {
|
|
172029
|
+
/** @description The organization this call acts on. Optional for a caller with exactly one direct membership; **required** for anyone with more than one — which is every reseller and every agency — because the engine refuses rather than guesses (a wrong guess here writes one tenant's gateway credentials under another tenant's Vault path). */
|
|
172030
|
+
org_id?: components["parameters"]["OrgIdQuery"];
|
|
172031
|
+
};
|
|
172032
|
+
header?: never;
|
|
172033
|
+
path: {
|
|
172034
|
+
campaign_id: string;
|
|
172035
|
+
};
|
|
172036
|
+
cookie?: never;
|
|
172037
|
+
};
|
|
172038
|
+
requestBody?: never;
|
|
172039
|
+
responses: {
|
|
172040
|
+
/** @description The languages. */
|
|
172041
|
+
200: {
|
|
172042
|
+
headers: {
|
|
172043
|
+
[name: string]: unknown;
|
|
172044
|
+
};
|
|
172045
|
+
content: {
|
|
172046
|
+
"application/json": components["schemas"]["EmailMarketingCampaignTranslations"];
|
|
172047
|
+
};
|
|
172048
|
+
};
|
|
172049
|
+
401: components["responses"]["Unauthorized"];
|
|
172050
|
+
403: components["responses"]["Forbidden"];
|
|
172051
|
+
404: components["responses"]["NotFound"];
|
|
172052
|
+
};
|
|
172053
|
+
};
|
|
171918
172054
|
listEmailMarketingContacts: {
|
|
171919
172055
|
parameters: {
|
|
171920
172056
|
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.1603",
|
|
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>",
|