/** * Constant Contact API v3 * Swagger build version 3.0.2475 * * The version of the OpenAPI document: 1.0.116 * Contact: webservices@constantcontact.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { Configuration } from '../configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import { RequestArgs, BaseAPI } from '../base'; import { GetABTestEmailCampaign200Response } from '../models'; /** * EmailCampaignsABTestsApi - axios parameter creator * @export */ export declare const EmailCampaignsABTestsApiAxiosParamCreator: (configuration?: Configuration) => { /** * Use this method to create a new A/B test for a primary email campaign activity. You must specify an alternative subject line, the percentage of contact to use for the A/B test, and the number of hours to wait after the A/B test is sent before determining the winning subject line. To create an A/B test, the campaign must have a `current_status` of `DRAFT`. When you create an A/B test, the `type` changes from Newsletter (code= `10`) to A/B Test (code= `57`). * @summary POST (Create) an A/B Test for an Email Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {GetABTestEmailCampaign200Response} getABTestEmailCampaign200Response Specify the `alternative_subject` line, `test_size` percentage of contacts (value must from `5` to `50` inclusively), and the `winner_wait_duration` (value must be `6`, `12`, `24`, or `48` hours). * @param {*} [options] Override http request option. * @throws {RequiredError} */ createABTestEmailCampaign: (campaignActivityId: string, getABTestEmailCampaign200Response: GetABTestEmailCampaign200Response, options?: RawAxiosRequestConfig) => Promise; /** * Deletes an A/B Test on an primary email campaign activity. You can only delete A/B tests that have a `current_status` of `Draft`. Deleting an A/B tests reverts the email campaign activity `type` from A/B Test (code= `57`) back to NewsLetter (code= `10`). Constant Contact uses the original subject line, rather than the alternate A/B test subject line, when an A/B test is deleted. * @summary DELETE an A/B Test for an Email Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteABTestEmailCampaign: (campaignActivityId: string, options?: RawAxiosRequestConfig) => Promise; /** * Use this method to get A/B test details for a primary email campaign activity, such as the alternate email subject line, the contact test percentage size, and the number of hours to wait to determine the winning subject line to use. Currently, A/B tests support subject line only. * @summary GET A/B Test Details for an Email Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getABTestEmailCampaign: (campaignActivityId: string, options?: RawAxiosRequestConfig) => Promise; }; /** * EmailCampaignsABTestsApi - functional programming interface * @export */ export declare const EmailCampaignsABTestsApiFp: (configuration?: Configuration) => { /** * Use this method to create a new A/B test for a primary email campaign activity. You must specify an alternative subject line, the percentage of contact to use for the A/B test, and the number of hours to wait after the A/B test is sent before determining the winning subject line. To create an A/B test, the campaign must have a `current_status` of `DRAFT`. When you create an A/B test, the `type` changes from Newsletter (code= `10`) to A/B Test (code= `57`). * @summary POST (Create) an A/B Test for an Email Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {GetABTestEmailCampaign200Response} getABTestEmailCampaign200Response Specify the `alternative_subject` line, `test_size` percentage of contacts (value must from `5` to `50` inclusively), and the `winner_wait_duration` (value must be `6`, `12`, `24`, or `48` hours). * @param {*} [options] Override http request option. * @throws {RequiredError} */ createABTestEmailCampaign(campaignActivityId: string, getABTestEmailCampaign200Response: GetABTestEmailCampaign200Response, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Deletes an A/B Test on an primary email campaign activity. You can only delete A/B tests that have a `current_status` of `Draft`. Deleting an A/B tests reverts the email campaign activity `type` from A/B Test (code= `57`) back to NewsLetter (code= `10`). Constant Contact uses the original subject line, rather than the alternate A/B test subject line, when an A/B test is deleted. * @summary DELETE an A/B Test for an Email Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteABTestEmailCampaign(campaignActivityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * Use this method to get A/B test details for a primary email campaign activity, such as the alternate email subject line, the contact test percentage size, and the number of hours to wait to determine the winning subject line to use. Currently, A/B tests support subject line only. * @summary GET A/B Test Details for an Email Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getABTestEmailCampaign(campaignActivityId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * EmailCampaignsABTestsApi - factory interface * @export */ export declare const EmailCampaignsABTestsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Use this method to create a new A/B test for a primary email campaign activity. You must specify an alternative subject line, the percentage of contact to use for the A/B test, and the number of hours to wait after the A/B test is sent before determining the winning subject line. To create an A/B test, the campaign must have a `current_status` of `DRAFT`. When you create an A/B test, the `type` changes from Newsletter (code= `10`) to A/B Test (code= `57`). * @summary POST (Create) an A/B Test for an Email Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {GetABTestEmailCampaign200Response} getABTestEmailCampaign200Response Specify the `alternative_subject` line, `test_size` percentage of contacts (value must from `5` to `50` inclusively), and the `winner_wait_duration` (value must be `6`, `12`, `24`, or `48` hours). * @param {*} [options] Override http request option. * @throws {RequiredError} */ createABTestEmailCampaign(campaignActivityId: string, getABTestEmailCampaign200Response: GetABTestEmailCampaign200Response, options?: any): AxiosPromise; /** * Deletes an A/B Test on an primary email campaign activity. You can only delete A/B tests that have a `current_status` of `Draft`. Deleting an A/B tests reverts the email campaign activity `type` from A/B Test (code= `57`) back to NewsLetter (code= `10`). Constant Contact uses the original subject line, rather than the alternate A/B test subject line, when an A/B test is deleted. * @summary DELETE an A/B Test for an Email Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteABTestEmailCampaign(campaignActivityId: string, options?: any): AxiosPromise; /** * Use this method to get A/B test details for a primary email campaign activity, such as the alternate email subject line, the contact test percentage size, and the number of hours to wait to determine the winning subject line to use. Currently, A/B tests support subject line only. * @summary GET A/B Test Details for an Email Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getABTestEmailCampaign(campaignActivityId: string, options?: any): AxiosPromise; }; /** * EmailCampaignsABTestsApi - object-oriented interface * @export * @class EmailCampaignsABTestsApi * @extends {BaseAPI} */ export declare class EmailCampaignsABTestsApi extends BaseAPI { /** * Use this method to create a new A/B test for a primary email campaign activity. You must specify an alternative subject line, the percentage of contact to use for the A/B test, and the number of hours to wait after the A/B test is sent before determining the winning subject line. To create an A/B test, the campaign must have a `current_status` of `DRAFT`. When you create an A/B test, the `type` changes from Newsletter (code= `10`) to A/B Test (code= `57`). * @summary POST (Create) an A/B Test for an Email Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {GetABTestEmailCampaign200Response} getABTestEmailCampaign200Response Specify the `alternative_subject` line, `test_size` percentage of contacts (value must from `5` to `50` inclusively), and the `winner_wait_duration` (value must be `6`, `12`, `24`, or `48` hours). * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsABTestsApi */ createABTestEmailCampaign(campaignActivityId: string, getABTestEmailCampaign200Response: GetABTestEmailCampaign200Response, options?: RawAxiosRequestConfig): Promise>; /** * Deletes an A/B Test on an primary email campaign activity. You can only delete A/B tests that have a `current_status` of `Draft`. Deleting an A/B tests reverts the email campaign activity `type` from A/B Test (code= `57`) back to NewsLetter (code= `10`). Constant Contact uses the original subject line, rather than the alternate A/B test subject line, when an A/B test is deleted. * @summary DELETE an A/B Test for an Email Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsABTestsApi */ deleteABTestEmailCampaign(campaignActivityId: string, options?: RawAxiosRequestConfig): Promise>; /** * Use this method to get A/B test details for a primary email campaign activity, such as the alternate email subject line, the contact test percentage size, and the number of hours to wait to determine the winning subject line to use. Currently, A/B tests support subject line only. * @summary GET A/B Test Details for an Email Campaign Activity * @param {string} campaignActivityId The unique ID for the primary email campaign activity. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof EmailCampaignsABTestsApi */ getABTestEmailCampaign(campaignActivityId: string, options?: RawAxiosRequestConfig): Promise>; }