@revxui/api-clients-ts
Version:
swagger client for @revxui/api-clients-ts
1 lines • 1.31 MB
Source Map (JSON)
{"version":3,"file":"revxui-api-clients-ts.mjs","sources":["../../variables.ts","../../configuration.ts","../../api/adminController.service.ts","../../encoder.ts","../../api/advertiserController.service.ts","../../api/appSettingsController.service.ts","../../api/audienceController.service.ts","../../api/auditController.service.ts","../../api/bidFunnelController.service.ts","../../api/bulkStrategyController.service.ts","../../api/cSSThemeController_.service.ts","../../api/campaignController.service.ts","../../api/catalogController.service.ts","../../api/clickDestinationController.service.ts","../../api/creativeController.service.ts","../../api/creativeSetsController.service.ts","../../api/creativeTemplateThemesController.service.ts","../../api/creativeTemplateVariablesController.service.ts","../../api/creativeTemplatesController.service.ts","../../api/customerReportingController.service.ts","../../api/dashboardController.service.ts","../../api/experimentsController.service.ts","../../api/notificationsController.service.ts","../../api/pixelController.service.ts","../../api/reportController.service.ts","../../api/reportingController.service.ts","../../api/reportingSchedulerController.service.ts","../../api/sliceXController.service.ts","../../api/strategyController.service.ts","../../api/strategyTemplateController.service.ts","../../api/uILoggerController.service.ts","../../api/userPreferenceController.service.ts","../../api/api.ts","../../model/aBTestingDTO.ts","../../model/aBTestingResponseDetails.ts","../../model/aBTestingVariantDTO.ts","../../model/activityLogsCreativeSetsBulkUpdateDTO.ts","../../model/activityLogsStrategyBulkUpdateDTO.ts","../../model/advertiserAppSettingsDTO.ts","../../model/advertiserCohortDTO.ts","../../model/advertiserCohortResponse.ts","../../model/appSettingsDTO.ts","../../model/appSettingsPropertyDTO.ts","../../model/auctionTypeEditField.ts","../../model/audienceBackfillQueryTemplateRequest.ts","../../model/audienceBackfillRequest.ts","../../model/audienceDTO.ts","../../model/audienceESDTO.ts","../../model/audiencePerformanceDTO.ts","../../model/baseModelWithCreativeSetType.ts","../../model/clickDestination.ts","../../model/cohortCampaignStrategyDO.ts","../../model/creativeCompactDTO.ts","../../model/creativeDTO.ts","../../model/creativeDetails.ts","../../model/creativeFileForSet.ts","../../model/creativeFiles.ts","../../model/creativeHtmlFileForSet.ts","../../model/creativeSetDashboardMetric.ts","../../model/creativeSetDetails.ts","../../model/creativeSetPerformanceList.ts","../../model/creativeSetRequest.ts","../../model/creativeSetResponse.ts","../../model/dcoAttributesDTO.ts","../../model/deviceTargetModel.ts","../../model/duplicateCampaignStrategyRequestDTO.ts","../../model/duplicateCreativeSetResponse.ts","../../model/dynamicVideoConfigDTO.ts","../../model/experimentsEntity.ts","../../model/filterModel.ts","../../model/geoFenceDTO.ts","../../model/geoListRequest.ts","../../model/incrementalityTestDTO.ts","../../model/incrementalityTestDetails.ts","../../model/jobResponse.ts","../../model/lookAlikeAudienceConfigDTO.ts","../../model/macro.ts","../../model/metaRuleDto.ts","../../model/notificationResponse.ts","../../model/optimizationRuleAuditLogDTO.ts","../../model/optimizationRuleDTO.ts","../../model/pixelDataFileDTO.ts","../../model/platformClickSigningConfig.ts","../../model/remoteFileDTO.ts","../../model/reportProperty.ts","../../model/reportRequest.ts","../../model/reportResponse.ts","../../model/reportingRequest.ts","../../model/reportingResponse.ts","../../model/reportingSchedulerResponse.ts","../../model/ruleDTO.ts","../../model/schedulerRequest.ts","../../model/strategyDTO.ts","../../model/strategyInlineDTO.ts","../../model/strategyQuickEditDTO.ts","../../model/strategyRuleResponse.ts","../../model/strategyTemplateDTO.ts","../../model/strategyTemplateResponse.ts","../../model/templateVariablesDTO.ts","../../model/vastCreative.ts","../../model/videoAttributes.ts","../../model/videoProperties.ts","../../model/whitelabelingEntity.ts","../../api.module.ts","../../revxui-api-clients-ts.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const BASE_PATH = new InjectionToken<string>('basePath');\nexport const COLLECTION_FORMATS = {\n 'csv': ',',\n 'tsv': ' ',\n 'ssv': ' ',\n 'pipes': '|'\n}\n","export interface ConfigurationParameters {\n apiKeys?: {[ key: string ]: string};\n username?: string;\n password?: string;\n accessToken?: string | (() => string);\n basePath?: string;\n withCredentials?: boolean;\n}\n\nexport class Configuration {\n apiKeys?: {[ key: string ]: string};\n username?: string;\n password?: string;\n accessToken?: string | (() => string);\n basePath?: string;\n withCredentials?: boolean;\n\n constructor(configurationParameters: ConfigurationParameters = {}) {\n this.apiKeys = configurationParameters.apiKeys;\n this.username = configurationParameters.username;\n this.password = configurationParameters.password;\n this.accessToken = configurationParameters.accessToken;\n this.basePath = configurationParameters.basePath;\n this.withCredentials = configurationParameters.withCredentials;\n }\n\n /**\n * Select the correct content-type to use for a request.\n * Uses {@link Configuration#isJsonMime} to determine the correct content-type.\n * If no content type is found return the first found type if the contentTypes is not empty\n * @param contentTypes - the array of content types that are available for selection\n * @returns the selected content-type or <code>undefined</code> if no selection could be made.\n */\n public selectHeaderContentType (contentTypes: string[]): string | undefined {\n if (contentTypes.length == 0) {\n return undefined;\n }\n\n let type = contentTypes.find(x => this.isJsonMime(x));\n if (type === undefined) {\n return contentTypes[0];\n }\n return type;\n }\n\n /**\n * Select the correct accept content-type to use for a request.\n * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.\n * If no content type is found return the first found type if the contentTypes is not empty\n * @param accepts - the array of content types that are available for selection.\n * @returns the selected content-type or <code>undefined</code> if no selection could be made.\n */\n public selectHeaderAccept(accepts: string[]): string | undefined {\n if (accepts.length == 0) {\n return undefined;\n }\n\n let type = accepts.find(x => this.isJsonMime(x));\n if (type === undefined) {\n return accepts[0];\n }\n return type;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = new RegExp('^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$', 'i');\n return mime != null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');\n }\n}\n","/**\n * Api Documentation\n * Api Documentation\n *\n * OpenAPI spec version: 1.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n/* tslint:disable:no-unused-variable member-ordering */\n\nimport { Inject, Injectable, Optional } from '@angular/core';\nimport { HttpClient, HttpHeaders, HttpParams,\n HttpResponse, HttpEvent } from '@angular/common/http';\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\n\nimport { Observable } from 'rxjs';\n\nimport { ApiResponseObjectstring } from '../model/apiResponseObjectstring';\n\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\nimport { Configuration } from '../configuration';\n\n\n@Injectable()\nexport class AdminControllerService {\n\n protected basePath = 'https://apiv2stage3.atomex.net';\n public defaultHeaders = new HttpHeaders();\n public configuration = new Configuration();\n\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {\n if (basePath) {\n this.basePath = basePath;\n }\n if (configuration) {\n this.configuration = configuration;\n this.basePath = basePath || configuration.basePath || this.basePath;\n }\n }\n\n /**\n * @param consumes string[] mime-types\n * @return true: consumes contains 'multipart/form-data', false: otherwise\n */\n private canConsumeForm(consumes: string[]): boolean {\n const form = 'multipart/form-data';\n for (const consume of consumes) {\n if (form === consume) {\n return true;\n }\n }\n return false;\n }\n\n\n /**\n * checkAdmin\n * \n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public checkAdminUsingGET(reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectstring>;\n public checkAdminUsingGET(reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectstring>>;\n public checkAdminUsingGET(reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectstring>>;\n public checkAdminUsingGET(reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n '*/*'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n ];\n\n return this.httpClient.get<ApiResponseObjectstring>(`${this.basePath}/v2/api/admin`,\n {\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * checkDemo\n * \n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public checkDemoUsingGET(reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectstring>;\n public checkDemoUsingGET(reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectstring>>;\n public checkDemoUsingGET(reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectstring>>;\n public checkDemoUsingGET(reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n '*/*'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n ];\n\n return this.httpClient.get<ApiResponseObjectstring>(`${this.basePath}/v2/api/demo`,\n {\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * checkRWAccess\n * \n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public checkRWAccessUsingGET(reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectstring>;\n public checkRWAccessUsingGET(reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectstring>>;\n public checkRWAccessUsingGET(reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectstring>>;\n public checkRWAccessUsingGET(reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n '*/*'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n ];\n\n return this.httpClient.get<ApiResponseObjectstring>(`${this.basePath}/v2/api/rw`,\n {\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * checkRo\n * \n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public checkRoUsingGET(reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectstring>;\n public checkRoUsingGET(reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectstring>>;\n public checkRoUsingGET(reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectstring>>;\n public checkRoUsingGET(reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n '*/*'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n ];\n\n return this.httpClient.get<ApiResponseObjectstring>(`${this.basePath}/v2/api/ro`,\n {\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * checkSAdmin\n * \n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public checkSAdminUsingGET(reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectstring>;\n public checkSAdminUsingGET(reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectstring>>;\n public checkSAdminUsingGET(reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectstring>>;\n public checkSAdminUsingGET(reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n '*/*'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n ];\n\n return this.httpClient.get<ApiResponseObjectstring>(`${this.basePath}/v2/api/sadmin`,\n {\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n}\n"," import { HttpUrlEncodingCodec } from '@angular/common/http';\n\n/**\n* CustomHttpUrlEncodingCodec\n* Fix plus sign (+) not encoding, so sent as blank space\n* See: https://github.com/angular/angular/issues/11058#issuecomment-247367318\n*/\nexport class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {\n override encodeKey(k: string): string {\n k = super.encodeKey(k);\n return k.replace(/\\+/gi, '%2B');\n }\n override encodeValue(v: string): string {\n v = super.encodeValue(v);\n return v.replace(/\\+/gi, '%2B');\n }\n}\n\n","/**\n * Api Documentation\n * Api Documentation\n *\n * OpenAPI spec version: 1.0\n * \n *\n * NOTE: This class is auto generated by the swagger code generator program.\n * https://github.com/swagger-api/swagger-codegen.git\n * Do not edit the class manually.\n */\n/* tslint:disable:no-unused-variable member-ordering */\n\nimport { Inject, Injectable, Optional } from '@angular/core';\nimport { HttpClient, HttpHeaders, HttpParams,\n HttpResponse, HttpEvent } from '@angular/common/http';\nimport { CustomHttpUrlEncodingCodec } from '../encoder';\n\nimport { Observable } from 'rxjs';\n\nimport { AdvertiserAppSettingsDTO } from '../model/advertiserAppSettingsDTO';\nimport { AdvertiserCohortDTO } from '../model/advertiserCohortDTO';\nimport { AdvertiserPojo } from '../model/advertiserPojo';\nimport { ApiResponseObjectAdvertiserCohortResponseList } from '../model/apiResponseObjectAdvertiserCohortResponseList';\nimport { ApiResponseObjectAdvertiserCurrencyData } from '../model/apiResponseObjectAdvertiserCurrencyData';\nimport { ApiResponseObjectAdvertiserPojo } from '../model/apiResponseObjectAdvertiserPojo';\nimport { ApiResponseObjectAdvertiserSettings } from '../model/apiResponseObjectAdvertiserSettings';\nimport { ApiResponseObjectCohortCampaignStrategyResponse } from '../model/apiResponseObjectCohortCampaignStrategyResponse';\nimport { ApiResponseObjectMaplongResponseMessage } from '../model/apiResponseObjectMaplongResponseMessage';\nimport { ApiResponseObjectSkadTargetPrivileges } from '../model/apiResponseObjectSkadTargetPrivileges';\nimport { ApiResponseObjectTag } from '../model/apiResponseObjectTag';\nimport { ApiResponseObjectboolean } from '../model/apiResponseObjectboolean';\nimport { ApiResponseObjectstring } from '../model/apiResponseObjectstring';\nimport { SearchRequest } from '../model/searchRequest';\n\nimport { BASE_PATH, COLLECTION_FORMATS } from '../variables';\nimport { Configuration } from '../configuration';\n\n\n@Injectable()\nexport class AdvertiserControllerService {\n\n protected basePath = 'https://apiv2stage3.atomex.net';\n public defaultHeaders = new HttpHeaders();\n public configuration = new Configuration();\n\n constructor(protected httpClient: HttpClient, @Optional()@Inject(BASE_PATH) basePath: string, @Optional() configuration: Configuration) {\n if (basePath) {\n this.basePath = basePath;\n }\n if (configuration) {\n this.configuration = configuration;\n this.basePath = basePath || configuration.basePath || this.basePath;\n }\n }\n\n /**\n * @param consumes string[] mime-types\n * @return true: consumes contains 'multipart/form-data', false: otherwise\n */\n private canConsumeForm(consumes: string[]): boolean {\n const form = 'multipart/form-data';\n for (const consume of consumes) {\n if (form === consume) {\n return true;\n }\n }\n return false;\n }\n\n\n /**\n * activate Lists of Advertisers id\n * \n * @param commaSepratedIds commaSepratedIds\n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public activateAdvertiserUsingPOST(commaSepratedIds: string, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectMaplongResponseMessage>;\n public activateAdvertiserUsingPOST(commaSepratedIds: string, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectMaplongResponseMessage>>;\n public activateAdvertiserUsingPOST(commaSepratedIds: string, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectMaplongResponseMessage>>;\n public activateAdvertiserUsingPOST(commaSepratedIds: string, reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n if (commaSepratedIds === null || commaSepratedIds === undefined) {\n throw new Error('Required parameter commaSepratedIds was null or undefined when calling activateAdvertiserUsingPOST.');\n }\n\n\n\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\n if (commaSepratedIds !== undefined && commaSepratedIds !== null) {\n queryParameters = queryParameters.set('commaSepratedIds', <any>commaSepratedIds);\n }\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n 'application/json'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n 'application/json'\n ];\n\n return this.httpClient.post<ApiResponseObjectMaplongResponseMessage>(`${this.basePath}/v2/api/advertisers/activate`,\n null,\n {\n params: queryParameters,\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * Api to create Advertiser\n * \n * @param advertiser advertiser\n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public createAdvertiserUsingPOST(advertiser: AdvertiserPojo, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectAdvertiserPojo>;\n public createAdvertiserUsingPOST(advertiser: AdvertiserPojo, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectAdvertiserPojo>>;\n public createAdvertiserUsingPOST(advertiser: AdvertiserPojo, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectAdvertiserPojo>>;\n public createAdvertiserUsingPOST(advertiser: AdvertiserPojo, reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n if (advertiser === null || advertiser === undefined) {\n throw new Error('Required parameter advertiser was null or undefined when calling createAdvertiserUsingPOST.');\n }\n\n\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n 'application/json'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n 'application/json'\n ];\n const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);\n if (httpContentTypeSelected != undefined) {\n headers = headers.set('Content-Type', httpContentTypeSelected);\n }\n\n return this.httpClient.post<ApiResponseObjectAdvertiserPojo>(`${this.basePath}/v2/api/advertisers`,\n advertiser,\n {\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * deactivate Lists of Advertisers id\n * \n * @param commaSepratedIds commaSepratedIds\n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public deactivateAdvertiserUsingPOST(commaSepratedIds: string, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectMaplongResponseMessage>;\n public deactivateAdvertiserUsingPOST(commaSepratedIds: string, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectMaplongResponseMessage>>;\n public deactivateAdvertiserUsingPOST(commaSepratedIds: string, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectMaplongResponseMessage>>;\n public deactivateAdvertiserUsingPOST(commaSepratedIds: string, reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n if (commaSepratedIds === null || commaSepratedIds === undefined) {\n throw new Error('Required parameter commaSepratedIds was null or undefined when calling deactivateAdvertiserUsingPOST.');\n }\n\n\n\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\n if (commaSepratedIds !== undefined && commaSepratedIds !== null) {\n queryParameters = queryParameters.set('commaSepratedIds', <any>commaSepratedIds);\n }\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n 'application/json'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n 'application/json'\n ];\n\n return this.httpClient.post<ApiResponseObjectMaplongResponseMessage>(`${this.basePath}/v2/api/advertisers/deactivate`,\n null,\n {\n params: queryParameters,\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * get the data for individual graph under advertiser analytics page\n * \n * @param id id\n * @param type type\n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public getAdvertiserAnalyticsUsingGET(id: number, type: string, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectstring>;\n public getAdvertiserAnalyticsUsingGET(id: number, type: string, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectstring>>;\n public getAdvertiserAnalyticsUsingGET(id: number, type: string, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectstring>>;\n public getAdvertiserAnalyticsUsingGET(id: number, type: string, reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n if (id === null || id === undefined) {\n throw new Error('Required parameter id was null or undefined when calling getAdvertiserAnalyticsUsingGET.');\n }\n\n if (type === null || type === undefined) {\n throw new Error('Required parameter type was null or undefined when calling getAdvertiserAnalyticsUsingGET.');\n }\n\n\n\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\n if (type !== undefined && type !== null) {\n queryParameters = queryParameters.set('type', <any>type);\n }\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n 'application/json'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n ];\n\n return this.httpClient.get<ApiResponseObjectstring>(`${this.basePath}/v2/api/advertisers/${encodeURIComponent(String(id))}/analytics`,\n {\n params: queryParameters,\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * API to get cohort data for advertiser\n * \n * @param dto dto\n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public getAdvertiserCohortDetailsUsingPOST(dto: AdvertiserCohortDTO, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectAdvertiserCohortResponseList>;\n public getAdvertiserCohortDetailsUsingPOST(dto: AdvertiserCohortDTO, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectAdvertiserCohortResponseList>>;\n public getAdvertiserCohortDetailsUsingPOST(dto: AdvertiserCohortDTO, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectAdvertiserCohortResponseList>>;\n public getAdvertiserCohortDetailsUsingPOST(dto: AdvertiserCohortDTO, reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n if (dto === null || dto === undefined) {\n throw new Error('Required parameter dto was null or undefined when calling getAdvertiserCohortDetailsUsingPOST.');\n }\n\n\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n 'application/json'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n 'application/json'\n ];\n const httpContentTypeSelected: string | undefined = this.configuration.selectHeaderContentType(consumes);\n if (httpContentTypeSelected != undefined) {\n headers = headers.set('Content-Type', httpContentTypeSelected);\n }\n\n return this.httpClient.post<ApiResponseObjectAdvertiserCohortResponseList>(`${this.basePath}/v2/api/advertisers/cohort/details`,\n dto,\n {\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * get Advertiser Settings by Id\n * \n * @param id id\n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public getAdvertiserSettingsUsingGET(id: number, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectAdvertiserSettings>;\n public getAdvertiserSettingsUsingGET(id: number, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectAdvertiserSettings>>;\n public getAdvertiserSettingsUsingGET(id: number, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectAdvertiserSettings>>;\n public getAdvertiserSettingsUsingGET(id: number, reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n if (id === null || id === undefined) {\n throw new Error('Required parameter id was null or undefined when calling getAdvertiserSettingsUsingGET.');\n }\n\n\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n 'application/json'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n ];\n\n return this.httpClient.get<ApiResponseObjectAdvertiserSettings>(`${this.basePath}/v2/api/advertisers/settings/${encodeURIComponent(String(id))}`,\n {\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * get Advertiser by Id\n * \n * @param id id\n * @param refresh refresh\n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public getByIdUsingGET(id: number, refresh?: boolean, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectAdvertiserPojo>;\n public getByIdUsingGET(id: number, refresh?: boolean, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectAdvertiserPojo>>;\n public getByIdUsingGET(id: number, refresh?: boolean, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectAdvertiserPojo>>;\n public getByIdUsingGET(id: number, refresh?: boolean, reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n if (id === null || id === undefined) {\n throw new Error('Required parameter id was null or undefined when calling getByIdUsingGET.');\n }\n\n\n\n\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\n if (refresh !== undefined && refresh !== null) {\n queryParameters = queryParameters.set('refresh', <any>refresh);\n }\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n 'application/json'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n ];\n\n return this.httpClient.get<ApiResponseObjectAdvertiserPojo>(`${this.basePath}/v2/api/advertisers/${encodeURIComponent(String(id))}`,\n {\n params: queryParameters,\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * API to return Campaign or Strategy List for Cohort\n * \n * @param id id\n * @param type type\n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public getCampaignOrStrategyListForCohortUsingGET(id: number, type: string, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectCohortCampaignStrategyResponse>;\n public getCampaignOrStrategyListForCohortUsingGET(id: number, type: string, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectCohortCampaignStrategyResponse>>;\n public getCampaignOrStrategyListForCohortUsingGET(id: number, type: string, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectCohortCampaignStrategyResponse>>;\n public getCampaignOrStrategyListForCohortUsingGET(id: number, type: string, reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n if (id === null || id === undefined) {\n throw new Error('Required parameter id was null or undefined when calling getCampaignOrStrategyListForCohortUsingGET.');\n }\n\n if (type === null || type === undefined) {\n throw new Error('Required parameter type was null or undefined when calling getCampaignOrStrategyListForCohortUsingGET.');\n }\n\n\n\n let queryParameters = new HttpParams({encoder: new CustomHttpUrlEncodingCodec()});\n if (type !== undefined && type !== null) {\n queryParameters = queryParameters.set('type', <any>type);\n }\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n 'application/json'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n ];\n\n return this.httpClient.get<ApiResponseObjectCohortCampaignStrategyResponse>(`${this.basePath}/v2/api/advertisers/${encodeURIComponent(String(id))}/cohort/dimension/details`,\n {\n params: queryParameters,\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * API to check if advertiser has any cohort\n * \n * @param id id\n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public getIfAdvertiserCohortUsingGET(id: number, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectAdvertiserCurrencyData>;\n public getIfAdvertiserCohortUsingGET(id: number, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectAdvertiserCurrencyData>>;\n public getIfAdvertiserCohortUsingGET(id: number, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectAdvertiserCurrencyData>>;\n public getIfAdvertiserCohortUsingGET(id: number, reqId?: string, token?: string, observe: any = 'body', reportProgress: boolean = false ): Observable<any> {\n\n if (id === null || id === undefined) {\n throw new Error('Required parameter id was null or undefined when calling getIfAdvertiserCohortUsingGET.');\n }\n\n\n\n let headers = this.defaultHeaders;\n if (reqId !== undefined && reqId !== null) {\n headers = headers.set('reqId', String(reqId));\n }\n if (token !== undefined && token !== null) {\n headers = headers.set('token', String(token));\n }\n\n // to determine the Accept header\n let httpHeaderAccepts: string[] = [\n 'application/json'\n ];\n const httpHeaderAcceptSelected: string | undefined = this.configuration.selectHeaderAccept(httpHeaderAccepts);\n if (httpHeaderAcceptSelected != undefined) {\n headers = headers.set('Accept', httpHeaderAcceptSelected);\n }\n\n // to determine the Content-Type header\n const consumes: string[] = [\n ];\n\n return this.httpClient.get<ApiResponseObjectAdvertiserCurrencyData>(`${this.basePath}/v2/api/advertisers/${encodeURIComponent(String(id))}/cohort/check`,\n {\n withCredentials: this.configuration.withCredentials,\n headers: headers,\n observe: observe,\n reportProgress: reportProgress\n }\n );\n }\n\n /**\n * Fetch privileges for creating SKAD Target\n * \n * @param searchRequest searchRequest\n * @param advertiserId advertiserId\n * @param reqId request id\n * @param token Auth Token\n * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.\n * @param reportProgress flag to report request and response progress.\n */\n public getSkadTargetPrivilegesUsingPOST(searchRequest: SearchRequest, advertiserId?: number, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectSkadTargetPrivileges>;\n public getSkadTargetPrivilegesUsingPOST(searchRequest: SearchRequest, advertiserId?: number, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectSkadTargetPrivileges>>;\n public getSkadTargetPrivilegesUsingPOST(searchRequest: SearchRequest, advertiserId?: number, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Obse