@revxui/api-clients-ts
Version:
swagger client for @revxui/api-clients-ts
1,047 lines • 267 kB
JavaScript
/**
* Api Documentation
* Api Documentation
*
* OpenAPI spec version: 1.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
/* tslint:disable:no-unused-variable member-ordering */
import { Inject, Injectable, Optional } from '@angular/core';
import { HttpHeaders, HttpParams } from '@angular/common/http';
import { CustomHttpUrlEncodingCodec } from '../encoder';
import { BASE_PATH } from '../variables';
import { Configuration } from '../configuration';
import * as i0 from "@angular/core";
import * as i1 from "@angular/common/http";
import * as i2 from "../configuration";
export class StrategyControllerService {
constructor(httpClient, basePath, configuration) {
this.httpClient = httpClient;
this.basePath = 'https://apiv2stage3.atomex.net';
this.defaultHeaders = new HttpHeaders();
this.configuration = new Configuration();
if (basePath) {
this.basePath = basePath;
}
if (configuration) {
this.configuration = configuration;
this.basePath = basePath || configuration.basePath || this.basePath;
}
}
/**
* @param consumes string[] mime-types
* @return true: consumes contains 'multipart/form-data', false: otherwise
*/
canConsumeForm(consumes) {
const form = 'multipart/form-data';
for (const consume of consumes) {
if (form === consume) {
return true;
}
}
return false;
}
activateStrategyUsingPOST(ids, reqId, token, observe = 'body', reportProgress = false) {
if (ids === null || ids === undefined) {
throw new Error('Required parameter ids was null or undefined when calling activateStrategyUsingPOST.');
}
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
if (ids !== undefined && ids !== null) {
queryParameters = queryParameters.set('ids', ids);
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
return this.httpClient.post(`${this.basePath}/v2/api/strategies/activate`, null, {
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
associateCreativesWithStrategiesUsingPOST(request, reqId, token, observe = 'body', reportProgress = false) {
if (request === null || request === undefined) {
throw new Error('Required parameter request was null or undefined when calling associateCreativesWithStrategiesUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies/associatecreativesstrategies`, request, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
createABTestExperimentUsingPOST(abTestDTO, reqId, token, observe = 'body', reportProgress = false) {
if (abTestDTO === null || abTestDTO === undefined) {
throw new Error('Required parameter abTestDTO was null or undefined when calling createABTestExperimentUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies/abtest/create`, abTestDTO, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
createStrategyOptimizationRuleUsingPOST(id, req, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling createStrategyOptimizationRuleUsingPOST.');
}
if (req === null || req === undefined) {
throw new Error('Required parameter req was null or undefined when calling createStrategyOptimizationRuleUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies/${encodeURIComponent(String(id))}/orule`, req, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
createStrategyUsingPOST(strategy, reqId, token, observe = 'body', reportProgress = false) {
if (strategy === null || strategy === undefined) {
throw new Error('Required parameter strategy was null or undefined when calling createStrategyUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies`, strategy, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
deactivateRuleUsingPOST(ruleId, reqId, token, observe = 'body', reportProgress = false) {
if (ruleId === null || ruleId === undefined) {
throw new Error('Required parameter ruleId was null or undefined when calling deactivateRuleUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
return this.httpClient.post(`${this.basePath}/v2/api/strategies/orule/${encodeURIComponent(String(ruleId))}/deactivate`, null, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
deactivateStrategyUsingPOST(ids, reqId, token, observe = 'body', reportProgress = false) {
if (ids === null || ids === undefined) {
throw new Error('Required parameter ids was null or undefined when calling deactivateStrategyUsingPOST.');
}
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
if (ids !== undefined && ids !== null) {
queryParameters = queryParameters.set('ids', ids);
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
return this.httpClient.post(`${this.basePath}/v2/api/strategies/deactivate`, null, {
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
disassociateStrategyWithCreativeSetsUsingPOST(creativeSetIdsToBeRemoved, id, reqId, token, observe = 'body', reportProgress = false) {
if (creativeSetIdsToBeRemoved === null || creativeSetIdsToBeRemoved === undefined) {
throw new Error('Required parameter creativeSetIdsToBeRemoved was null or undefined when calling disassociateStrategyWithCreativeSetsUsingPOST.');
}
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling disassociateStrategyWithCreativeSetsUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies/${encodeURIComponent(String(id))}/disassociate/creativesets`, creativeSetIdsToBeRemoved, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
duplicateStrategyUsingPOST(dto, reqId, token, observe = 'body', reportProgress = false) {
if (dto === null || dto === undefined) {
throw new Error('Required parameter dto was null or undefined when calling duplicateStrategyUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies/duplicate`, dto, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
fetchAllRulesUsingGET(id, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling fetchAllRulesUsingGET.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [];
return this.httpClient.get(`${this.basePath}/v2/api/strategies/${encodeURIComponent(String(id))}/orule/all`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
fetchRuleByIdUsingGET(ruleId, reqId, token, observe = 'body', reportProgress = false) {
if (ruleId === null || ruleId === undefined) {
throw new Error('Required parameter ruleId was null or undefined when calling fetchRuleByIdUsingGET.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [];
return this.httpClient.get(`${this.basePath}/v2/api/strategies/orule/${encodeURIComponent(String(ruleId))}`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
fetchRuleLogsUsingGET(id, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling fetchRuleLogsUsingGET.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [];
return this.httpClient.get(`${this.basePath}/v2/api/strategies/${encodeURIComponent(String(id))}/orule/logs`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
fetchStrategyTargetingUsingGET(id, tableEntity, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling fetchStrategyTargetingUsingGET.');
}
if (tableEntity === null || tableEntity === undefined) {
throw new Error('Required parameter tableEntity was null or undefined when calling fetchStrategyTargetingUsingGET.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'*/*'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [];
return this.httpClient.get(`${this.basePath}/v2/api/strategies/${encodeURIComponent(String(id))}/fetch/${encodeURIComponent(String(tableEntity))}`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
getABTestExperimentUsingGET(id, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getABTestExperimentUsingGET.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [];
return this.httpClient.get(`${this.basePath}/v2/api/strategies/abtest/${encodeURIComponent(String(id))}`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
getAdFormatCountsUsingPOST(strategyIds, reqId, token, observe = 'body', reportProgress = false) {
if (strategyIds === null || strategyIds === undefined) {
throw new Error('Required parameter strategyIds was null or undefined when calling getAdFormatCountsUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies/adformatcounts`, strategyIds, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
getNeverBlockAppsUsingGET(id, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getNeverBlockAppsUsingGET.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [];
return this.httpClient.get(`${this.basePath}/v2/api/strategies/${encodeURIComponent(String(id))}/appsneverBlock`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
getSkadSettingsUsingGET(reqId, token, observe = 'body', reportProgress = false) {
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [];
return this.httpClient.get(`${this.basePath}/v2/api/strategies/skadsettings`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
getStrategiesCreativeSetsByCampaignIdUsingGET(campaignId, reqId, token, observe = 'body', reportProgress = false) {
if (campaignId === null || campaignId === undefined) {
throw new Error('Required parameter campaignId was null or undefined when calling getStrategiesCreativeSetsByCampaignIdUsingGET.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [];
return this.httpClient.get(`${this.basePath}/v2/api/strategies/clone/get/${encodeURIComponent(String(campaignId))}`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
getStrategyByIdUsingGET(id, refresh, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getStrategyByIdUsingGET.');
}
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
if (refresh !== undefined && refresh !== null) {
queryParameters = queryParameters.set('refresh', refresh);
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'*/*'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [];
return this.httpClient.get(`${this.basePath}/v2/api/strategies/${encodeURIComponent(String(id))}`, {
params: queryParameters,
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
getStrategyQuickEditDetailsUsingGET(id, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getStrategyQuickEditDetailsUsingGET.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'*/*'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [];
return this.httpClient.get(`${this.basePath}/v2/api/strategies/quickEdit/${encodeURIComponent(String(id))}`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
getStrategyTargetingRecommendationUsingGET(id, tableEntity, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling getStrategyTargetingRecommendationUsingGET.');
}
if (tableEntity === null || tableEntity === undefined) {
throw new Error('Required parameter tableEntity was null or undefined when calling getStrategyTargetingRecommendationUsingGET.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'*/*'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [];
return this.httpClient.get(`${this.basePath}/v2/api/strategies/${encodeURIComponent(String(id))}/recommendation/${encodeURIComponent(String(tableEntity))}`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
inlineEditStrategyUsingPOST(id, strategyInlineDTO, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling inlineEditStrategyUsingPOST.');
}
if (strategyInlineDTO === null || strategyInlineDTO === undefined) {
throw new Error('Required parameter strategyInlineDTO was null or undefined when calling inlineEditStrategyUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'*/*'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies/inlineEdit/${encodeURIComponent(String(id))}`, strategyInlineDTO, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
listABTestExperimentUsingGET(entity, entityId, reqId, token, observe = 'body', reportProgress = false) {
if (entity === null || entity === undefined) {
throw new Error('Required parameter entity was null or undefined when calling listABTestExperimentUsingGET.');
}
if (entityId === null || entityId === undefined) {
throw new Error('Required parameter entityId was null or undefined when calling listABTestExperimentUsingGET.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [];
return this.httpClient.get(`${this.basePath}/v2/api/strategies/abtest/list/${encodeURIComponent(String(entity))}/${encodeURIComponent(String(entityId))}`, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
neverBlockAppsUsingPOST(id, appIds, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling neverBlockAppsUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies/${encodeURIComponent(String(id))}/appsneverBlock`, appIds, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
runStrategyOptimizationRuleUsingPOST(ruleId, reqId, token, observe = 'body', reportProgress = false) {
if (ruleId === null || ruleId === undefined) {
throw new Error('Required parameter ruleId was null or undefined when calling runStrategyOptimizationRuleUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
return this.httpClient.post(`${this.basePath}/v2/api/strategies/orule/${encodeURIComponent(String(ruleId))}/run`, null, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
saveStrategyQuickEditDetailsUsingPOST(id, strategyQuickEditDTO, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling saveStrategyQuickEditDetailsUsingPOST.');
}
if (strategyQuickEditDTO === null || strategyQuickEditDTO === undefined) {
throw new Error('Required parameter strategyQuickEditDTO was null or undefined when calling saveStrategyQuickEditDetailsUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'*/*'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies/quickEdit/${encodeURIComponent(String(id))}`, strategyQuickEditDTO, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
strategyOptimizationUsingPOST(id, req, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling strategyOptimizationUsingPOST.');
}
if (req === null || req === undefined) {
throw new Error('Required parameter req was null or undefined when calling strategyOptimizationUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies/optimization/${encodeURIComponent(String(id))}`, req, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
updateABTestExperimentStatusUsingPOST(id, status, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling updateABTestExperimentStatusUsingPOST.');
}
if (status === null || status === undefined) {
throw new Error('Required parameter status was null or undefined when calling updateABTestExperimentStatusUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
return this.httpClient.post(`${this.basePath}/v2/api/strategies/abtest/updateStatus/${encodeURIComponent(String(id))}/${encodeURIComponent(String(status))}`, null, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
updateABTestExperimentUsingPOST(abTestDTO, id, reqId, token, observe = 'body', reportProgress = false) {
if (abTestDTO === null || abTestDTO === undefined) {
throw new Error('Required parameter abTestDTO was null or undefined when calling updateABTestExperimentUsingPOST.');
}
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling updateABTestExperimentUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies/abtest/update/${encodeURIComponent(String(id))}`, abTestDTO, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
updateDailyAdvertiserSpendBudgetForStrategyUsingPOST(budgetCapStrategyDTO, reqId, token, observe = 'body', reportProgress = false) {
if (budgetCapStrategyDTO === null || budgetCapStrategyDTO === undefined) {
throw new Error('Required parameter budgetCapStrategyDTO was null or undefined when calling updateDailyAdvertiserSpendBudgetForStrategyUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
if (httpContentTypeSelected != undefined) {
headers = headers.set('Content-Type', httpContentTypeSelected);
}
return this.httpClient.post(`${this.basePath}/v2/api/strategies/updateDailyAdvertiserSpendBudgetForStrategy`, budgetCapStrategyDTO, {
withCredentials: this.configuration.withCredentials,
headers: headers,
observe: observe,
reportProgress: reportProgress
});
}
updateStrategyOptimizationRuleUsingPOST(id, req, ruleId, reqId, token, observe = 'body', reportProgress = false) {
if (id === null || id === undefined) {
throw new Error('Required parameter id was null or undefined when calling updateStrategyOptimizationRuleUsingPOST.');
}
if (req === null || req === undefined) {
throw new Error('Required parameter req was null or undefined when calling updateStrategyOptimizationRuleUsingPOST.');
}
if (ruleId === null || ruleId === undefined) {
throw new Error('Required parameter ruleId was null or undefined when calling updateStrategyOptimizationRuleUsingPOST.');
}
let headers = this.defaultHeaders;
if (reqId !== undefined && reqId !== null) {
headers = headers.set('reqId', String(reqId));
}
if (token !== undefined && token !== null) {
headers = headers.set('token', String(token));
}
// to determine the Accept header
let httpHeaderAccepts = [
'application/json'
];
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
if (httpHeaderAcceptSelected != undefined) {
headers = headers.set('Accept', httpHeaderAcceptSelected);
}
// to determine the Content-Type header
const consumes = [
'application/json'
];
const http