hostinger-api-sdk 2.3.0 → 2.4.0

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/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.3.0
6
+ * API Version: 2.4.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/common.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.3.0
6
+ * API Version: 2.4.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/configuration.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.3.0
6
+ * API Version: 2.4.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/2.3.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/2.4.0",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };
package/dist/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 2.3.0
4
+ * API Version: 2.4.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -15391,6 +15391,96 @@ export interface ReachV1ProfilesSettingsUpdateRequest {
15391
15391
  */
15392
15392
  'sender_email': string | null;
15393
15393
  }
15394
+ /**
15395
+ *
15396
+ * @export
15397
+ * @interface ReachV1StoresStoreResource
15398
+ */
15399
+ export interface ReachV1StoresStoreResource {
15400
+ /**
15401
+ * Pass this to the disconnect eCommerce store endpoint.
15402
+ * @type {string}
15403
+ * @memberof ReachV1StoresStoreResource
15404
+ */
15405
+ 'store_id': string;
15406
+ /**
15407
+ *
15408
+ * @type {string}
15409
+ * @memberof ReachV1StoresStoreResource
15410
+ */
15411
+ 'business_name': string | null;
15412
+ /**
15413
+ *
15414
+ * @type {string}
15415
+ * @memberof ReachV1StoresStoreResource
15416
+ */
15417
+ 'domain': string | null;
15418
+ /**
15419
+ *
15420
+ * @type {string}
15421
+ * @memberof ReachV1StoresStoreResource
15422
+ */
15423
+ 'logo_url': string | null;
15424
+ /**
15425
+ *
15426
+ * @type {string}
15427
+ * @memberof ReachV1StoresStoreResource
15428
+ */
15429
+ 'version': ReachV1StoresStoreResourceVersionEnum | null;
15430
+ /**
15431
+ * Storefronts of the store.
15432
+ * @type {Array<ReachV1StoresStoreResourceSalesChannelsInner>}
15433
+ * @memberof ReachV1StoresStoreResource
15434
+ */
15435
+ 'sales_channels': Array<ReachV1StoresStoreResourceSalesChannelsInner>;
15436
+ /**
15437
+ * `connected` to the profile in the path, `connected_to_other_profile` when another profile of the account holds it, or `not_connected`.
15438
+ * @type {string}
15439
+ * @memberof ReachV1StoresStoreResource
15440
+ */
15441
+ 'connection_status': ReachV1StoresStoreResourceConnectionStatusEnum;
15442
+ }
15443
+ export declare const ReachV1StoresStoreResourceVersionEnum: {
15444
+ readonly V2Standalone: "v2_standalone";
15445
+ };
15446
+ export type ReachV1StoresStoreResourceVersionEnum = typeof ReachV1StoresStoreResourceVersionEnum[keyof typeof ReachV1StoresStoreResourceVersionEnum];
15447
+ export declare const ReachV1StoresStoreResourceConnectionStatusEnum: {
15448
+ readonly Connected: "connected";
15449
+ readonly ConnectedToOtherProfile: "connected_to_other_profile";
15450
+ readonly NotConnected: "not_connected";
15451
+ };
15452
+ export type ReachV1StoresStoreResourceConnectionStatusEnum = typeof ReachV1StoresStoreResourceConnectionStatusEnum[keyof typeof ReachV1StoresStoreResourceConnectionStatusEnum];
15453
+ /**
15454
+ *
15455
+ * @export
15456
+ * @interface ReachV1StoresStoreResourceSalesChannelsInner
15457
+ */
15458
+ export interface ReachV1StoresStoreResourceSalesChannelsInner {
15459
+ /**
15460
+ *
15461
+ * @type {string}
15462
+ * @memberof ReachV1StoresStoreResourceSalesChannelsInner
15463
+ */
15464
+ 'id': string;
15465
+ /**
15466
+ *
15467
+ * @type {string}
15468
+ * @memberof ReachV1StoresStoreResourceSalesChannelsInner
15469
+ */
15470
+ 'name': string | null;
15471
+ /**
15472
+ *
15473
+ * @type {string}
15474
+ * @memberof ReachV1StoresStoreResourceSalesChannelsInner
15475
+ */
15476
+ 'type': string | null;
15477
+ /**
15478
+ *
15479
+ * @type {string}
15480
+ * @memberof ReachV1StoresStoreResourceSalesChannelsInner
15481
+ */
15482
+ 'domain': string | null;
15483
+ }
15394
15484
  /**
15395
15485
  * Create a reusable email template
15396
15486
  * @export
@@ -15410,6 +15500,43 @@ export interface ReachV1TemplatesStoreRequest {
15410
15500
  */
15411
15501
  'title': string | null;
15412
15502
  }
15503
+ /**
15504
+ *
15505
+ * @export
15506
+ * @interface ReachV1TemplatesTemplateDetailsResource
15507
+ */
15508
+ export interface ReachV1TemplatesTemplateDetailsResource {
15509
+ /**
15510
+ * Pass this as the `template_uuid` of a campaign.
15511
+ * @type {string}
15512
+ * @memberof ReachV1TemplatesTemplateDetailsResource
15513
+ */
15514
+ 'uuid': string;
15515
+ /**
15516
+ * Null for templates that were never named.
15517
+ * @type {string}
15518
+ * @memberof ReachV1TemplatesTemplateDetailsResource
15519
+ */
15520
+ 'title': string | null;
15521
+ /**
15522
+ * Full HTML of the template, with personalization tags such as `{{name}}` unrendered. Null when the stored HTML cannot be read.
15523
+ * @type {string}
15524
+ * @memberof ReachV1TemplatesTemplateDetailsResource
15525
+ */
15526
+ 'template_content': string | null;
15527
+ /**
15528
+ *
15529
+ * @type {string}
15530
+ * @memberof ReachV1TemplatesTemplateDetailsResource
15531
+ */
15532
+ 'created_at': string | null;
15533
+ /**
15534
+ *
15535
+ * @type {string}
15536
+ * @memberof ReachV1TemplatesTemplateDetailsResource
15537
+ */
15538
+ 'updated_at': string | null;
15539
+ }
15413
15540
  /**
15414
15541
  *
15415
15542
  * @export
@@ -15441,6 +15568,70 @@ export interface ReachV1TemplatesTemplateResource {
15441
15568
  */
15442
15569
  'updated_at': string | null;
15443
15570
  }
15571
+ /**
15572
+ * AI Website Builder site to connect to the profile
15573
+ * @export
15574
+ * @interface ReachV1WebsitesWebsiteBuilderConnectRequest
15575
+ */
15576
+ export interface ReachV1WebsitesWebsiteBuilderConnectRequest {
15577
+ /**
15578
+ *
15579
+ * @type {string}
15580
+ * @memberof ReachV1WebsitesWebsiteBuilderConnectRequest
15581
+ */
15582
+ 'domain': string;
15583
+ }
15584
+ /**
15585
+ * AI Website Builder site to disconnect from the profile
15586
+ * @export
15587
+ * @interface ReachV1WebsitesWebsiteBuilderDisconnectRequest
15588
+ */
15589
+ export interface ReachV1WebsitesWebsiteBuilderDisconnectRequest {
15590
+ /**
15591
+ *
15592
+ * @type {string}
15593
+ * @memberof ReachV1WebsitesWebsiteBuilderDisconnectRequest
15594
+ */
15595
+ 'domain': string;
15596
+ }
15597
+ /**
15598
+ *
15599
+ * @export
15600
+ * @interface ReachV1WebsitesWebsiteResource
15601
+ */
15602
+ export interface ReachV1WebsitesWebsiteResource {
15603
+ /**
15604
+ * Pass this to the disconnect endpoint matching `platform_type`.
15605
+ * @type {string}
15606
+ * @memberof ReachV1WebsitesWebsiteResource
15607
+ */
15608
+ 'domain': string;
15609
+ /**
15610
+ * `wordpress`, `website_builder` (AI Website Builder site built manually) or `horizons` (site built with the agentic AI Website Builder).
15611
+ * @type {string}
15612
+ * @memberof ReachV1WebsitesWebsiteResource
15613
+ */
15614
+ 'platform_type': ReachV1WebsitesWebsiteResourcePlatformTypeEnum;
15615
+ }
15616
+ export declare const ReachV1WebsitesWebsiteResourcePlatformTypeEnum: {
15617
+ readonly Wordpress: "wordpress";
15618
+ readonly WebsiteBuilder: "website_builder";
15619
+ readonly Horizons: "horizons";
15620
+ };
15621
+ export type ReachV1WebsitesWebsiteResourcePlatformTypeEnum = typeof ReachV1WebsitesWebsiteResourcePlatformTypeEnum[keyof typeof ReachV1WebsitesWebsiteResourcePlatformTypeEnum];
15622
+ /**
15623
+ * WordPress site to disconnect from the profile
15624
+ * @export
15625
+ * @interface ReachV1WebsitesWordPressDisconnectRequest
15626
+ */
15627
+ export interface ReachV1WebsitesWordPressDisconnectRequest {
15628
+ /**
15629
+ *
15630
+ * @type {string}
15631
+ * @memberof ReachV1WebsitesWordPressDisconnectRequest
15632
+ */
15633
+ 'domain': string;
15634
+ }
15444
15635
  /**
15445
15636
  *
15446
15637
  * @export
@@ -30021,7 +30212,7 @@ export declare const ReachCampaignsApiAxiosParamCreator: (configuration?: Config
30021
30212
  */
30022
30213
  createADraftCampaignV1: (profileUuid: string, reachV1CampaignsStoreRequest: ReachV1CampaignsStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
30023
30214
  /**
30024
- * Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint.
30215
+ * Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint. The email content is not included: pass `template_uuid` to the get email template endpoint to read its HTML.
30025
30216
  * @summary Get campaign details
30026
30217
  * @param {string} profileUuid Profile uuid parameter
30027
30218
  * @param {string} campaignUuid Campaign uuid parameter
@@ -30067,7 +30258,7 @@ export declare const ReachCampaignsApiFp: (configuration?: Configuration) => {
30067
30258
  */
30068
30259
  createADraftCampaignV1(profileUuid: string, reachV1CampaignsStoreRequest: ReachV1CampaignsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1CampaignsCreatedCampaignResource>>;
30069
30260
  /**
30070
- * Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint.
30261
+ * Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint. The email content is not included: pass `template_uuid` to the get email template endpoint to read its HTML.
30071
30262
  * @summary Get campaign details
30072
30263
  * @param {string} profileUuid Profile uuid parameter
30073
30264
  * @param {string} campaignUuid Campaign uuid parameter
@@ -30113,7 +30304,7 @@ export declare const ReachCampaignsApiFactory: (configuration?: Configuration, b
30113
30304
  */
30114
30305
  createADraftCampaignV1(profileUuid: string, reachV1CampaignsStoreRequest: ReachV1CampaignsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1CampaignsCreatedCampaignResource>;
30115
30306
  /**
30116
- * Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint.
30307
+ * Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint. The email content is not included: pass `template_uuid` to the get email template endpoint to read its HTML.
30117
30308
  * @summary Get campaign details
30118
30309
  * @param {string} profileUuid Profile uuid parameter
30119
30310
  * @param {string} campaignUuid Campaign uuid parameter
@@ -30162,7 +30353,7 @@ export declare class ReachCampaignsApi extends BaseAPI {
30162
30353
  */
30163
30354
  createADraftCampaignV1(profileUuid: string, reachV1CampaignsStoreRequest: ReachV1CampaignsStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1CampaignsCreatedCampaignResource, any, {}, any>>;
30164
30355
  /**
30165
- * Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint.
30356
+ * Get a single campaign with its sender, subject, template reference, targeting and delivery progress. This describes how the campaign was set up and how far it has got. For opens, clicks and unsubscribes use the campaign statistics endpoint. The email content is not included: pass `template_uuid` to the get email template endpoint to read its HTML.
30166
30357
  * @summary Get campaign details
30167
30358
  * @param {string} profileUuid Profile uuid parameter
30168
30359
  * @param {string} campaignUuid Campaign uuid parameter
@@ -31230,6 +31421,246 @@ export declare const ListFormsV1StatusEnum: {
31230
31421
  readonly Draft: "draft";
31231
31422
  };
31232
31423
  export type ListFormsV1StatusEnum = typeof ListFormsV1StatusEnum[keyof typeof ListFormsV1StatusEnum];
31424
+ /**
31425
+ * ReachIntegrationsApi - axios parameter creator
31426
+ * @export
31427
+ */
31428
+ export declare const ReachIntegrationsApiAxiosParamCreator: (configuration?: Configuration) => {
31429
+ /**
31430
+ * Connect an AI Website Builder site the customer built manually to the profile, so its subscribers flow into Reach. Fails with not found when the customer owns no AI Website Builder site with that domain. Fails with `DOMAIN_ALREADY_EXISTS` when the domain is connected to any profile - to move a site to another plan, disconnect it from the old profile first - and with `WEBSITE_CONNECTION_ALREADY_EXISTS` when this profile already has an AI Website Builder site. The eCommerce store selling on the site, if it is not connected anywhere, is connected too. WordPress sites and sites made with the agentic AI Website Builder cannot be connected here.
31431
+ * @summary Connect AI Website Builder site
31432
+ * @param {string} profileUuid Profile uuid parameter
31433
+ * @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
31434
+ * @param {*} [options] Override http request option.
31435
+ * @throws {RequiredError}
31436
+ */
31437
+ connectAIWebsiteBuilderSiteV1: (profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31438
+ /**
31439
+ * Disconnect an AI Website Builder site from the profile; the site stops sending subscribers to Reach. Take `domain` from the list connected websites endpoint. Works for a site that was already deleted in the builder. Fails with not found when the domain is not connected to this profile. Contacts and any connected eCommerce store stay. The site stays disconnected until it is connected again, so confirm the site and the plan with the customer before calling.
31440
+ * @summary Disconnect AI Website Builder site
31441
+ * @param {string} profileUuid Profile uuid parameter
31442
+ * @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
31443
+ * @param {*} [options] Override http request option.
31444
+ * @throws {RequiredError}
31445
+ */
31446
+ disconnectAIWebsiteBuilderSiteV1: (profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31447
+ /**
31448
+ * Disconnect an eCommerce store from the profile. Reach stops receiving the store\'s customers and orders, and its products and coupons are removed from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce stores endpoint; for a store that is `connected_to_other_profile`, call this with that profile. Also succeeds when the store is not connected to this profile, so success is not proof that anything was disconnected. Confirm the store and the plan with the customer before calling.
31449
+ * @summary Disconnect Ecommerce store
31450
+ * @param {string} profileUuid Profile uuid parameter
31451
+ * @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
31452
+ * @param {*} [options] Override http request option.
31453
+ * @throws {RequiredError}
31454
+ */
31455
+ disconnectEcommerceStoreV1: (profileUuid: string, storeId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31456
+ /**
31457
+ * Disconnect a WordPress site from the profile. The Reach plugin on the site stops sending subscribers and store data, and the site\'s products and coupons are removed from Reach; contacts and past orders stay. Take `domain` from the list connected websites endpoint. Fails with not found when the domain is not connected to this profile. This cannot be undone through the API - the customer reconnects from the WordPress plugin - so confirm the site and the plan with the customer before calling.
31458
+ * @summary Disconnect WordPress site
31459
+ * @param {string} profileUuid Profile uuid parameter
31460
+ * @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
31461
+ * @param {*} [options] Override http request option.
31462
+ * @throws {RequiredError}
31463
+ */
31464
+ disconnectWordPressSiteV1: (profileUuid: string, reachV1WebsitesWordPressDisconnectRequest: ReachV1WebsitesWordPressDisconnectRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31465
+ /**
31466
+ * Get the websites connected to the profile, each with its `domain` and `platform_type`. A domain is connected to at most one profile, so to find which plan a site is on, call this for each profile. Only connected sites are listed, not every website the customer owns, and eCommerce stores are not included - use the list eCommerce stores endpoint for those. Pass `domain` to the disconnect WordPress site or disconnect AI Website Builder site endpoint.
31467
+ * @summary List connected websites
31468
+ * @param {string} profileUuid Profile uuid parameter
31469
+ * @param {*} [options] Override http request option.
31470
+ * @throws {RequiredError}
31471
+ */
31472
+ listConnectedWebsitesV1: (profileUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31473
+ /**
31474
+ * Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
31475
+ * @summary List Ecommerce stores
31476
+ * @param {string} profileUuid Profile uuid parameter
31477
+ * @param {*} [options] Override http request option.
31478
+ * @throws {RequiredError}
31479
+ */
31480
+ listEcommerceStoresV1: (profileUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31481
+ };
31482
+ /**
31483
+ * ReachIntegrationsApi - functional programming interface
31484
+ * @export
31485
+ */
31486
+ export declare const ReachIntegrationsApiFp: (configuration?: Configuration) => {
31487
+ /**
31488
+ * Connect an AI Website Builder site the customer built manually to the profile, so its subscribers flow into Reach. Fails with not found when the customer owns no AI Website Builder site with that domain. Fails with `DOMAIN_ALREADY_EXISTS` when the domain is connected to any profile - to move a site to another plan, disconnect it from the old profile first - and with `WEBSITE_CONNECTION_ALREADY_EXISTS` when this profile already has an AI Website Builder site. The eCommerce store selling on the site, if it is not connected anywhere, is connected too. WordPress sites and sites made with the agentic AI Website Builder cannot be connected here.
31489
+ * @summary Connect AI Website Builder site
31490
+ * @param {string} profileUuid Profile uuid parameter
31491
+ * @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
31492
+ * @param {*} [options] Override http request option.
31493
+ * @throws {RequiredError}
31494
+ */
31495
+ connectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
31496
+ /**
31497
+ * Disconnect an AI Website Builder site from the profile; the site stops sending subscribers to Reach. Take `domain` from the list connected websites endpoint. Works for a site that was already deleted in the builder. Fails with not found when the domain is not connected to this profile. Contacts and any connected eCommerce store stay. The site stays disconnected until it is connected again, so confirm the site and the plan with the customer before calling.
31498
+ * @summary Disconnect AI Website Builder site
31499
+ * @param {string} profileUuid Profile uuid parameter
31500
+ * @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
31501
+ * @param {*} [options] Override http request option.
31502
+ * @throws {RequiredError}
31503
+ */
31504
+ disconnectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
31505
+ /**
31506
+ * Disconnect an eCommerce store from the profile. Reach stops receiving the store\'s customers and orders, and its products and coupons are removed from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce stores endpoint; for a store that is `connected_to_other_profile`, call this with that profile. Also succeeds when the store is not connected to this profile, so success is not proof that anything was disconnected. Confirm the store and the plan with the customer before calling.
31507
+ * @summary Disconnect Ecommerce store
31508
+ * @param {string} profileUuid Profile uuid parameter
31509
+ * @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
31510
+ * @param {*} [options] Override http request option.
31511
+ * @throws {RequiredError}
31512
+ */
31513
+ disconnectEcommerceStoreV1(profileUuid: string, storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
31514
+ /**
31515
+ * Disconnect a WordPress site from the profile. The Reach plugin on the site stops sending subscribers and store data, and the site\'s products and coupons are removed from Reach; contacts and past orders stay. Take `domain` from the list connected websites endpoint. Fails with not found when the domain is not connected to this profile. This cannot be undone through the API - the customer reconnects from the WordPress plugin - so confirm the site and the plan with the customer before calling.
31516
+ * @summary Disconnect WordPress site
31517
+ * @param {string} profileUuid Profile uuid parameter
31518
+ * @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
31519
+ * @param {*} [options] Override http request option.
31520
+ * @throws {RequiredError}
31521
+ */
31522
+ disconnectWordPressSiteV1(profileUuid: string, reachV1WebsitesWordPressDisconnectRequest: ReachV1WebsitesWordPressDisconnectRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
31523
+ /**
31524
+ * Get the websites connected to the profile, each with its `domain` and `platform_type`. A domain is connected to at most one profile, so to find which plan a site is on, call this for each profile. Only connected sites are listed, not every website the customer owns, and eCommerce stores are not included - use the list eCommerce stores endpoint for those. Pass `domain` to the disconnect WordPress site or disconnect AI Website Builder site endpoint.
31525
+ * @summary List connected websites
31526
+ * @param {string} profileUuid Profile uuid parameter
31527
+ * @param {*} [options] Override http request option.
31528
+ * @throws {RequiredError}
31529
+ */
31530
+ listConnectedWebsitesV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1WebsitesWebsiteResource>>>;
31531
+ /**
31532
+ * Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
31533
+ * @summary List Ecommerce stores
31534
+ * @param {string} profileUuid Profile uuid parameter
31535
+ * @param {*} [options] Override http request option.
31536
+ * @throws {RequiredError}
31537
+ */
31538
+ listEcommerceStoresV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ReachV1StoresStoreResource>>>;
31539
+ };
31540
+ /**
31541
+ * ReachIntegrationsApi - factory interface
31542
+ * @export
31543
+ */
31544
+ export declare const ReachIntegrationsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
31545
+ /**
31546
+ * Connect an AI Website Builder site the customer built manually to the profile, so its subscribers flow into Reach. Fails with not found when the customer owns no AI Website Builder site with that domain. Fails with `DOMAIN_ALREADY_EXISTS` when the domain is connected to any profile - to move a site to another plan, disconnect it from the old profile first - and with `WEBSITE_CONNECTION_ALREADY_EXISTS` when this profile already has an AI Website Builder site. The eCommerce store selling on the site, if it is not connected anywhere, is connected too. WordPress sites and sites made with the agentic AI Website Builder cannot be connected here.
31547
+ * @summary Connect AI Website Builder site
31548
+ * @param {string} profileUuid Profile uuid parameter
31549
+ * @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
31550
+ * @param {*} [options] Override http request option.
31551
+ * @throws {RequiredError}
31552
+ */
31553
+ connectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
31554
+ /**
31555
+ * Disconnect an AI Website Builder site from the profile; the site stops sending subscribers to Reach. Take `domain` from the list connected websites endpoint. Works for a site that was already deleted in the builder. Fails with not found when the domain is not connected to this profile. Contacts and any connected eCommerce store stay. The site stays disconnected until it is connected again, so confirm the site and the plan with the customer before calling.
31556
+ * @summary Disconnect AI Website Builder site
31557
+ * @param {string} profileUuid Profile uuid parameter
31558
+ * @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
31559
+ * @param {*} [options] Override http request option.
31560
+ * @throws {RequiredError}
31561
+ */
31562
+ disconnectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
31563
+ /**
31564
+ * Disconnect an eCommerce store from the profile. Reach stops receiving the store\'s customers and orders, and its products and coupons are removed from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce stores endpoint; for a store that is `connected_to_other_profile`, call this with that profile. Also succeeds when the store is not connected to this profile, so success is not proof that anything was disconnected. Confirm the store and the plan with the customer before calling.
31565
+ * @summary Disconnect Ecommerce store
31566
+ * @param {string} profileUuid Profile uuid parameter
31567
+ * @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
31568
+ * @param {*} [options] Override http request option.
31569
+ * @throws {RequiredError}
31570
+ */
31571
+ disconnectEcommerceStoreV1(profileUuid: string, storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
31572
+ /**
31573
+ * Disconnect a WordPress site from the profile. The Reach plugin on the site stops sending subscribers and store data, and the site\'s products and coupons are removed from Reach; contacts and past orders stay. Take `domain` from the list connected websites endpoint. Fails with not found when the domain is not connected to this profile. This cannot be undone through the API - the customer reconnects from the WordPress plugin - so confirm the site and the plan with the customer before calling.
31574
+ * @summary Disconnect WordPress site
31575
+ * @param {string} profileUuid Profile uuid parameter
31576
+ * @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
31577
+ * @param {*} [options] Override http request option.
31578
+ * @throws {RequiredError}
31579
+ */
31580
+ disconnectWordPressSiteV1(profileUuid: string, reachV1WebsitesWordPressDisconnectRequest: ReachV1WebsitesWordPressDisconnectRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
31581
+ /**
31582
+ * Get the websites connected to the profile, each with its `domain` and `platform_type`. A domain is connected to at most one profile, so to find which plan a site is on, call this for each profile. Only connected sites are listed, not every website the customer owns, and eCommerce stores are not included - use the list eCommerce stores endpoint for those. Pass `domain` to the disconnect WordPress site or disconnect AI Website Builder site endpoint.
31583
+ * @summary List connected websites
31584
+ * @param {string} profileUuid Profile uuid parameter
31585
+ * @param {*} [options] Override http request option.
31586
+ * @throws {RequiredError}
31587
+ */
31588
+ listConnectedWebsitesV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1WebsitesWebsiteResource>>;
31589
+ /**
31590
+ * Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
31591
+ * @summary List Ecommerce stores
31592
+ * @param {string} profileUuid Profile uuid parameter
31593
+ * @param {*} [options] Override http request option.
31594
+ * @throws {RequiredError}
31595
+ */
31596
+ listEcommerceStoresV1(profileUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<ReachV1StoresStoreResource>>;
31597
+ };
31598
+ /**
31599
+ * ReachIntegrationsApi - object-oriented interface
31600
+ * @export
31601
+ * @class ReachIntegrationsApi
31602
+ * @extends {BaseAPI}
31603
+ */
31604
+ export declare class ReachIntegrationsApi extends BaseAPI {
31605
+ /**
31606
+ * Connect an AI Website Builder site the customer built manually to the profile, so its subscribers flow into Reach. Fails with not found when the customer owns no AI Website Builder site with that domain. Fails with `DOMAIN_ALREADY_EXISTS` when the domain is connected to any profile - to move a site to another plan, disconnect it from the old profile first - and with `WEBSITE_CONNECTION_ALREADY_EXISTS` when this profile already has an AI Website Builder site. The eCommerce store selling on the site, if it is not connected anywhere, is connected too. WordPress sites and sites made with the agentic AI Website Builder cannot be connected here.
31607
+ * @summary Connect AI Website Builder site
31608
+ * @param {string} profileUuid Profile uuid parameter
31609
+ * @param {ReachV1WebsitesWebsiteBuilderConnectRequest} reachV1WebsitesWebsiteBuilderConnectRequest
31610
+ * @param {*} [options] Override http request option.
31611
+ * @throws {RequiredError}
31612
+ * @memberof ReachIntegrationsApi
31613
+ */
31614
+ connectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderConnectRequest: ReachV1WebsitesWebsiteBuilderConnectRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
31615
+ /**
31616
+ * Disconnect an AI Website Builder site from the profile; the site stops sending subscribers to Reach. Take `domain` from the list connected websites endpoint. Works for a site that was already deleted in the builder. Fails with not found when the domain is not connected to this profile. Contacts and any connected eCommerce store stay. The site stays disconnected until it is connected again, so confirm the site and the plan with the customer before calling.
31617
+ * @summary Disconnect AI Website Builder site
31618
+ * @param {string} profileUuid Profile uuid parameter
31619
+ * @param {ReachV1WebsitesWebsiteBuilderDisconnectRequest} reachV1WebsitesWebsiteBuilderDisconnectRequest
31620
+ * @param {*} [options] Override http request option.
31621
+ * @throws {RequiredError}
31622
+ * @memberof ReachIntegrationsApi
31623
+ */
31624
+ disconnectAIWebsiteBuilderSiteV1(profileUuid: string, reachV1WebsitesWebsiteBuilderDisconnectRequest: ReachV1WebsitesWebsiteBuilderDisconnectRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
31625
+ /**
31626
+ * Disconnect an eCommerce store from the profile. Reach stops receiving the store\'s customers and orders, and its products and coupons are removed from Reach; contacts and past orders stay. Take `store_id` from the list eCommerce stores endpoint; for a store that is `connected_to_other_profile`, call this with that profile. Also succeeds when the store is not connected to this profile, so success is not proof that anything was disconnected. Confirm the store and the plan with the customer before calling.
31627
+ * @summary Disconnect Ecommerce store
31628
+ * @param {string} profileUuid Profile uuid parameter
31629
+ * @param {string} storeId Hostinger eCommerce store ID, as returned by the eCommerce stores list
31630
+ * @param {*} [options] Override http request option.
31631
+ * @throws {RequiredError}
31632
+ * @memberof ReachIntegrationsApi
31633
+ */
31634
+ disconnectEcommerceStoreV1(profileUuid: string, storeId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
31635
+ /**
31636
+ * Disconnect a WordPress site from the profile. The Reach plugin on the site stops sending subscribers and store data, and the site\'s products and coupons are removed from Reach; contacts and past orders stay. Take `domain` from the list connected websites endpoint. Fails with not found when the domain is not connected to this profile. This cannot be undone through the API - the customer reconnects from the WordPress plugin - so confirm the site and the plan with the customer before calling.
31637
+ * @summary Disconnect WordPress site
31638
+ * @param {string} profileUuid Profile uuid parameter
31639
+ * @param {ReachV1WebsitesWordPressDisconnectRequest} reachV1WebsitesWordPressDisconnectRequest
31640
+ * @param {*} [options] Override http request option.
31641
+ * @throws {RequiredError}
31642
+ * @memberof ReachIntegrationsApi
31643
+ */
31644
+ disconnectWordPressSiteV1(profileUuid: string, reachV1WebsitesWordPressDisconnectRequest: ReachV1WebsitesWordPressDisconnectRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
31645
+ /**
31646
+ * Get the websites connected to the profile, each with its `domain` and `platform_type`. A domain is connected to at most one profile, so to find which plan a site is on, call this for each profile. Only connected sites are listed, not every website the customer owns, and eCommerce stores are not included - use the list eCommerce stores endpoint for those. Pass `domain` to the disconnect WordPress site or disconnect AI Website Builder site endpoint.
31647
+ * @summary List connected websites
31648
+ * @param {string} profileUuid Profile uuid parameter
31649
+ * @param {*} [options] Override http request option.
31650
+ * @throws {RequiredError}
31651
+ * @memberof ReachIntegrationsApi
31652
+ */
31653
+ listConnectedWebsitesV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1WebsitesWebsiteResource[], any, {}, any>>;
31654
+ /**
31655
+ * Get all of the customer\'s Hostinger eCommerce stores, each with its `store_id` and `connection_status` for the profile in the path. A store is connected to at most one profile. `connected_to_other_profile` does not name that profile - call this for each profile to find it. The list is empty, not an error, when the eCommerce service cannot be reached. Pass `store_id` to the disconnect eCommerce store endpoint. Connecting an AI Website Builder site connects the store selling on it.
31656
+ * @summary List Ecommerce stores
31657
+ * @param {string} profileUuid Profile uuid parameter
31658
+ * @param {*} [options] Override http request option.
31659
+ * @throws {RequiredError}
31660
+ * @memberof ReachIntegrationsApi
31661
+ */
31662
+ listEcommerceStoresV1(profileUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1StoresStoreResource[], any, {}, any>>;
31663
+ }
31233
31664
  /**
31234
31665
  * ReachProfilesApi - axios parameter creator
31235
31666
  * @export
@@ -32449,7 +32880,16 @@ export declare const ReachTemplatesApiAxiosParamCreator: (configuration?: Config
32449
32880
  */
32450
32881
  createAnEmailTemplateV1: (profileUuid: string, reachV1TemplatesStoreRequest: ReachV1TemplatesStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32451
32882
  /**
32452
- * Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned - the template content itself is not exposed. Use the `uuid` of a template as the `template_uuid` when creating a campaign.
32883
+ * Get one email template of the profile with its full HTML in `template_content`. A campaign\'s email content is its template: to read what a campaign sends, get the campaign and pass its `template_uuid` here. The HTML can be large, so fetch it only when the content itself is needed, never to browse or pick templates - the list email templates endpoint does that without content. Personalization tags such as `{{name}}` come back unrendered.
32884
+ * @summary Get email template
32885
+ * @param {string} profileUuid Profile uuid parameter
32886
+ * @param {string} templateUuid Template uuid parameter
32887
+ * @param {*} [options] Override http request option.
32888
+ * @throws {RequiredError}
32889
+ */
32890
+ getEmailTemplateV1: (profileUuid: string, templateUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32891
+ /**
32892
+ * Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned, without the HTML content. Use the `uuid` of a template as the `template_uuid` when creating a campaign. To read one template\'s HTML use the get email template endpoint, and only when the content itself is needed.
32453
32893
  * @summary List email templates
32454
32894
  * @param {string} profileUuid Profile uuid parameter
32455
32895
  * @param {*} [options] Override http request option.
@@ -32472,7 +32912,16 @@ export declare const ReachTemplatesApiFp: (configuration?: Configuration) => {
32472
32912
  */
32473
32913
  createAnEmailTemplateV1(profileUuid: string, reachV1TemplatesStoreRequest: ReachV1TemplatesStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1TemplatesTemplateResource>>;
32474
32914
  /**
32475
- * Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned - the template content itself is not exposed. Use the `uuid` of a template as the `template_uuid` when creating a campaign.
32915
+ * Get one email template of the profile with its full HTML in `template_content`. A campaign\'s email content is its template: to read what a campaign sends, get the campaign and pass its `template_uuid` here. The HTML can be large, so fetch it only when the content itself is needed, never to browse or pick templates - the list email templates endpoint does that without content. Personalization tags such as `{{name}}` come back unrendered.
32916
+ * @summary Get email template
32917
+ * @param {string} profileUuid Profile uuid parameter
32918
+ * @param {string} templateUuid Template uuid parameter
32919
+ * @param {*} [options] Override http request option.
32920
+ * @throws {RequiredError}
32921
+ */
32922
+ getEmailTemplateV1(profileUuid: string, templateUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1TemplatesTemplateDetailsResource>>;
32923
+ /**
32924
+ * Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned, without the HTML content. Use the `uuid` of a template as the `template_uuid` when creating a campaign. To read one template\'s HTML use the get email template endpoint, and only when the content itself is needed.
32476
32925
  * @summary List email templates
32477
32926
  * @param {string} profileUuid Profile uuid parameter
32478
32927
  * @param {*} [options] Override http request option.
@@ -32495,7 +32944,16 @@ export declare const ReachTemplatesApiFactory: (configuration?: Configuration, b
32495
32944
  */
32496
32945
  createAnEmailTemplateV1(profileUuid: string, reachV1TemplatesStoreRequest: ReachV1TemplatesStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1TemplatesTemplateResource>;
32497
32946
  /**
32498
- * Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned - the template content itself is not exposed. Use the `uuid` of a template as the `template_uuid` when creating a campaign.
32947
+ * Get one email template of the profile with its full HTML in `template_content`. A campaign\'s email content is its template: to read what a campaign sends, get the campaign and pass its `template_uuid` here. The HTML can be large, so fetch it only when the content itself is needed, never to browse or pick templates - the list email templates endpoint does that without content. Personalization tags such as `{{name}}` come back unrendered.
32948
+ * @summary Get email template
32949
+ * @param {string} profileUuid Profile uuid parameter
32950
+ * @param {string} templateUuid Template uuid parameter
32951
+ * @param {*} [options] Override http request option.
32952
+ * @throws {RequiredError}
32953
+ */
32954
+ getEmailTemplateV1(profileUuid: string, templateUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1TemplatesTemplateDetailsResource>;
32955
+ /**
32956
+ * Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned, without the HTML content. Use the `uuid` of a template as the `template_uuid` when creating a campaign. To read one template\'s HTML use the get email template endpoint, and only when the content itself is needed.
32499
32957
  * @summary List email templates
32500
32958
  * @param {string} profileUuid Profile uuid parameter
32501
32959
  * @param {*} [options] Override http request option.
@@ -32521,7 +32979,17 @@ export declare class ReachTemplatesApi extends BaseAPI {
32521
32979
  */
32522
32980
  createAnEmailTemplateV1(profileUuid: string, reachV1TemplatesStoreRequest: ReachV1TemplatesStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1TemplatesTemplateResource, any, {}, any>>;
32523
32981
  /**
32524
- * Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned - the template content itself is not exposed. Use the `uuid` of a template as the `template_uuid` when creating a campaign.
32982
+ * Get one email template of the profile with its full HTML in `template_content`. A campaign\'s email content is its template: to read what a campaign sends, get the campaign and pass its `template_uuid` here. The HTML can be large, so fetch it only when the content itself is needed, never to browse or pick templates - the list email templates endpoint does that without content. Personalization tags such as `{{name}}` come back unrendered.
32983
+ * @summary Get email template
32984
+ * @param {string} profileUuid Profile uuid parameter
32985
+ * @param {string} templateUuid Template uuid parameter
32986
+ * @param {*} [options] Override http request option.
32987
+ * @throws {RequiredError}
32988
+ * @memberof ReachTemplatesApi
32989
+ */
32990
+ getEmailTemplateV1(profileUuid: string, templateUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1TemplatesTemplateDetailsResource, any, {}, any>>;
32991
+ /**
32992
+ * Get a list of the email templates in a profile, most recently updated first. Templates are the reusable email bodies a campaign is built from. The list is not paginated and only the metadata is returned, without the HTML content. Use the `uuid` of a template as the `template_uuid` when creating a campaign. To read one template\'s HTML use the get email template endpoint, and only when the content itself is needed.
32525
32993
  * @summary List email templates
32526
32994
  * @param {string} profileUuid Profile uuid parameter
32527
32995
  * @param {*} [options] Override http request option.