@revxui/api-clients-ts
Version:
swagger client for @revxui/api-clients-ts
1 lines • 1.65 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/appsFlyerController.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/creativeSetsV2Controller.service.ts","../../api/creativeTemplateThemesController.service.ts","../../api/creativeTemplateVariablesController.service.ts","../../api/creativeTemplatesController.service.ts","../../api/customerReportingController.service.ts","../../api/dCOVideoSettingsController.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/safeguardController.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/abandonedSessionUserTargeting.ts","../../model/activityLogsCreativeSetsBulkUpdateDTO.ts","../../model/activityLogsStrategyBulkUpdateDTO.ts","../../model/adFormatCount.ts","../../model/adoPersonDetails.ts","../../model/advertiserAppSettingsDTO.ts","../../model/advertiserCohortDTO.ts","../../model/advertiserCohortResponse.ts","../../model/advertiserCurrencyData.ts","../../model/advertiserLayoutVariables.ts","../../model/advertiserSettings.ts","../../model/ageGroup.ts","../../model/apiResponseObjectListstring.ts","../../model/apiResponseObjectMaplongstring.ts","../../model/apiResponseObjectMapstringlong.ts","../../model/apiResponseObjectVoid.ts","../../model/apiResponseObjectboolean.ts","../../model/apiResponseObjectlong.ts","../../model/apiResponseObjectstring.ts","../../model/appSettingsDTO.ts","../../model/appSettingsPropertyDTO.ts","../../model/assetSelectionDTO.ts","../../model/auctionTypeEditField.ts","../../model/audienceAccessDTO.ts","../../model/audienceAnalysisRequest.ts","../../model/audienceBackFilledStats.ts","../../model/audienceBackfillQueryTemplateRequest.ts","../../model/audienceBackfillRequest.ts","../../model/audienceDTO.ts","../../model/audienceESDTO.ts","../../model/audiencePerformanceDTO.ts","../../model/auditChange.ts","../../model/auditMarker.ts","../../model/bIgIntegerEditFiled.ts","../../model/backfillAudienceQueryTemplateDTO.ts","../../model/bannerAdSuppDimensionsDTO.ts","../../model/baseModel.ts","../../model/baseModelWithCreativeSetType.ts","../../model/bidToConversionFilterDTO.ts","../../model/bigDecimalEditField.ts","../../model/booleanEditField.ts","../../model/budgetCheckStrategy.ts","../../model/budgetStatsDTO.ts","../../model/bulkstrategiesRequest.ts","../../model/bulkstrategiesValidationRequest.ts","../../model/bulkstrategiesValidationResponse.ts","../../model/cSSThemeEntity.ts","../../model/catalogFeed.ts","../../model/clickDestination.ts","../../model/clickDestinationAutomationUrls.ts","../../model/cohortCampaignStrategyDO.ts","../../model/combinedAudienceAnalysisResponse.ts","../../model/compareValues.ts","../../model/creative.ts","../../model/creativeAssetEntity.ts","../../model/creativeAssetOptimizationRequest.ts","../../model/creativeAssetUploadResponse.ts","../../model/creativeCompactDTO.ts","../../model/creativeDTO.ts","../../model/creativeDetails.ts","../../model/creativeEntity.ts","../../model/creativeFileForSet.ts","../../model/creativeFiles.ts","../../model/creativeHtmlFileForSet.ts","../../model/creativePerformanceData.ts","../../model/creativeSetDashboardMetric.ts","../../model/creativeSetDetails.ts","../../model/creativeSetPerformanceList.ts","../../model/creativeSetRequest.ts","../../model/creativeSetRescheduleRequest.ts","../../model/creativeSetResponse.ts","../../model/creativeSizeMappingDTO.ts","../../model/creativeTemplateDTO.ts","../../model/creativeTemplatesMetadataDTO.ts","../../model/cumulativeCohortData.ts","../../model/currencyModel.ts","../../model/customerReportingItemData.ts","../../model/customerReportingRequest.ts","../../model/dashboardFilters.ts","../../model/dashboardMetrics.ts","../../model/day.ts","../../model/dcoAttributesDTO.ts","../../model/dcoVideoActivateRequest.ts","../../model/dcoVideoActivateResponse.ts","../../model/dcoVideoAssetDTO.ts","../../model/dcoVideoBrandGuidelineDTO.ts","../../model/dcoVideoCatalogItemDTO.ts","../../model/dcoVideoDeleteResponse.ts","../../model/dcoVideoDimensionDTO.ts","../../model/dcoVideoErrorDTO.ts","../../model/dcoVideoGeneratedCountResponse.ts","../../model/dcoVideoMusicTrackDTO.ts","../../model/dcoVideoPaginationDTO.ts","../../model/dcoVideoTemplateRequirementsDTO.ts","../../model/dcoVideoUploadedAssetDTO.ts","../../model/dealESDTO.ts","../../model/deviceTargetModel.ts","../../model/dmpAudienceCriteria.ts","../../model/duplicateCampaignStrategyRequestDTO.ts","../../model/duplicateCreativeSetResponse.ts","../../model/durationModel.ts","../../model/durationStrModel.ts","../../model/dynamicVideoConfigDTO.ts","../../model/eResponseobject.ts","../../model/eligibleUsersRequest.ts","../../model/eligibleUsersResponse.ts","../../model/endCards.ts","../../model/experimentsEntity.ts","../../model/failedDTO.ts","../../model/failedStrategyDTO.ts","../../model/failedStrategyFieldsDTO.ts","../../model/fcapDetails.ts","../../model/fileDownloadResponse.ts","../../model/filterModel.ts","../../model/geoFenceDTO.ts","../../model/geoListRequest.ts","../../model/hotstarNativeFileRequest.ts","../../model/incrementalityReportDTO.ts","../../model/incrementalityReportResponse.ts","../../model/incrementalityTestDTO.ts","../../model/incrementalityTestDetails.ts","../../model/incrementalityTestReportCalculationDetails.ts","../../model/inputStream.ts","../../model/integerEditField.ts","../../model/jobResponse.ts","../../model/jsonNode.ts","../../model/lookAlikeAudienceConfigDTO.ts","../../model/macro.ts","../../model/maplongstring.ts","../../model/mapstringlong.ts","../../model/mapstringobject.ts","../../model/metaRuleDto.ts","../../model/modelError.ts","../../model/modelFile.ts","../../model/nameAndTitleModel.ts","../../model/nativeAsset.ts","../../model/nativeAssetPojo.ts","../../model/notificationResponse.ts","../../model/onDayCohortData.ts","../../model/optimizationJobItemStatusDTO.ts","../../model/optimizationJobStatusResponse.ts","../../model/optimizationRuleAuditLogDTO.ts","../../model/optimizationRuleDTO.ts","../../model/optimizationRuleResponse.ts","../../model/parentBasedObject.ts","../../model/pixelDataFileDTO.ts","../../model/platformAudienceDTO.ts","../../model/recencyTargetingDTO.ts","../../model/remoteFileDTO.ts","../../model/reportProperty.ts","../../model/reportRequest.ts","../../model/reportResponse.ts","../../model/reportingRequest.ts","../../model/reportingResponse.ts","../../model/reportingSchedulerResponse.ts","../../model/reportingSchedulerUserResponse.ts","../../model/responseMessage.ts","../../model/ruleComponentDTO.ts","../../model/ruleDTO.ts","../../model/ruleOperatorDto.ts","../../model/ruleValueDto.ts","../../model/safeguardBlockedItemDTO.ts","../../model/safeguardDetail.ts","../../model/safeguardExclusionDTO.ts","../../model/safeguardRequestDTO.ts","../../model/safeguardResponseDTO.ts","../../model/safeguardRuleMasterEntity.ts","../../model/schedulerRequest.ts","../../model/selectedTargetDTO.ts","../../model/siteListRequest.ts","../../model/siteModel.ts","../../model/size.ts","../../model/sizeWithPreview.ts","../../model/sliceXBudgetUtilisationResponse.ts","../../model/sliceXStaticMetaDataRequest.ts","../../model/sliceXStaticMetaDataResponse.ts","../../model/sliceXWinReachResponse.ts","../../model/slicexData.ts","../../model/sortModel.ts","../../model/statusBaseObject.ts","../../model/strategyDTO.ts","../../model/strategyInlineDTO.ts","../../model/strategyOptBlockTargetingReq.ts","../../model/strategyQuickEditDTO.ts","../../model/strategyRuleResponse.ts","../../model/strategyTargettingPerformanceData.ts","../../model/strategyTemplateDTO.ts","../../model/strategyTemplateResponse.ts","../../model/strategyUpdateResponse.ts","../../model/strategyWithCreativeSetsDAO.ts","../../model/stringEditField.ts","../../model/tag.ts","../../model/targetObject.ts","../../model/temperatureTargetingDTO.ts","../../model/templateThemeDTO.ts","../../model/templateVariablesDTO.ts","../../model/timeZoneDTO.ts","../../model/totalUniqueUserRequest.ts","../../model/uRI.ts","../../model/uRLStreamHandler.ts","../../model/userInfoEntity.ts","../../model/userPreferenceCategory.ts","../../model/variablesMappingDTO.ts","../../model/vastCreative.ts","../../model/videoAdTagVerifyRequest.ts","../../model/videoAsset.ts","../../model/videoAttributes.ts","../../model/videoProperties.ts","../../model/videoRewardedTypeTargeting.ts","../../model/videoTargeting.ts","../../model/weatherESDTO.ts","../../model/whitelabelingEntity.ts","../../model/widgetPerformanceMetrics.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://apiv2stage1.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 { ApiResponseObjectApiListResponseBaseModel } from '../model/apiResponseObjectApiListResponseBaseModel';\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://apiv2stage1.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 active advertisers without Slack channel configured for current licensee\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 getActiveAdvertisersWithoutSlackChannelUsingGET(reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectApiListResponseBaseModel>;\n public getActiveAdvertisersWithoutSlackChannelUsingGET(reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectApiListResponseBaseModel>>;\n public getActiveAdvertisersWithoutSlackChannelUsingGET(reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectApiListResponseBaseModel>>;\n public getActiveAdvertisersWithoutSlackChannelUsingGET(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 '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<ApiResponseObjectApiListResponseBaseModel>(`${this.basePath}/v2/api/advertisers/missing-slack-channel`,\n {\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