hostinger-api-sdk 2.16.0 → 2.16.1

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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@2.16.0
1
+ ## @hostinger/sdk@2.16.1
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install @hostinger/sdk@2.16.0 --save
8
+ npm install @hostinger/sdk@2.16.1 --save
9
9
  ```
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.16.0
6
+ * API Version: 2.16.1
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
@@ -14125,7 +14125,7 @@ export interface ReachV1CampaignsCreatedCampaignResource {
14125
14125
  */
14126
14126
  'template_uuid': string | null;
14127
14127
  /**
14128
- * Always `draft` for a campaign that was just created.
14128
+ * Always `draft` for a campaign that was just created; the current status after an update.
14129
14129
  * @type {string}
14130
14130
  * @memberof ReachV1CampaignsCreatedCampaignResource
14131
14131
  */
@@ -14241,6 +14241,67 @@ export interface ReachV1CampaignsStoreRequestMetadata {
14241
14241
  */
14242
14242
  'source': string;
14243
14243
  }
14244
+ /**
14245
+ * Update a campaign. Send at least one field; fields left out keep their current value.
14246
+ * @export
14247
+ * @interface ReachV1CampaignsUpdateRequest
14248
+ */
14249
+ export interface ReachV1CampaignsUpdateRequest {
14250
+ /**
14251
+ * Name the campaign is listed under. Not shown to the recipients.
14252
+ * @type {string}
14253
+ * @memberof ReachV1CampaignsUpdateRequest
14254
+ */
14255
+ 'title': string;
14256
+ /**
14257
+ * Subject line of the email.
14258
+ * @type {string}
14259
+ * @memberof ReachV1CampaignsUpdateRequest
14260
+ */
14261
+ 'subject': string;
14262
+ /**
14263
+ * From name shown to the recipients.
14264
+ * @type {string}
14265
+ * @memberof ReachV1CampaignsUpdateRequest
14266
+ */
14267
+ 'sender_name': string;
14268
+ /**
14269
+ * From address of the campaign. Its domain has to be verified on the profile before the campaign can be sent.
14270
+ * @type {string}
14271
+ * @memberof ReachV1CampaignsUpdateRequest
14272
+ */
14273
+ 'sender_email': string;
14274
+ /**
14275
+ * Template to send, as returned by the template endpoints.
14276
+ * @type {string}
14277
+ * @memberof ReachV1CampaignsUpdateRequest
14278
+ */
14279
+ 'template_uuid': string;
14280
+ /**
14281
+ * `true` targets every contact of the profile, `false` targets only `segment_uuids`. Required when `segment_uuids` or `excluded_segment_uuids` is sent.
14282
+ * @type {boolean}
14283
+ * @memberof ReachV1CampaignsUpdateRequest
14284
+ */
14285
+ 'all_contacts': boolean;
14286
+ /**
14287
+ * Segments to target. Replaces the segments currently targeted.
14288
+ * @type {Array<string>}
14289
+ * @memberof ReachV1CampaignsUpdateRequest
14290
+ */
14291
+ 'segment_uuids': Array<string>;
14292
+ /**
14293
+ * Segments to leave out. Only allowed together with `all_contacts: true`.
14294
+ * @type {Array<string>}
14295
+ * @memberof ReachV1CampaignsUpdateRequest
14296
+ */
14297
+ 'excluded_segment_uuids': Array<string>;
14298
+ /**
14299
+ *
14300
+ * @type {ReachV1CampaignsStoreRequestMetadata}
14301
+ * @memberof ReachV1CampaignsUpdateRequest
14302
+ */
14303
+ 'metadata': ReachV1CampaignsStoreRequestMetadata | null;
14304
+ }
14244
14305
  /**
14245
14306
  * Create many contacts in one call
14246
14307
  * @export
@@ -45656,6 +45717,96 @@ export const ReachCampaignsApiAxiosParamCreator = function (configuration?: Conf
45656
45717
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45657
45718
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45658
45719
 
45720
+ return {
45721
+ url: toPathString(localVarUrlObj),
45722
+ options: localVarRequestOptions,
45723
+ };
45724
+ },
45725
+ /**
45726
+ * Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
45727
+ * @summary Send campaign
45728
+ * @param {string} profileUuid Profile uuid parameter
45729
+ * @param {string} campaignUuid Campaign uuid parameter
45730
+ * @param {*} [options] Override http request option.
45731
+ * @throws {RequiredError}
45732
+ */
45733
+ sendCampaignV1: async (profileUuid: string, campaignUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
45734
+ // verify required parameter 'profileUuid' is not null or undefined
45735
+ assertParamExists('sendCampaignV1', 'profileUuid', profileUuid)
45736
+ // verify required parameter 'campaignUuid' is not null or undefined
45737
+ assertParamExists('sendCampaignV1', 'campaignUuid', campaignUuid)
45738
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid}/send`
45739
+ .replace(`{${"profileUuid"}}`, encodePathParam('profileUuid', profileUuid))
45740
+ .replace(`{${"campaignUuid"}}`, encodePathParam('campaignUuid', campaignUuid));
45741
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45742
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45743
+ let baseOptions;
45744
+ if (configuration) {
45745
+ baseOptions = configuration.baseOptions;
45746
+ }
45747
+
45748
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
45749
+ const localVarHeaderParameter = {} as any;
45750
+ const localVarQueryParameter = {} as any;
45751
+
45752
+ // authentication apiToken required
45753
+ // http bearer authentication required
45754
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
45755
+
45756
+
45757
+
45758
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
45759
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45760
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45761
+
45762
+ return {
45763
+ url: toPathString(localVarUrlObj),
45764
+ options: localVarRequestOptions,
45765
+ };
45766
+ },
45767
+ /**
45768
+ * Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
45769
+ * @summary Update campaign
45770
+ * @param {string} profileUuid Profile uuid parameter
45771
+ * @param {string} campaignUuid Campaign uuid parameter
45772
+ * @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
45773
+ * @param {*} [options] Override http request option.
45774
+ * @throws {RequiredError}
45775
+ */
45776
+ updateCampaignV1: async (profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
45777
+ // verify required parameter 'profileUuid' is not null or undefined
45778
+ assertParamExists('updateCampaignV1', 'profileUuid', profileUuid)
45779
+ // verify required parameter 'campaignUuid' is not null or undefined
45780
+ assertParamExists('updateCampaignV1', 'campaignUuid', campaignUuid)
45781
+ // verify required parameter 'reachV1CampaignsUpdateRequest' is not null or undefined
45782
+ assertParamExists('updateCampaignV1', 'reachV1CampaignsUpdateRequest', reachV1CampaignsUpdateRequest)
45783
+ const localVarPath = `/api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid}`
45784
+ .replace(`{${"profileUuid"}}`, encodePathParam('profileUuid', profileUuid))
45785
+ .replace(`{${"campaignUuid"}}`, encodePathParam('campaignUuid', campaignUuid));
45786
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45787
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
45788
+ let baseOptions;
45789
+ if (configuration) {
45790
+ baseOptions = configuration.baseOptions;
45791
+ }
45792
+
45793
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
45794
+ const localVarHeaderParameter = {} as any;
45795
+ const localVarQueryParameter = {} as any;
45796
+
45797
+ // authentication apiToken required
45798
+ // http bearer authentication required
45799
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
45800
+
45801
+
45802
+
45803
+ localVarHeaderParameter['Content-Type'] = 'application/json';
45804
+
45805
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
45806
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
45807
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
45808
+ localVarRequestOptions.data = serializeDataIfNeeded(reachV1CampaignsUpdateRequest, localVarRequestOptions, configuration)
45809
+
45659
45810
  return {
45660
45811
  url: toPathString(localVarUrlObj),
45661
45812
  options: localVarRequestOptions,
@@ -45727,6 +45878,33 @@ export const ReachCampaignsApiFp = function(configuration?: Configuration) {
45727
45878
  const localVarOperationServerBasePath = operationServerMap['ReachCampaignsApi.listCampaignsV1']?.[0]?.url;
45728
45879
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45729
45880
  },
45881
+ /**
45882
+ * Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
45883
+ * @summary Send campaign
45884
+ * @param {string} profileUuid Profile uuid parameter
45885
+ * @param {string} campaignUuid Campaign uuid parameter
45886
+ * @param {*} [options] Override http request option.
45887
+ * @throws {RequiredError}
45888
+ */
45889
+ async sendCampaignV1(profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
45890
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendCampaignV1(profileUuid, campaignUuid, options);
45891
+ const localVarOperationServerBasePath = operationServerMap['ReachCampaignsApi.sendCampaignV1']?.[0]?.url;
45892
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45893
+ },
45894
+ /**
45895
+ * Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
45896
+ * @summary Update campaign
45897
+ * @param {string} profileUuid Profile uuid parameter
45898
+ * @param {string} campaignUuid Campaign uuid parameter
45899
+ * @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
45900
+ * @param {*} [options] Override http request option.
45901
+ * @throws {RequiredError}
45902
+ */
45903
+ async updateCampaignV1(profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1CampaignsCreatedCampaignResource>> {
45904
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCampaignV1(profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options);
45905
+ const localVarOperationServerBasePath = operationServerMap['ReachCampaignsApi.updateCampaignV1']?.[0]?.url;
45906
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45907
+ },
45730
45908
  }
45731
45909
  };
45732
45910
 
@@ -45785,6 +45963,29 @@ export const ReachCampaignsApiFactory = function (configuration?: Configuration,
45785
45963
  listCampaignsV1(profileUuid: string, status?: ListCampaignsV1StatusEnum, type?: ListCampaignsV1TypeEnum, sortDirection?: ListCampaignsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListCampaignsV1200Response> {
45786
45964
  return localVarFp.listCampaignsV1(profileUuid, status, type, sortDirection, page, perPage, options).then((request) => request(axios, basePath));
45787
45965
  },
45966
+ /**
45967
+ * Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
45968
+ * @summary Send campaign
45969
+ * @param {string} profileUuid Profile uuid parameter
45970
+ * @param {string} campaignUuid Campaign uuid parameter
45971
+ * @param {*} [options] Override http request option.
45972
+ * @throws {RequiredError}
45973
+ */
45974
+ sendCampaignV1(profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
45975
+ return localVarFp.sendCampaignV1(profileUuid, campaignUuid, options).then((request) => request(axios, basePath));
45976
+ },
45977
+ /**
45978
+ * Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
45979
+ * @summary Update campaign
45980
+ * @param {string} profileUuid Profile uuid parameter
45981
+ * @param {string} campaignUuid Campaign uuid parameter
45982
+ * @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
45983
+ * @param {*} [options] Override http request option.
45984
+ * @throws {RequiredError}
45985
+ */
45986
+ updateCampaignV1(profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1CampaignsCreatedCampaignResource> {
45987
+ return localVarFp.updateCampaignV1(profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options).then((request) => request(axios, basePath));
45988
+ },
45788
45989
  };
45789
45990
  };
45790
45991
 
@@ -45850,6 +46051,33 @@ export class ReachCampaignsApi extends BaseAPI {
45850
46051
  public listCampaignsV1(profileUuid: string, status?: ListCampaignsV1StatusEnum, type?: ListCampaignsV1TypeEnum, sortDirection?: ListCampaignsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
45851
46052
  return ReachCampaignsApiFp(this.configuration).listCampaignsV1(profileUuid, status, type, sortDirection, page, perPage, options).then((request) => request(this.axios, this.basePath));
45852
46053
  }
46054
+
46055
+ /**
46056
+ * Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
46057
+ * @summary Send campaign
46058
+ * @param {string} profileUuid Profile uuid parameter
46059
+ * @param {string} campaignUuid Campaign uuid parameter
46060
+ * @param {*} [options] Override http request option.
46061
+ * @throws {RequiredError}
46062
+ * @memberof ReachCampaignsApi
46063
+ */
46064
+ public sendCampaignV1(profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig) {
46065
+ return ReachCampaignsApiFp(this.configuration).sendCampaignV1(profileUuid, campaignUuid, options).then((request) => request(this.axios, this.basePath));
46066
+ }
46067
+
46068
+ /**
46069
+ * Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
46070
+ * @summary Update campaign
46071
+ * @param {string} profileUuid Profile uuid parameter
46072
+ * @param {string} campaignUuid Campaign uuid parameter
46073
+ * @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
46074
+ * @param {*} [options] Override http request option.
46075
+ * @throws {RequiredError}
46076
+ * @memberof ReachCampaignsApi
46077
+ */
46078
+ public updateCampaignV1(profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig) {
46079
+ return ReachCampaignsApiFp(this.configuration).updateCampaignV1(profileUuid, campaignUuid, reachV1CampaignsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
46080
+ }
45853
46081
  }
45854
46082
 
45855
46083
  /**
package/base.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 2.16.0
6
+ * API Version: 2.16.1
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.16.0
6
+ * API Version: 2.16.1
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.16.0
6
+ * API Version: 2.16.1
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.16.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/2.16.1",
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.16.0
4
+ * API Version: 2.16.1
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
@@ -13819,7 +13819,7 @@ export interface ReachV1CampaignsCreatedCampaignResource {
13819
13819
  */
13820
13820
  'template_uuid': string | null;
13821
13821
  /**
13822
- * Always `draft` for a campaign that was just created.
13822
+ * Always `draft` for a campaign that was just created; the current status after an update.
13823
13823
  * @type {string}
13824
13824
  * @memberof ReachV1CampaignsCreatedCampaignResource
13825
13825
  */
@@ -13933,6 +13933,67 @@ export interface ReachV1CampaignsStoreRequestMetadata {
13933
13933
  */
13934
13934
  'source': string;
13935
13935
  }
13936
+ /**
13937
+ * Update a campaign. Send at least one field; fields left out keep their current value.
13938
+ * @export
13939
+ * @interface ReachV1CampaignsUpdateRequest
13940
+ */
13941
+ export interface ReachV1CampaignsUpdateRequest {
13942
+ /**
13943
+ * Name the campaign is listed under. Not shown to the recipients.
13944
+ * @type {string}
13945
+ * @memberof ReachV1CampaignsUpdateRequest
13946
+ */
13947
+ 'title': string;
13948
+ /**
13949
+ * Subject line of the email.
13950
+ * @type {string}
13951
+ * @memberof ReachV1CampaignsUpdateRequest
13952
+ */
13953
+ 'subject': string;
13954
+ /**
13955
+ * From name shown to the recipients.
13956
+ * @type {string}
13957
+ * @memberof ReachV1CampaignsUpdateRequest
13958
+ */
13959
+ 'sender_name': string;
13960
+ /**
13961
+ * From address of the campaign. Its domain has to be verified on the profile before the campaign can be sent.
13962
+ * @type {string}
13963
+ * @memberof ReachV1CampaignsUpdateRequest
13964
+ */
13965
+ 'sender_email': string;
13966
+ /**
13967
+ * Template to send, as returned by the template endpoints.
13968
+ * @type {string}
13969
+ * @memberof ReachV1CampaignsUpdateRequest
13970
+ */
13971
+ 'template_uuid': string;
13972
+ /**
13973
+ * `true` targets every contact of the profile, `false` targets only `segment_uuids`. Required when `segment_uuids` or `excluded_segment_uuids` is sent.
13974
+ * @type {boolean}
13975
+ * @memberof ReachV1CampaignsUpdateRequest
13976
+ */
13977
+ 'all_contacts': boolean;
13978
+ /**
13979
+ * Segments to target. Replaces the segments currently targeted.
13980
+ * @type {Array<string>}
13981
+ * @memberof ReachV1CampaignsUpdateRequest
13982
+ */
13983
+ 'segment_uuids': Array<string>;
13984
+ /**
13985
+ * Segments to leave out. Only allowed together with `all_contacts: true`.
13986
+ * @type {Array<string>}
13987
+ * @memberof ReachV1CampaignsUpdateRequest
13988
+ */
13989
+ 'excluded_segment_uuids': Array<string>;
13990
+ /**
13991
+ *
13992
+ * @type {ReachV1CampaignsStoreRequestMetadata}
13993
+ * @memberof ReachV1CampaignsUpdateRequest
13994
+ */
13995
+ 'metadata': ReachV1CampaignsStoreRequestMetadata | null;
13996
+ }
13936
13997
  /**
13937
13998
  * Create many contacts in one call
13938
13999
  * @export
@@ -32130,6 +32191,25 @@ export declare const ReachCampaignsApiAxiosParamCreator: (configuration?: Config
32130
32191
  * @throws {RequiredError}
32131
32192
  */
32132
32193
  listCampaignsV1: (profileUuid: string, status?: ListCampaignsV1StatusEnum, type?: ListCampaignsV1TypeEnum, sortDirection?: ListCampaignsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32194
+ /**
32195
+ * Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
32196
+ * @summary Send campaign
32197
+ * @param {string} profileUuid Profile uuid parameter
32198
+ * @param {string} campaignUuid Campaign uuid parameter
32199
+ * @param {*} [options] Override http request option.
32200
+ * @throws {RequiredError}
32201
+ */
32202
+ sendCampaignV1: (profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32203
+ /**
32204
+ * Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
32205
+ * @summary Update campaign
32206
+ * @param {string} profileUuid Profile uuid parameter
32207
+ * @param {string} campaignUuid Campaign uuid parameter
32208
+ * @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
32209
+ * @param {*} [options] Override http request option.
32210
+ * @throws {RequiredError}
32211
+ */
32212
+ updateCampaignV1: (profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
32133
32213
  };
32134
32214
  /**
32135
32215
  * ReachCampaignsApi - functional programming interface
@@ -32176,6 +32256,25 @@ export declare const ReachCampaignsApiFp: (configuration?: Configuration) => {
32176
32256
  * @throws {RequiredError}
32177
32257
  */
32178
32258
  listCampaignsV1(profileUuid: string, status?: ListCampaignsV1StatusEnum, type?: ListCampaignsV1TypeEnum, sortDirection?: ListCampaignsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListCampaignsV1200Response>>;
32259
+ /**
32260
+ * Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
32261
+ * @summary Send campaign
32262
+ * @param {string} profileUuid Profile uuid parameter
32263
+ * @param {string} campaignUuid Campaign uuid parameter
32264
+ * @param {*} [options] Override http request option.
32265
+ * @throws {RequiredError}
32266
+ */
32267
+ sendCampaignV1(profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
32268
+ /**
32269
+ * Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
32270
+ * @summary Update campaign
32271
+ * @param {string} profileUuid Profile uuid parameter
32272
+ * @param {string} campaignUuid Campaign uuid parameter
32273
+ * @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
32274
+ * @param {*} [options] Override http request option.
32275
+ * @throws {RequiredError}
32276
+ */
32277
+ updateCampaignV1(profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1CampaignsCreatedCampaignResource>>;
32179
32278
  };
32180
32279
  /**
32181
32280
  * ReachCampaignsApi - factory interface
@@ -32222,6 +32321,25 @@ export declare const ReachCampaignsApiFactory: (configuration?: Configuration, b
32222
32321
  * @throws {RequiredError}
32223
32322
  */
32224
32323
  listCampaignsV1(profileUuid: string, status?: ListCampaignsV1StatusEnum, type?: ListCampaignsV1TypeEnum, sortDirection?: ListCampaignsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListCampaignsV1200Response>;
32324
+ /**
32325
+ * Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
32326
+ * @summary Send campaign
32327
+ * @param {string} profileUuid Profile uuid parameter
32328
+ * @param {string} campaignUuid Campaign uuid parameter
32329
+ * @param {*} [options] Override http request option.
32330
+ * @throws {RequiredError}
32331
+ */
32332
+ sendCampaignV1(profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
32333
+ /**
32334
+ * Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
32335
+ * @summary Update campaign
32336
+ * @param {string} profileUuid Profile uuid parameter
32337
+ * @param {string} campaignUuid Campaign uuid parameter
32338
+ * @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
32339
+ * @param {*} [options] Override http request option.
32340
+ * @throws {RequiredError}
32341
+ */
32342
+ updateCampaignV1(profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1CampaignsCreatedCampaignResource>;
32225
32343
  };
32226
32344
  /**
32227
32345
  * ReachCampaignsApi - object-oriented interface
@@ -32274,6 +32392,27 @@ export declare class ReachCampaignsApi extends BaseAPI {
32274
32392
  * @memberof ReachCampaignsApi
32275
32393
  */
32276
32394
  listCampaignsV1(profileUuid: string, status?: ListCampaignsV1StatusEnum, type?: ListCampaignsV1TypeEnum, sortDirection?: ListCampaignsV1SortDirectionEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachListCampaignsV1200Response, any, {}, any>>;
32395
+ /**
32396
+ * Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
32397
+ * @summary Send campaign
32398
+ * @param {string} profileUuid Profile uuid parameter
32399
+ * @param {string} campaignUuid Campaign uuid parameter
32400
+ * @param {*} [options] Override http request option.
32401
+ * @throws {RequiredError}
32402
+ * @memberof ReachCampaignsApi
32403
+ */
32404
+ sendCampaignV1(profileUuid: string, campaignUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
32405
+ /**
32406
+ * Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
32407
+ * @summary Update campaign
32408
+ * @param {string} profileUuid Profile uuid parameter
32409
+ * @param {string} campaignUuid Campaign uuid parameter
32410
+ * @param {ReachV1CampaignsUpdateRequest} reachV1CampaignsUpdateRequest
32411
+ * @param {*} [options] Override http request option.
32412
+ * @throws {RequiredError}
32413
+ * @memberof ReachCampaignsApi
32414
+ */
32415
+ updateCampaignV1(profileUuid: string, campaignUuid: string, reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ReachV1CampaignsCreatedCampaignResource, any, {}, any>>;
32277
32416
  }
32278
32417
  /**
32279
32418
  * @export