@revxui/intellibid-client-ts 1.0.68 → 1.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api/advertiserController.service.d.ts +137 -137
- package/api/api.d.ts +11 -11
- package/api/audienceController.service.d.ts +128 -128
- package/api/campaignController.service.d.ts +110 -127
- package/api/insightsController.service.d.ts +33 -33
- package/api/lookupDataController.service.d.ts +58 -58
- package/api.module.d.ts +11 -11
- package/configuration.d.ts +48 -48
- package/encoder.d.ts +10 -10
- package/esm2020/api/advertiserController.service.mjs +327 -327
- package/esm2020/api/api.mjs +11 -11
- package/esm2020/api/audienceController.service.mjs +326 -326
- package/esm2020/api/campaignController.service.mjs +297 -326
- package/esm2020/api/insightsController.service.mjs +107 -107
- package/esm2020/api/lookupDataController.service.mjs +134 -134
- package/esm2020/api.module.mjs +56 -56
- package/esm2020/configuration.mjs +58 -58
- package/esm2020/encoder.mjs +16 -16
- package/esm2020/index.mjs +5 -5
- package/esm2020/model/adAccountResponse.mjs +25 -25
- package/esm2020/model/advertiserMmpConversionEventResponse.mjs +12 -12
- package/esm2020/model/advertiserResponse.mjs +12 -12
- package/esm2020/model/advertiserSearchResponse.mjs +12 -12
- package/esm2020/model/audienceResponse.mjs +16 -16
- package/esm2020/model/blockedEventResponse.mjs +12 -12
- package/esm2020/model/businessZoneResponse.mjs +12 -12
- package/esm2020/model/campaignChangeLogResponse.mjs +23 -23
- package/esm2020/model/campaignInsightRecord.mjs +18 -18
- package/esm2020/model/campaignInsightsResponse.mjs +1 -1
- package/esm2020/model/campaignRequest.mjs +34 -34
- package/esm2020/model/campaignResponse.mjs +26 -26
- package/esm2020/model/campaignSearchResponse.mjs +12 -12
- package/esm2020/model/childAudience.mjs +37 -37
- package/esm2020/model/countryResponse.mjs +12 -12
- package/esm2020/model/createBlockedLiveAudienceRequest.mjs +21 -21
- package/esm2020/model/createBucketizedCustomAudienceRequest.mjs +36 -36
- package/esm2020/model/createBucketizedLiveAudienceRequest.mjs +25 -25
- package/esm2020/model/createDsCustomQueryAudienceRequest.mjs +32 -32
- package/esm2020/model/goalEventOptionDTO.mjs +13 -13
- package/esm2020/model/goalResponse.mjs +12 -12
- package/esm2020/model/models.mjs +37 -38
- package/esm2020/model/oSResponse.mjs +12 -12
- package/esm2020/model/pageAdvertiserResponse.mjs +2 -2
- package/esm2020/model/pageCampaignChangeLogResponse.mjs +2 -2
- package/esm2020/model/pageCampaignResponse.mjs +2 -2
- package/esm2020/model/pageableObject.mjs +1 -1
- package/esm2020/model/platformResponse.mjs +12 -12
- package/esm2020/model/productSetRequest.mjs +21 -21
- package/esm2020/model/productSetResponse.mjs +21 -21
- package/esm2020/model/scheduleUpdateRequest.mjs +18 -18
- package/esm2020/model/scheduledUpdates.mjs +12 -12
- package/esm2020/model/sortObject.mjs +12 -12
- package/esm2020/model/supportedGoalEventsResponseDTO.mjs +1 -1
- package/esm2020/model/updateAudienceNameRequest.mjs +21 -21
- package/esm2020/model/updateDsCustomQuerySqlRequest.mjs +21 -21
- package/esm2020/model/validateDsQueryRequest.mjs +12 -12
- package/esm2020/revxui-intellibid-client-ts.mjs +4 -4
- package/esm2020/variables.mjs +8 -8
- package/fesm2015/revxui-intellibid-client-ts.mjs +1661 -1690
- package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
- package/fesm2020/revxui-intellibid-client-ts.mjs +1788 -1829
- package/fesm2020/revxui-intellibid-client-ts.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/model/adAccountResponse.d.ts +32 -32
- package/model/advertiserMmpConversionEventResponse.d.ts +15 -15
- package/model/advertiserResponse.d.ts +32 -32
- package/model/advertiserSearchResponse.d.ts +16 -16
- package/model/audienceResponse.d.ts +45 -45
- package/model/blockedEventResponse.d.ts +15 -15
- package/model/businessZoneResponse.d.ts +17 -17
- package/model/campaignChangeLogResponse.d.ts +34 -34
- package/model/campaignInsightRecord.d.ts +56 -56
- package/model/campaignInsightsResponse.d.ts +16 -16
- package/model/campaignRequest.d.ts +55 -55
- package/model/campaignResponse.d.ts +75 -75
- package/model/campaignSearchResponse.d.ts +15 -15
- package/model/childAudience.d.ts +69 -69
- package/model/countryResponse.d.ts +18 -18
- package/model/createBlockedLiveAudienceRequest.d.ts +27 -27
- package/model/createBucketizedCustomAudienceRequest.d.ts +56 -56
- package/model/createBucketizedLiveAudienceRequest.d.ts +40 -40
- package/model/createDsCustomQueryAudienceRequest.d.ts +48 -48
- package/model/goalEventOptionDTO.d.ts +14 -15
- package/model/goalResponse.d.ts +15 -15
- package/model/models.d.ts +36 -37
- package/model/oSResponse.d.ts +15 -15
- package/model/pageAdvertiserResponse.d.ts +27 -27
- package/model/pageCampaignChangeLogResponse.d.ts +27 -27
- package/model/pageCampaignResponse.d.ts +27 -27
- package/model/pageableObject.d.ts +20 -20
- package/model/platformResponse.d.ts +15 -15
- package/model/productSetRequest.d.ts +27 -27
- package/model/productSetResponse.d.ts +27 -27
- package/model/scheduleUpdateRequest.d.ts +22 -22
- package/model/scheduledUpdates.d.ts +15 -15
- package/model/sortObject.d.ts +18 -18
- package/model/supportedGoalEventsResponseDTO.d.ts +19 -19
- package/model/updateAudienceNameRequest.d.ts +26 -26
- package/model/updateDsCustomQuerySqlRequest.d.ts +26 -26
- package/model/validateDsQueryRequest.d.ts +14 -14
- package/package.json +1 -1
- package/variables.d.ts +8 -8
- package/esm2020/model/goalRequest.mjs +0 -13
- package/model/goalRequest.d.ts +0 -17
|
@@ -3,1748 +3,1719 @@ import { InjectionToken, Injectable, Optional, Inject, NgModule, SkipSelf } from
|
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { HttpUrlEncodingCodec, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
5
5
|
|
|
6
|
-
/**
|
|
7
|
-
* CustomHttpUrlEncodingCodec
|
|
8
|
-
* Fix plus sign (+) not encoding, so sent as blank space
|
|
9
|
-
* See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
|
|
10
|
-
*/
|
|
11
|
-
class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {
|
|
12
|
-
encodeKey(k) {
|
|
13
|
-
k = super.encodeKey(k);
|
|
14
|
-
return k.replace(/\+/gi, '%2B');
|
|
15
|
-
}
|
|
16
|
-
encodeValue(v) {
|
|
17
|
-
v = super.encodeValue(v);
|
|
18
|
-
return v.replace(/\+/gi, '%2B');
|
|
19
|
-
}
|
|
6
|
+
/**
|
|
7
|
+
* CustomHttpUrlEncodingCodec
|
|
8
|
+
* Fix plus sign (+) not encoding, so sent as blank space
|
|
9
|
+
* See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
|
|
10
|
+
*/
|
|
11
|
+
class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {
|
|
12
|
+
encodeKey(k) {
|
|
13
|
+
k = super.encodeKey(k);
|
|
14
|
+
return k.replace(/\+/gi, '%2B');
|
|
15
|
+
}
|
|
16
|
+
encodeValue(v) {
|
|
17
|
+
v = super.encodeValue(v);
|
|
18
|
+
return v.replace(/\+/gi, '%2B');
|
|
19
|
+
}
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
const BASE_PATH = new InjectionToken('basePath');
|
|
23
|
-
const COLLECTION_FORMATS = {
|
|
24
|
-
'csv': ',',
|
|
25
|
-
'tsv': ' ',
|
|
26
|
-
'ssv': ' ',
|
|
27
|
-
'pipes': '|'
|
|
22
|
+
const BASE_PATH = new InjectionToken('basePath');
|
|
23
|
+
const COLLECTION_FORMATS = {
|
|
24
|
+
'csv': ',',
|
|
25
|
+
'tsv': ' ',
|
|
26
|
+
'ssv': ' ',
|
|
27
|
+
'pipes': '|'
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
class Configuration {
|
|
31
|
-
constructor(configurationParameters = {}) {
|
|
32
|
-
this.apiKeys = configurationParameters.apiKeys;
|
|
33
|
-
this.username = configurationParameters.username;
|
|
34
|
-
this.password = configurationParameters.password;
|
|
35
|
-
this.accessToken = configurationParameters.accessToken;
|
|
36
|
-
this.basePath = configurationParameters.basePath;
|
|
37
|
-
this.withCredentials = configurationParameters.withCredentials;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Select the correct content-type to use for a request.
|
|
41
|
-
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
42
|
-
* If no content type is found return the first found type if the contentTypes is not empty
|
|
43
|
-
* @param contentTypes - the array of content types that are available for selection
|
|
44
|
-
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
45
|
-
*/
|
|
46
|
-
selectHeaderContentType(contentTypes) {
|
|
47
|
-
if (contentTypes.length == 0) {
|
|
48
|
-
return undefined;
|
|
49
|
-
}
|
|
50
|
-
let type = contentTypes.find(x => this.isJsonMime(x));
|
|
51
|
-
if (type === undefined) {
|
|
52
|
-
return contentTypes[0];
|
|
53
|
-
}
|
|
54
|
-
return type;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Select the correct accept content-type to use for a request.
|
|
58
|
-
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
59
|
-
* If no content type is found return the first found type if the contentTypes is not empty
|
|
60
|
-
* @param accepts - the array of content types that are available for selection.
|
|
61
|
-
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
62
|
-
*/
|
|
63
|
-
selectHeaderAccept(accepts) {
|
|
64
|
-
if (accepts.length == 0) {
|
|
65
|
-
return undefined;
|
|
66
|
-
}
|
|
67
|
-
let type = accepts.find(x => this.isJsonMime(x));
|
|
68
|
-
if (type === undefined) {
|
|
69
|
-
return accepts[0];
|
|
70
|
-
}
|
|
71
|
-
return type;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Check if the given MIME is a JSON MIME.
|
|
75
|
-
* JSON MIME examples:
|
|
76
|
-
* application/json
|
|
77
|
-
* application/json; charset=UTF8
|
|
78
|
-
* APPLICATION/JSON
|
|
79
|
-
* application/vnd.company+json
|
|
80
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
81
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
82
|
-
*/
|
|
83
|
-
isJsonMime(mime) {
|
|
84
|
-
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
85
|
-
return mime != null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
86
|
-
}
|
|
30
|
+
class Configuration {
|
|
31
|
+
constructor(configurationParameters = {}) {
|
|
32
|
+
this.apiKeys = configurationParameters.apiKeys;
|
|
33
|
+
this.username = configurationParameters.username;
|
|
34
|
+
this.password = configurationParameters.password;
|
|
35
|
+
this.accessToken = configurationParameters.accessToken;
|
|
36
|
+
this.basePath = configurationParameters.basePath;
|
|
37
|
+
this.withCredentials = configurationParameters.withCredentials;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Select the correct content-type to use for a request.
|
|
41
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
42
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
43
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
44
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
45
|
+
*/
|
|
46
|
+
selectHeaderContentType(contentTypes) {
|
|
47
|
+
if (contentTypes.length == 0) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
let type = contentTypes.find(x => this.isJsonMime(x));
|
|
51
|
+
if (type === undefined) {
|
|
52
|
+
return contentTypes[0];
|
|
53
|
+
}
|
|
54
|
+
return type;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Select the correct accept content-type to use for a request.
|
|
58
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
59
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
60
|
+
* @param accepts - the array of content types that are available for selection.
|
|
61
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
62
|
+
*/
|
|
63
|
+
selectHeaderAccept(accepts) {
|
|
64
|
+
if (accepts.length == 0) {
|
|
65
|
+
return undefined;
|
|
66
|
+
}
|
|
67
|
+
let type = accepts.find(x => this.isJsonMime(x));
|
|
68
|
+
if (type === undefined) {
|
|
69
|
+
return accepts[0];
|
|
70
|
+
}
|
|
71
|
+
return type;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Check if the given MIME is a JSON MIME.
|
|
75
|
+
* JSON MIME examples:
|
|
76
|
+
* application/json
|
|
77
|
+
* application/json; charset=UTF8
|
|
78
|
+
* APPLICATION/JSON
|
|
79
|
+
* application/vnd.company+json
|
|
80
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
81
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
82
|
+
*/
|
|
83
|
+
isJsonMime(mime) {
|
|
84
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
85
|
+
return mime != null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
86
|
+
}
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
/**
|
|
90
|
-
* Intellibid API
|
|
91
|
-
* API documentation for the Intellibid platform
|
|
92
|
-
*
|
|
93
|
-
* OpenAPI spec version: 1.0
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
97
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
98
|
-
* Do not edit the class manually.
|
|
99
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
100
|
-
class AdvertiserControllerService {
|
|
101
|
-
constructor(httpClient, basePath, configuration) {
|
|
102
|
-
this.httpClient = httpClient;
|
|
103
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
104
|
-
this.defaultHeaders = new HttpHeaders();
|
|
105
|
-
this.configuration = new Configuration();
|
|
106
|
-
if (basePath) {
|
|
107
|
-
this.basePath = basePath;
|
|
108
|
-
}
|
|
109
|
-
if (configuration) {
|
|
110
|
-
this.configuration = configuration;
|
|
111
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* @param consumes string[] mime-types
|
|
116
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
117
|
-
*/
|
|
118
|
-
canConsumeForm(consumes) {
|
|
119
|
-
const form = 'multipart/form-data';
|
|
120
|
-
for (const consume of consumes) {
|
|
121
|
-
if (form === consume) {
|
|
122
|
-
return true;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return false;
|
|
126
|
-
}
|
|
127
|
-
addProductSet(body, id, observe = 'body', reportProgress = false) {
|
|
128
|
-
if (body === null || body === undefined) {
|
|
129
|
-
throw new Error('Required parameter body was null or undefined when calling addProductSet.');
|
|
130
|
-
}
|
|
131
|
-
if (id === null || id === undefined) {
|
|
132
|
-
throw new Error('Required parameter id was null or undefined when calling addProductSet.');
|
|
133
|
-
}
|
|
134
|
-
let headers = this.defaultHeaders;
|
|
135
|
-
// to determine the Accept header
|
|
136
|
-
let httpHeaderAccepts = [
|
|
137
|
-
'*/*'
|
|
138
|
-
];
|
|
139
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
140
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
141
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
142
|
-
}
|
|
143
|
-
// to determine the Content-Type header
|
|
144
|
-
const consumes = [
|
|
145
|
-
'application/json'
|
|
146
|
-
];
|
|
147
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
148
|
-
if (httpContentTypeSelected != undefined) {
|
|
149
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
150
|
-
}
|
|
151
|
-
return this.httpClient.request('post', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/product-sets`, {
|
|
152
|
-
body: body,
|
|
153
|
-
withCredentials: this.configuration.withCredentials,
|
|
154
|
-
headers: headers,
|
|
155
|
-
observe: observe,
|
|
156
|
-
reportProgress: reportProgress
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
getAdAccounts(id, observe = 'body', reportProgress = false) {
|
|
160
|
-
if (id === null || id === undefined) {
|
|
161
|
-
throw new Error('Required parameter id was null or undefined when calling getAdAccounts.');
|
|
162
|
-
}
|
|
163
|
-
let headers = this.defaultHeaders;
|
|
164
|
-
// to determine the Accept header
|
|
165
|
-
let httpHeaderAccepts = [
|
|
166
|
-
'*/*'
|
|
167
|
-
];
|
|
168
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
169
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
170
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
171
|
-
}
|
|
172
|
-
// to determine the Content-Type header
|
|
173
|
-
const consumes = [];
|
|
174
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/ad-accounts`, {
|
|
175
|
-
withCredentials: this.configuration.withCredentials,
|
|
176
|
-
headers: headers,
|
|
177
|
-
observe: observe,
|
|
178
|
-
reportProgress: reportProgress
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
getAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
182
|
-
if (id === null || id === undefined) {
|
|
183
|
-
throw new Error('Required parameter id was null or undefined when calling getAdvertiser.');
|
|
184
|
-
}
|
|
185
|
-
let headers = this.defaultHeaders;
|
|
186
|
-
// to determine the Accept header
|
|
187
|
-
let httpHeaderAccepts = [
|
|
188
|
-
'*/*'
|
|
189
|
-
];
|
|
190
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
191
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
192
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
193
|
-
}
|
|
194
|
-
// to determine the Content-Type header
|
|
195
|
-
const consumes = [];
|
|
196
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}`, {
|
|
197
|
-
withCredentials: this.configuration.withCredentials,
|
|
198
|
-
headers: headers,
|
|
199
|
-
observe: observe,
|
|
200
|
-
reportProgress: reportProgress
|
|
201
|
-
});
|
|
202
|
-
}
|
|
203
|
-
getAllAdvertisers(name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
|
|
204
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
205
|
-
if (name !== undefined && name !== null) {
|
|
206
|
-
queryParameters = queryParameters.set('name', name);
|
|
207
|
-
}
|
|
208
|
-
if (isActive !== undefined && isActive !== null) {
|
|
209
|
-
queryParameters = queryParameters.set('isActive', isActive);
|
|
210
|
-
}
|
|
211
|
-
if (page !== undefined && page !== null) {
|
|
212
|
-
queryParameters = queryParameters.set('page', page);
|
|
213
|
-
}
|
|
214
|
-
if (size !== undefined && size !== null) {
|
|
215
|
-
queryParameters = queryParameters.set('size', size);
|
|
216
|
-
}
|
|
217
|
-
if (sort) {
|
|
218
|
-
sort.forEach((element) => {
|
|
219
|
-
queryParameters = queryParameters.append('sort', element);
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
let headers = this.defaultHeaders;
|
|
223
|
-
// to determine the Accept header
|
|
224
|
-
let httpHeaderAccepts = [
|
|
225
|
-
'*/*'
|
|
226
|
-
];
|
|
227
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
228
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
229
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
230
|
-
}
|
|
231
|
-
// to determine the Content-Type header
|
|
232
|
-
const consumes = [];
|
|
233
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser`, {
|
|
234
|
-
params: queryParameters,
|
|
235
|
-
withCredentials: this.configuration.withCredentials,
|
|
236
|
-
headers: headers,
|
|
237
|
-
observe: observe,
|
|
238
|
-
reportProgress: reportProgress
|
|
239
|
-
});
|
|
240
|
-
}
|
|
241
|
-
getBlockedEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
242
|
-
if (id === null || id === undefined) {
|
|
243
|
-
throw new Error('Required parameter id was null or undefined when calling getBlockedEventsByAdvertiser.');
|
|
244
|
-
}
|
|
245
|
-
let headers = this.defaultHeaders;
|
|
246
|
-
// to determine the Accept header
|
|
247
|
-
let httpHeaderAccepts = [
|
|
248
|
-
'*/*'
|
|
249
|
-
];
|
|
250
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
251
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
252
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
253
|
-
}
|
|
254
|
-
// to determine the Content-Type header
|
|
255
|
-
const consumes = [];
|
|
256
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/blocked-events`, {
|
|
257
|
-
withCredentials: this.configuration.withCredentials,
|
|
258
|
-
headers: headers,
|
|
259
|
-
observe: observe,
|
|
260
|
-
reportProgress: reportProgress
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
getGoalsByAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
264
|
-
if (id === null || id === undefined) {
|
|
265
|
-
throw new Error('Required parameter id was null or undefined when calling getGoalsByAdvertiser.');
|
|
266
|
-
}
|
|
267
|
-
let headers = this.defaultHeaders;
|
|
268
|
-
// to determine the Accept header
|
|
269
|
-
let httpHeaderAccepts = [
|
|
270
|
-
'*/*'
|
|
271
|
-
];
|
|
272
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
273
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
274
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
275
|
-
}
|
|
276
|
-
// to determine the Content-Type header
|
|
277
|
-
const consumes = [];
|
|
278
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/goals`, {
|
|
279
|
-
withCredentials: this.configuration.withCredentials,
|
|
280
|
-
headers: headers,
|
|
281
|
-
observe: observe,
|
|
282
|
-
reportProgress: reportProgress
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
getMMPConversionEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
286
|
-
if (id === null || id === undefined) {
|
|
287
|
-
throw new Error('Required parameter id was null or undefined when calling getMMPConversionEventsByAdvertiser.');
|
|
288
|
-
}
|
|
289
|
-
let headers = this.defaultHeaders;
|
|
290
|
-
// to determine the Accept header
|
|
291
|
-
let httpHeaderAccepts = [
|
|
292
|
-
'*/*'
|
|
293
|
-
];
|
|
294
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
295
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
296
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
297
|
-
}
|
|
298
|
-
// to determine the Content-Type header
|
|
299
|
-
const consumes = [];
|
|
300
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/mmp-conversion-events`, {
|
|
301
|
-
withCredentials: this.configuration.withCredentials,
|
|
302
|
-
headers: headers,
|
|
303
|
-
observe: observe,
|
|
304
|
-
reportProgress: reportProgress
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
getProductSets(id, sourcePlatform, adAccountId, observe = 'body', reportProgress = false) {
|
|
308
|
-
if (id === null || id === undefined) {
|
|
309
|
-
throw new Error('Required parameter id was null or undefined when calling getProductSets.');
|
|
310
|
-
}
|
|
311
|
-
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
312
|
-
throw new Error('Required parameter sourcePlatform was null or undefined when calling getProductSets.');
|
|
313
|
-
}
|
|
314
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
315
|
-
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
316
|
-
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
317
|
-
}
|
|
318
|
-
if (adAccountId !== undefined && adAccountId !== null) {
|
|
319
|
-
queryParameters = queryParameters.set('adAccountId', adAccountId);
|
|
320
|
-
}
|
|
321
|
-
let headers = this.defaultHeaders;
|
|
322
|
-
// to determine the Accept header
|
|
323
|
-
let httpHeaderAccepts = [
|
|
324
|
-
'*/*'
|
|
325
|
-
];
|
|
326
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
327
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
328
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
329
|
-
}
|
|
330
|
-
// to determine the Content-Type header
|
|
331
|
-
const consumes = [];
|
|
332
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/product-sets`, {
|
|
333
|
-
params: queryParameters,
|
|
334
|
-
withCredentials: this.configuration.withCredentials,
|
|
335
|
-
headers: headers,
|
|
336
|
-
observe: observe,
|
|
337
|
-
reportProgress: reportProgress
|
|
338
|
-
});
|
|
339
|
-
}
|
|
340
|
-
getSupportedGoalEvents(advertiserId, platform, adAccountId, observe = 'body', reportProgress = false) {
|
|
341
|
-
if (advertiserId === null || advertiserId === undefined) {
|
|
342
|
-
throw new Error('Required parameter advertiserId was null or undefined when calling getSupportedGoalEvents.');
|
|
343
|
-
}
|
|
344
|
-
if (platform === null || platform === undefined) {
|
|
345
|
-
throw new Error('Required parameter platform was null or undefined when calling getSupportedGoalEvents.');
|
|
346
|
-
}
|
|
347
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
348
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling getSupportedGoalEvents.');
|
|
349
|
-
}
|
|
350
|
-
let headers = this.defaultHeaders;
|
|
351
|
-
// to determine the Accept header
|
|
352
|
-
let httpHeaderAccepts = [
|
|
353
|
-
'*/*'
|
|
354
|
-
];
|
|
355
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
356
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
357
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
358
|
-
}
|
|
359
|
-
// to determine the Content-Type header
|
|
360
|
-
const consumes = [];
|
|
361
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser/advertisers/${encodeURIComponent(String(advertiserId))}/platforms/${encodeURIComponent(String(platform))}/ad-accounts/${encodeURIComponent(String(adAccountId))}/goal-events`, {
|
|
362
|
-
withCredentials: this.configuration.withCredentials,
|
|
363
|
-
headers: headers,
|
|
364
|
-
observe: observe,
|
|
365
|
-
reportProgress: reportProgress
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
searchAdvertisers(q, observe = 'body', reportProgress = false) {
|
|
369
|
-
if (q === null || q === undefined) {
|
|
370
|
-
throw new Error('Required parameter q was null or undefined when calling searchAdvertisers.');
|
|
371
|
-
}
|
|
372
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
373
|
-
if (q !== undefined && q !== null) {
|
|
374
|
-
queryParameters = queryParameters.set('q', q);
|
|
375
|
-
}
|
|
376
|
-
let headers = this.defaultHeaders;
|
|
377
|
-
// to determine the Accept header
|
|
378
|
-
let httpHeaderAccepts = [
|
|
379
|
-
'*/*'
|
|
380
|
-
];
|
|
381
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
382
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
383
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
384
|
-
}
|
|
385
|
-
// to determine the Content-Type header
|
|
386
|
-
const consumes = [];
|
|
387
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser/search`, {
|
|
388
|
-
params: queryParameters,
|
|
389
|
-
withCredentials: this.configuration.withCredentials,
|
|
390
|
-
headers: headers,
|
|
391
|
-
observe: observe,
|
|
392
|
-
reportProgress: reportProgress
|
|
393
|
-
});
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
AdvertiserControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
397
|
-
AdvertiserControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService });
|
|
398
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService, decorators: [{
|
|
399
|
-
type: Injectable
|
|
400
|
-
}], ctorParameters: function () {
|
|
401
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
402
|
-
type: Optional
|
|
403
|
-
}, {
|
|
404
|
-
type: Inject,
|
|
405
|
-
args: [BASE_PATH]
|
|
406
|
-
}] }, { type: Configuration, decorators: [{
|
|
407
|
-
type: Optional
|
|
408
|
-
}] }];
|
|
89
|
+
/**
|
|
90
|
+
* Intellibid API
|
|
91
|
+
* API documentation for the Intellibid platform
|
|
92
|
+
*
|
|
93
|
+
* OpenAPI spec version: 1.0
|
|
94
|
+
*
|
|
95
|
+
*
|
|
96
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
97
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
98
|
+
* Do not edit the class manually.
|
|
99
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
100
|
+
class AdvertiserControllerService {
|
|
101
|
+
constructor(httpClient, basePath, configuration) {
|
|
102
|
+
this.httpClient = httpClient;
|
|
103
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
104
|
+
this.defaultHeaders = new HttpHeaders();
|
|
105
|
+
this.configuration = new Configuration();
|
|
106
|
+
if (basePath) {
|
|
107
|
+
this.basePath = basePath;
|
|
108
|
+
}
|
|
109
|
+
if (configuration) {
|
|
110
|
+
this.configuration = configuration;
|
|
111
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* @param consumes string[] mime-types
|
|
116
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
117
|
+
*/
|
|
118
|
+
canConsumeForm(consumes) {
|
|
119
|
+
const form = 'multipart/form-data';
|
|
120
|
+
for (const consume of consumes) {
|
|
121
|
+
if (form === consume) {
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
addProductSet(body, id, observe = 'body', reportProgress = false) {
|
|
128
|
+
if (body === null || body === undefined) {
|
|
129
|
+
throw new Error('Required parameter body was null or undefined when calling addProductSet.');
|
|
130
|
+
}
|
|
131
|
+
if (id === null || id === undefined) {
|
|
132
|
+
throw new Error('Required parameter id was null or undefined when calling addProductSet.');
|
|
133
|
+
}
|
|
134
|
+
let headers = this.defaultHeaders;
|
|
135
|
+
// to determine the Accept header
|
|
136
|
+
let httpHeaderAccepts = [
|
|
137
|
+
'*/*'
|
|
138
|
+
];
|
|
139
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
140
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
141
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
142
|
+
}
|
|
143
|
+
// to determine the Content-Type header
|
|
144
|
+
const consumes = [
|
|
145
|
+
'application/json'
|
|
146
|
+
];
|
|
147
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
148
|
+
if (httpContentTypeSelected != undefined) {
|
|
149
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
150
|
+
}
|
|
151
|
+
return this.httpClient.request('post', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/product-sets`, {
|
|
152
|
+
body: body,
|
|
153
|
+
withCredentials: this.configuration.withCredentials,
|
|
154
|
+
headers: headers,
|
|
155
|
+
observe: observe,
|
|
156
|
+
reportProgress: reportProgress
|
|
157
|
+
});
|
|
158
|
+
}
|
|
159
|
+
getAdAccounts(id, observe = 'body', reportProgress = false) {
|
|
160
|
+
if (id === null || id === undefined) {
|
|
161
|
+
throw new Error('Required parameter id was null or undefined when calling getAdAccounts.');
|
|
162
|
+
}
|
|
163
|
+
let headers = this.defaultHeaders;
|
|
164
|
+
// to determine the Accept header
|
|
165
|
+
let httpHeaderAccepts = [
|
|
166
|
+
'*/*'
|
|
167
|
+
];
|
|
168
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
169
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
170
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
171
|
+
}
|
|
172
|
+
// to determine the Content-Type header
|
|
173
|
+
const consumes = [];
|
|
174
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/ad-accounts`, {
|
|
175
|
+
withCredentials: this.configuration.withCredentials,
|
|
176
|
+
headers: headers,
|
|
177
|
+
observe: observe,
|
|
178
|
+
reportProgress: reportProgress
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
getAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
182
|
+
if (id === null || id === undefined) {
|
|
183
|
+
throw new Error('Required parameter id was null or undefined when calling getAdvertiser.');
|
|
184
|
+
}
|
|
185
|
+
let headers = this.defaultHeaders;
|
|
186
|
+
// to determine the Accept header
|
|
187
|
+
let httpHeaderAccepts = [
|
|
188
|
+
'*/*'
|
|
189
|
+
];
|
|
190
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
191
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
192
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
193
|
+
}
|
|
194
|
+
// to determine the Content-Type header
|
|
195
|
+
const consumes = [];
|
|
196
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}`, {
|
|
197
|
+
withCredentials: this.configuration.withCredentials,
|
|
198
|
+
headers: headers,
|
|
199
|
+
observe: observe,
|
|
200
|
+
reportProgress: reportProgress
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
getAllAdvertisers(name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
|
|
204
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
205
|
+
if (name !== undefined && name !== null) {
|
|
206
|
+
queryParameters = queryParameters.set('name', name);
|
|
207
|
+
}
|
|
208
|
+
if (isActive !== undefined && isActive !== null) {
|
|
209
|
+
queryParameters = queryParameters.set('isActive', isActive);
|
|
210
|
+
}
|
|
211
|
+
if (page !== undefined && page !== null) {
|
|
212
|
+
queryParameters = queryParameters.set('page', page);
|
|
213
|
+
}
|
|
214
|
+
if (size !== undefined && size !== null) {
|
|
215
|
+
queryParameters = queryParameters.set('size', size);
|
|
216
|
+
}
|
|
217
|
+
if (sort) {
|
|
218
|
+
sort.forEach((element) => {
|
|
219
|
+
queryParameters = queryParameters.append('sort', element);
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
let headers = this.defaultHeaders;
|
|
223
|
+
// to determine the Accept header
|
|
224
|
+
let httpHeaderAccepts = [
|
|
225
|
+
'*/*'
|
|
226
|
+
];
|
|
227
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
228
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
229
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
230
|
+
}
|
|
231
|
+
// to determine the Content-Type header
|
|
232
|
+
const consumes = [];
|
|
233
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser`, {
|
|
234
|
+
params: queryParameters,
|
|
235
|
+
withCredentials: this.configuration.withCredentials,
|
|
236
|
+
headers: headers,
|
|
237
|
+
observe: observe,
|
|
238
|
+
reportProgress: reportProgress
|
|
239
|
+
});
|
|
240
|
+
}
|
|
241
|
+
getBlockedEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
242
|
+
if (id === null || id === undefined) {
|
|
243
|
+
throw new Error('Required parameter id was null or undefined when calling getBlockedEventsByAdvertiser.');
|
|
244
|
+
}
|
|
245
|
+
let headers = this.defaultHeaders;
|
|
246
|
+
// to determine the Accept header
|
|
247
|
+
let httpHeaderAccepts = [
|
|
248
|
+
'*/*'
|
|
249
|
+
];
|
|
250
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
251
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
252
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
253
|
+
}
|
|
254
|
+
// to determine the Content-Type header
|
|
255
|
+
const consumes = [];
|
|
256
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/blocked-events`, {
|
|
257
|
+
withCredentials: this.configuration.withCredentials,
|
|
258
|
+
headers: headers,
|
|
259
|
+
observe: observe,
|
|
260
|
+
reportProgress: reportProgress
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
getGoalsByAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
264
|
+
if (id === null || id === undefined) {
|
|
265
|
+
throw new Error('Required parameter id was null or undefined when calling getGoalsByAdvertiser.');
|
|
266
|
+
}
|
|
267
|
+
let headers = this.defaultHeaders;
|
|
268
|
+
// to determine the Accept header
|
|
269
|
+
let httpHeaderAccepts = [
|
|
270
|
+
'*/*'
|
|
271
|
+
];
|
|
272
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
273
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
274
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
275
|
+
}
|
|
276
|
+
// to determine the Content-Type header
|
|
277
|
+
const consumes = [];
|
|
278
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/goals`, {
|
|
279
|
+
withCredentials: this.configuration.withCredentials,
|
|
280
|
+
headers: headers,
|
|
281
|
+
observe: observe,
|
|
282
|
+
reportProgress: reportProgress
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
getMMPConversionEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
286
|
+
if (id === null || id === undefined) {
|
|
287
|
+
throw new Error('Required parameter id was null or undefined when calling getMMPConversionEventsByAdvertiser.');
|
|
288
|
+
}
|
|
289
|
+
let headers = this.defaultHeaders;
|
|
290
|
+
// to determine the Accept header
|
|
291
|
+
let httpHeaderAccepts = [
|
|
292
|
+
'*/*'
|
|
293
|
+
];
|
|
294
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
295
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
296
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
297
|
+
}
|
|
298
|
+
// to determine the Content-Type header
|
|
299
|
+
const consumes = [];
|
|
300
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/mmp-conversion-events`, {
|
|
301
|
+
withCredentials: this.configuration.withCredentials,
|
|
302
|
+
headers: headers,
|
|
303
|
+
observe: observe,
|
|
304
|
+
reportProgress: reportProgress
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
getProductSets(id, sourcePlatform, adAccountId, observe = 'body', reportProgress = false) {
|
|
308
|
+
if (id === null || id === undefined) {
|
|
309
|
+
throw new Error('Required parameter id was null or undefined when calling getProductSets.');
|
|
310
|
+
}
|
|
311
|
+
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
312
|
+
throw new Error('Required parameter sourcePlatform was null or undefined when calling getProductSets.');
|
|
313
|
+
}
|
|
314
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
315
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
316
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
317
|
+
}
|
|
318
|
+
if (adAccountId !== undefined && adAccountId !== null) {
|
|
319
|
+
queryParameters = queryParameters.set('adAccountId', adAccountId);
|
|
320
|
+
}
|
|
321
|
+
let headers = this.defaultHeaders;
|
|
322
|
+
// to determine the Accept header
|
|
323
|
+
let httpHeaderAccepts = [
|
|
324
|
+
'*/*'
|
|
325
|
+
];
|
|
326
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
327
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
328
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
329
|
+
}
|
|
330
|
+
// to determine the Content-Type header
|
|
331
|
+
const consumes = [];
|
|
332
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/product-sets`, {
|
|
333
|
+
params: queryParameters,
|
|
334
|
+
withCredentials: this.configuration.withCredentials,
|
|
335
|
+
headers: headers,
|
|
336
|
+
observe: observe,
|
|
337
|
+
reportProgress: reportProgress
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
getSupportedGoalEvents(advertiserId, platform, adAccountId, observe = 'body', reportProgress = false) {
|
|
341
|
+
if (advertiserId === null || advertiserId === undefined) {
|
|
342
|
+
throw new Error('Required parameter advertiserId was null or undefined when calling getSupportedGoalEvents.');
|
|
343
|
+
}
|
|
344
|
+
if (platform === null || platform === undefined) {
|
|
345
|
+
throw new Error('Required parameter platform was null or undefined when calling getSupportedGoalEvents.');
|
|
346
|
+
}
|
|
347
|
+
if (adAccountId === null || adAccountId === undefined) {
|
|
348
|
+
throw new Error('Required parameter adAccountId was null or undefined when calling getSupportedGoalEvents.');
|
|
349
|
+
}
|
|
350
|
+
let headers = this.defaultHeaders;
|
|
351
|
+
// to determine the Accept header
|
|
352
|
+
let httpHeaderAccepts = [
|
|
353
|
+
'*/*'
|
|
354
|
+
];
|
|
355
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
356
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
357
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
358
|
+
}
|
|
359
|
+
// to determine the Content-Type header
|
|
360
|
+
const consumes = [];
|
|
361
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/advertisers/${encodeURIComponent(String(advertiserId))}/platforms/${encodeURIComponent(String(platform))}/ad-accounts/${encodeURIComponent(String(adAccountId))}/goal-events`, {
|
|
362
|
+
withCredentials: this.configuration.withCredentials,
|
|
363
|
+
headers: headers,
|
|
364
|
+
observe: observe,
|
|
365
|
+
reportProgress: reportProgress
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
searchAdvertisers(q, observe = 'body', reportProgress = false) {
|
|
369
|
+
if (q === null || q === undefined) {
|
|
370
|
+
throw new Error('Required parameter q was null or undefined when calling searchAdvertisers.');
|
|
371
|
+
}
|
|
372
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
373
|
+
if (q !== undefined && q !== null) {
|
|
374
|
+
queryParameters = queryParameters.set('q', q);
|
|
375
|
+
}
|
|
376
|
+
let headers = this.defaultHeaders;
|
|
377
|
+
// to determine the Accept header
|
|
378
|
+
let httpHeaderAccepts = [
|
|
379
|
+
'*/*'
|
|
380
|
+
];
|
|
381
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
382
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
383
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
384
|
+
}
|
|
385
|
+
// to determine the Content-Type header
|
|
386
|
+
const consumes = [];
|
|
387
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/search`, {
|
|
388
|
+
params: queryParameters,
|
|
389
|
+
withCredentials: this.configuration.withCredentials,
|
|
390
|
+
headers: headers,
|
|
391
|
+
observe: observe,
|
|
392
|
+
reportProgress: reportProgress
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
AdvertiserControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
397
|
+
AdvertiserControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService });
|
|
398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService, decorators: [{
|
|
399
|
+
type: Injectable
|
|
400
|
+
}], ctorParameters: function () {
|
|
401
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
402
|
+
type: Optional
|
|
403
|
+
}, {
|
|
404
|
+
type: Inject,
|
|
405
|
+
args: [BASE_PATH]
|
|
406
|
+
}] }, { type: Configuration, decorators: [{
|
|
407
|
+
type: Optional
|
|
408
|
+
}] }];
|
|
409
409
|
} });
|
|
410
410
|
|
|
411
|
-
/**
|
|
412
|
-
* Intellibid API
|
|
413
|
-
* API documentation for the Intellibid platform
|
|
414
|
-
*
|
|
415
|
-
* OpenAPI spec version: 1.0
|
|
416
|
-
*
|
|
417
|
-
*
|
|
418
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
419
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
420
|
-
* Do not edit the class manually.
|
|
421
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
422
|
-
class AudienceControllerService {
|
|
423
|
-
constructor(httpClient, basePath, configuration) {
|
|
424
|
-
this.httpClient = httpClient;
|
|
425
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
426
|
-
this.defaultHeaders = new HttpHeaders();
|
|
427
|
-
this.configuration = new Configuration();
|
|
428
|
-
if (basePath) {
|
|
429
|
-
this.basePath = basePath;
|
|
430
|
-
}
|
|
431
|
-
if (configuration) {
|
|
432
|
-
this.configuration = configuration;
|
|
433
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* @param consumes string[] mime-types
|
|
438
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
439
|
-
*/
|
|
440
|
-
canConsumeForm(consumes) {
|
|
441
|
-
const form = 'multipart/form-data';
|
|
442
|
-
for (const consume of consumes) {
|
|
443
|
-
if (form === consume) {
|
|
444
|
-
return true;
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
return false;
|
|
448
|
-
}
|
|
449
|
-
createBlockedLiveAudience(body, observe = 'body', reportProgress = false) {
|
|
450
|
-
if (body === null || body === undefined) {
|
|
451
|
-
throw new Error('Required parameter body was null or undefined when calling createBlockedLiveAudience.');
|
|
452
|
-
}
|
|
453
|
-
let headers = this.defaultHeaders;
|
|
454
|
-
// to determine the Accept header
|
|
455
|
-
let httpHeaderAccepts = [
|
|
456
|
-
'*/*'
|
|
457
|
-
];
|
|
458
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
459
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
460
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
461
|
-
}
|
|
462
|
-
// to determine the Content-Type header
|
|
463
|
-
const consumes = [
|
|
464
|
-
'application/json'
|
|
465
|
-
];
|
|
466
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
467
|
-
if (httpContentTypeSelected != undefined) {
|
|
468
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
469
|
-
}
|
|
470
|
-
return this.httpClient.request('post', `${this.basePath}/api/audiences/live/blocked`, {
|
|
471
|
-
body: body,
|
|
472
|
-
withCredentials: this.configuration.withCredentials,
|
|
473
|
-
headers: headers,
|
|
474
|
-
observe: observe,
|
|
475
|
-
reportProgress: reportProgress
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
createBucketizedCustom(body, observe = 'body', reportProgress = false) {
|
|
479
|
-
if (body === null || body === undefined) {
|
|
480
|
-
throw new Error('Required parameter body was null or undefined when calling createBucketizedCustom.');
|
|
481
|
-
}
|
|
482
|
-
let headers = this.defaultHeaders;
|
|
483
|
-
// to determine the Accept header
|
|
484
|
-
let httpHeaderAccepts = [
|
|
485
|
-
'*/*'
|
|
486
|
-
];
|
|
487
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
488
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
489
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
490
|
-
}
|
|
491
|
-
// to determine the Content-Type header
|
|
492
|
-
const consumes = [
|
|
493
|
-
'application/json'
|
|
494
|
-
];
|
|
495
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
496
|
-
if (httpContentTypeSelected != undefined) {
|
|
497
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
498
|
-
}
|
|
499
|
-
return this.httpClient.request('post', `${this.basePath}/api/audiences/custom/bucketized`, {
|
|
500
|
-
body: body,
|
|
501
|
-
withCredentials: this.configuration.withCredentials,
|
|
502
|
-
headers: headers,
|
|
503
|
-
observe: observe,
|
|
504
|
-
reportProgress: reportProgress
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
createBucketizedLive(body, observe = 'body', reportProgress = false) {
|
|
508
|
-
if (body === null || body === undefined) {
|
|
509
|
-
throw new Error('Required parameter body was null or undefined when calling createBucketizedLive.');
|
|
510
|
-
}
|
|
511
|
-
let headers = this.defaultHeaders;
|
|
512
|
-
// to determine the Accept header
|
|
513
|
-
let httpHeaderAccepts = [
|
|
514
|
-
'*/*'
|
|
515
|
-
];
|
|
516
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
517
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
518
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
519
|
-
}
|
|
520
|
-
// to determine the Content-Type header
|
|
521
|
-
const consumes = [
|
|
522
|
-
'application/json'
|
|
523
|
-
];
|
|
524
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
525
|
-
if (httpContentTypeSelected != undefined) {
|
|
526
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
527
|
-
}
|
|
528
|
-
return this.httpClient.request('post', `${this.basePath}/api/audiences/live/bucketized`, {
|
|
529
|
-
body: body,
|
|
530
|
-
withCredentials: this.configuration.withCredentials,
|
|
531
|
-
headers: headers,
|
|
532
|
-
observe: observe,
|
|
533
|
-
reportProgress: reportProgress
|
|
534
|
-
});
|
|
535
|
-
}
|
|
536
|
-
createDsCustomQuery(body, observe = 'body', reportProgress = false) {
|
|
537
|
-
if (body === null || body === undefined) {
|
|
538
|
-
throw new Error('Required parameter body was null or undefined when calling createDsCustomQuery.');
|
|
539
|
-
}
|
|
540
|
-
let headers = this.defaultHeaders;
|
|
541
|
-
// to determine the Accept header
|
|
542
|
-
let httpHeaderAccepts = [
|
|
543
|
-
'*/*'
|
|
544
|
-
];
|
|
545
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
546
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
547
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
548
|
-
}
|
|
549
|
-
// to determine the Content-Type header
|
|
550
|
-
const consumes = [
|
|
551
|
-
'application/json'
|
|
552
|
-
];
|
|
553
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
554
|
-
if (httpContentTypeSelected != undefined) {
|
|
555
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
556
|
-
}
|
|
557
|
-
return this.httpClient.request('post', `${this.basePath}/api/audiences/custom/ds-query`, {
|
|
558
|
-
body: body,
|
|
559
|
-
withCredentials: this.configuration.withCredentials,
|
|
560
|
-
headers: headers,
|
|
561
|
-
observe: observe,
|
|
562
|
-
reportProgress: reportProgress
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
getAllAudiences(advertiserId, groupType, sourcePlatform, audienceType, audienceSource, observe = 'body', reportProgress = false) {
|
|
566
|
-
if (advertiserId === null || advertiserId === undefined) {
|
|
567
|
-
throw new Error('Required parameter advertiserId was null or undefined when calling getAllAudiences.');
|
|
568
|
-
}
|
|
569
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
570
|
-
if (groupType !== undefined && groupType !== null) {
|
|
571
|
-
queryParameters = queryParameters.set('groupType', groupType);
|
|
572
|
-
}
|
|
573
|
-
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
574
|
-
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
575
|
-
}
|
|
576
|
-
if (audienceType !== undefined && audienceType !== null) {
|
|
577
|
-
queryParameters = queryParameters.set('audienceType', audienceType);
|
|
578
|
-
}
|
|
579
|
-
if (audienceSource !== undefined && audienceSource !== null) {
|
|
580
|
-
queryParameters = queryParameters.set('audienceSource', audienceSource);
|
|
581
|
-
}
|
|
582
|
-
let headers = this.defaultHeaders;
|
|
583
|
-
// to determine the Accept header
|
|
584
|
-
let httpHeaderAccepts = [
|
|
585
|
-
'*/*'
|
|
586
|
-
];
|
|
587
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
588
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
589
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
590
|
-
}
|
|
591
|
-
// to determine the Content-Type header
|
|
592
|
-
const consumes = [];
|
|
593
|
-
return this.httpClient.request('get', `${this.basePath}/api/audiences/advertiser/${encodeURIComponent(String(advertiserId))}`, {
|
|
594
|
-
params: queryParameters,
|
|
595
|
-
withCredentials: this.configuration.withCredentials,
|
|
596
|
-
headers: headers,
|
|
597
|
-
observe: observe,
|
|
598
|
-
reportProgress: reportProgress
|
|
599
|
-
});
|
|
600
|
-
}
|
|
601
|
-
getGroupStatus(groupId, observe = 'body', reportProgress = false) {
|
|
602
|
-
if (groupId === null || groupId === undefined) {
|
|
603
|
-
throw new Error('Required parameter groupId was null or undefined when calling getGroupStatus.');
|
|
604
|
-
}
|
|
605
|
-
let headers = this.defaultHeaders;
|
|
606
|
-
// to determine the Accept header
|
|
607
|
-
let httpHeaderAccepts = [
|
|
608
|
-
'*/*'
|
|
609
|
-
];
|
|
610
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
611
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
612
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
613
|
-
}
|
|
614
|
-
// to determine the Content-Type header
|
|
615
|
-
const consumes = [];
|
|
616
|
-
return this.httpClient.request('get', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}`, {
|
|
617
|
-
withCredentials: this.configuration.withCredentials,
|
|
618
|
-
headers: headers,
|
|
619
|
-
observe: observe,
|
|
620
|
-
reportProgress: reportProgress
|
|
621
|
-
});
|
|
622
|
-
}
|
|
623
|
-
updateDsCustomQuerySql(body, groupId, observe = 'body', reportProgress = false) {
|
|
624
|
-
if (body === null || body === undefined) {
|
|
625
|
-
throw new Error('Required parameter body was null or undefined when calling updateDsCustomQuerySql.');
|
|
626
|
-
}
|
|
627
|
-
if (groupId === null || groupId === undefined) {
|
|
628
|
-
throw new Error('Required parameter groupId was null or undefined when calling updateDsCustomQuerySql.');
|
|
629
|
-
}
|
|
630
|
-
let headers = this.defaultHeaders;
|
|
631
|
-
// to determine the Accept header
|
|
632
|
-
let httpHeaderAccepts = [
|
|
633
|
-
'*/*'
|
|
634
|
-
];
|
|
635
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
636
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
637
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
638
|
-
}
|
|
639
|
-
// to determine the Content-Type header
|
|
640
|
-
const consumes = [
|
|
641
|
-
'application/json'
|
|
642
|
-
];
|
|
643
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
644
|
-
if (httpContentTypeSelected != undefined) {
|
|
645
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
646
|
-
}
|
|
647
|
-
return this.httpClient.request('post', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}/custom/ds-query/sql`, {
|
|
648
|
-
body: body,
|
|
649
|
-
withCredentials: this.configuration.withCredentials,
|
|
650
|
-
headers: headers,
|
|
651
|
-
observe: observe,
|
|
652
|
-
reportProgress: reportProgress
|
|
653
|
-
});
|
|
654
|
-
}
|
|
655
|
-
updateName(body, groupId, observe = 'body', reportProgress = false) {
|
|
656
|
-
if (body === null || body === undefined) {
|
|
657
|
-
throw new Error('Required parameter body was null or undefined when calling updateName.');
|
|
658
|
-
}
|
|
659
|
-
if (groupId === null || groupId === undefined) {
|
|
660
|
-
throw new Error('Required parameter groupId was null or undefined when calling updateName.');
|
|
661
|
-
}
|
|
662
|
-
let headers = this.defaultHeaders;
|
|
663
|
-
// to determine the Accept header
|
|
664
|
-
let httpHeaderAccepts = [
|
|
665
|
-
'*/*'
|
|
666
|
-
];
|
|
667
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
668
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
669
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
670
|
-
}
|
|
671
|
-
// to determine the Content-Type header
|
|
672
|
-
const consumes = [
|
|
673
|
-
'application/json'
|
|
674
|
-
];
|
|
675
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
676
|
-
if (httpContentTypeSelected != undefined) {
|
|
677
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
678
|
-
}
|
|
679
|
-
return this.httpClient.request('post', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}/name`, {
|
|
680
|
-
body: body,
|
|
681
|
-
withCredentials: this.configuration.withCredentials,
|
|
682
|
-
headers: headers,
|
|
683
|
-
observe: observe,
|
|
684
|
-
reportProgress: reportProgress
|
|
685
|
-
});
|
|
686
|
-
}
|
|
687
|
-
validateDsQuery(body, observe = 'body', reportProgress = false) {
|
|
688
|
-
if (body === null || body === undefined) {
|
|
689
|
-
throw new Error('Required parameter body was null or undefined when calling validateDsQuery.');
|
|
690
|
-
}
|
|
691
|
-
let headers = this.defaultHeaders;
|
|
692
|
-
// to determine the Accept header
|
|
693
|
-
let httpHeaderAccepts = [
|
|
694
|
-
'*/*'
|
|
695
|
-
];
|
|
696
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
697
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
698
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
699
|
-
}
|
|
700
|
-
// to determine the Content-Type header
|
|
701
|
-
const consumes = [
|
|
702
|
-
'application/json'
|
|
703
|
-
];
|
|
704
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
705
|
-
if (httpContentTypeSelected != undefined) {
|
|
706
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
707
|
-
}
|
|
708
|
-
return this.httpClient.request('post', `${this.basePath}/api/audiences/validate-ds-query`, {
|
|
709
|
-
body: body,
|
|
710
|
-
withCredentials: this.configuration.withCredentials,
|
|
711
|
-
headers: headers,
|
|
712
|
-
observe: observe,
|
|
713
|
-
reportProgress: reportProgress
|
|
714
|
-
});
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
AudienceControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
718
|
-
AudienceControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService });
|
|
719
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService, decorators: [{
|
|
720
|
-
type: Injectable
|
|
721
|
-
}], ctorParameters: function () {
|
|
722
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
723
|
-
type: Optional
|
|
724
|
-
}, {
|
|
725
|
-
type: Inject,
|
|
726
|
-
args: [BASE_PATH]
|
|
727
|
-
}] }, { type: Configuration, decorators: [{
|
|
728
|
-
type: Optional
|
|
729
|
-
}] }];
|
|
411
|
+
/**
|
|
412
|
+
* Intellibid API
|
|
413
|
+
* API documentation for the Intellibid platform
|
|
414
|
+
*
|
|
415
|
+
* OpenAPI spec version: 1.0
|
|
416
|
+
*
|
|
417
|
+
*
|
|
418
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
419
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
420
|
+
* Do not edit the class manually.
|
|
421
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
422
|
+
class AudienceControllerService {
|
|
423
|
+
constructor(httpClient, basePath, configuration) {
|
|
424
|
+
this.httpClient = httpClient;
|
|
425
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
426
|
+
this.defaultHeaders = new HttpHeaders();
|
|
427
|
+
this.configuration = new Configuration();
|
|
428
|
+
if (basePath) {
|
|
429
|
+
this.basePath = basePath;
|
|
430
|
+
}
|
|
431
|
+
if (configuration) {
|
|
432
|
+
this.configuration = configuration;
|
|
433
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* @param consumes string[] mime-types
|
|
438
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
439
|
+
*/
|
|
440
|
+
canConsumeForm(consumes) {
|
|
441
|
+
const form = 'multipart/form-data';
|
|
442
|
+
for (const consume of consumes) {
|
|
443
|
+
if (form === consume) {
|
|
444
|
+
return true;
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
return false;
|
|
448
|
+
}
|
|
449
|
+
createBlockedLiveAudience(body, observe = 'body', reportProgress = false) {
|
|
450
|
+
if (body === null || body === undefined) {
|
|
451
|
+
throw new Error('Required parameter body was null or undefined when calling createBlockedLiveAudience.');
|
|
452
|
+
}
|
|
453
|
+
let headers = this.defaultHeaders;
|
|
454
|
+
// to determine the Accept header
|
|
455
|
+
let httpHeaderAccepts = [
|
|
456
|
+
'*/*'
|
|
457
|
+
];
|
|
458
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
459
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
460
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
461
|
+
}
|
|
462
|
+
// to determine the Content-Type header
|
|
463
|
+
const consumes = [
|
|
464
|
+
'application/json'
|
|
465
|
+
];
|
|
466
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
467
|
+
if (httpContentTypeSelected != undefined) {
|
|
468
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
469
|
+
}
|
|
470
|
+
return this.httpClient.request('post', `${this.basePath}/api/audiences/live/blocked`, {
|
|
471
|
+
body: body,
|
|
472
|
+
withCredentials: this.configuration.withCredentials,
|
|
473
|
+
headers: headers,
|
|
474
|
+
observe: observe,
|
|
475
|
+
reportProgress: reportProgress
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
createBucketizedCustom(body, observe = 'body', reportProgress = false) {
|
|
479
|
+
if (body === null || body === undefined) {
|
|
480
|
+
throw new Error('Required parameter body was null or undefined when calling createBucketizedCustom.');
|
|
481
|
+
}
|
|
482
|
+
let headers = this.defaultHeaders;
|
|
483
|
+
// to determine the Accept header
|
|
484
|
+
let httpHeaderAccepts = [
|
|
485
|
+
'*/*'
|
|
486
|
+
];
|
|
487
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
488
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
489
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
490
|
+
}
|
|
491
|
+
// to determine the Content-Type header
|
|
492
|
+
const consumes = [
|
|
493
|
+
'application/json'
|
|
494
|
+
];
|
|
495
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
496
|
+
if (httpContentTypeSelected != undefined) {
|
|
497
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
498
|
+
}
|
|
499
|
+
return this.httpClient.request('post', `${this.basePath}/api/audiences/custom/bucketized`, {
|
|
500
|
+
body: body,
|
|
501
|
+
withCredentials: this.configuration.withCredentials,
|
|
502
|
+
headers: headers,
|
|
503
|
+
observe: observe,
|
|
504
|
+
reportProgress: reportProgress
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
createBucketizedLive(body, observe = 'body', reportProgress = false) {
|
|
508
|
+
if (body === null || body === undefined) {
|
|
509
|
+
throw new Error('Required parameter body was null or undefined when calling createBucketizedLive.');
|
|
510
|
+
}
|
|
511
|
+
let headers = this.defaultHeaders;
|
|
512
|
+
// to determine the Accept header
|
|
513
|
+
let httpHeaderAccepts = [
|
|
514
|
+
'*/*'
|
|
515
|
+
];
|
|
516
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
517
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
518
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
519
|
+
}
|
|
520
|
+
// to determine the Content-Type header
|
|
521
|
+
const consumes = [
|
|
522
|
+
'application/json'
|
|
523
|
+
];
|
|
524
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
525
|
+
if (httpContentTypeSelected != undefined) {
|
|
526
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
527
|
+
}
|
|
528
|
+
return this.httpClient.request('post', `${this.basePath}/api/audiences/live/bucketized`, {
|
|
529
|
+
body: body,
|
|
530
|
+
withCredentials: this.configuration.withCredentials,
|
|
531
|
+
headers: headers,
|
|
532
|
+
observe: observe,
|
|
533
|
+
reportProgress: reportProgress
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
createDsCustomQuery(body, observe = 'body', reportProgress = false) {
|
|
537
|
+
if (body === null || body === undefined) {
|
|
538
|
+
throw new Error('Required parameter body was null or undefined when calling createDsCustomQuery.');
|
|
539
|
+
}
|
|
540
|
+
let headers = this.defaultHeaders;
|
|
541
|
+
// to determine the Accept header
|
|
542
|
+
let httpHeaderAccepts = [
|
|
543
|
+
'*/*'
|
|
544
|
+
];
|
|
545
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
546
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
547
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
548
|
+
}
|
|
549
|
+
// to determine the Content-Type header
|
|
550
|
+
const consumes = [
|
|
551
|
+
'application/json'
|
|
552
|
+
];
|
|
553
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
554
|
+
if (httpContentTypeSelected != undefined) {
|
|
555
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
556
|
+
}
|
|
557
|
+
return this.httpClient.request('post', `${this.basePath}/api/audiences/custom/ds-query`, {
|
|
558
|
+
body: body,
|
|
559
|
+
withCredentials: this.configuration.withCredentials,
|
|
560
|
+
headers: headers,
|
|
561
|
+
observe: observe,
|
|
562
|
+
reportProgress: reportProgress
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
getAllAudiences(advertiserId, groupType, sourcePlatform, audienceType, audienceSource, observe = 'body', reportProgress = false) {
|
|
566
|
+
if (advertiserId === null || advertiserId === undefined) {
|
|
567
|
+
throw new Error('Required parameter advertiserId was null or undefined when calling getAllAudiences.');
|
|
568
|
+
}
|
|
569
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
570
|
+
if (groupType !== undefined && groupType !== null) {
|
|
571
|
+
queryParameters = queryParameters.set('groupType', groupType);
|
|
572
|
+
}
|
|
573
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
574
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
575
|
+
}
|
|
576
|
+
if (audienceType !== undefined && audienceType !== null) {
|
|
577
|
+
queryParameters = queryParameters.set('audienceType', audienceType);
|
|
578
|
+
}
|
|
579
|
+
if (audienceSource !== undefined && audienceSource !== null) {
|
|
580
|
+
queryParameters = queryParameters.set('audienceSource', audienceSource);
|
|
581
|
+
}
|
|
582
|
+
let headers = this.defaultHeaders;
|
|
583
|
+
// to determine the Accept header
|
|
584
|
+
let httpHeaderAccepts = [
|
|
585
|
+
'*/*'
|
|
586
|
+
];
|
|
587
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
588
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
589
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
590
|
+
}
|
|
591
|
+
// to determine the Content-Type header
|
|
592
|
+
const consumes = [];
|
|
593
|
+
return this.httpClient.request('get', `${this.basePath}/api/audiences/advertiser/${encodeURIComponent(String(advertiserId))}`, {
|
|
594
|
+
params: queryParameters,
|
|
595
|
+
withCredentials: this.configuration.withCredentials,
|
|
596
|
+
headers: headers,
|
|
597
|
+
observe: observe,
|
|
598
|
+
reportProgress: reportProgress
|
|
599
|
+
});
|
|
600
|
+
}
|
|
601
|
+
getGroupStatus(groupId, observe = 'body', reportProgress = false) {
|
|
602
|
+
if (groupId === null || groupId === undefined) {
|
|
603
|
+
throw new Error('Required parameter groupId was null or undefined when calling getGroupStatus.');
|
|
604
|
+
}
|
|
605
|
+
let headers = this.defaultHeaders;
|
|
606
|
+
// to determine the Accept header
|
|
607
|
+
let httpHeaderAccepts = [
|
|
608
|
+
'*/*'
|
|
609
|
+
];
|
|
610
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
611
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
612
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
613
|
+
}
|
|
614
|
+
// to determine the Content-Type header
|
|
615
|
+
const consumes = [];
|
|
616
|
+
return this.httpClient.request('get', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}`, {
|
|
617
|
+
withCredentials: this.configuration.withCredentials,
|
|
618
|
+
headers: headers,
|
|
619
|
+
observe: observe,
|
|
620
|
+
reportProgress: reportProgress
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
updateDsCustomQuerySql(body, groupId, observe = 'body', reportProgress = false) {
|
|
624
|
+
if (body === null || body === undefined) {
|
|
625
|
+
throw new Error('Required parameter body was null or undefined when calling updateDsCustomQuerySql.');
|
|
626
|
+
}
|
|
627
|
+
if (groupId === null || groupId === undefined) {
|
|
628
|
+
throw new Error('Required parameter groupId was null or undefined when calling updateDsCustomQuerySql.');
|
|
629
|
+
}
|
|
630
|
+
let headers = this.defaultHeaders;
|
|
631
|
+
// to determine the Accept header
|
|
632
|
+
let httpHeaderAccepts = [
|
|
633
|
+
'*/*'
|
|
634
|
+
];
|
|
635
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
636
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
637
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
638
|
+
}
|
|
639
|
+
// to determine the Content-Type header
|
|
640
|
+
const consumes = [
|
|
641
|
+
'application/json'
|
|
642
|
+
];
|
|
643
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
644
|
+
if (httpContentTypeSelected != undefined) {
|
|
645
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
646
|
+
}
|
|
647
|
+
return this.httpClient.request('post', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}/custom/ds-query/sql`, {
|
|
648
|
+
body: body,
|
|
649
|
+
withCredentials: this.configuration.withCredentials,
|
|
650
|
+
headers: headers,
|
|
651
|
+
observe: observe,
|
|
652
|
+
reportProgress: reportProgress
|
|
653
|
+
});
|
|
654
|
+
}
|
|
655
|
+
updateName(body, groupId, observe = 'body', reportProgress = false) {
|
|
656
|
+
if (body === null || body === undefined) {
|
|
657
|
+
throw new Error('Required parameter body was null or undefined when calling updateName.');
|
|
658
|
+
}
|
|
659
|
+
if (groupId === null || groupId === undefined) {
|
|
660
|
+
throw new Error('Required parameter groupId was null or undefined when calling updateName.');
|
|
661
|
+
}
|
|
662
|
+
let headers = this.defaultHeaders;
|
|
663
|
+
// to determine the Accept header
|
|
664
|
+
let httpHeaderAccepts = [
|
|
665
|
+
'*/*'
|
|
666
|
+
];
|
|
667
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
668
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
669
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
670
|
+
}
|
|
671
|
+
// to determine the Content-Type header
|
|
672
|
+
const consumes = [
|
|
673
|
+
'application/json'
|
|
674
|
+
];
|
|
675
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
676
|
+
if (httpContentTypeSelected != undefined) {
|
|
677
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
678
|
+
}
|
|
679
|
+
return this.httpClient.request('post', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}/name`, {
|
|
680
|
+
body: body,
|
|
681
|
+
withCredentials: this.configuration.withCredentials,
|
|
682
|
+
headers: headers,
|
|
683
|
+
observe: observe,
|
|
684
|
+
reportProgress: reportProgress
|
|
685
|
+
});
|
|
686
|
+
}
|
|
687
|
+
validateDsQuery(body, observe = 'body', reportProgress = false) {
|
|
688
|
+
if (body === null || body === undefined) {
|
|
689
|
+
throw new Error('Required parameter body was null or undefined when calling validateDsQuery.');
|
|
690
|
+
}
|
|
691
|
+
let headers = this.defaultHeaders;
|
|
692
|
+
// to determine the Accept header
|
|
693
|
+
let httpHeaderAccepts = [
|
|
694
|
+
'*/*'
|
|
695
|
+
];
|
|
696
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
697
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
698
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
699
|
+
}
|
|
700
|
+
// to determine the Content-Type header
|
|
701
|
+
const consumes = [
|
|
702
|
+
'application/json'
|
|
703
|
+
];
|
|
704
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
705
|
+
if (httpContentTypeSelected != undefined) {
|
|
706
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
707
|
+
}
|
|
708
|
+
return this.httpClient.request('post', `${this.basePath}/api/audiences/validate-ds-query`, {
|
|
709
|
+
body: body,
|
|
710
|
+
withCredentials: this.configuration.withCredentials,
|
|
711
|
+
headers: headers,
|
|
712
|
+
observe: observe,
|
|
713
|
+
reportProgress: reportProgress
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
AudienceControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
718
|
+
AudienceControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService });
|
|
719
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService, decorators: [{
|
|
720
|
+
type: Injectable
|
|
721
|
+
}], ctorParameters: function () {
|
|
722
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
723
|
+
type: Optional
|
|
724
|
+
}, {
|
|
725
|
+
type: Inject,
|
|
726
|
+
args: [BASE_PATH]
|
|
727
|
+
}] }, { type: Configuration, decorators: [{
|
|
728
|
+
type: Optional
|
|
729
|
+
}] }];
|
|
730
730
|
} });
|
|
731
731
|
|
|
732
|
-
/**
|
|
733
|
-
* Intellibid API
|
|
734
|
-
* API documentation for the Intellibid platform
|
|
735
|
-
*
|
|
736
|
-
* OpenAPI spec version: 1.0
|
|
737
|
-
*
|
|
738
|
-
*
|
|
739
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
740
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
741
|
-
* Do not edit the class manually.
|
|
742
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
743
|
-
class CampaignControllerService {
|
|
744
|
-
constructor(httpClient, basePath, configuration) {
|
|
745
|
-
this.httpClient = httpClient;
|
|
746
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
747
|
-
this.defaultHeaders = new HttpHeaders();
|
|
748
|
-
this.configuration = new Configuration();
|
|
749
|
-
if (basePath) {
|
|
750
|
-
this.basePath = basePath;
|
|
751
|
-
}
|
|
752
|
-
if (configuration) {
|
|
753
|
-
this.configuration = configuration;
|
|
754
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
/**
|
|
758
|
-
* @param consumes string[] mime-types
|
|
759
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
760
|
-
*/
|
|
761
|
-
canConsumeForm(consumes) {
|
|
762
|
-
const form = 'multipart/form-data';
|
|
763
|
-
for (const consume of consumes) {
|
|
764
|
-
if (form === consume) {
|
|
765
|
-
return true;
|
|
766
|
-
}
|
|
767
|
-
}
|
|
768
|
-
return false;
|
|
769
|
-
}
|
|
770
|
-
createCampaign(body, observe = 'body', reportProgress = false) {
|
|
771
|
-
if (body === null || body === undefined) {
|
|
772
|
-
throw new Error('Required parameter body was null or undefined when calling createCampaign.');
|
|
773
|
-
}
|
|
774
|
-
let headers = this.defaultHeaders;
|
|
775
|
-
// to determine the Accept header
|
|
776
|
-
let httpHeaderAccepts = [
|
|
777
|
-
'*/*'
|
|
778
|
-
];
|
|
779
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
780
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
781
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
782
|
-
}
|
|
783
|
-
// to determine the Content-Type header
|
|
784
|
-
const consumes = [
|
|
785
|
-
'application/json'
|
|
786
|
-
];
|
|
787
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
788
|
-
if (httpContentTypeSelected != undefined) {
|
|
789
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
790
|
-
}
|
|
791
|
-
return this.httpClient.request('post', `${this.basePath}/api/campaign`, {
|
|
792
|
-
body: body,
|
|
793
|
-
withCredentials: this.configuration.withCredentials,
|
|
794
|
-
headers: headers,
|
|
795
|
-
observe: observe,
|
|
796
|
-
reportProgress: reportProgress
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
getAllCampaigns(id, advertiserId, name, platformCampaignId, payoutType, marketFeedbackEnabled, activeOnPlatform, sourcePlatform, page, size, sort, observe = 'body', reportProgress = false) {
|
|
800
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
801
|
-
if (id !== undefined && id !== null) {
|
|
802
|
-
queryParameters = queryParameters.set('id', id);
|
|
803
|
-
}
|
|
804
|
-
if (advertiserId !== undefined && advertiserId !== null) {
|
|
805
|
-
queryParameters = queryParameters.set('advertiserId', advertiserId);
|
|
806
|
-
}
|
|
807
|
-
if (name !== undefined && name !== null) {
|
|
808
|
-
queryParameters = queryParameters.set('name', name);
|
|
809
|
-
}
|
|
810
|
-
if (platformCampaignId !== undefined && platformCampaignId !== null) {
|
|
811
|
-
queryParameters = queryParameters.set('platformCampaignId', platformCampaignId);
|
|
812
|
-
}
|
|
813
|
-
if (payoutType !== undefined && payoutType !== null) {
|
|
814
|
-
queryParameters = queryParameters.set('payoutType', payoutType);
|
|
815
|
-
}
|
|
816
|
-
if (marketFeedbackEnabled !== undefined && marketFeedbackEnabled !== null) {
|
|
817
|
-
queryParameters = queryParameters.set('marketFeedbackEnabled', marketFeedbackEnabled);
|
|
818
|
-
}
|
|
819
|
-
if (activeOnPlatform !== undefined && activeOnPlatform !== null) {
|
|
820
|
-
queryParameters = queryParameters.set('activeOnPlatform', activeOnPlatform);
|
|
821
|
-
}
|
|
822
|
-
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
823
|
-
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
824
|
-
}
|
|
825
|
-
if (page !== undefined && page !== null) {
|
|
826
|
-
queryParameters = queryParameters.set('page', page);
|
|
827
|
-
}
|
|
828
|
-
if (size !== undefined && size !== null) {
|
|
829
|
-
queryParameters = queryParameters.set('size', size);
|
|
830
|
-
}
|
|
831
|
-
if (sort) {
|
|
832
|
-
sort.forEach((element) => {
|
|
833
|
-
queryParameters = queryParameters.append('sort', element);
|
|
834
|
-
});
|
|
835
|
-
}
|
|
836
|
-
let headers = this.defaultHeaders;
|
|
837
|
-
// to determine the Accept header
|
|
838
|
-
let httpHeaderAccepts = [
|
|
839
|
-
'*/*'
|
|
840
|
-
];
|
|
841
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
842
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
843
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
844
|
-
}
|
|
845
|
-
// to determine the Content-Type header
|
|
846
|
-
const consumes = [];
|
|
847
|
-
return this.httpClient.request('get', `${this.basePath}/api/campaign`, {
|
|
848
|
-
params: queryParameters,
|
|
849
|
-
withCredentials: this.configuration.withCredentials,
|
|
850
|
-
headers: headers,
|
|
851
|
-
observe: observe,
|
|
852
|
-
reportProgress: reportProgress
|
|
853
|
-
});
|
|
854
|
-
}
|
|
855
|
-
getCampaign(id, observe = 'body', reportProgress = false) {
|
|
856
|
-
if (id === null || id === undefined) {
|
|
857
|
-
throw new Error('Required parameter id was null or undefined when calling getCampaign.');
|
|
858
|
-
}
|
|
859
|
-
let headers = this.defaultHeaders;
|
|
860
|
-
// to determine the Accept header
|
|
861
|
-
let httpHeaderAccepts = [
|
|
862
|
-
'*/*'
|
|
863
|
-
];
|
|
864
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
865
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
866
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
867
|
-
}
|
|
868
|
-
// to determine the Content-Type header
|
|
869
|
-
const consumes = [];
|
|
870
|
-
return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}`, {
|
|
871
|
-
withCredentials: this.configuration.withCredentials,
|
|
872
|
-
headers: headers,
|
|
873
|
-
observe: observe,
|
|
874
|
-
reportProgress: reportProgress
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
getCampaignLogs(id, page, size, sort, observe = 'body', reportProgress = false) {
|
|
878
|
-
if (id === null || id === undefined) {
|
|
879
|
-
throw new Error('Required parameter id was null or undefined when calling getCampaignLogs.');
|
|
880
|
-
}
|
|
881
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
882
|
-
if (page !== undefined && page !== null) {
|
|
883
|
-
queryParameters = queryParameters.set('page', page);
|
|
884
|
-
}
|
|
885
|
-
if (size !== undefined && size !== null) {
|
|
886
|
-
queryParameters = queryParameters.set('size', size);
|
|
887
|
-
}
|
|
888
|
-
if (sort) {
|
|
889
|
-
sort.forEach((element) => {
|
|
890
|
-
queryParameters = queryParameters.append('sort', element);
|
|
891
|
-
});
|
|
892
|
-
}
|
|
893
|
-
let headers = this.defaultHeaders;
|
|
894
|
-
// to determine the Accept header
|
|
895
|
-
let httpHeaderAccepts = [
|
|
896
|
-
'*/*'
|
|
897
|
-
];
|
|
898
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
899
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
900
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
901
|
-
}
|
|
902
|
-
// to determine the Content-Type header
|
|
903
|
-
const consumes = [];
|
|
904
|
-
return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/log`, {
|
|
905
|
-
params: queryParameters,
|
|
906
|
-
withCredentials: this.configuration.withCredentials,
|
|
907
|
-
headers: headers,
|
|
908
|
-
observe: observe,
|
|
909
|
-
reportProgress: reportProgress
|
|
910
|
-
});
|
|
911
|
-
}
|
|
912
|
-
|
|
913
|
-
if (body === null || body === undefined) {
|
|
914
|
-
throw new Error('Required parameter body was null or undefined when calling
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
const
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
if (
|
|
946
|
-
throw new Error('Required parameter
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
if (
|
|
982
|
-
|
|
983
|
-
}
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
];
|
|
1022
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1023
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1024
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1025
|
-
}
|
|
1026
|
-
// to determine the Content-Type header
|
|
1027
|
-
const consumes = [];
|
|
1028
|
-
return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/status`, {
|
|
1029
|
-
params: queryParameters,
|
|
1030
|
-
withCredentials: this.configuration.withCredentials,
|
|
1031
|
-
headers: headers,
|
|
1032
|
-
observe: observe,
|
|
1033
|
-
reportProgress: reportProgress
|
|
1034
|
-
});
|
|
1035
|
-
}
|
|
1036
|
-
}
|
|
1037
|
-
CampaignControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1038
|
-
CampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService });
|
|
1039
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, decorators: [{
|
|
1040
|
-
type: Injectable
|
|
1041
|
-
}], ctorParameters: function () {
|
|
1042
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1043
|
-
type: Optional
|
|
1044
|
-
}, {
|
|
1045
|
-
type: Inject,
|
|
1046
|
-
args: [BASE_PATH]
|
|
1047
|
-
}] }, { type: Configuration, decorators: [{
|
|
1048
|
-
type: Optional
|
|
1049
|
-
}] }];
|
|
732
|
+
/**
|
|
733
|
+
* Intellibid API
|
|
734
|
+
* API documentation for the Intellibid platform
|
|
735
|
+
*
|
|
736
|
+
* OpenAPI spec version: 1.0
|
|
737
|
+
*
|
|
738
|
+
*
|
|
739
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
740
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
741
|
+
* Do not edit the class manually.
|
|
742
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
743
|
+
class CampaignControllerService {
|
|
744
|
+
constructor(httpClient, basePath, configuration) {
|
|
745
|
+
this.httpClient = httpClient;
|
|
746
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
747
|
+
this.defaultHeaders = new HttpHeaders();
|
|
748
|
+
this.configuration = new Configuration();
|
|
749
|
+
if (basePath) {
|
|
750
|
+
this.basePath = basePath;
|
|
751
|
+
}
|
|
752
|
+
if (configuration) {
|
|
753
|
+
this.configuration = configuration;
|
|
754
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* @param consumes string[] mime-types
|
|
759
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
760
|
+
*/
|
|
761
|
+
canConsumeForm(consumes) {
|
|
762
|
+
const form = 'multipart/form-data';
|
|
763
|
+
for (const consume of consumes) {
|
|
764
|
+
if (form === consume) {
|
|
765
|
+
return true;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
return false;
|
|
769
|
+
}
|
|
770
|
+
createCampaign(body, observe = 'body', reportProgress = false) {
|
|
771
|
+
if (body === null || body === undefined) {
|
|
772
|
+
throw new Error('Required parameter body was null or undefined when calling createCampaign.');
|
|
773
|
+
}
|
|
774
|
+
let headers = this.defaultHeaders;
|
|
775
|
+
// to determine the Accept header
|
|
776
|
+
let httpHeaderAccepts = [
|
|
777
|
+
'*/*'
|
|
778
|
+
];
|
|
779
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
780
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
781
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
782
|
+
}
|
|
783
|
+
// to determine the Content-Type header
|
|
784
|
+
const consumes = [
|
|
785
|
+
'application/json'
|
|
786
|
+
];
|
|
787
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
788
|
+
if (httpContentTypeSelected != undefined) {
|
|
789
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
790
|
+
}
|
|
791
|
+
return this.httpClient.request('post', `${this.basePath}/api/campaign`, {
|
|
792
|
+
body: body,
|
|
793
|
+
withCredentials: this.configuration.withCredentials,
|
|
794
|
+
headers: headers,
|
|
795
|
+
observe: observe,
|
|
796
|
+
reportProgress: reportProgress
|
|
797
|
+
});
|
|
798
|
+
}
|
|
799
|
+
getAllCampaigns(id, advertiserId, name, platformCampaignId, payoutType, marketFeedbackEnabled, activeOnPlatform, sourcePlatform, page, size, sort, observe = 'body', reportProgress = false) {
|
|
800
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
801
|
+
if (id !== undefined && id !== null) {
|
|
802
|
+
queryParameters = queryParameters.set('id', id);
|
|
803
|
+
}
|
|
804
|
+
if (advertiserId !== undefined && advertiserId !== null) {
|
|
805
|
+
queryParameters = queryParameters.set('advertiserId', advertiserId);
|
|
806
|
+
}
|
|
807
|
+
if (name !== undefined && name !== null) {
|
|
808
|
+
queryParameters = queryParameters.set('name', name);
|
|
809
|
+
}
|
|
810
|
+
if (platformCampaignId !== undefined && platformCampaignId !== null) {
|
|
811
|
+
queryParameters = queryParameters.set('platformCampaignId', platformCampaignId);
|
|
812
|
+
}
|
|
813
|
+
if (payoutType !== undefined && payoutType !== null) {
|
|
814
|
+
queryParameters = queryParameters.set('payoutType', payoutType);
|
|
815
|
+
}
|
|
816
|
+
if (marketFeedbackEnabled !== undefined && marketFeedbackEnabled !== null) {
|
|
817
|
+
queryParameters = queryParameters.set('marketFeedbackEnabled', marketFeedbackEnabled);
|
|
818
|
+
}
|
|
819
|
+
if (activeOnPlatform !== undefined && activeOnPlatform !== null) {
|
|
820
|
+
queryParameters = queryParameters.set('activeOnPlatform', activeOnPlatform);
|
|
821
|
+
}
|
|
822
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
823
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
824
|
+
}
|
|
825
|
+
if (page !== undefined && page !== null) {
|
|
826
|
+
queryParameters = queryParameters.set('page', page);
|
|
827
|
+
}
|
|
828
|
+
if (size !== undefined && size !== null) {
|
|
829
|
+
queryParameters = queryParameters.set('size', size);
|
|
830
|
+
}
|
|
831
|
+
if (sort) {
|
|
832
|
+
sort.forEach((element) => {
|
|
833
|
+
queryParameters = queryParameters.append('sort', element);
|
|
834
|
+
});
|
|
835
|
+
}
|
|
836
|
+
let headers = this.defaultHeaders;
|
|
837
|
+
// to determine the Accept header
|
|
838
|
+
let httpHeaderAccepts = [
|
|
839
|
+
'*/*'
|
|
840
|
+
];
|
|
841
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
842
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
843
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
844
|
+
}
|
|
845
|
+
// to determine the Content-Type header
|
|
846
|
+
const consumes = [];
|
|
847
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign`, {
|
|
848
|
+
params: queryParameters,
|
|
849
|
+
withCredentials: this.configuration.withCredentials,
|
|
850
|
+
headers: headers,
|
|
851
|
+
observe: observe,
|
|
852
|
+
reportProgress: reportProgress
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
getCampaign(id, observe = 'body', reportProgress = false) {
|
|
856
|
+
if (id === null || id === undefined) {
|
|
857
|
+
throw new Error('Required parameter id was null or undefined when calling getCampaign.');
|
|
858
|
+
}
|
|
859
|
+
let headers = this.defaultHeaders;
|
|
860
|
+
// to determine the Accept header
|
|
861
|
+
let httpHeaderAccepts = [
|
|
862
|
+
'*/*'
|
|
863
|
+
];
|
|
864
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
865
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
866
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
867
|
+
}
|
|
868
|
+
// to determine the Content-Type header
|
|
869
|
+
const consumes = [];
|
|
870
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}`, {
|
|
871
|
+
withCredentials: this.configuration.withCredentials,
|
|
872
|
+
headers: headers,
|
|
873
|
+
observe: observe,
|
|
874
|
+
reportProgress: reportProgress
|
|
875
|
+
});
|
|
876
|
+
}
|
|
877
|
+
getCampaignLogs(id, page, size, sort, observe = 'body', reportProgress = false) {
|
|
878
|
+
if (id === null || id === undefined) {
|
|
879
|
+
throw new Error('Required parameter id was null or undefined when calling getCampaignLogs.');
|
|
880
|
+
}
|
|
881
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
882
|
+
if (page !== undefined && page !== null) {
|
|
883
|
+
queryParameters = queryParameters.set('page', page);
|
|
884
|
+
}
|
|
885
|
+
if (size !== undefined && size !== null) {
|
|
886
|
+
queryParameters = queryParameters.set('size', size);
|
|
887
|
+
}
|
|
888
|
+
if (sort) {
|
|
889
|
+
sort.forEach((element) => {
|
|
890
|
+
queryParameters = queryParameters.append('sort', element);
|
|
891
|
+
});
|
|
892
|
+
}
|
|
893
|
+
let headers = this.defaultHeaders;
|
|
894
|
+
// to determine the Accept header
|
|
895
|
+
let httpHeaderAccepts = [
|
|
896
|
+
'*/*'
|
|
897
|
+
];
|
|
898
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
899
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
900
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
901
|
+
}
|
|
902
|
+
// to determine the Content-Type header
|
|
903
|
+
const consumes = [];
|
|
904
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/log`, {
|
|
905
|
+
params: queryParameters,
|
|
906
|
+
withCredentials: this.configuration.withCredentials,
|
|
907
|
+
headers: headers,
|
|
908
|
+
observe: observe,
|
|
909
|
+
reportProgress: reportProgress
|
|
910
|
+
});
|
|
911
|
+
}
|
|
912
|
+
scheduleUpdate(body, id, observe = 'body', reportProgress = false) {
|
|
913
|
+
if (body === null || body === undefined) {
|
|
914
|
+
throw new Error('Required parameter body was null or undefined when calling scheduleUpdate.');
|
|
915
|
+
}
|
|
916
|
+
if (id === null || id === undefined) {
|
|
917
|
+
throw new Error('Required parameter id was null or undefined when calling scheduleUpdate.');
|
|
918
|
+
}
|
|
919
|
+
let headers = this.defaultHeaders;
|
|
920
|
+
// to determine the Accept header
|
|
921
|
+
let httpHeaderAccepts = [
|
|
922
|
+
'*/*'
|
|
923
|
+
];
|
|
924
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
925
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
926
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
927
|
+
}
|
|
928
|
+
// to determine the Content-Type header
|
|
929
|
+
const consumes = [
|
|
930
|
+
'application/json'
|
|
931
|
+
];
|
|
932
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
933
|
+
if (httpContentTypeSelected != undefined) {
|
|
934
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
935
|
+
}
|
|
936
|
+
return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/schedule-update`, {
|
|
937
|
+
body: body,
|
|
938
|
+
withCredentials: this.configuration.withCredentials,
|
|
939
|
+
headers: headers,
|
|
940
|
+
observe: observe,
|
|
941
|
+
reportProgress: reportProgress
|
|
942
|
+
});
|
|
943
|
+
}
|
|
944
|
+
searchCampaign(q, sourcePlatform, observe = 'body', reportProgress = false) {
|
|
945
|
+
if (q === null || q === undefined) {
|
|
946
|
+
throw new Error('Required parameter q was null or undefined when calling searchCampaign.');
|
|
947
|
+
}
|
|
948
|
+
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
949
|
+
throw new Error('Required parameter sourcePlatform was null or undefined when calling searchCampaign.');
|
|
950
|
+
}
|
|
951
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
952
|
+
if (q !== undefined && q !== null) {
|
|
953
|
+
queryParameters = queryParameters.set('q', q);
|
|
954
|
+
}
|
|
955
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
956
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
957
|
+
}
|
|
958
|
+
let headers = this.defaultHeaders;
|
|
959
|
+
// to determine the Accept header
|
|
960
|
+
let httpHeaderAccepts = [
|
|
961
|
+
'*/*'
|
|
962
|
+
];
|
|
963
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
964
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
965
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
966
|
+
}
|
|
967
|
+
// to determine the Content-Type header
|
|
968
|
+
const consumes = [];
|
|
969
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign/search`, {
|
|
970
|
+
params: queryParameters,
|
|
971
|
+
withCredentials: this.configuration.withCredentials,
|
|
972
|
+
headers: headers,
|
|
973
|
+
observe: observe,
|
|
974
|
+
reportProgress: reportProgress
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
setStatus(id, active, observe = 'body', reportProgress = false) {
|
|
978
|
+
if (id === null || id === undefined) {
|
|
979
|
+
throw new Error('Required parameter id was null or undefined when calling setStatus.');
|
|
980
|
+
}
|
|
981
|
+
if (active === null || active === undefined) {
|
|
982
|
+
throw new Error('Required parameter active was null or undefined when calling setStatus.');
|
|
983
|
+
}
|
|
984
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
985
|
+
if (active !== undefined && active !== null) {
|
|
986
|
+
queryParameters = queryParameters.set('active', active);
|
|
987
|
+
}
|
|
988
|
+
let headers = this.defaultHeaders;
|
|
989
|
+
// to determine the Accept header
|
|
990
|
+
let httpHeaderAccepts = [
|
|
991
|
+
'*/*'
|
|
992
|
+
];
|
|
993
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
994
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
995
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
996
|
+
}
|
|
997
|
+
// to determine the Content-Type header
|
|
998
|
+
const consumes = [];
|
|
999
|
+
return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/status`, {
|
|
1000
|
+
params: queryParameters,
|
|
1001
|
+
withCredentials: this.configuration.withCredentials,
|
|
1002
|
+
headers: headers,
|
|
1003
|
+
observe: observe,
|
|
1004
|
+
reportProgress: reportProgress
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
CampaignControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1009
|
+
CampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService });
|
|
1010
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, decorators: [{
|
|
1011
|
+
type: Injectable
|
|
1012
|
+
}], ctorParameters: function () {
|
|
1013
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1014
|
+
type: Optional
|
|
1015
|
+
}, {
|
|
1016
|
+
type: Inject,
|
|
1017
|
+
args: [BASE_PATH]
|
|
1018
|
+
}] }, { type: Configuration, decorators: [{
|
|
1019
|
+
type: Optional
|
|
1020
|
+
}] }];
|
|
1050
1021
|
} });
|
|
1051
1022
|
|
|
1052
|
-
/**
|
|
1053
|
-
* Intellibid API
|
|
1054
|
-
* API documentation for the Intellibid platform
|
|
1055
|
-
*
|
|
1056
|
-
* OpenAPI spec version: 1.0
|
|
1057
|
-
*
|
|
1058
|
-
*
|
|
1059
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1060
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1061
|
-
* Do not edit the class manually.
|
|
1062
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
1063
|
-
class InsightsControllerService {
|
|
1064
|
-
constructor(httpClient, basePath, configuration) {
|
|
1065
|
-
this.httpClient = httpClient;
|
|
1066
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
1067
|
-
this.defaultHeaders = new HttpHeaders();
|
|
1068
|
-
this.configuration = new Configuration();
|
|
1069
|
-
if (basePath) {
|
|
1070
|
-
this.basePath = basePath;
|
|
1071
|
-
}
|
|
1072
|
-
if (configuration) {
|
|
1073
|
-
this.configuration = configuration;
|
|
1074
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
/**
|
|
1078
|
-
* @param consumes string[] mime-types
|
|
1079
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1080
|
-
*/
|
|
1081
|
-
canConsumeForm(consumes) {
|
|
1082
|
-
const form = 'multipart/form-data';
|
|
1083
|
-
for (const consume of consumes) {
|
|
1084
|
-
if (form === consume) {
|
|
1085
|
-
return true;
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1088
|
-
return false;
|
|
1089
|
-
}
|
|
1090
|
-
getCampaignInsights(startDate, endDate, sourcePlatform, interval, requireMmpReport, observe = 'body', reportProgress = false) {
|
|
1091
|
-
if (startDate === null || startDate === undefined) {
|
|
1092
|
-
throw new Error('Required parameter startDate was null or undefined when calling getCampaignInsights.');
|
|
1093
|
-
}
|
|
1094
|
-
if (endDate === null || endDate === undefined) {
|
|
1095
|
-
throw new Error('Required parameter endDate was null or undefined when calling getCampaignInsights.');
|
|
1096
|
-
}
|
|
1097
|
-
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
1098
|
-
throw new Error('Required parameter sourcePlatform was null or undefined when calling getCampaignInsights.');
|
|
1099
|
-
}
|
|
1100
|
-
if (interval === null || interval === undefined) {
|
|
1101
|
-
throw new Error('Required parameter interval was null or undefined when calling getCampaignInsights.');
|
|
1102
|
-
}
|
|
1103
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1104
|
-
if (startDate !== undefined && startDate !== null) {
|
|
1105
|
-
queryParameters = queryParameters.set('startDate', startDate);
|
|
1106
|
-
}
|
|
1107
|
-
if (endDate !== undefined && endDate !== null) {
|
|
1108
|
-
queryParameters = queryParameters.set('endDate', endDate);
|
|
1109
|
-
}
|
|
1110
|
-
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
1111
|
-
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
1112
|
-
}
|
|
1113
|
-
if (interval !== undefined && interval !== null) {
|
|
1114
|
-
queryParameters = queryParameters.set('interval', interval);
|
|
1115
|
-
}
|
|
1116
|
-
if (requireMmpReport !== undefined && requireMmpReport !== null) {
|
|
1117
|
-
queryParameters = queryParameters.set('requireMmpReport', requireMmpReport);
|
|
1118
|
-
}
|
|
1119
|
-
let headers = this.defaultHeaders;
|
|
1120
|
-
// to determine the Accept header
|
|
1121
|
-
let httpHeaderAccepts = [
|
|
1122
|
-
'*/*'
|
|
1123
|
-
];
|
|
1124
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1125
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1126
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1127
|
-
}
|
|
1128
|
-
// to determine the Content-Type header
|
|
1129
|
-
const consumes = [];
|
|
1130
|
-
return this.httpClient.request('get', `${this.basePath}/api/campaign-insights`, {
|
|
1131
|
-
params: queryParameters,
|
|
1132
|
-
withCredentials: this.configuration.withCredentials,
|
|
1133
|
-
headers: headers,
|
|
1134
|
-
observe: observe,
|
|
1135
|
-
reportProgress: reportProgress
|
|
1136
|
-
});
|
|
1137
|
-
}
|
|
1138
|
-
}
|
|
1139
|
-
InsightsControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1140
|
-
InsightsControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService });
|
|
1141
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, decorators: [{
|
|
1142
|
-
type: Injectable
|
|
1143
|
-
}], ctorParameters: function () {
|
|
1144
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1145
|
-
type: Optional
|
|
1146
|
-
}, {
|
|
1147
|
-
type: Inject,
|
|
1148
|
-
args: [BASE_PATH]
|
|
1149
|
-
}] }, { type: Configuration, decorators: [{
|
|
1150
|
-
type: Optional
|
|
1151
|
-
}] }];
|
|
1023
|
+
/**
|
|
1024
|
+
* Intellibid API
|
|
1025
|
+
* API documentation for the Intellibid platform
|
|
1026
|
+
*
|
|
1027
|
+
* OpenAPI spec version: 1.0
|
|
1028
|
+
*
|
|
1029
|
+
*
|
|
1030
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1031
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1032
|
+
* Do not edit the class manually.
|
|
1033
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
1034
|
+
class InsightsControllerService {
|
|
1035
|
+
constructor(httpClient, basePath, configuration) {
|
|
1036
|
+
this.httpClient = httpClient;
|
|
1037
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
1038
|
+
this.defaultHeaders = new HttpHeaders();
|
|
1039
|
+
this.configuration = new Configuration();
|
|
1040
|
+
if (basePath) {
|
|
1041
|
+
this.basePath = basePath;
|
|
1042
|
+
}
|
|
1043
|
+
if (configuration) {
|
|
1044
|
+
this.configuration = configuration;
|
|
1045
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
1046
|
+
}
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* @param consumes string[] mime-types
|
|
1050
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1051
|
+
*/
|
|
1052
|
+
canConsumeForm(consumes) {
|
|
1053
|
+
const form = 'multipart/form-data';
|
|
1054
|
+
for (const consume of consumes) {
|
|
1055
|
+
if (form === consume) {
|
|
1056
|
+
return true;
|
|
1057
|
+
}
|
|
1058
|
+
}
|
|
1059
|
+
return false;
|
|
1060
|
+
}
|
|
1061
|
+
getCampaignInsights(startDate, endDate, sourcePlatform, interval, requireMmpReport, observe = 'body', reportProgress = false) {
|
|
1062
|
+
if (startDate === null || startDate === undefined) {
|
|
1063
|
+
throw new Error('Required parameter startDate was null or undefined when calling getCampaignInsights.');
|
|
1064
|
+
}
|
|
1065
|
+
if (endDate === null || endDate === undefined) {
|
|
1066
|
+
throw new Error('Required parameter endDate was null or undefined when calling getCampaignInsights.');
|
|
1067
|
+
}
|
|
1068
|
+
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
1069
|
+
throw new Error('Required parameter sourcePlatform was null or undefined when calling getCampaignInsights.');
|
|
1070
|
+
}
|
|
1071
|
+
if (interval === null || interval === undefined) {
|
|
1072
|
+
throw new Error('Required parameter interval was null or undefined when calling getCampaignInsights.');
|
|
1073
|
+
}
|
|
1074
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1075
|
+
if (startDate !== undefined && startDate !== null) {
|
|
1076
|
+
queryParameters = queryParameters.set('startDate', startDate);
|
|
1077
|
+
}
|
|
1078
|
+
if (endDate !== undefined && endDate !== null) {
|
|
1079
|
+
queryParameters = queryParameters.set('endDate', endDate);
|
|
1080
|
+
}
|
|
1081
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
1082
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
1083
|
+
}
|
|
1084
|
+
if (interval !== undefined && interval !== null) {
|
|
1085
|
+
queryParameters = queryParameters.set('interval', interval);
|
|
1086
|
+
}
|
|
1087
|
+
if (requireMmpReport !== undefined && requireMmpReport !== null) {
|
|
1088
|
+
queryParameters = queryParameters.set('requireMmpReport', requireMmpReport);
|
|
1089
|
+
}
|
|
1090
|
+
let headers = this.defaultHeaders;
|
|
1091
|
+
// to determine the Accept header
|
|
1092
|
+
let httpHeaderAccepts = [
|
|
1093
|
+
'*/*'
|
|
1094
|
+
];
|
|
1095
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1096
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
1097
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1098
|
+
}
|
|
1099
|
+
// to determine the Content-Type header
|
|
1100
|
+
const consumes = [];
|
|
1101
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign-insights`, {
|
|
1102
|
+
params: queryParameters,
|
|
1103
|
+
withCredentials: this.configuration.withCredentials,
|
|
1104
|
+
headers: headers,
|
|
1105
|
+
observe: observe,
|
|
1106
|
+
reportProgress: reportProgress
|
|
1107
|
+
});
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
InsightsControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1111
|
+
InsightsControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService });
|
|
1112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, decorators: [{
|
|
1113
|
+
type: Injectable
|
|
1114
|
+
}], ctorParameters: function () {
|
|
1115
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1116
|
+
type: Optional
|
|
1117
|
+
}, {
|
|
1118
|
+
type: Inject,
|
|
1119
|
+
args: [BASE_PATH]
|
|
1120
|
+
}] }, { type: Configuration, decorators: [{
|
|
1121
|
+
type: Optional
|
|
1122
|
+
}] }];
|
|
1152
1123
|
} });
|
|
1153
1124
|
|
|
1154
|
-
/**
|
|
1155
|
-
* Intellibid API
|
|
1156
|
-
* API documentation for the Intellibid platform
|
|
1157
|
-
*
|
|
1158
|
-
* OpenAPI spec version: 1.0
|
|
1159
|
-
*
|
|
1160
|
-
*
|
|
1161
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1162
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1163
|
-
* Do not edit the class manually.
|
|
1164
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
1165
|
-
class LookupDataControllerService {
|
|
1166
|
-
constructor(httpClient, basePath, configuration) {
|
|
1167
|
-
this.httpClient = httpClient;
|
|
1168
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
1169
|
-
this.defaultHeaders = new HttpHeaders();
|
|
1170
|
-
this.configuration = new Configuration();
|
|
1171
|
-
if (basePath) {
|
|
1172
|
-
this.basePath = basePath;
|
|
1173
|
-
}
|
|
1174
|
-
if (configuration) {
|
|
1175
|
-
this.configuration = configuration;
|
|
1176
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
/**
|
|
1180
|
-
* @param consumes string[] mime-types
|
|
1181
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1182
|
-
*/
|
|
1183
|
-
canConsumeForm(consumes) {
|
|
1184
|
-
const form = 'multipart/form-data';
|
|
1185
|
-
for (const consume of consumes) {
|
|
1186
|
-
if (form === consume) {
|
|
1187
|
-
return true;
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
return false;
|
|
1191
|
-
}
|
|
1192
|
-
getAllActiveOS(observe = 'body', reportProgress = false) {
|
|
1193
|
-
let headers = this.defaultHeaders;
|
|
1194
|
-
// to determine the Accept header
|
|
1195
|
-
let httpHeaderAccepts = [
|
|
1196
|
-
'*/*'
|
|
1197
|
-
];
|
|
1198
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1199
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1200
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1201
|
-
}
|
|
1202
|
-
// to determine the Content-Type header
|
|
1203
|
-
const consumes = [];
|
|
1204
|
-
return this.httpClient.request('get', `${this.basePath}/api/lookups/os`, {
|
|
1205
|
-
withCredentials: this.configuration.withCredentials,
|
|
1206
|
-
headers: headers,
|
|
1207
|
-
observe: observe,
|
|
1208
|
-
reportProgress: reportProgress
|
|
1209
|
-
});
|
|
1210
|
-
}
|
|
1211
|
-
getAllActivePlatforms(observe = 'body', reportProgress = false) {
|
|
1212
|
-
let headers = this.defaultHeaders;
|
|
1213
|
-
// to determine the Accept header
|
|
1214
|
-
let httpHeaderAccepts = [
|
|
1215
|
-
'*/*'
|
|
1216
|
-
];
|
|
1217
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1218
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1219
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1220
|
-
}
|
|
1221
|
-
// to determine the Content-Type header
|
|
1222
|
-
const consumes = [];
|
|
1223
|
-
return this.httpClient.request('get', `${this.basePath}/api/lookups/platforms`, {
|
|
1224
|
-
withCredentials: this.configuration.withCredentials,
|
|
1225
|
-
headers: headers,
|
|
1226
|
-
observe: observe,
|
|
1227
|
-
reportProgress: reportProgress
|
|
1228
|
-
});
|
|
1229
|
-
}
|
|
1230
|
-
getAllBusinessZones(observe = 'body', reportProgress = false) {
|
|
1231
|
-
let headers = this.defaultHeaders;
|
|
1232
|
-
// to determine the Accept header
|
|
1233
|
-
let httpHeaderAccepts = [
|
|
1234
|
-
'*/*'
|
|
1235
|
-
];
|
|
1236
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1237
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1238
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1239
|
-
}
|
|
1240
|
-
// to determine the Content-Type header
|
|
1241
|
-
const consumes = [];
|
|
1242
|
-
return this.httpClient.request('get', `${this.basePath}/api/lookups/business-zones`, {
|
|
1243
|
-
withCredentials: this.configuration.withCredentials,
|
|
1244
|
-
headers: headers,
|
|
1245
|
-
observe: observe,
|
|
1246
|
-
reportProgress: reportProgress
|
|
1247
|
-
});
|
|
1248
|
-
}
|
|
1249
|
-
getAllCountries(observe = 'body', reportProgress = false) {
|
|
1250
|
-
let headers = this.defaultHeaders;
|
|
1251
|
-
// to determine the Accept header
|
|
1252
|
-
let httpHeaderAccepts = [
|
|
1253
|
-
'*/*'
|
|
1254
|
-
];
|
|
1255
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1256
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1257
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1258
|
-
}
|
|
1259
|
-
// to determine the Content-Type header
|
|
1260
|
-
const consumes = [];
|
|
1261
|
-
return this.httpClient.request('get', `${this.basePath}/api/lookups/countries`, {
|
|
1262
|
-
withCredentials: this.configuration.withCredentials,
|
|
1263
|
-
headers: headers,
|
|
1264
|
-
observe: observe,
|
|
1265
|
-
reportProgress: reportProgress
|
|
1266
|
-
});
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
LookupDataControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1270
|
-
LookupDataControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService });
|
|
1271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService, decorators: [{
|
|
1272
|
-
type: Injectable
|
|
1273
|
-
}], ctorParameters: function () {
|
|
1274
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1275
|
-
type: Optional
|
|
1276
|
-
}, {
|
|
1277
|
-
type: Inject,
|
|
1278
|
-
args: [BASE_PATH]
|
|
1279
|
-
}] }, { type: Configuration, decorators: [{
|
|
1280
|
-
type: Optional
|
|
1281
|
-
}] }];
|
|
1125
|
+
/**
|
|
1126
|
+
* Intellibid API
|
|
1127
|
+
* API documentation for the Intellibid platform
|
|
1128
|
+
*
|
|
1129
|
+
* OpenAPI spec version: 1.0
|
|
1130
|
+
*
|
|
1131
|
+
*
|
|
1132
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1133
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1134
|
+
* Do not edit the class manually.
|
|
1135
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
1136
|
+
class LookupDataControllerService {
|
|
1137
|
+
constructor(httpClient, basePath, configuration) {
|
|
1138
|
+
this.httpClient = httpClient;
|
|
1139
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
1140
|
+
this.defaultHeaders = new HttpHeaders();
|
|
1141
|
+
this.configuration = new Configuration();
|
|
1142
|
+
if (basePath) {
|
|
1143
|
+
this.basePath = basePath;
|
|
1144
|
+
}
|
|
1145
|
+
if (configuration) {
|
|
1146
|
+
this.configuration = configuration;
|
|
1147
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
/**
|
|
1151
|
+
* @param consumes string[] mime-types
|
|
1152
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1153
|
+
*/
|
|
1154
|
+
canConsumeForm(consumes) {
|
|
1155
|
+
const form = 'multipart/form-data';
|
|
1156
|
+
for (const consume of consumes) {
|
|
1157
|
+
if (form === consume) {
|
|
1158
|
+
return true;
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
return false;
|
|
1162
|
+
}
|
|
1163
|
+
getAllActiveOS(observe = 'body', reportProgress = false) {
|
|
1164
|
+
let headers = this.defaultHeaders;
|
|
1165
|
+
// to determine the Accept header
|
|
1166
|
+
let httpHeaderAccepts = [
|
|
1167
|
+
'*/*'
|
|
1168
|
+
];
|
|
1169
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1170
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
1171
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1172
|
+
}
|
|
1173
|
+
// to determine the Content-Type header
|
|
1174
|
+
const consumes = [];
|
|
1175
|
+
return this.httpClient.request('get', `${this.basePath}/api/lookups/os`, {
|
|
1176
|
+
withCredentials: this.configuration.withCredentials,
|
|
1177
|
+
headers: headers,
|
|
1178
|
+
observe: observe,
|
|
1179
|
+
reportProgress: reportProgress
|
|
1180
|
+
});
|
|
1181
|
+
}
|
|
1182
|
+
getAllActivePlatforms(observe = 'body', reportProgress = false) {
|
|
1183
|
+
let headers = this.defaultHeaders;
|
|
1184
|
+
// to determine the Accept header
|
|
1185
|
+
let httpHeaderAccepts = [
|
|
1186
|
+
'*/*'
|
|
1187
|
+
];
|
|
1188
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1189
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
1190
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1191
|
+
}
|
|
1192
|
+
// to determine the Content-Type header
|
|
1193
|
+
const consumes = [];
|
|
1194
|
+
return this.httpClient.request('get', `${this.basePath}/api/lookups/platforms`, {
|
|
1195
|
+
withCredentials: this.configuration.withCredentials,
|
|
1196
|
+
headers: headers,
|
|
1197
|
+
observe: observe,
|
|
1198
|
+
reportProgress: reportProgress
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1201
|
+
getAllBusinessZones(observe = 'body', reportProgress = false) {
|
|
1202
|
+
let headers = this.defaultHeaders;
|
|
1203
|
+
// to determine the Accept header
|
|
1204
|
+
let httpHeaderAccepts = [
|
|
1205
|
+
'*/*'
|
|
1206
|
+
];
|
|
1207
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1208
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
1209
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1210
|
+
}
|
|
1211
|
+
// to determine the Content-Type header
|
|
1212
|
+
const consumes = [];
|
|
1213
|
+
return this.httpClient.request('get', `${this.basePath}/api/lookups/business-zones`, {
|
|
1214
|
+
withCredentials: this.configuration.withCredentials,
|
|
1215
|
+
headers: headers,
|
|
1216
|
+
observe: observe,
|
|
1217
|
+
reportProgress: reportProgress
|
|
1218
|
+
});
|
|
1219
|
+
}
|
|
1220
|
+
getAllCountries(observe = 'body', reportProgress = false) {
|
|
1221
|
+
let headers = this.defaultHeaders;
|
|
1222
|
+
// to determine the Accept header
|
|
1223
|
+
let httpHeaderAccepts = [
|
|
1224
|
+
'*/*'
|
|
1225
|
+
];
|
|
1226
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1227
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
1228
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1229
|
+
}
|
|
1230
|
+
// to determine the Content-Type header
|
|
1231
|
+
const consumes = [];
|
|
1232
|
+
return this.httpClient.request('get', `${this.basePath}/api/lookups/countries`, {
|
|
1233
|
+
withCredentials: this.configuration.withCredentials,
|
|
1234
|
+
headers: headers,
|
|
1235
|
+
observe: observe,
|
|
1236
|
+
reportProgress: reportProgress
|
|
1237
|
+
});
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
LookupDataControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1241
|
+
LookupDataControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService });
|
|
1242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService, decorators: [{
|
|
1243
|
+
type: Injectable
|
|
1244
|
+
}], ctorParameters: function () {
|
|
1245
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1246
|
+
type: Optional
|
|
1247
|
+
}, {
|
|
1248
|
+
type: Inject,
|
|
1249
|
+
args: [BASE_PATH]
|
|
1250
|
+
}] }, { type: Configuration, decorators: [{
|
|
1251
|
+
type: Optional
|
|
1252
|
+
}] }];
|
|
1282
1253
|
} });
|
|
1283
1254
|
|
|
1284
1255
|
const APIS = [AdvertiserControllerService, AudienceControllerService, CampaignControllerService, InsightsControllerService, LookupDataControllerService];
|
|
1285
1256
|
|
|
1286
|
-
/**
|
|
1287
|
-
* Intellibid API
|
|
1288
|
-
* API documentation for the Intellibid platform
|
|
1289
|
-
*
|
|
1290
|
-
* OpenAPI spec version: 1.0
|
|
1291
|
-
*
|
|
1292
|
-
*
|
|
1293
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1294
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1295
|
-
* Do not edit the class manually.
|
|
1296
|
-
*/
|
|
1297
|
-
var AdAccountResponse;
|
|
1298
|
-
(function (AdAccountResponse) {
|
|
1299
|
-
AdAccountResponse.SourcePlatformEnum = {
|
|
1300
|
-
META: 'META',
|
|
1301
|
-
TIKTOK: 'TIKTOK',
|
|
1302
|
-
SNAPCHAT: 'SNAPCHAT',
|
|
1303
|
-
GOOGLE: 'GOOGLE',
|
|
1304
|
-
LYADS: 'LYADS'
|
|
1305
|
-
};
|
|
1306
|
-
AdAccountResponse.AccountTypeEnum = {
|
|
1307
|
-
SEARCH: 'SEARCH',
|
|
1308
|
-
DISPLAY: 'DISPLAY'
|
|
1309
|
-
};
|
|
1257
|
+
/**
|
|
1258
|
+
* Intellibid API
|
|
1259
|
+
* API documentation for the Intellibid platform
|
|
1260
|
+
*
|
|
1261
|
+
* OpenAPI spec version: 1.0
|
|
1262
|
+
*
|
|
1263
|
+
*
|
|
1264
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1265
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1266
|
+
* Do not edit the class manually.
|
|
1267
|
+
*/
|
|
1268
|
+
var AdAccountResponse;
|
|
1269
|
+
(function (AdAccountResponse) {
|
|
1270
|
+
AdAccountResponse.SourcePlatformEnum = {
|
|
1271
|
+
META: 'META',
|
|
1272
|
+
TIKTOK: 'TIKTOK',
|
|
1273
|
+
SNAPCHAT: 'SNAPCHAT',
|
|
1274
|
+
GOOGLE: 'GOOGLE',
|
|
1275
|
+
LYADS: 'LYADS'
|
|
1276
|
+
};
|
|
1277
|
+
AdAccountResponse.AccountTypeEnum = {
|
|
1278
|
+
SEARCH: 'SEARCH',
|
|
1279
|
+
DISPLAY: 'DISPLAY'
|
|
1280
|
+
};
|
|
1310
1281
|
})(AdAccountResponse || (AdAccountResponse = {}));
|
|
1311
1282
|
|
|
1312
|
-
var AudienceResponse;
|
|
1313
|
-
(function (AudienceResponse) {
|
|
1314
|
-
AudienceResponse.GroupTypeEnum = {
|
|
1315
|
-
BUCKETIZEDLIVE: 'BUCKETIZED_LIVE',
|
|
1316
|
-
BLOCKEDLIVE: 'BLOCKED_LIVE',
|
|
1317
|
-
BUCKETIZEDCUSTOM: 'BUCKETIZED_CUSTOM',
|
|
1318
|
-
DSCUSTOMQUERY: 'DS_CUSTOM_QUERY'
|
|
1319
|
-
};
|
|
1320
|
-
AudienceResponse.SyncStatusEnum = {
|
|
1321
|
-
IDLE: 'IDLE',
|
|
1322
|
-
SYNCING: 'SYNCING',
|
|
1323
|
-
PARTIAL: 'PARTIAL',
|
|
1324
|
-
FAILED: 'FAILED',
|
|
1325
|
-
GAVEUP: 'GAVE_UP'
|
|
1326
|
-
};
|
|
1283
|
+
var AudienceResponse;
|
|
1284
|
+
(function (AudienceResponse) {
|
|
1285
|
+
AudienceResponse.GroupTypeEnum = {
|
|
1286
|
+
BUCKETIZEDLIVE: 'BUCKETIZED_LIVE',
|
|
1287
|
+
BLOCKEDLIVE: 'BLOCKED_LIVE',
|
|
1288
|
+
BUCKETIZEDCUSTOM: 'BUCKETIZED_CUSTOM',
|
|
1289
|
+
DSCUSTOMQUERY: 'DS_CUSTOM_QUERY'
|
|
1290
|
+
};
|
|
1291
|
+
AudienceResponse.SyncStatusEnum = {
|
|
1292
|
+
IDLE: 'IDLE',
|
|
1293
|
+
SYNCING: 'SYNCING',
|
|
1294
|
+
PARTIAL: 'PARTIAL',
|
|
1295
|
+
FAILED: 'FAILED',
|
|
1296
|
+
GAVEUP: 'GAVE_UP'
|
|
1297
|
+
};
|
|
1327
1298
|
})(AudienceResponse || (AudienceResponse = {}));
|
|
1328
1299
|
|
|
1329
|
-
/**
|
|
1330
|
-
* Intellibid API
|
|
1331
|
-
* API documentation for the Intellibid platform
|
|
1332
|
-
*
|
|
1333
|
-
* OpenAPI spec version: 1.0
|
|
1334
|
-
*
|
|
1335
|
-
*
|
|
1336
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1337
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1338
|
-
* Do not edit the class manually.
|
|
1339
|
-
*/
|
|
1340
|
-
var CampaignChangeLogResponse;
|
|
1341
|
-
(function (CampaignChangeLogResponse) {
|
|
1342
|
-
CampaignChangeLogResponse.EntityChangedEnum = {
|
|
1343
|
-
STATUS: 'STATUS',
|
|
1344
|
-
BUDGET: 'BUDGET',
|
|
1345
|
-
PAYOUTVALUE: 'PAYOUT_VALUE'
|
|
1346
|
-
};
|
|
1347
|
-
CampaignChangeLogResponse.StatusEnum = {
|
|
1348
|
-
SUCCESS: 'SUCCESS',
|
|
1349
|
-
FAILED: 'FAILED'
|
|
1350
|
-
};
|
|
1300
|
+
/**
|
|
1301
|
+
* Intellibid API
|
|
1302
|
+
* API documentation for the Intellibid platform
|
|
1303
|
+
*
|
|
1304
|
+
* OpenAPI spec version: 1.0
|
|
1305
|
+
*
|
|
1306
|
+
*
|
|
1307
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1308
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1309
|
+
* Do not edit the class manually.
|
|
1310
|
+
*/
|
|
1311
|
+
var CampaignChangeLogResponse;
|
|
1312
|
+
(function (CampaignChangeLogResponse) {
|
|
1313
|
+
CampaignChangeLogResponse.EntityChangedEnum = {
|
|
1314
|
+
STATUS: 'STATUS',
|
|
1315
|
+
BUDGET: 'BUDGET',
|
|
1316
|
+
PAYOUTVALUE: 'PAYOUT_VALUE'
|
|
1317
|
+
};
|
|
1318
|
+
CampaignChangeLogResponse.StatusEnum = {
|
|
1319
|
+
SUCCESS: 'SUCCESS',
|
|
1320
|
+
FAILED: 'FAILED'
|
|
1321
|
+
};
|
|
1351
1322
|
})(CampaignChangeLogResponse || (CampaignChangeLogResponse = {}));
|
|
1352
1323
|
|
|
1353
|
-
/**
|
|
1354
|
-
* Intellibid API
|
|
1355
|
-
* API documentation for the Intellibid platform
|
|
1356
|
-
*
|
|
1357
|
-
* OpenAPI spec version: 1.0
|
|
1358
|
-
*
|
|
1359
|
-
*
|
|
1360
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1361
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1362
|
-
* Do not edit the class manually.
|
|
1363
|
-
*/
|
|
1364
|
-
var CampaignInsightRecord;
|
|
1365
|
-
(function (CampaignInsightRecord) {
|
|
1366
|
-
CampaignInsightRecord.PayoutTypeEnum = {
|
|
1367
|
-
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
1368
|
-
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
1369
|
-
};
|
|
1324
|
+
/**
|
|
1325
|
+
* Intellibid API
|
|
1326
|
+
* API documentation for the Intellibid platform
|
|
1327
|
+
*
|
|
1328
|
+
* OpenAPI spec version: 1.0
|
|
1329
|
+
*
|
|
1330
|
+
*
|
|
1331
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1332
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1333
|
+
* Do not edit the class manually.
|
|
1334
|
+
*/
|
|
1335
|
+
var CampaignInsightRecord;
|
|
1336
|
+
(function (CampaignInsightRecord) {
|
|
1337
|
+
CampaignInsightRecord.PayoutTypeEnum = {
|
|
1338
|
+
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
1339
|
+
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
1340
|
+
};
|
|
1370
1341
|
})(CampaignInsightRecord || (CampaignInsightRecord = {}));
|
|
1371
1342
|
|
|
1372
|
-
/**
|
|
1373
|
-
* Intellibid API
|
|
1374
|
-
* API documentation for the Intellibid platform
|
|
1375
|
-
*
|
|
1376
|
-
* OpenAPI spec version: 1.0
|
|
1377
|
-
*
|
|
1378
|
-
*
|
|
1379
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1380
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1381
|
-
* Do not edit the class manually.
|
|
1382
|
-
*/
|
|
1383
|
-
var CampaignRequest;
|
|
1384
|
-
(function (CampaignRequest) {
|
|
1385
|
-
CampaignRequest.SourcePlatformEnum = {
|
|
1386
|
-
META: 'META',
|
|
1387
|
-
TIKTOK: 'TIKTOK',
|
|
1388
|
-
SNAPCHAT: 'SNAPCHAT',
|
|
1389
|
-
GOOGLE: 'GOOGLE',
|
|
1390
|
-
LYADS: 'LYADS'
|
|
1391
|
-
};
|
|
1392
|
-
CampaignRequest.PayoutTypeEnum = {
|
|
1393
|
-
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
1394
|
-
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
1395
|
-
};
|
|
1396
|
-
CampaignRequest.GoalEnum = {
|
|
1397
|
-
COSTPERRESULT: 'COST_PER_RESULT',
|
|
1398
|
-
ROAS: 'ROAS'
|
|
1399
|
-
};
|
|
1400
|
-
CampaignRequest.MmpAttributionSettingEnum = {
|
|
1401
|
-
CTA: 'CTA',
|
|
1402
|
-
CTAANDVTA: 'CTA_AND_VTA'
|
|
1403
|
-
};
|
|
1343
|
+
/**
|
|
1344
|
+
* Intellibid API
|
|
1345
|
+
* API documentation for the Intellibid platform
|
|
1346
|
+
*
|
|
1347
|
+
* OpenAPI spec version: 1.0
|
|
1348
|
+
*
|
|
1349
|
+
*
|
|
1350
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1351
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1352
|
+
* Do not edit the class manually.
|
|
1353
|
+
*/
|
|
1354
|
+
var CampaignRequest;
|
|
1355
|
+
(function (CampaignRequest) {
|
|
1356
|
+
CampaignRequest.SourcePlatformEnum = {
|
|
1357
|
+
META: 'META',
|
|
1358
|
+
TIKTOK: 'TIKTOK',
|
|
1359
|
+
SNAPCHAT: 'SNAPCHAT',
|
|
1360
|
+
GOOGLE: 'GOOGLE',
|
|
1361
|
+
LYADS: 'LYADS'
|
|
1362
|
+
};
|
|
1363
|
+
CampaignRequest.PayoutTypeEnum = {
|
|
1364
|
+
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
1365
|
+
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
1366
|
+
};
|
|
1367
|
+
CampaignRequest.GoalEnum = {
|
|
1368
|
+
COSTPERRESULT: 'COST_PER_RESULT',
|
|
1369
|
+
ROAS: 'ROAS'
|
|
1370
|
+
};
|
|
1371
|
+
CampaignRequest.MmpAttributionSettingEnum = {
|
|
1372
|
+
CTA: 'CTA',
|
|
1373
|
+
CTAANDVTA: 'CTA_AND_VTA'
|
|
1374
|
+
};
|
|
1404
1375
|
})(CampaignRequest || (CampaignRequest = {}));
|
|
1405
1376
|
|
|
1406
|
-
var CampaignResponse;
|
|
1407
|
-
(function (CampaignResponse) {
|
|
1408
|
-
CampaignResponse.SourcePlatformEnum = {
|
|
1409
|
-
META: 'META',
|
|
1410
|
-
TIKTOK: 'TIKTOK',
|
|
1411
|
-
SNAPCHAT: 'SNAPCHAT',
|
|
1412
|
-
GOOGLE: 'GOOGLE',
|
|
1413
|
-
LYADS: 'LYADS'
|
|
1414
|
-
};
|
|
1415
|
-
CampaignResponse.AccountTypeEnum = {
|
|
1416
|
-
SEARCH: 'SEARCH',
|
|
1417
|
-
DISPLAY: 'DISPLAY'
|
|
1418
|
-
};
|
|
1419
|
-
CampaignResponse.PayoutTypeEnum = {
|
|
1420
|
-
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
1421
|
-
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
1422
|
-
};
|
|
1423
|
-
CampaignResponse.GoalEnum = {
|
|
1424
|
-
COSTPERRESULT: 'COST_PER_RESULT',
|
|
1425
|
-
ROAS: 'ROAS'
|
|
1426
|
-
};
|
|
1427
|
-
CampaignResponse.MmpAttributionSettingEnum = {
|
|
1428
|
-
CTA: 'CTA',
|
|
1429
|
-
CTAANDVTA: 'CTA_AND_VTA'
|
|
1430
|
-
};
|
|
1377
|
+
var CampaignResponse;
|
|
1378
|
+
(function (CampaignResponse) {
|
|
1379
|
+
CampaignResponse.SourcePlatformEnum = {
|
|
1380
|
+
META: 'META',
|
|
1381
|
+
TIKTOK: 'TIKTOK',
|
|
1382
|
+
SNAPCHAT: 'SNAPCHAT',
|
|
1383
|
+
GOOGLE: 'GOOGLE',
|
|
1384
|
+
LYADS: 'LYADS'
|
|
1385
|
+
};
|
|
1386
|
+
CampaignResponse.AccountTypeEnum = {
|
|
1387
|
+
SEARCH: 'SEARCH',
|
|
1388
|
+
DISPLAY: 'DISPLAY'
|
|
1389
|
+
};
|
|
1390
|
+
CampaignResponse.PayoutTypeEnum = {
|
|
1391
|
+
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
1392
|
+
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
1393
|
+
};
|
|
1394
|
+
CampaignResponse.GoalEnum = {
|
|
1395
|
+
COSTPERRESULT: 'COST_PER_RESULT',
|
|
1396
|
+
ROAS: 'ROAS'
|
|
1397
|
+
};
|
|
1398
|
+
CampaignResponse.MmpAttributionSettingEnum = {
|
|
1399
|
+
CTA: 'CTA',
|
|
1400
|
+
CTAANDVTA: 'CTA_AND_VTA'
|
|
1401
|
+
};
|
|
1431
1402
|
})(CampaignResponse || (CampaignResponse = {}));
|
|
1432
1403
|
|
|
1433
|
-
/**
|
|
1434
|
-
* Intellibid API
|
|
1435
|
-
* API documentation for the Intellibid platform
|
|
1436
|
-
*
|
|
1437
|
-
* OpenAPI spec version: 1.0
|
|
1438
|
-
*
|
|
1439
|
-
*
|
|
1440
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1441
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1442
|
-
* Do not edit the class manually.
|
|
1443
|
-
*/
|
|
1444
|
-
var ChildAudience;
|
|
1445
|
-
(function (ChildAudience) {
|
|
1446
|
-
ChildAudience.AudienceTypeEnum = {
|
|
1447
|
-
DYNAMIC: 'DYNAMIC',
|
|
1448
|
-
CATALOGUE: 'CATALOGUE'
|
|
1449
|
-
};
|
|
1450
|
-
ChildAudience.AudienceSourceEnum = {
|
|
1451
|
-
INTELLIBID: 'INTELLIBID',
|
|
1452
|
-
DS: 'DS'
|
|
1453
|
-
};
|
|
1454
|
-
ChildAudience.UploadModeEnum = {
|
|
1455
|
-
API: 'API',
|
|
1456
|
-
CSV: 'CSV'
|
|
1457
|
-
};
|
|
1458
|
-
ChildAudience.UploadFrequencyEnum = {
|
|
1459
|
-
ONCE: 'ONCE',
|
|
1460
|
-
DAILY: 'DAILY',
|
|
1461
|
-
EVERY2D: 'EVERY_2D',
|
|
1462
|
-
WEEKLY: 'WEEKLY',
|
|
1463
|
-
MONTHLY: 'MONTHLY'
|
|
1464
|
-
};
|
|
1465
|
-
ChildAudience.BlockingOperatorEnum = {
|
|
1466
|
-
GTE: 'GTE',
|
|
1467
|
-
EQ: 'EQ'
|
|
1468
|
-
};
|
|
1404
|
+
/**
|
|
1405
|
+
* Intellibid API
|
|
1406
|
+
* API documentation for the Intellibid platform
|
|
1407
|
+
*
|
|
1408
|
+
* OpenAPI spec version: 1.0
|
|
1409
|
+
*
|
|
1410
|
+
*
|
|
1411
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1412
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1413
|
+
* Do not edit the class manually.
|
|
1414
|
+
*/
|
|
1415
|
+
var ChildAudience;
|
|
1416
|
+
(function (ChildAudience) {
|
|
1417
|
+
ChildAudience.AudienceTypeEnum = {
|
|
1418
|
+
DYNAMIC: 'DYNAMIC',
|
|
1419
|
+
CATALOGUE: 'CATALOGUE'
|
|
1420
|
+
};
|
|
1421
|
+
ChildAudience.AudienceSourceEnum = {
|
|
1422
|
+
INTELLIBID: 'INTELLIBID',
|
|
1423
|
+
DS: 'DS'
|
|
1424
|
+
};
|
|
1425
|
+
ChildAudience.UploadModeEnum = {
|
|
1426
|
+
API: 'API',
|
|
1427
|
+
CSV: 'CSV'
|
|
1428
|
+
};
|
|
1429
|
+
ChildAudience.UploadFrequencyEnum = {
|
|
1430
|
+
ONCE: 'ONCE',
|
|
1431
|
+
DAILY: 'DAILY',
|
|
1432
|
+
EVERY2D: 'EVERY_2D',
|
|
1433
|
+
WEEKLY: 'WEEKLY',
|
|
1434
|
+
MONTHLY: 'MONTHLY'
|
|
1435
|
+
};
|
|
1436
|
+
ChildAudience.BlockingOperatorEnum = {
|
|
1437
|
+
GTE: 'GTE',
|
|
1438
|
+
EQ: 'EQ'
|
|
1439
|
+
};
|
|
1469
1440
|
})(ChildAudience || (ChildAudience = {}));
|
|
1470
1441
|
|
|
1471
|
-
/**
|
|
1472
|
-
* Intellibid API
|
|
1473
|
-
* API documentation for the Intellibid platform
|
|
1474
|
-
*
|
|
1475
|
-
* OpenAPI spec version: 1.0
|
|
1476
|
-
*
|
|
1477
|
-
*
|
|
1478
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1479
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1480
|
-
* Do not edit the class manually.
|
|
1481
|
-
*/
|
|
1482
|
-
var CreateBlockedLiveAudienceRequest;
|
|
1483
|
-
(function (CreateBlockedLiveAudienceRequest) {
|
|
1484
|
-
CreateBlockedLiveAudienceRequest.SourcePlatformEnum = {
|
|
1485
|
-
META: 'META',
|
|
1486
|
-
TIKTOK: 'TIKTOK',
|
|
1487
|
-
SNAPCHAT: 'SNAPCHAT',
|
|
1488
|
-
GOOGLE: 'GOOGLE',
|
|
1489
|
-
LYADS: 'LYADS'
|
|
1490
|
-
};
|
|
1442
|
+
/**
|
|
1443
|
+
* Intellibid API
|
|
1444
|
+
* API documentation for the Intellibid platform
|
|
1445
|
+
*
|
|
1446
|
+
* OpenAPI spec version: 1.0
|
|
1447
|
+
*
|
|
1448
|
+
*
|
|
1449
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1450
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1451
|
+
* Do not edit the class manually.
|
|
1452
|
+
*/
|
|
1453
|
+
var CreateBlockedLiveAudienceRequest;
|
|
1454
|
+
(function (CreateBlockedLiveAudienceRequest) {
|
|
1455
|
+
CreateBlockedLiveAudienceRequest.SourcePlatformEnum = {
|
|
1456
|
+
META: 'META',
|
|
1457
|
+
TIKTOK: 'TIKTOK',
|
|
1458
|
+
SNAPCHAT: 'SNAPCHAT',
|
|
1459
|
+
GOOGLE: 'GOOGLE',
|
|
1460
|
+
LYADS: 'LYADS'
|
|
1461
|
+
};
|
|
1491
1462
|
})(CreateBlockedLiveAudienceRequest || (CreateBlockedLiveAudienceRequest = {}));
|
|
1492
1463
|
|
|
1493
|
-
/**
|
|
1494
|
-
* Intellibid API
|
|
1495
|
-
* API documentation for the Intellibid platform
|
|
1496
|
-
*
|
|
1497
|
-
* OpenAPI spec version: 1.0
|
|
1498
|
-
*
|
|
1499
|
-
*
|
|
1500
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1501
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1502
|
-
* Do not edit the class manually.
|
|
1503
|
-
*/
|
|
1504
|
-
var CreateBucketizedCustomAudienceRequest;
|
|
1505
|
-
(function (CreateBucketizedCustomAudienceRequest) {
|
|
1506
|
-
CreateBucketizedCustomAudienceRequest.SourcePlatformEnum = {
|
|
1507
|
-
META: 'META',
|
|
1508
|
-
TIKTOK: 'TIKTOK',
|
|
1509
|
-
SNAPCHAT: 'SNAPCHAT',
|
|
1510
|
-
GOOGLE: 'GOOGLE',
|
|
1511
|
-
LYADS: 'LYADS'
|
|
1512
|
-
};
|
|
1513
|
-
CreateBucketizedCustomAudienceRequest.AudienceSourceEnum = {
|
|
1514
|
-
INTELLIBID: 'INTELLIBID',
|
|
1515
|
-
DS: 'DS'
|
|
1516
|
-
};
|
|
1517
|
-
CreateBucketizedCustomAudienceRequest.UploadModeEnum = {
|
|
1518
|
-
API: 'API',
|
|
1519
|
-
CSV: 'CSV'
|
|
1520
|
-
};
|
|
1521
|
-
CreateBucketizedCustomAudienceRequest.UploadFrequencyEnum = {
|
|
1522
|
-
ONCE: 'ONCE',
|
|
1523
|
-
DAILY: 'DAILY',
|
|
1524
|
-
EVERY2D: 'EVERY_2D',
|
|
1525
|
-
WEEKLY: 'WEEKLY',
|
|
1526
|
-
MONTHLY: 'MONTHLY'
|
|
1527
|
-
};
|
|
1464
|
+
/**
|
|
1465
|
+
* Intellibid API
|
|
1466
|
+
* API documentation for the Intellibid platform
|
|
1467
|
+
*
|
|
1468
|
+
* OpenAPI spec version: 1.0
|
|
1469
|
+
*
|
|
1470
|
+
*
|
|
1471
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1472
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1473
|
+
* Do not edit the class manually.
|
|
1474
|
+
*/
|
|
1475
|
+
var CreateBucketizedCustomAudienceRequest;
|
|
1476
|
+
(function (CreateBucketizedCustomAudienceRequest) {
|
|
1477
|
+
CreateBucketizedCustomAudienceRequest.SourcePlatformEnum = {
|
|
1478
|
+
META: 'META',
|
|
1479
|
+
TIKTOK: 'TIKTOK',
|
|
1480
|
+
SNAPCHAT: 'SNAPCHAT',
|
|
1481
|
+
GOOGLE: 'GOOGLE',
|
|
1482
|
+
LYADS: 'LYADS'
|
|
1483
|
+
};
|
|
1484
|
+
CreateBucketizedCustomAudienceRequest.AudienceSourceEnum = {
|
|
1485
|
+
INTELLIBID: 'INTELLIBID',
|
|
1486
|
+
DS: 'DS'
|
|
1487
|
+
};
|
|
1488
|
+
CreateBucketizedCustomAudienceRequest.UploadModeEnum = {
|
|
1489
|
+
API: 'API',
|
|
1490
|
+
CSV: 'CSV'
|
|
1491
|
+
};
|
|
1492
|
+
CreateBucketizedCustomAudienceRequest.UploadFrequencyEnum = {
|
|
1493
|
+
ONCE: 'ONCE',
|
|
1494
|
+
DAILY: 'DAILY',
|
|
1495
|
+
EVERY2D: 'EVERY_2D',
|
|
1496
|
+
WEEKLY: 'WEEKLY',
|
|
1497
|
+
MONTHLY: 'MONTHLY'
|
|
1498
|
+
};
|
|
1528
1499
|
})(CreateBucketizedCustomAudienceRequest || (CreateBucketizedCustomAudienceRequest = {}));
|
|
1529
1500
|
|
|
1530
|
-
/**
|
|
1531
|
-
* Intellibid API
|
|
1532
|
-
* API documentation for the Intellibid platform
|
|
1533
|
-
*
|
|
1534
|
-
* OpenAPI spec version: 1.0
|
|
1535
|
-
*
|
|
1536
|
-
*
|
|
1537
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1538
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1539
|
-
* Do not edit the class manually.
|
|
1540
|
-
*/
|
|
1541
|
-
var CreateBucketizedLiveAudienceRequest;
|
|
1542
|
-
(function (CreateBucketizedLiveAudienceRequest) {
|
|
1543
|
-
CreateBucketizedLiveAudienceRequest.SourcePlatformEnum = {
|
|
1544
|
-
META: 'META',
|
|
1545
|
-
TIKTOK: 'TIKTOK',
|
|
1546
|
-
SNAPCHAT: 'SNAPCHAT',
|
|
1547
|
-
GOOGLE: 'GOOGLE',
|
|
1548
|
-
LYADS: 'LYADS'
|
|
1549
|
-
};
|
|
1550
|
-
CreateBucketizedLiveAudienceRequest.AudienceTypeEnum = {
|
|
1551
|
-
DYNAMIC: 'DYNAMIC',
|
|
1552
|
-
CATALOGUE: 'CATALOGUE'
|
|
1553
|
-
};
|
|
1501
|
+
/**
|
|
1502
|
+
* Intellibid API
|
|
1503
|
+
* API documentation for the Intellibid platform
|
|
1504
|
+
*
|
|
1505
|
+
* OpenAPI spec version: 1.0
|
|
1506
|
+
*
|
|
1507
|
+
*
|
|
1508
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1509
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1510
|
+
* Do not edit the class manually.
|
|
1511
|
+
*/
|
|
1512
|
+
var CreateBucketizedLiveAudienceRequest;
|
|
1513
|
+
(function (CreateBucketizedLiveAudienceRequest) {
|
|
1514
|
+
CreateBucketizedLiveAudienceRequest.SourcePlatformEnum = {
|
|
1515
|
+
META: 'META',
|
|
1516
|
+
TIKTOK: 'TIKTOK',
|
|
1517
|
+
SNAPCHAT: 'SNAPCHAT',
|
|
1518
|
+
GOOGLE: 'GOOGLE',
|
|
1519
|
+
LYADS: 'LYADS'
|
|
1520
|
+
};
|
|
1521
|
+
CreateBucketizedLiveAudienceRequest.AudienceTypeEnum = {
|
|
1522
|
+
DYNAMIC: 'DYNAMIC',
|
|
1523
|
+
CATALOGUE: 'CATALOGUE'
|
|
1524
|
+
};
|
|
1554
1525
|
})(CreateBucketizedLiveAudienceRequest || (CreateBucketizedLiveAudienceRequest = {}));
|
|
1555
1526
|
|
|
1556
|
-
/**
|
|
1557
|
-
* Intellibid API
|
|
1558
|
-
* API documentation for the Intellibid platform
|
|
1559
|
-
*
|
|
1560
|
-
* OpenAPI spec version: 1.0
|
|
1561
|
-
*
|
|
1562
|
-
*
|
|
1563
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1564
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1565
|
-
* Do not edit the class manually.
|
|
1566
|
-
*/
|
|
1567
|
-
var CreateDsCustomQueryAudienceRequest;
|
|
1568
|
-
(function (CreateDsCustomQueryAudienceRequest) {
|
|
1569
|
-
CreateDsCustomQueryAudienceRequest.SourcePlatformEnum = {
|
|
1570
|
-
META: 'META',
|
|
1571
|
-
TIKTOK: 'TIKTOK',
|
|
1572
|
-
SNAPCHAT: 'SNAPCHAT',
|
|
1573
|
-
GOOGLE: 'GOOGLE',
|
|
1574
|
-
LYADS: 'LYADS'
|
|
1575
|
-
};
|
|
1576
|
-
CreateDsCustomQueryAudienceRequest.UploadModeEnum = {
|
|
1577
|
-
API: 'API',
|
|
1578
|
-
CSV: 'CSV'
|
|
1579
|
-
};
|
|
1580
|
-
CreateDsCustomQueryAudienceRequest.UploadFrequencyEnum = {
|
|
1581
|
-
ONCE: 'ONCE',
|
|
1582
|
-
DAILY: 'DAILY',
|
|
1583
|
-
EVERY2D: 'EVERY_2D',
|
|
1584
|
-
WEEKLY: 'WEEKLY',
|
|
1585
|
-
MONTHLY: 'MONTHLY'
|
|
1586
|
-
};
|
|
1527
|
+
/**
|
|
1528
|
+
* Intellibid API
|
|
1529
|
+
* API documentation for the Intellibid platform
|
|
1530
|
+
*
|
|
1531
|
+
* OpenAPI spec version: 1.0
|
|
1532
|
+
*
|
|
1533
|
+
*
|
|
1534
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1535
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1536
|
+
* Do not edit the class manually.
|
|
1537
|
+
*/
|
|
1538
|
+
var CreateDsCustomQueryAudienceRequest;
|
|
1539
|
+
(function (CreateDsCustomQueryAudienceRequest) {
|
|
1540
|
+
CreateDsCustomQueryAudienceRequest.SourcePlatformEnum = {
|
|
1541
|
+
META: 'META',
|
|
1542
|
+
TIKTOK: 'TIKTOK',
|
|
1543
|
+
SNAPCHAT: 'SNAPCHAT',
|
|
1544
|
+
GOOGLE: 'GOOGLE',
|
|
1545
|
+
LYADS: 'LYADS'
|
|
1546
|
+
};
|
|
1547
|
+
CreateDsCustomQueryAudienceRequest.UploadModeEnum = {
|
|
1548
|
+
API: 'API',
|
|
1549
|
+
CSV: 'CSV'
|
|
1550
|
+
};
|
|
1551
|
+
CreateDsCustomQueryAudienceRequest.UploadFrequencyEnum = {
|
|
1552
|
+
ONCE: 'ONCE',
|
|
1553
|
+
DAILY: 'DAILY',
|
|
1554
|
+
EVERY2D: 'EVERY_2D',
|
|
1555
|
+
WEEKLY: 'WEEKLY',
|
|
1556
|
+
MONTHLY: 'MONTHLY'
|
|
1557
|
+
};
|
|
1587
1558
|
})(CreateDsCustomQueryAudienceRequest || (CreateDsCustomQueryAudienceRequest = {}));
|
|
1588
1559
|
|
|
1589
|
-
/**
|
|
1590
|
-
* Intellibid API
|
|
1591
|
-
* API documentation for the Intellibid platform
|
|
1592
|
-
*
|
|
1593
|
-
* OpenAPI spec version: 1.0
|
|
1594
|
-
*
|
|
1595
|
-
*
|
|
1596
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1597
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1598
|
-
* Do not edit the class manually.
|
|
1599
|
-
*/
|
|
1600
|
-
var ProductSetRequest;
|
|
1601
|
-
(function (ProductSetRequest) {
|
|
1602
|
-
ProductSetRequest.SourcePlatformEnum = {
|
|
1603
|
-
META: 'META',
|
|
1604
|
-
TIKTOK: 'TIKTOK',
|
|
1605
|
-
SNAPCHAT: 'SNAPCHAT',
|
|
1606
|
-
GOOGLE: 'GOOGLE',
|
|
1607
|
-
LYADS: 'LYADS'
|
|
1608
|
-
};
|
|
1560
|
+
/**
|
|
1561
|
+
* Intellibid API
|
|
1562
|
+
* API documentation for the Intellibid platform
|
|
1563
|
+
*
|
|
1564
|
+
* OpenAPI spec version: 1.0
|
|
1565
|
+
*
|
|
1566
|
+
*
|
|
1567
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1568
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1569
|
+
* Do not edit the class manually.
|
|
1570
|
+
*/
|
|
1571
|
+
var ProductSetRequest;
|
|
1572
|
+
(function (ProductSetRequest) {
|
|
1573
|
+
ProductSetRequest.SourcePlatformEnum = {
|
|
1574
|
+
META: 'META',
|
|
1575
|
+
TIKTOK: 'TIKTOK',
|
|
1576
|
+
SNAPCHAT: 'SNAPCHAT',
|
|
1577
|
+
GOOGLE: 'GOOGLE',
|
|
1578
|
+
LYADS: 'LYADS'
|
|
1579
|
+
};
|
|
1609
1580
|
})(ProductSetRequest || (ProductSetRequest = {}));
|
|
1610
1581
|
|
|
1611
|
-
/**
|
|
1612
|
-
* Intellibid API
|
|
1613
|
-
* API documentation for the Intellibid platform
|
|
1614
|
-
*
|
|
1615
|
-
* OpenAPI spec version: 1.0
|
|
1616
|
-
*
|
|
1617
|
-
*
|
|
1618
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1619
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1620
|
-
* Do not edit the class manually.
|
|
1621
|
-
*/
|
|
1622
|
-
var ProductSetResponse;
|
|
1623
|
-
(function (ProductSetResponse) {
|
|
1624
|
-
ProductSetResponse.SourcePlatformEnum = {
|
|
1625
|
-
META: 'META',
|
|
1626
|
-
TIKTOK: 'TIKTOK',
|
|
1627
|
-
SNAPCHAT: 'SNAPCHAT',
|
|
1628
|
-
GOOGLE: 'GOOGLE',
|
|
1629
|
-
LYADS: 'LYADS'
|
|
1630
|
-
};
|
|
1582
|
+
/**
|
|
1583
|
+
* Intellibid API
|
|
1584
|
+
* API documentation for the Intellibid platform
|
|
1585
|
+
*
|
|
1586
|
+
* OpenAPI spec version: 1.0
|
|
1587
|
+
*
|
|
1588
|
+
*
|
|
1589
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1590
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1591
|
+
* Do not edit the class manually.
|
|
1592
|
+
*/
|
|
1593
|
+
var ProductSetResponse;
|
|
1594
|
+
(function (ProductSetResponse) {
|
|
1595
|
+
ProductSetResponse.SourcePlatformEnum = {
|
|
1596
|
+
META: 'META',
|
|
1597
|
+
TIKTOK: 'TIKTOK',
|
|
1598
|
+
SNAPCHAT: 'SNAPCHAT',
|
|
1599
|
+
GOOGLE: 'GOOGLE',
|
|
1600
|
+
LYADS: 'LYADS'
|
|
1601
|
+
};
|
|
1631
1602
|
})(ProductSetResponse || (ProductSetResponse = {}));
|
|
1632
1603
|
|
|
1633
|
-
/**
|
|
1634
|
-
* Intellibid API
|
|
1635
|
-
* API documentation for the Intellibid platform
|
|
1636
|
-
*
|
|
1637
|
-
* OpenAPI spec version: 1.0
|
|
1638
|
-
*
|
|
1639
|
-
*
|
|
1640
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1641
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1642
|
-
* Do not edit the class manually.
|
|
1643
|
-
*/
|
|
1644
|
-
var ScheduleUpdateRequest;
|
|
1645
|
-
(function (ScheduleUpdateRequest) {
|
|
1646
|
-
ScheduleUpdateRequest.RequestTypeEnum = {
|
|
1647
|
-
BUDGET: 'BUDGET',
|
|
1648
|
-
PAYOUTVALUE: 'PAYOUT_VALUE'
|
|
1649
|
-
};
|
|
1604
|
+
/**
|
|
1605
|
+
* Intellibid API
|
|
1606
|
+
* API documentation for the Intellibid platform
|
|
1607
|
+
*
|
|
1608
|
+
* OpenAPI spec version: 1.0
|
|
1609
|
+
*
|
|
1610
|
+
*
|
|
1611
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1612
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1613
|
+
* Do not edit the class manually.
|
|
1614
|
+
*/
|
|
1615
|
+
var ScheduleUpdateRequest;
|
|
1616
|
+
(function (ScheduleUpdateRequest) {
|
|
1617
|
+
ScheduleUpdateRequest.RequestTypeEnum = {
|
|
1618
|
+
BUDGET: 'BUDGET',
|
|
1619
|
+
PAYOUTVALUE: 'PAYOUT_VALUE'
|
|
1620
|
+
};
|
|
1650
1621
|
})(ScheduleUpdateRequest || (ScheduleUpdateRequest = {}));
|
|
1651
1622
|
|
|
1652
|
-
/**
|
|
1653
|
-
* Intellibid API
|
|
1654
|
-
* API documentation for the Intellibid platform
|
|
1655
|
-
*
|
|
1656
|
-
* OpenAPI spec version: 1.0
|
|
1657
|
-
*
|
|
1658
|
-
*
|
|
1659
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1660
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1661
|
-
* Do not edit the class manually.
|
|
1662
|
-
*/
|
|
1663
|
-
var UpdateAudienceNameRequest;
|
|
1664
|
-
(function (UpdateAudienceNameRequest) {
|
|
1665
|
-
UpdateAudienceNameRequest.SourcePlatformEnum = {
|
|
1666
|
-
META: 'META',
|
|
1667
|
-
TIKTOK: 'TIKTOK',
|
|
1668
|
-
SNAPCHAT: 'SNAPCHAT',
|
|
1669
|
-
GOOGLE: 'GOOGLE',
|
|
1670
|
-
LYADS: 'LYADS'
|
|
1671
|
-
};
|
|
1623
|
+
/**
|
|
1624
|
+
* Intellibid API
|
|
1625
|
+
* API documentation for the Intellibid platform
|
|
1626
|
+
*
|
|
1627
|
+
* OpenAPI spec version: 1.0
|
|
1628
|
+
*
|
|
1629
|
+
*
|
|
1630
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1631
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1632
|
+
* Do not edit the class manually.
|
|
1633
|
+
*/
|
|
1634
|
+
var UpdateAudienceNameRequest;
|
|
1635
|
+
(function (UpdateAudienceNameRequest) {
|
|
1636
|
+
UpdateAudienceNameRequest.SourcePlatformEnum = {
|
|
1637
|
+
META: 'META',
|
|
1638
|
+
TIKTOK: 'TIKTOK',
|
|
1639
|
+
SNAPCHAT: 'SNAPCHAT',
|
|
1640
|
+
GOOGLE: 'GOOGLE',
|
|
1641
|
+
LYADS: 'LYADS'
|
|
1642
|
+
};
|
|
1672
1643
|
})(UpdateAudienceNameRequest || (UpdateAudienceNameRequest = {}));
|
|
1673
1644
|
|
|
1674
|
-
/**
|
|
1675
|
-
* Intellibid API
|
|
1676
|
-
* API documentation for the Intellibid platform
|
|
1677
|
-
*
|
|
1678
|
-
* OpenAPI spec version: 1.0
|
|
1679
|
-
*
|
|
1680
|
-
*
|
|
1681
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1682
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1683
|
-
* Do not edit the class manually.
|
|
1684
|
-
*/
|
|
1685
|
-
var UpdateDsCustomQuerySqlRequest;
|
|
1686
|
-
(function (UpdateDsCustomQuerySqlRequest) {
|
|
1687
|
-
UpdateDsCustomQuerySqlRequest.SourcePlatformEnum = {
|
|
1688
|
-
META: 'META',
|
|
1689
|
-
TIKTOK: 'TIKTOK',
|
|
1690
|
-
SNAPCHAT: 'SNAPCHAT',
|
|
1691
|
-
GOOGLE: 'GOOGLE',
|
|
1692
|
-
LYADS: 'LYADS'
|
|
1693
|
-
};
|
|
1645
|
+
/**
|
|
1646
|
+
* Intellibid API
|
|
1647
|
+
* API documentation for the Intellibid platform
|
|
1648
|
+
*
|
|
1649
|
+
* OpenAPI spec version: 1.0
|
|
1650
|
+
*
|
|
1651
|
+
*
|
|
1652
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1653
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1654
|
+
* Do not edit the class manually.
|
|
1655
|
+
*/
|
|
1656
|
+
var UpdateDsCustomQuerySqlRequest;
|
|
1657
|
+
(function (UpdateDsCustomQuerySqlRequest) {
|
|
1658
|
+
UpdateDsCustomQuerySqlRequest.SourcePlatformEnum = {
|
|
1659
|
+
META: 'META',
|
|
1660
|
+
TIKTOK: 'TIKTOK',
|
|
1661
|
+
SNAPCHAT: 'SNAPCHAT',
|
|
1662
|
+
GOOGLE: 'GOOGLE',
|
|
1663
|
+
LYADS: 'LYADS'
|
|
1664
|
+
};
|
|
1694
1665
|
})(UpdateDsCustomQuerySqlRequest || (UpdateDsCustomQuerySqlRequest = {}));
|
|
1695
1666
|
|
|
1696
|
-
class ApiModule {
|
|
1697
|
-
static forRoot(configurationFactory) {
|
|
1698
|
-
return {
|
|
1699
|
-
ngModule: ApiModule,
|
|
1700
|
-
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
1701
|
-
};
|
|
1702
|
-
}
|
|
1703
|
-
constructor(parentModule, http) {
|
|
1704
|
-
if (parentModule) {
|
|
1705
|
-
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
1706
|
-
}
|
|
1707
|
-
if (!http) {
|
|
1708
|
-
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
1709
|
-
'See also https://github.com/angular/angular/issues/20575');
|
|
1710
|
-
}
|
|
1711
|
-
}
|
|
1712
|
-
}
|
|
1713
|
-
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1714
|
-
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
|
|
1715
|
-
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
|
|
1716
|
-
AdvertiserControllerService,
|
|
1717
|
-
AudienceControllerService,
|
|
1718
|
-
CampaignControllerService,
|
|
1719
|
-
InsightsControllerService,
|
|
1720
|
-
LookupDataControllerService
|
|
1721
|
-
] });
|
|
1722
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
|
|
1723
|
-
type: NgModule,
|
|
1724
|
-
args: [{
|
|
1725
|
-
imports: [],
|
|
1726
|
-
declarations: [],
|
|
1727
|
-
exports: [],
|
|
1728
|
-
providers: [
|
|
1729
|
-
AdvertiserControllerService,
|
|
1730
|
-
AudienceControllerService,
|
|
1731
|
-
CampaignControllerService,
|
|
1732
|
-
InsightsControllerService,
|
|
1733
|
-
LookupDataControllerService
|
|
1734
|
-
]
|
|
1735
|
-
}]
|
|
1736
|
-
}], ctorParameters: function () {
|
|
1737
|
-
return [{ type: ApiModule, decorators: [{
|
|
1738
|
-
type: Optional
|
|
1739
|
-
}, {
|
|
1740
|
-
type: SkipSelf
|
|
1741
|
-
}] }, { type: i1.HttpClient, decorators: [{
|
|
1742
|
-
type: Optional
|
|
1743
|
-
}] }];
|
|
1667
|
+
class ApiModule {
|
|
1668
|
+
static forRoot(configurationFactory) {
|
|
1669
|
+
return {
|
|
1670
|
+
ngModule: ApiModule,
|
|
1671
|
+
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
1672
|
+
};
|
|
1673
|
+
}
|
|
1674
|
+
constructor(parentModule, http) {
|
|
1675
|
+
if (parentModule) {
|
|
1676
|
+
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
1677
|
+
}
|
|
1678
|
+
if (!http) {
|
|
1679
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
1680
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
1681
|
+
}
|
|
1682
|
+
}
|
|
1683
|
+
}
|
|
1684
|
+
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1685
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
|
|
1686
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
|
|
1687
|
+
AdvertiserControllerService,
|
|
1688
|
+
AudienceControllerService,
|
|
1689
|
+
CampaignControllerService,
|
|
1690
|
+
InsightsControllerService,
|
|
1691
|
+
LookupDataControllerService
|
|
1692
|
+
] });
|
|
1693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
|
|
1694
|
+
type: NgModule,
|
|
1695
|
+
args: [{
|
|
1696
|
+
imports: [],
|
|
1697
|
+
declarations: [],
|
|
1698
|
+
exports: [],
|
|
1699
|
+
providers: [
|
|
1700
|
+
AdvertiserControllerService,
|
|
1701
|
+
AudienceControllerService,
|
|
1702
|
+
CampaignControllerService,
|
|
1703
|
+
InsightsControllerService,
|
|
1704
|
+
LookupDataControllerService
|
|
1705
|
+
]
|
|
1706
|
+
}]
|
|
1707
|
+
}], ctorParameters: function () {
|
|
1708
|
+
return [{ type: ApiModule, decorators: [{
|
|
1709
|
+
type: Optional
|
|
1710
|
+
}, {
|
|
1711
|
+
type: SkipSelf
|
|
1712
|
+
}] }, { type: i1.HttpClient, decorators: [{
|
|
1713
|
+
type: Optional
|
|
1714
|
+
}] }];
|
|
1744
1715
|
} });
|
|
1745
1716
|
|
|
1746
|
-
/**
|
|
1747
|
-
* Generated bundle index. Do not edit.
|
|
1717
|
+
/**
|
|
1718
|
+
* Generated bundle index. Do not edit.
|
|
1748
1719
|
*/
|
|
1749
1720
|
|
|
1750
1721
|
export { APIS, AdAccountResponse, AdvertiserControllerService, ApiModule, AudienceControllerService, AudienceResponse, BASE_PATH, COLLECTION_FORMATS, CampaignChangeLogResponse, CampaignControllerService, CampaignInsightRecord, CampaignRequest, CampaignResponse, ChildAudience, Configuration, CreateBlockedLiveAudienceRequest, CreateBucketizedCustomAudienceRequest, CreateBucketizedLiveAudienceRequest, CreateDsCustomQueryAudienceRequest, InsightsControllerService, LookupDataControllerService, ProductSetRequest, ProductSetResponse, ScheduleUpdateRequest, UpdateAudienceNameRequest, UpdateDsCustomQuerySqlRequest };
|