@revxui/intellibid-client-ts 1.0.57 → 1.0.59
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 +111 -66
- package/api/api.d.ts +11 -11
- package/api/audienceController.service.d.ts +41 -63
- package/api/campaignController.service.d.ts +110 -110
- package/api/insightsController.service.d.ts +33 -32
- package/api/lookupDataController.service.d.ts +58 -0
- 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 +267 -169
- package/esm2020/api/api.mjs +12 -12
- package/esm2020/api/audienceController.service.mjs +110 -174
- package/esm2020/api/campaignController.service.mjs +296 -296
- package/esm2020/api/insightsController.service.mjs +108 -105
- package/esm2020/api/lookupDataController.service.mjs +135 -0
- package/esm2020/api.module.mjs +57 -57
- package/esm2020/configuration.mjs +58 -58
- package/esm2020/encoder.mjs +16 -16
- package/esm2020/index.mjs +5 -5
- package/esm2020/model/advertiserMmpConversionEventResponse.mjs +12 -12
- package/esm2020/model/advertiserResponse.mjs +12 -12
- package/esm2020/model/advertiserSearchResponse.mjs +12 -12
- package/esm2020/model/audienceChildStatusDTO.mjs +22 -0
- package/esm2020/model/audienceGroupStatusResponse.mjs +16 -0
- package/esm2020/model/blockedEventResponse.mjs +13 -0
- package/esm2020/model/businessZoneResponse.mjs +13 -0
- package/esm2020/model/campaignChangeLogResponse.mjs +23 -23
- package/esm2020/model/campaignInsightRecord.mjs +19 -19
- package/esm2020/model/campaignInsightsResponse.mjs +1 -1
- package/esm2020/model/campaignRequest.mjs +32 -32
- package/esm2020/model/campaignResponse.mjs +21 -21
- package/esm2020/model/campaignSearchResponse.mjs +12 -12
- package/esm2020/model/childPreviewDTO.mjs +13 -0
- package/esm2020/model/countryResponse.mjs +13 -0
- package/esm2020/model/createBucketizedLiveAudienceRequest.mjs +19 -0
- package/esm2020/model/createBucketizedLiveAudienceResponse.mjs +10 -0
- package/esm2020/model/goalResponse.mjs +13 -0
- package/esm2020/model/models.mjs +30 -24
- package/esm2020/model/oSResponse.mjs +12 -12
- package/esm2020/model/pageAdvertiserResponse.mjs +1 -1
- package/esm2020/model/pageCampaignChangeLogResponse.mjs +1 -1
- package/esm2020/model/pageCampaignResponse.mjs +1 -1
- package/esm2020/model/pageableObject.mjs +1 -1
- package/esm2020/model/platformResponse.mjs +13 -0
- package/esm2020/model/productSetResponse.mjs +13 -0
- package/esm2020/model/scheduleUpdateRequest.mjs +18 -18
- package/esm2020/model/scheduledUpdates.mjs +12 -12
- package/esm2020/model/sortObject.mjs +12 -12
- package/esm2020/model/upsertProductSetRequest.mjs +13 -0
- package/esm2020/revxui-intellibid-client-ts.mjs +4 -4
- package/esm2020/variables.mjs +8 -8
- package/fesm2015/revxui-intellibid-client-ts.mjs +1180 -1081
- package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
- package/fesm2020/revxui-intellibid-client-ts.mjs +1326 -1143
- package/fesm2020/revxui-intellibid-client-ts.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/model/advertiserMmpConversionEventResponse.d.ts +15 -15
- package/model/advertiserResponse.d.ts +30 -30
- package/model/advertiserSearchResponse.d.ts +16 -16
- package/model/audienceChildStatusDTO.d.ts +31 -0
- package/model/audienceGroupStatusResponse.d.ts +42 -0
- package/model/{audienceListResponse.d.ts → blockedEventResponse.d.ts} +15 -15
- package/model/{audienceResponseDTO.d.ts → businessZoneResponse.d.ts} +17 -20
- package/model/campaignChangeLogResponse.d.ts +34 -34
- package/model/campaignInsightRecord.d.ts +56 -47
- package/model/campaignInsightsResponse.d.ts +16 -16
- package/model/campaignRequest.d.ts +52 -52
- package/model/campaignResponse.d.ts +66 -66
- package/model/campaignSearchResponse.d.ts +15 -15
- package/model/childPreviewDTO.d.ts +19 -0
- package/model/countryResponse.d.ts +18 -0
- package/model/createBucketizedLiveAudienceRequest.d.ts +33 -0
- package/model/createBucketizedLiveAudienceResponse.d.ts +28 -0
- package/model/goalResponse.d.ts +17 -0
- package/model/models.d.ts +29 -23
- 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/{configItemDTO.d.ts → platformResponse.d.ts} +15 -15
- package/model/productSetResponse.d.ts +16 -0
- package/model/scheduleUpdateRequest.d.ts +22 -22
- package/model/scheduledUpdates.d.ts +15 -15
- package/model/sortObject.d.ts +18 -18
- package/model/upsertProductSetRequest.d.ts +15 -0
- package/package.json +1 -1
- package/variables.d.ts +8 -8
- package/api/osMasterController.service.d.ts +0 -28
- package/esm2020/api/osMasterController.service.mjs +0 -78
- package/esm2020/model/audienceListResponse.mjs +0 -2
- package/esm2020/model/audienceResponseDTO.mjs +0 -2
- package/esm2020/model/configItemDTO.mjs +0 -13
- package/esm2020/model/createBlockedAudienceRequest.mjs +0 -21
- package/esm2020/model/createDynamicAudienceRequest.mjs +0 -21
- package/esm2020/model/createStaticAudienceRequest.mjs +0 -21
- package/model/createBlockedAudienceRequest.d.ts +0 -24
- package/model/createDynamicAudienceRequest.d.ts +0 -26
- package/model/createStaticAudienceRequest.d.ts +0 -24
|
@@ -3,1118 +3,1217 @@ 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
|
-
getAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
128
|
-
if (id === null || id === undefined) {
|
|
129
|
-
throw new Error('Required parameter id was null or undefined when calling getAdvertiser.');
|
|
130
|
-
}
|
|
131
|
-
let headers = this.defaultHeaders;
|
|
132
|
-
// to determine the Accept header
|
|
133
|
-
let httpHeaderAccepts = [
|
|
134
|
-
'*/*'
|
|
135
|
-
];
|
|
136
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
137
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
138
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
139
|
-
}
|
|
140
|
-
// to determine the Content-Type header
|
|
141
|
-
const consumes = [];
|
|
142
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}`, {
|
|
143
|
-
withCredentials: this.configuration.withCredentials,
|
|
144
|
-
headers: headers,
|
|
145
|
-
observe: observe,
|
|
146
|
-
reportProgress: reportProgress
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
getAllAdvertisers(name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
|
|
150
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
151
|
-
if (name !== undefined && name !== null) {
|
|
152
|
-
queryParameters = queryParameters.set('name', name);
|
|
153
|
-
}
|
|
154
|
-
if (isActive !== undefined && isActive !== null) {
|
|
155
|
-
queryParameters = queryParameters.set('isActive', isActive);
|
|
156
|
-
}
|
|
157
|
-
if (page !== undefined && page !== null) {
|
|
158
|
-
queryParameters = queryParameters.set('page', page);
|
|
159
|
-
}
|
|
160
|
-
if (size !== undefined && size !== null) {
|
|
161
|
-
queryParameters = queryParameters.set('size', size);
|
|
162
|
-
}
|
|
163
|
-
if (sort) {
|
|
164
|
-
sort.forEach((element) => {
|
|
165
|
-
queryParameters = queryParameters.append('sort', element);
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
let headers = this.defaultHeaders;
|
|
169
|
-
// to determine the Accept header
|
|
170
|
-
let httpHeaderAccepts = [
|
|
171
|
-
'*/*'
|
|
172
|
-
];
|
|
173
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
174
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
175
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
176
|
-
}
|
|
177
|
-
// to determine the Content-Type header
|
|
178
|
-
const consumes = [];
|
|
179
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser`, {
|
|
180
|
-
params: queryParameters,
|
|
181
|
-
withCredentials: this.configuration.withCredentials,
|
|
182
|
-
headers: headers,
|
|
183
|
-
observe: observe,
|
|
184
|
-
reportProgress: reportProgress
|
|
185
|
-
});
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
if (id === null || id === undefined) {
|
|
189
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
190
|
-
}
|
|
191
|
-
let headers = this.defaultHeaders;
|
|
192
|
-
// to determine the Accept header
|
|
193
|
-
let httpHeaderAccepts = [
|
|
194
|
-
'*/*'
|
|
195
|
-
];
|
|
196
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
197
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
198
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
199
|
-
}
|
|
200
|
-
// to determine the Content-Type header
|
|
201
|
-
const consumes = [];
|
|
202
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/
|
|
203
|
-
withCredentials: this.configuration.withCredentials,
|
|
204
|
-
headers: headers,
|
|
205
|
-
observe: observe,
|
|
206
|
-
reportProgress: reportProgress
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
if (
|
|
211
|
-
throw new Error('Required parameter
|
|
212
|
-
}
|
|
213
|
-
let
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
'
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
+
getAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
128
|
+
if (id === null || id === undefined) {
|
|
129
|
+
throw new Error('Required parameter id was null or undefined when calling getAdvertiser.');
|
|
130
|
+
}
|
|
131
|
+
let headers = this.defaultHeaders;
|
|
132
|
+
// to determine the Accept header
|
|
133
|
+
let httpHeaderAccepts = [
|
|
134
|
+
'*/*'
|
|
135
|
+
];
|
|
136
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
137
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
138
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
139
|
+
}
|
|
140
|
+
// to determine the Content-Type header
|
|
141
|
+
const consumes = [];
|
|
142
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}`, {
|
|
143
|
+
withCredentials: this.configuration.withCredentials,
|
|
144
|
+
headers: headers,
|
|
145
|
+
observe: observe,
|
|
146
|
+
reportProgress: reportProgress
|
|
147
|
+
});
|
|
148
|
+
}
|
|
149
|
+
getAllAdvertisers(name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
|
|
150
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
151
|
+
if (name !== undefined && name !== null) {
|
|
152
|
+
queryParameters = queryParameters.set('name', name);
|
|
153
|
+
}
|
|
154
|
+
if (isActive !== undefined && isActive !== null) {
|
|
155
|
+
queryParameters = queryParameters.set('isActive', isActive);
|
|
156
|
+
}
|
|
157
|
+
if (page !== undefined && page !== null) {
|
|
158
|
+
queryParameters = queryParameters.set('page', page);
|
|
159
|
+
}
|
|
160
|
+
if (size !== undefined && size !== null) {
|
|
161
|
+
queryParameters = queryParameters.set('size', size);
|
|
162
|
+
}
|
|
163
|
+
if (sort) {
|
|
164
|
+
sort.forEach((element) => {
|
|
165
|
+
queryParameters = queryParameters.append('sort', element);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
let headers = this.defaultHeaders;
|
|
169
|
+
// to determine the Accept header
|
|
170
|
+
let httpHeaderAccepts = [
|
|
171
|
+
'*/*'
|
|
172
|
+
];
|
|
173
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
174
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
175
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
176
|
+
}
|
|
177
|
+
// to determine the Content-Type header
|
|
178
|
+
const consumes = [];
|
|
179
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser`, {
|
|
180
|
+
params: queryParameters,
|
|
181
|
+
withCredentials: this.configuration.withCredentials,
|
|
182
|
+
headers: headers,
|
|
183
|
+
observe: observe,
|
|
184
|
+
reportProgress: reportProgress
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
getBlockedEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
188
|
+
if (id === null || id === undefined) {
|
|
189
|
+
throw new Error('Required parameter id was null or undefined when calling getBlockedEventsByAdvertiser.');
|
|
190
|
+
}
|
|
191
|
+
let headers = this.defaultHeaders;
|
|
192
|
+
// to determine the Accept header
|
|
193
|
+
let httpHeaderAccepts = [
|
|
194
|
+
'*/*'
|
|
195
|
+
];
|
|
196
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
197
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
198
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
199
|
+
}
|
|
200
|
+
// to determine the Content-Type header
|
|
201
|
+
const consumes = [];
|
|
202
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/blocked-events`, {
|
|
203
|
+
withCredentials: this.configuration.withCredentials,
|
|
204
|
+
headers: headers,
|
|
205
|
+
observe: observe,
|
|
206
|
+
reportProgress: reportProgress
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
getGoalsByAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
210
|
+
if (id === null || id === undefined) {
|
|
211
|
+
throw new Error('Required parameter id was null or undefined when calling getGoalsByAdvertiser.');
|
|
212
|
+
}
|
|
213
|
+
let headers = this.defaultHeaders;
|
|
214
|
+
// to determine the Accept header
|
|
215
|
+
let httpHeaderAccepts = [
|
|
216
|
+
'*/*'
|
|
217
|
+
];
|
|
218
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
219
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
220
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
221
|
+
}
|
|
222
|
+
// to determine the Content-Type header
|
|
223
|
+
const consumes = [];
|
|
224
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/goals`, {
|
|
225
|
+
withCredentials: this.configuration.withCredentials,
|
|
226
|
+
headers: headers,
|
|
227
|
+
observe: observe,
|
|
228
|
+
reportProgress: reportProgress
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
getMMPConversionEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
|
|
232
|
+
if (id === null || id === undefined) {
|
|
233
|
+
throw new Error('Required parameter id was null or undefined when calling getMMPConversionEventsByAdvertiser.');
|
|
234
|
+
}
|
|
235
|
+
let headers = this.defaultHeaders;
|
|
236
|
+
// to determine the Accept header
|
|
237
|
+
let httpHeaderAccepts = [
|
|
238
|
+
'*/*'
|
|
239
|
+
];
|
|
240
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
241
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
242
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
243
|
+
}
|
|
244
|
+
// to determine the Content-Type header
|
|
245
|
+
const consumes = [];
|
|
246
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/mmp-conversion-events`, {
|
|
247
|
+
withCredentials: this.configuration.withCredentials,
|
|
248
|
+
headers: headers,
|
|
249
|
+
observe: observe,
|
|
250
|
+
reportProgress: reportProgress
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
listProductSets(id, observe = 'body', reportProgress = false) {
|
|
254
|
+
if (id === null || id === undefined) {
|
|
255
|
+
throw new Error('Required parameter id was null or undefined when calling listProductSets.');
|
|
256
|
+
}
|
|
257
|
+
let headers = this.defaultHeaders;
|
|
258
|
+
// to determine the Accept header
|
|
259
|
+
let httpHeaderAccepts = [
|
|
260
|
+
'*/*'
|
|
261
|
+
];
|
|
262
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
263
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
264
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
265
|
+
}
|
|
266
|
+
// to determine the Content-Type header
|
|
267
|
+
const consumes = [];
|
|
268
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/product-sets`, {
|
|
269
|
+
withCredentials: this.configuration.withCredentials,
|
|
270
|
+
headers: headers,
|
|
271
|
+
observe: observe,
|
|
272
|
+
reportProgress: reportProgress
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
searchAdvertisers(q, observe = 'body', reportProgress = false) {
|
|
276
|
+
if (q === null || q === undefined) {
|
|
277
|
+
throw new Error('Required parameter q was null or undefined when calling searchAdvertisers.');
|
|
278
|
+
}
|
|
279
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
280
|
+
if (q !== undefined && q !== null) {
|
|
281
|
+
queryParameters = queryParameters.set('q', q);
|
|
282
|
+
}
|
|
283
|
+
let headers = this.defaultHeaders;
|
|
284
|
+
// to determine the Accept header
|
|
285
|
+
let httpHeaderAccepts = [
|
|
286
|
+
'*/*'
|
|
287
|
+
];
|
|
288
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
289
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
290
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
291
|
+
}
|
|
292
|
+
// to determine the Content-Type header
|
|
293
|
+
const consumes = [];
|
|
294
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/search`, {
|
|
295
|
+
params: queryParameters,
|
|
296
|
+
withCredentials: this.configuration.withCredentials,
|
|
297
|
+
headers: headers,
|
|
298
|
+
observe: observe,
|
|
299
|
+
reportProgress: reportProgress
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
upsertProductSet(body, id, observe = 'body', reportProgress = false) {
|
|
303
|
+
if (body === null || body === undefined) {
|
|
304
|
+
throw new Error('Required parameter body was null or undefined when calling upsertProductSet.');
|
|
305
|
+
}
|
|
306
|
+
if (id === null || id === undefined) {
|
|
307
|
+
throw new Error('Required parameter id was null or undefined when calling upsertProductSet.');
|
|
308
|
+
}
|
|
309
|
+
let headers = this.defaultHeaders;
|
|
310
|
+
// to determine the Accept header
|
|
311
|
+
let httpHeaderAccepts = [
|
|
312
|
+
'*/*'
|
|
313
|
+
];
|
|
314
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
315
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
316
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
317
|
+
}
|
|
318
|
+
// to determine the Content-Type header
|
|
319
|
+
const consumes = [
|
|
320
|
+
'application/json'
|
|
321
|
+
];
|
|
322
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
323
|
+
if (httpContentTypeSelected != undefined) {
|
|
324
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
325
|
+
}
|
|
326
|
+
return this.httpClient.request('post', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/product-sets`, {
|
|
327
|
+
body: body,
|
|
328
|
+
withCredentials: this.configuration.withCredentials,
|
|
329
|
+
headers: headers,
|
|
330
|
+
observe: observe,
|
|
331
|
+
reportProgress: reportProgress
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
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 });
|
|
336
|
+
AdvertiserControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService });
|
|
337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService, decorators: [{
|
|
338
|
+
type: Injectable
|
|
339
|
+
}], ctorParameters: function () {
|
|
340
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
341
|
+
type: Optional
|
|
342
|
+
}, {
|
|
343
|
+
type: Inject,
|
|
344
|
+
args: [BASE_PATH]
|
|
345
|
+
}] }, { type: Configuration, decorators: [{
|
|
346
|
+
type: Optional
|
|
347
|
+
}] }];
|
|
250
348
|
} });
|
|
251
349
|
|
|
252
|
-
/**
|
|
253
|
-
* Intellibid API
|
|
254
|
-
* API documentation for the Intellibid platform
|
|
255
|
-
*
|
|
256
|
-
* OpenAPI spec version: 1.0
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
260
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
261
|
-
* Do not edit the class manually.
|
|
262
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
263
|
-
class AudienceControllerService {
|
|
264
|
-
constructor(httpClient, basePath, configuration) {
|
|
265
|
-
this.httpClient = httpClient;
|
|
266
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
267
|
-
this.defaultHeaders = new HttpHeaders();
|
|
268
|
-
this.configuration = new Configuration();
|
|
269
|
-
if (basePath) {
|
|
270
|
-
this.basePath = basePath;
|
|
271
|
-
}
|
|
272
|
-
if (configuration) {
|
|
273
|
-
this.configuration = configuration;
|
|
274
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
/**
|
|
278
|
-
* @param consumes string[] mime-types
|
|
279
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
280
|
-
*/
|
|
281
|
-
canConsumeForm(consumes) {
|
|
282
|
-
const form = 'multipart/form-data';
|
|
283
|
-
for (const consume of consumes) {
|
|
284
|
-
if (form === consume) {
|
|
285
|
-
return true;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
return false;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
if (body === null || body === undefined) {
|
|
292
|
-
throw new Error('Required parameter body was null or undefined when calling
|
|
293
|
-
}
|
|
294
|
-
let headers = this.defaultHeaders;
|
|
295
|
-
// to determine the Accept header
|
|
296
|
-
let httpHeaderAccepts = [
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
let
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
'
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
// to determine the Content-Type header
|
|
356
|
-
const consumes = [
|
|
357
|
-
'application/json'
|
|
358
|
-
];
|
|
359
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
360
|
-
if (httpContentTypeSelected != undefined) {
|
|
361
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
362
|
-
}
|
|
363
|
-
return this.httpClient.request('post', `${this.basePath}/api/audiences/static`, {
|
|
364
|
-
body: body,
|
|
365
|
-
withCredentials: this.configuration.withCredentials,
|
|
366
|
-
headers: headers,
|
|
367
|
-
observe: observe,
|
|
368
|
-
reportProgress: reportProgress
|
|
369
|
-
});
|
|
370
|
-
}
|
|
371
|
-
getAudiences(advertiserId, sourcePlatform, observe = 'body', reportProgress = false) {
|
|
372
|
-
if (advertiserId === null || advertiserId === undefined) {
|
|
373
|
-
throw new Error('Required parameter advertiserId was null or undefined when calling getAudiences.');
|
|
374
|
-
}
|
|
375
|
-
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
376
|
-
throw new Error('Required parameter sourcePlatform was null or undefined when calling getAudiences.');
|
|
377
|
-
}
|
|
378
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
379
|
-
if (advertiserId !== undefined && advertiserId !== null) {
|
|
380
|
-
queryParameters = queryParameters.set('advertiserId', advertiserId);
|
|
381
|
-
}
|
|
382
|
-
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
383
|
-
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
384
|
-
}
|
|
385
|
-
let headers = this.defaultHeaders;
|
|
386
|
-
// to determine the Accept header
|
|
387
|
-
let httpHeaderAccepts = [
|
|
388
|
-
'*/*'
|
|
389
|
-
];
|
|
390
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
391
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
392
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
393
|
-
}
|
|
394
|
-
// to determine the Content-Type header
|
|
395
|
-
const consumes = [];
|
|
396
|
-
return this.httpClient.request('get', `${this.basePath}/api/audiences`, {
|
|
397
|
-
params: queryParameters,
|
|
398
|
-
withCredentials: this.configuration.withCredentials,
|
|
399
|
-
headers: headers,
|
|
400
|
-
observe: observe,
|
|
401
|
-
reportProgress: reportProgress
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
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 });
|
|
406
|
-
AudienceControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService });
|
|
407
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService, decorators: [{
|
|
408
|
-
type: Injectable
|
|
409
|
-
}], ctorParameters: function () {
|
|
410
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
411
|
-
type: Optional
|
|
412
|
-
}, {
|
|
413
|
-
type: Inject,
|
|
414
|
-
args: [BASE_PATH]
|
|
415
|
-
}] }, { type: Configuration, decorators: [{
|
|
416
|
-
type: Optional
|
|
417
|
-
}] }];
|
|
350
|
+
/**
|
|
351
|
+
* Intellibid API
|
|
352
|
+
* API documentation for the Intellibid platform
|
|
353
|
+
*
|
|
354
|
+
* OpenAPI spec version: 1.0
|
|
355
|
+
*
|
|
356
|
+
*
|
|
357
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
358
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
359
|
+
* Do not edit the class manually.
|
|
360
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
361
|
+
class AudienceControllerService {
|
|
362
|
+
constructor(httpClient, basePath, configuration) {
|
|
363
|
+
this.httpClient = httpClient;
|
|
364
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
365
|
+
this.defaultHeaders = new HttpHeaders();
|
|
366
|
+
this.configuration = new Configuration();
|
|
367
|
+
if (basePath) {
|
|
368
|
+
this.basePath = basePath;
|
|
369
|
+
}
|
|
370
|
+
if (configuration) {
|
|
371
|
+
this.configuration = configuration;
|
|
372
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* @param consumes string[] mime-types
|
|
377
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
378
|
+
*/
|
|
379
|
+
canConsumeForm(consumes) {
|
|
380
|
+
const form = 'multipart/form-data';
|
|
381
|
+
for (const consume of consumes) {
|
|
382
|
+
if (form === consume) {
|
|
383
|
+
return true;
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
return false;
|
|
387
|
+
}
|
|
388
|
+
createBucketizedLiveAudience(body, observe = 'body', reportProgress = false) {
|
|
389
|
+
if (body === null || body === undefined) {
|
|
390
|
+
throw new Error('Required parameter body was null or undefined when calling createBucketizedLiveAudience.');
|
|
391
|
+
}
|
|
392
|
+
let headers = this.defaultHeaders;
|
|
393
|
+
// to determine the Accept header
|
|
394
|
+
let httpHeaderAccepts = [
|
|
395
|
+
'*/*'
|
|
396
|
+
];
|
|
397
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
398
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
399
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
400
|
+
}
|
|
401
|
+
// to determine the Content-Type header
|
|
402
|
+
const consumes = [
|
|
403
|
+
'application/json'
|
|
404
|
+
];
|
|
405
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
406
|
+
if (httpContentTypeSelected != undefined) {
|
|
407
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
408
|
+
}
|
|
409
|
+
return this.httpClient.request('post', `${this.basePath}/api/audience/live/bucketized`, {
|
|
410
|
+
body: body,
|
|
411
|
+
withCredentials: this.configuration.withCredentials,
|
|
412
|
+
headers: headers,
|
|
413
|
+
observe: observe,
|
|
414
|
+
reportProgress: reportProgress
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
getGroupStatus(groupId, observe = 'body', reportProgress = false) {
|
|
418
|
+
if (groupId === null || groupId === undefined) {
|
|
419
|
+
throw new Error('Required parameter groupId was null or undefined when calling getGroupStatus.');
|
|
420
|
+
}
|
|
421
|
+
let headers = this.defaultHeaders;
|
|
422
|
+
// to determine the Accept header
|
|
423
|
+
let httpHeaderAccepts = [
|
|
424
|
+
'*/*'
|
|
425
|
+
];
|
|
426
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
427
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
428
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
429
|
+
}
|
|
430
|
+
// to determine the Content-Type header
|
|
431
|
+
const consumes = [];
|
|
432
|
+
return this.httpClient.request('get', `${this.basePath}/api/audience/groups/${encodeURIComponent(String(groupId))}`, {
|
|
433
|
+
withCredentials: this.configuration.withCredentials,
|
|
434
|
+
headers: headers,
|
|
435
|
+
observe: observe,
|
|
436
|
+
reportProgress: reportProgress
|
|
437
|
+
});
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
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 });
|
|
441
|
+
AudienceControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService });
|
|
442
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService, decorators: [{
|
|
443
|
+
type: Injectable
|
|
444
|
+
}], ctorParameters: function () {
|
|
445
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
446
|
+
type: Optional
|
|
447
|
+
}, {
|
|
448
|
+
type: Inject,
|
|
449
|
+
args: [BASE_PATH]
|
|
450
|
+
}] }, { type: Configuration, decorators: [{
|
|
451
|
+
type: Optional
|
|
452
|
+
}] }];
|
|
418
453
|
} });
|
|
419
454
|
|
|
420
|
-
/**
|
|
421
|
-
* Intellibid API
|
|
422
|
-
* API documentation for the Intellibid platform
|
|
423
|
-
*
|
|
424
|
-
* OpenAPI spec version: 1.0
|
|
425
|
-
*
|
|
426
|
-
*
|
|
427
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
428
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
429
|
-
* Do not edit the class manually.
|
|
430
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
431
|
-
class CampaignControllerService {
|
|
432
|
-
constructor(httpClient, basePath, configuration) {
|
|
433
|
-
this.httpClient = httpClient;
|
|
434
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
435
|
-
this.defaultHeaders = new HttpHeaders();
|
|
436
|
-
this.configuration = new Configuration();
|
|
437
|
-
if (basePath) {
|
|
438
|
-
this.basePath = basePath;
|
|
439
|
-
}
|
|
440
|
-
if (configuration) {
|
|
441
|
-
this.configuration = configuration;
|
|
442
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
/**
|
|
446
|
-
* @param consumes string[] mime-types
|
|
447
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
448
|
-
*/
|
|
449
|
-
canConsumeForm(consumes) {
|
|
450
|
-
const form = 'multipart/form-data';
|
|
451
|
-
for (const consume of consumes) {
|
|
452
|
-
if (form === consume) {
|
|
453
|
-
return true;
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
return false;
|
|
457
|
-
}
|
|
458
|
-
createCampaign(body, observe = 'body', reportProgress = false) {
|
|
459
|
-
if (body === null || body === undefined) {
|
|
460
|
-
throw new Error('Required parameter body was null or undefined when calling createCampaign.');
|
|
461
|
-
}
|
|
462
|
-
let headers = this.defaultHeaders;
|
|
463
|
-
// to determine the Accept header
|
|
464
|
-
let httpHeaderAccepts = [
|
|
465
|
-
'*/*'
|
|
466
|
-
];
|
|
467
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
468
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
469
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
470
|
-
}
|
|
471
|
-
// to determine the Content-Type header
|
|
472
|
-
const consumes = [
|
|
473
|
-
'application/json'
|
|
474
|
-
];
|
|
475
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
476
|
-
if (httpContentTypeSelected != undefined) {
|
|
477
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
478
|
-
}
|
|
479
|
-
return this.httpClient.request('post', `${this.basePath}/api/campaign`, {
|
|
480
|
-
body: body,
|
|
481
|
-
withCredentials: this.configuration.withCredentials,
|
|
482
|
-
headers: headers,
|
|
483
|
-
observe: observe,
|
|
484
|
-
reportProgress: reportProgress
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
getAllCampaigns(id, advertiserId, name, platformCampaignId, payoutType, marketFeedbackEnabled, activeOnPlatform, sourcePlatform, page, size, sort, observe = 'body', reportProgress = false) {
|
|
488
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
489
|
-
if (id !== undefined && id !== null) {
|
|
490
|
-
queryParameters = queryParameters.set('id', id);
|
|
491
|
-
}
|
|
492
|
-
if (advertiserId !== undefined && advertiserId !== null) {
|
|
493
|
-
queryParameters = queryParameters.set('advertiserId', advertiserId);
|
|
494
|
-
}
|
|
495
|
-
if (name !== undefined && name !== null) {
|
|
496
|
-
queryParameters = queryParameters.set('name', name);
|
|
497
|
-
}
|
|
498
|
-
if (platformCampaignId !== undefined && platformCampaignId !== null) {
|
|
499
|
-
queryParameters = queryParameters.set('platformCampaignId', platformCampaignId);
|
|
500
|
-
}
|
|
501
|
-
if (payoutType !== undefined && payoutType !== null) {
|
|
502
|
-
queryParameters = queryParameters.set('payoutType', payoutType);
|
|
503
|
-
}
|
|
504
|
-
if (marketFeedbackEnabled !== undefined && marketFeedbackEnabled !== null) {
|
|
505
|
-
queryParameters = queryParameters.set('marketFeedbackEnabled', marketFeedbackEnabled);
|
|
506
|
-
}
|
|
507
|
-
if (activeOnPlatform !== undefined && activeOnPlatform !== null) {
|
|
508
|
-
queryParameters = queryParameters.set('activeOnPlatform', activeOnPlatform);
|
|
509
|
-
}
|
|
510
|
-
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
511
|
-
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
512
|
-
}
|
|
513
|
-
if (page !== undefined && page !== null) {
|
|
514
|
-
queryParameters = queryParameters.set('page', page);
|
|
515
|
-
}
|
|
516
|
-
if (size !== undefined && size !== null) {
|
|
517
|
-
queryParameters = queryParameters.set('size', size);
|
|
518
|
-
}
|
|
519
|
-
if (sort) {
|
|
520
|
-
sort.forEach((element) => {
|
|
521
|
-
queryParameters = queryParameters.append('sort', element);
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
let headers = this.defaultHeaders;
|
|
525
|
-
// to determine the Accept header
|
|
526
|
-
let httpHeaderAccepts = [
|
|
527
|
-
'*/*'
|
|
528
|
-
];
|
|
529
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
530
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
531
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
532
|
-
}
|
|
533
|
-
// to determine the Content-Type header
|
|
534
|
-
const consumes = [];
|
|
535
|
-
return this.httpClient.request('get', `${this.basePath}/api/campaign`, {
|
|
536
|
-
params: queryParameters,
|
|
537
|
-
withCredentials: this.configuration.withCredentials,
|
|
538
|
-
headers: headers,
|
|
539
|
-
observe: observe,
|
|
540
|
-
reportProgress: reportProgress
|
|
541
|
-
});
|
|
542
|
-
}
|
|
543
|
-
getCampaign(id, observe = 'body', reportProgress = false) {
|
|
544
|
-
if (id === null || id === undefined) {
|
|
545
|
-
throw new Error('Required parameter id was null or undefined when calling getCampaign.');
|
|
546
|
-
}
|
|
547
|
-
let headers = this.defaultHeaders;
|
|
548
|
-
// to determine the Accept header
|
|
549
|
-
let httpHeaderAccepts = [
|
|
550
|
-
'*/*'
|
|
551
|
-
];
|
|
552
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
553
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
554
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
555
|
-
}
|
|
556
|
-
// to determine the Content-Type header
|
|
557
|
-
const consumes = [];
|
|
558
|
-
return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}`, {
|
|
559
|
-
withCredentials: this.configuration.withCredentials,
|
|
560
|
-
headers: headers,
|
|
561
|
-
observe: observe,
|
|
562
|
-
reportProgress: reportProgress
|
|
563
|
-
});
|
|
564
|
-
}
|
|
565
|
-
getCampaignLogs(id, page, size, sort, observe = 'body', reportProgress = false) {
|
|
566
|
-
if (id === null || id === undefined) {
|
|
567
|
-
throw new Error('Required parameter id was null or undefined when calling getCampaignLogs.');
|
|
568
|
-
}
|
|
569
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
570
|
-
if (page !== undefined && page !== null) {
|
|
571
|
-
queryParameters = queryParameters.set('page', page);
|
|
572
|
-
}
|
|
573
|
-
if (size !== undefined && size !== null) {
|
|
574
|
-
queryParameters = queryParameters.set('size', size);
|
|
575
|
-
}
|
|
576
|
-
if (sort) {
|
|
577
|
-
sort.forEach((element) => {
|
|
578
|
-
queryParameters = queryParameters.append('sort', element);
|
|
579
|
-
});
|
|
580
|
-
}
|
|
581
|
-
let headers = this.defaultHeaders;
|
|
582
|
-
// to determine the Accept header
|
|
583
|
-
let httpHeaderAccepts = [
|
|
584
|
-
'*/*'
|
|
585
|
-
];
|
|
586
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
587
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
588
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
589
|
-
}
|
|
590
|
-
// to determine the Content-Type header
|
|
591
|
-
const consumes = [];
|
|
592
|
-
return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/log`, {
|
|
593
|
-
params: queryParameters,
|
|
594
|
-
withCredentials: this.configuration.withCredentials,
|
|
595
|
-
headers: headers,
|
|
596
|
-
observe: observe,
|
|
597
|
-
reportProgress: reportProgress
|
|
598
|
-
});
|
|
599
|
-
}
|
|
600
|
-
scheduleUpdate(body, id, observe = 'body', reportProgress = false) {
|
|
601
|
-
if (body === null || body === undefined) {
|
|
602
|
-
throw new Error('Required parameter body was null or undefined when calling scheduleUpdate.');
|
|
603
|
-
}
|
|
604
|
-
if (id === null || id === undefined) {
|
|
605
|
-
throw new Error('Required parameter id was null or undefined when calling scheduleUpdate.');
|
|
606
|
-
}
|
|
607
|
-
let headers = this.defaultHeaders;
|
|
608
|
-
// to determine the Accept header
|
|
609
|
-
let httpHeaderAccepts = [
|
|
610
|
-
'*/*'
|
|
611
|
-
];
|
|
612
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
613
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
614
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
615
|
-
}
|
|
616
|
-
// to determine the Content-Type header
|
|
617
|
-
const consumes = [
|
|
618
|
-
'application/json'
|
|
619
|
-
];
|
|
620
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
621
|
-
if (httpContentTypeSelected != undefined) {
|
|
622
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
623
|
-
}
|
|
624
|
-
return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/schedule-update`, {
|
|
625
|
-
body: body,
|
|
626
|
-
withCredentials: this.configuration.withCredentials,
|
|
627
|
-
headers: headers,
|
|
628
|
-
observe: observe,
|
|
629
|
-
reportProgress: reportProgress
|
|
630
|
-
});
|
|
631
|
-
}
|
|
632
|
-
searchCampaign(q, sourcePlatform, observe = 'body', reportProgress = false) {
|
|
633
|
-
if (q === null || q === undefined) {
|
|
634
|
-
throw new Error('Required parameter q was null or undefined when calling searchCampaign.');
|
|
635
|
-
}
|
|
636
|
-
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
637
|
-
throw new Error('Required parameter sourcePlatform was null or undefined when calling searchCampaign.');
|
|
638
|
-
}
|
|
639
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
640
|
-
if (q !== undefined && q !== null) {
|
|
641
|
-
queryParameters = queryParameters.set('q', q);
|
|
642
|
-
}
|
|
643
|
-
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
644
|
-
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
645
|
-
}
|
|
646
|
-
let headers = this.defaultHeaders;
|
|
647
|
-
// to determine the Accept header
|
|
648
|
-
let httpHeaderAccepts = [
|
|
649
|
-
'*/*'
|
|
650
|
-
];
|
|
651
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
652
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
653
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
654
|
-
}
|
|
655
|
-
// to determine the Content-Type header
|
|
656
|
-
const consumes = [];
|
|
657
|
-
return this.httpClient.request('get', `${this.basePath}/api/campaign/search`, {
|
|
658
|
-
params: queryParameters,
|
|
659
|
-
withCredentials: this.configuration.withCredentials,
|
|
660
|
-
headers: headers,
|
|
661
|
-
observe: observe,
|
|
662
|
-
reportProgress: reportProgress
|
|
663
|
-
});
|
|
664
|
-
}
|
|
665
|
-
setStatus(id, active, observe = 'body', reportProgress = false) {
|
|
666
|
-
if (id === null || id === undefined) {
|
|
667
|
-
throw new Error('Required parameter id was null or undefined when calling setStatus.');
|
|
668
|
-
}
|
|
669
|
-
if (active === null || active === undefined) {
|
|
670
|
-
throw new Error('Required parameter active was null or undefined when calling setStatus.');
|
|
671
|
-
}
|
|
672
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
673
|
-
if (active !== undefined && active !== null) {
|
|
674
|
-
queryParameters = queryParameters.set('active', active);
|
|
675
|
-
}
|
|
676
|
-
let headers = this.defaultHeaders;
|
|
677
|
-
// to determine the Accept header
|
|
678
|
-
let httpHeaderAccepts = [
|
|
679
|
-
'*/*'
|
|
680
|
-
];
|
|
681
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
682
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
683
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
684
|
-
}
|
|
685
|
-
// to determine the Content-Type header
|
|
686
|
-
const consumes = [];
|
|
687
|
-
return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/status`, {
|
|
688
|
-
params: queryParameters,
|
|
689
|
-
withCredentials: this.configuration.withCredentials,
|
|
690
|
-
headers: headers,
|
|
691
|
-
observe: observe,
|
|
692
|
-
reportProgress: reportProgress
|
|
693
|
-
});
|
|
694
|
-
}
|
|
695
|
-
}
|
|
696
|
-
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 });
|
|
697
|
-
CampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService });
|
|
698
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, decorators: [{
|
|
699
|
-
type: Injectable
|
|
700
|
-
}], ctorParameters: function () {
|
|
701
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
702
|
-
type: Optional
|
|
703
|
-
}, {
|
|
704
|
-
type: Inject,
|
|
705
|
-
args: [BASE_PATH]
|
|
706
|
-
}] }, { type: Configuration, decorators: [{
|
|
707
|
-
type: Optional
|
|
708
|
-
}] }];
|
|
455
|
+
/**
|
|
456
|
+
* Intellibid API
|
|
457
|
+
* API documentation for the Intellibid platform
|
|
458
|
+
*
|
|
459
|
+
* OpenAPI spec version: 1.0
|
|
460
|
+
*
|
|
461
|
+
*
|
|
462
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
463
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
464
|
+
* Do not edit the class manually.
|
|
465
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
466
|
+
class CampaignControllerService {
|
|
467
|
+
constructor(httpClient, basePath, configuration) {
|
|
468
|
+
this.httpClient = httpClient;
|
|
469
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
470
|
+
this.defaultHeaders = new HttpHeaders();
|
|
471
|
+
this.configuration = new Configuration();
|
|
472
|
+
if (basePath) {
|
|
473
|
+
this.basePath = basePath;
|
|
474
|
+
}
|
|
475
|
+
if (configuration) {
|
|
476
|
+
this.configuration = configuration;
|
|
477
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
/**
|
|
481
|
+
* @param consumes string[] mime-types
|
|
482
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
483
|
+
*/
|
|
484
|
+
canConsumeForm(consumes) {
|
|
485
|
+
const form = 'multipart/form-data';
|
|
486
|
+
for (const consume of consumes) {
|
|
487
|
+
if (form === consume) {
|
|
488
|
+
return true;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
return false;
|
|
492
|
+
}
|
|
493
|
+
createCampaign(body, observe = 'body', reportProgress = false) {
|
|
494
|
+
if (body === null || body === undefined) {
|
|
495
|
+
throw new Error('Required parameter body was null or undefined when calling createCampaign.');
|
|
496
|
+
}
|
|
497
|
+
let headers = this.defaultHeaders;
|
|
498
|
+
// to determine the Accept header
|
|
499
|
+
let httpHeaderAccepts = [
|
|
500
|
+
'*/*'
|
|
501
|
+
];
|
|
502
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
503
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
504
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
505
|
+
}
|
|
506
|
+
// to determine the Content-Type header
|
|
507
|
+
const consumes = [
|
|
508
|
+
'application/json'
|
|
509
|
+
];
|
|
510
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
511
|
+
if (httpContentTypeSelected != undefined) {
|
|
512
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
513
|
+
}
|
|
514
|
+
return this.httpClient.request('post', `${this.basePath}/api/campaign`, {
|
|
515
|
+
body: body,
|
|
516
|
+
withCredentials: this.configuration.withCredentials,
|
|
517
|
+
headers: headers,
|
|
518
|
+
observe: observe,
|
|
519
|
+
reportProgress: reportProgress
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
getAllCampaigns(id, advertiserId, name, platformCampaignId, payoutType, marketFeedbackEnabled, activeOnPlatform, sourcePlatform, page, size, sort, observe = 'body', reportProgress = false) {
|
|
523
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
524
|
+
if (id !== undefined && id !== null) {
|
|
525
|
+
queryParameters = queryParameters.set('id', id);
|
|
526
|
+
}
|
|
527
|
+
if (advertiserId !== undefined && advertiserId !== null) {
|
|
528
|
+
queryParameters = queryParameters.set('advertiserId', advertiserId);
|
|
529
|
+
}
|
|
530
|
+
if (name !== undefined && name !== null) {
|
|
531
|
+
queryParameters = queryParameters.set('name', name);
|
|
532
|
+
}
|
|
533
|
+
if (platformCampaignId !== undefined && platformCampaignId !== null) {
|
|
534
|
+
queryParameters = queryParameters.set('platformCampaignId', platformCampaignId);
|
|
535
|
+
}
|
|
536
|
+
if (payoutType !== undefined && payoutType !== null) {
|
|
537
|
+
queryParameters = queryParameters.set('payoutType', payoutType);
|
|
538
|
+
}
|
|
539
|
+
if (marketFeedbackEnabled !== undefined && marketFeedbackEnabled !== null) {
|
|
540
|
+
queryParameters = queryParameters.set('marketFeedbackEnabled', marketFeedbackEnabled);
|
|
541
|
+
}
|
|
542
|
+
if (activeOnPlatform !== undefined && activeOnPlatform !== null) {
|
|
543
|
+
queryParameters = queryParameters.set('activeOnPlatform', activeOnPlatform);
|
|
544
|
+
}
|
|
545
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
546
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
547
|
+
}
|
|
548
|
+
if (page !== undefined && page !== null) {
|
|
549
|
+
queryParameters = queryParameters.set('page', page);
|
|
550
|
+
}
|
|
551
|
+
if (size !== undefined && size !== null) {
|
|
552
|
+
queryParameters = queryParameters.set('size', size);
|
|
553
|
+
}
|
|
554
|
+
if (sort) {
|
|
555
|
+
sort.forEach((element) => {
|
|
556
|
+
queryParameters = queryParameters.append('sort', element);
|
|
557
|
+
});
|
|
558
|
+
}
|
|
559
|
+
let headers = this.defaultHeaders;
|
|
560
|
+
// to determine the Accept header
|
|
561
|
+
let httpHeaderAccepts = [
|
|
562
|
+
'*/*'
|
|
563
|
+
];
|
|
564
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
565
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
566
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
567
|
+
}
|
|
568
|
+
// to determine the Content-Type header
|
|
569
|
+
const consumes = [];
|
|
570
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign`, {
|
|
571
|
+
params: queryParameters,
|
|
572
|
+
withCredentials: this.configuration.withCredentials,
|
|
573
|
+
headers: headers,
|
|
574
|
+
observe: observe,
|
|
575
|
+
reportProgress: reportProgress
|
|
576
|
+
});
|
|
577
|
+
}
|
|
578
|
+
getCampaign(id, observe = 'body', reportProgress = false) {
|
|
579
|
+
if (id === null || id === undefined) {
|
|
580
|
+
throw new Error('Required parameter id was null or undefined when calling getCampaign.');
|
|
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/campaign/${encodeURIComponent(String(id))}`, {
|
|
594
|
+
withCredentials: this.configuration.withCredentials,
|
|
595
|
+
headers: headers,
|
|
596
|
+
observe: observe,
|
|
597
|
+
reportProgress: reportProgress
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
getCampaignLogs(id, page, size, sort, observe = 'body', reportProgress = false) {
|
|
601
|
+
if (id === null || id === undefined) {
|
|
602
|
+
throw new Error('Required parameter id was null or undefined when calling getCampaignLogs.');
|
|
603
|
+
}
|
|
604
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
605
|
+
if (page !== undefined && page !== null) {
|
|
606
|
+
queryParameters = queryParameters.set('page', page);
|
|
607
|
+
}
|
|
608
|
+
if (size !== undefined && size !== null) {
|
|
609
|
+
queryParameters = queryParameters.set('size', size);
|
|
610
|
+
}
|
|
611
|
+
if (sort) {
|
|
612
|
+
sort.forEach((element) => {
|
|
613
|
+
queryParameters = queryParameters.append('sort', element);
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
let headers = this.defaultHeaders;
|
|
617
|
+
// to determine the Accept header
|
|
618
|
+
let httpHeaderAccepts = [
|
|
619
|
+
'*/*'
|
|
620
|
+
];
|
|
621
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
622
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
623
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
624
|
+
}
|
|
625
|
+
// to determine the Content-Type header
|
|
626
|
+
const consumes = [];
|
|
627
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/log`, {
|
|
628
|
+
params: queryParameters,
|
|
629
|
+
withCredentials: this.configuration.withCredentials,
|
|
630
|
+
headers: headers,
|
|
631
|
+
observe: observe,
|
|
632
|
+
reportProgress: reportProgress
|
|
633
|
+
});
|
|
634
|
+
}
|
|
635
|
+
scheduleUpdate(body, id, observe = 'body', reportProgress = false) {
|
|
636
|
+
if (body === null || body === undefined) {
|
|
637
|
+
throw new Error('Required parameter body was null or undefined when calling scheduleUpdate.');
|
|
638
|
+
}
|
|
639
|
+
if (id === null || id === undefined) {
|
|
640
|
+
throw new Error('Required parameter id was null or undefined when calling scheduleUpdate.');
|
|
641
|
+
}
|
|
642
|
+
let headers = this.defaultHeaders;
|
|
643
|
+
// to determine the Accept header
|
|
644
|
+
let httpHeaderAccepts = [
|
|
645
|
+
'*/*'
|
|
646
|
+
];
|
|
647
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
648
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
649
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
650
|
+
}
|
|
651
|
+
// to determine the Content-Type header
|
|
652
|
+
const consumes = [
|
|
653
|
+
'application/json'
|
|
654
|
+
];
|
|
655
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
656
|
+
if (httpContentTypeSelected != undefined) {
|
|
657
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
658
|
+
}
|
|
659
|
+
return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/schedule-update`, {
|
|
660
|
+
body: body,
|
|
661
|
+
withCredentials: this.configuration.withCredentials,
|
|
662
|
+
headers: headers,
|
|
663
|
+
observe: observe,
|
|
664
|
+
reportProgress: reportProgress
|
|
665
|
+
});
|
|
666
|
+
}
|
|
667
|
+
searchCampaign(q, sourcePlatform, observe = 'body', reportProgress = false) {
|
|
668
|
+
if (q === null || q === undefined) {
|
|
669
|
+
throw new Error('Required parameter q was null or undefined when calling searchCampaign.');
|
|
670
|
+
}
|
|
671
|
+
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
672
|
+
throw new Error('Required parameter sourcePlatform was null or undefined when calling searchCampaign.');
|
|
673
|
+
}
|
|
674
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
675
|
+
if (q !== undefined && q !== null) {
|
|
676
|
+
queryParameters = queryParameters.set('q', q);
|
|
677
|
+
}
|
|
678
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
679
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
680
|
+
}
|
|
681
|
+
let headers = this.defaultHeaders;
|
|
682
|
+
// to determine the Accept header
|
|
683
|
+
let httpHeaderAccepts = [
|
|
684
|
+
'*/*'
|
|
685
|
+
];
|
|
686
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
687
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
688
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
689
|
+
}
|
|
690
|
+
// to determine the Content-Type header
|
|
691
|
+
const consumes = [];
|
|
692
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign/search`, {
|
|
693
|
+
params: queryParameters,
|
|
694
|
+
withCredentials: this.configuration.withCredentials,
|
|
695
|
+
headers: headers,
|
|
696
|
+
observe: observe,
|
|
697
|
+
reportProgress: reportProgress
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
setStatus(id, active, observe = 'body', reportProgress = false) {
|
|
701
|
+
if (id === null || id === undefined) {
|
|
702
|
+
throw new Error('Required parameter id was null or undefined when calling setStatus.');
|
|
703
|
+
}
|
|
704
|
+
if (active === null || active === undefined) {
|
|
705
|
+
throw new Error('Required parameter active was null or undefined when calling setStatus.');
|
|
706
|
+
}
|
|
707
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
708
|
+
if (active !== undefined && active !== null) {
|
|
709
|
+
queryParameters = queryParameters.set('active', active);
|
|
710
|
+
}
|
|
711
|
+
let headers = this.defaultHeaders;
|
|
712
|
+
// to determine the Accept header
|
|
713
|
+
let httpHeaderAccepts = [
|
|
714
|
+
'*/*'
|
|
715
|
+
];
|
|
716
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
717
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
718
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
719
|
+
}
|
|
720
|
+
// to determine the Content-Type header
|
|
721
|
+
const consumes = [];
|
|
722
|
+
return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/status`, {
|
|
723
|
+
params: queryParameters,
|
|
724
|
+
withCredentials: this.configuration.withCredentials,
|
|
725
|
+
headers: headers,
|
|
726
|
+
observe: observe,
|
|
727
|
+
reportProgress: reportProgress
|
|
728
|
+
});
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
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 });
|
|
732
|
+
CampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService });
|
|
733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, decorators: [{
|
|
734
|
+
type: Injectable
|
|
735
|
+
}], ctorParameters: function () {
|
|
736
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
737
|
+
type: Optional
|
|
738
|
+
}, {
|
|
739
|
+
type: Inject,
|
|
740
|
+
args: [BASE_PATH]
|
|
741
|
+
}] }, { type: Configuration, decorators: [{
|
|
742
|
+
type: Optional
|
|
743
|
+
}] }];
|
|
709
744
|
} });
|
|
710
745
|
|
|
711
|
-
/**
|
|
712
|
-
* Intellibid API
|
|
713
|
-
* API documentation for the Intellibid platform
|
|
714
|
-
*
|
|
715
|
-
* OpenAPI spec version: 1.0
|
|
716
|
-
*
|
|
717
|
-
*
|
|
718
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
719
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
720
|
-
* Do not edit the class manually.
|
|
721
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
722
|
-
class InsightsControllerService {
|
|
723
|
-
constructor(httpClient, basePath, configuration) {
|
|
724
|
-
this.httpClient = httpClient;
|
|
725
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
726
|
-
this.defaultHeaders = new HttpHeaders();
|
|
727
|
-
this.configuration = new Configuration();
|
|
728
|
-
if (basePath) {
|
|
729
|
-
this.basePath = basePath;
|
|
730
|
-
}
|
|
731
|
-
if (configuration) {
|
|
732
|
-
this.configuration = configuration;
|
|
733
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
734
|
-
}
|
|
735
|
-
}
|
|
736
|
-
/**
|
|
737
|
-
* @param consumes string[] mime-types
|
|
738
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
739
|
-
*/
|
|
740
|
-
canConsumeForm(consumes) {
|
|
741
|
-
const form = 'multipart/form-data';
|
|
742
|
-
for (const consume of consumes) {
|
|
743
|
-
if (form === consume) {
|
|
744
|
-
return true;
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
return false;
|
|
748
|
-
}
|
|
749
|
-
getCampaignInsights(startDate, endDate, sourcePlatform, interval, observe = 'body', reportProgress = false) {
|
|
750
|
-
if (startDate === null || startDate === undefined) {
|
|
751
|
-
throw new Error('Required parameter startDate was null or undefined when calling getCampaignInsights.');
|
|
752
|
-
}
|
|
753
|
-
if (endDate === null || endDate === undefined) {
|
|
754
|
-
throw new Error('Required parameter endDate was null or undefined when calling getCampaignInsights.');
|
|
755
|
-
}
|
|
756
|
-
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
757
|
-
throw new Error('Required parameter sourcePlatform was null or undefined when calling getCampaignInsights.');
|
|
758
|
-
}
|
|
759
|
-
if (interval === null || interval === undefined) {
|
|
760
|
-
throw new Error('Required parameter interval was null or undefined when calling getCampaignInsights.');
|
|
761
|
-
}
|
|
762
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
763
|
-
if (startDate !== undefined && startDate !== null) {
|
|
764
|
-
queryParameters = queryParameters.set('startDate', startDate);
|
|
765
|
-
}
|
|
766
|
-
if (endDate !== undefined && endDate !== null) {
|
|
767
|
-
queryParameters = queryParameters.set('endDate', endDate);
|
|
768
|
-
}
|
|
769
|
-
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
770
|
-
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
771
|
-
}
|
|
772
|
-
if (interval !== undefined && interval !== null) {
|
|
773
|
-
queryParameters = queryParameters.set('interval', interval);
|
|
774
|
-
}
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
}
|
|
806
|
-
type:
|
|
807
|
-
|
|
746
|
+
/**
|
|
747
|
+
* Intellibid API
|
|
748
|
+
* API documentation for the Intellibid platform
|
|
749
|
+
*
|
|
750
|
+
* OpenAPI spec version: 1.0
|
|
751
|
+
*
|
|
752
|
+
*
|
|
753
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
754
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
755
|
+
* Do not edit the class manually.
|
|
756
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
757
|
+
class InsightsControllerService {
|
|
758
|
+
constructor(httpClient, basePath, configuration) {
|
|
759
|
+
this.httpClient = httpClient;
|
|
760
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
761
|
+
this.defaultHeaders = new HttpHeaders();
|
|
762
|
+
this.configuration = new Configuration();
|
|
763
|
+
if (basePath) {
|
|
764
|
+
this.basePath = basePath;
|
|
765
|
+
}
|
|
766
|
+
if (configuration) {
|
|
767
|
+
this.configuration = configuration;
|
|
768
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
/**
|
|
772
|
+
* @param consumes string[] mime-types
|
|
773
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
774
|
+
*/
|
|
775
|
+
canConsumeForm(consumes) {
|
|
776
|
+
const form = 'multipart/form-data';
|
|
777
|
+
for (const consume of consumes) {
|
|
778
|
+
if (form === consume) {
|
|
779
|
+
return true;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
return false;
|
|
783
|
+
}
|
|
784
|
+
getCampaignInsights(startDate, endDate, sourcePlatform, interval, requireMmpReport, observe = 'body', reportProgress = false) {
|
|
785
|
+
if (startDate === null || startDate === undefined) {
|
|
786
|
+
throw new Error('Required parameter startDate was null or undefined when calling getCampaignInsights.');
|
|
787
|
+
}
|
|
788
|
+
if (endDate === null || endDate === undefined) {
|
|
789
|
+
throw new Error('Required parameter endDate was null or undefined when calling getCampaignInsights.');
|
|
790
|
+
}
|
|
791
|
+
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
792
|
+
throw new Error('Required parameter sourcePlatform was null or undefined when calling getCampaignInsights.');
|
|
793
|
+
}
|
|
794
|
+
if (interval === null || interval === undefined) {
|
|
795
|
+
throw new Error('Required parameter interval was null or undefined when calling getCampaignInsights.');
|
|
796
|
+
}
|
|
797
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
798
|
+
if (startDate !== undefined && startDate !== null) {
|
|
799
|
+
queryParameters = queryParameters.set('startDate', startDate);
|
|
800
|
+
}
|
|
801
|
+
if (endDate !== undefined && endDate !== null) {
|
|
802
|
+
queryParameters = queryParameters.set('endDate', endDate);
|
|
803
|
+
}
|
|
804
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
805
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
806
|
+
}
|
|
807
|
+
if (interval !== undefined && interval !== null) {
|
|
808
|
+
queryParameters = queryParameters.set('interval', interval);
|
|
809
|
+
}
|
|
810
|
+
if (requireMmpReport !== undefined && requireMmpReport !== null) {
|
|
811
|
+
queryParameters = queryParameters.set('requireMmpReport', requireMmpReport);
|
|
812
|
+
}
|
|
813
|
+
let headers = this.defaultHeaders;
|
|
814
|
+
// to determine the Accept header
|
|
815
|
+
let httpHeaderAccepts = [
|
|
816
|
+
'*/*'
|
|
817
|
+
];
|
|
818
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
819
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
820
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
821
|
+
}
|
|
822
|
+
// to determine the Content-Type header
|
|
823
|
+
const consumes = [];
|
|
824
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign-insights`, {
|
|
825
|
+
params: queryParameters,
|
|
826
|
+
withCredentials: this.configuration.withCredentials,
|
|
827
|
+
headers: headers,
|
|
828
|
+
observe: observe,
|
|
829
|
+
reportProgress: reportProgress
|
|
830
|
+
});
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
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 });
|
|
834
|
+
InsightsControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService });
|
|
835
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, decorators: [{
|
|
836
|
+
type: Injectable
|
|
837
|
+
}], ctorParameters: function () {
|
|
838
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
839
|
+
type: Optional
|
|
840
|
+
}, {
|
|
841
|
+
type: Inject,
|
|
842
|
+
args: [BASE_PATH]
|
|
843
|
+
}] }, { type: Configuration, decorators: [{
|
|
844
|
+
type: Optional
|
|
845
|
+
}] }];
|
|
808
846
|
} });
|
|
809
847
|
|
|
810
|
-
/**
|
|
811
|
-
* Intellibid API
|
|
812
|
-
* API documentation for the Intellibid platform
|
|
813
|
-
*
|
|
814
|
-
* OpenAPI spec version: 1.0
|
|
815
|
-
*
|
|
816
|
-
*
|
|
817
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
818
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
819
|
-
* Do not edit the class manually.
|
|
820
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
821
|
-
class
|
|
822
|
-
constructor(httpClient, basePath, configuration) {
|
|
823
|
-
this.httpClient = httpClient;
|
|
824
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
825
|
-
this.defaultHeaders = new HttpHeaders();
|
|
826
|
-
this.configuration = new Configuration();
|
|
827
|
-
if (basePath) {
|
|
828
|
-
this.basePath = basePath;
|
|
829
|
-
}
|
|
830
|
-
if (configuration) {
|
|
831
|
-
this.configuration = configuration;
|
|
832
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
* @param consumes string[] mime-types
|
|
837
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
838
|
-
*/
|
|
839
|
-
canConsumeForm(consumes) {
|
|
840
|
-
const form = 'multipart/form-data';
|
|
841
|
-
for (const consume of consumes) {
|
|
842
|
-
if (form === consume) {
|
|
843
|
-
return true;
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
return false;
|
|
847
|
-
}
|
|
848
|
-
getAllActiveOS(observe = 'body', reportProgress = false) {
|
|
849
|
-
let headers = this.defaultHeaders;
|
|
850
|
-
// to determine the Accept header
|
|
851
|
-
let httpHeaderAccepts = [
|
|
852
|
-
'*/*'
|
|
853
|
-
];
|
|
854
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
855
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
856
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
857
|
-
}
|
|
858
|
-
// to determine the Content-Type header
|
|
859
|
-
const consumes = [];
|
|
860
|
-
return this.httpClient.request('get', `${this.basePath}/api/os`, {
|
|
861
|
-
withCredentials: this.configuration.withCredentials,
|
|
862
|
-
headers: headers,
|
|
863
|
-
observe: observe,
|
|
864
|
-
reportProgress: reportProgress
|
|
865
|
-
});
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
848
|
+
/**
|
|
849
|
+
* Intellibid API
|
|
850
|
+
* API documentation for the Intellibid platform
|
|
851
|
+
*
|
|
852
|
+
* OpenAPI spec version: 1.0
|
|
853
|
+
*
|
|
854
|
+
*
|
|
855
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
856
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
857
|
+
* Do not edit the class manually.
|
|
858
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
859
|
+
class LookupDataControllerService {
|
|
860
|
+
constructor(httpClient, basePath, configuration) {
|
|
861
|
+
this.httpClient = httpClient;
|
|
862
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
863
|
+
this.defaultHeaders = new HttpHeaders();
|
|
864
|
+
this.configuration = new Configuration();
|
|
865
|
+
if (basePath) {
|
|
866
|
+
this.basePath = basePath;
|
|
867
|
+
}
|
|
868
|
+
if (configuration) {
|
|
869
|
+
this.configuration = configuration;
|
|
870
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
/**
|
|
874
|
+
* @param consumes string[] mime-types
|
|
875
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
876
|
+
*/
|
|
877
|
+
canConsumeForm(consumes) {
|
|
878
|
+
const form = 'multipart/form-data';
|
|
879
|
+
for (const consume of consumes) {
|
|
880
|
+
if (form === consume) {
|
|
881
|
+
return true;
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
return false;
|
|
885
|
+
}
|
|
886
|
+
getAllActiveOS(observe = 'body', reportProgress = false) {
|
|
887
|
+
let headers = this.defaultHeaders;
|
|
888
|
+
// to determine the Accept header
|
|
889
|
+
let httpHeaderAccepts = [
|
|
890
|
+
'*/*'
|
|
891
|
+
];
|
|
892
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
893
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
894
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
895
|
+
}
|
|
896
|
+
// to determine the Content-Type header
|
|
897
|
+
const consumes = [];
|
|
898
|
+
return this.httpClient.request('get', `${this.basePath}/api/lookups/os`, {
|
|
899
|
+
withCredentials: this.configuration.withCredentials,
|
|
900
|
+
headers: headers,
|
|
901
|
+
observe: observe,
|
|
902
|
+
reportProgress: reportProgress
|
|
903
|
+
});
|
|
904
|
+
}
|
|
905
|
+
getAllActivePlatforms(observe = 'body', reportProgress = false) {
|
|
906
|
+
let headers = this.defaultHeaders;
|
|
907
|
+
// to determine the Accept header
|
|
908
|
+
let httpHeaderAccepts = [
|
|
909
|
+
'*/*'
|
|
910
|
+
];
|
|
911
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
912
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
913
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
914
|
+
}
|
|
915
|
+
// to determine the Content-Type header
|
|
916
|
+
const consumes = [];
|
|
917
|
+
return this.httpClient.request('get', `${this.basePath}/api/lookups/platforms`, {
|
|
918
|
+
withCredentials: this.configuration.withCredentials,
|
|
919
|
+
headers: headers,
|
|
920
|
+
observe: observe,
|
|
921
|
+
reportProgress: reportProgress
|
|
922
|
+
});
|
|
923
|
+
}
|
|
924
|
+
getAllBusinessZones(observe = 'body', reportProgress = false) {
|
|
925
|
+
let headers = this.defaultHeaders;
|
|
926
|
+
// to determine the Accept header
|
|
927
|
+
let httpHeaderAccepts = [
|
|
928
|
+
'*/*'
|
|
929
|
+
];
|
|
930
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
931
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
932
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
933
|
+
}
|
|
934
|
+
// to determine the Content-Type header
|
|
935
|
+
const consumes = [];
|
|
936
|
+
return this.httpClient.request('get', `${this.basePath}/api/lookups/business-zones`, {
|
|
937
|
+
withCredentials: this.configuration.withCredentials,
|
|
938
|
+
headers: headers,
|
|
939
|
+
observe: observe,
|
|
940
|
+
reportProgress: reportProgress
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
getAllCountries(observe = 'body', reportProgress = false) {
|
|
944
|
+
let headers = this.defaultHeaders;
|
|
945
|
+
// to determine the Accept header
|
|
946
|
+
let httpHeaderAccepts = [
|
|
947
|
+
'*/*'
|
|
948
|
+
];
|
|
949
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
950
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
951
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
952
|
+
}
|
|
953
|
+
// to determine the Content-Type header
|
|
954
|
+
const consumes = [];
|
|
955
|
+
return this.httpClient.request('get', `${this.basePath}/api/lookups/countries`, {
|
|
956
|
+
withCredentials: this.configuration.withCredentials,
|
|
957
|
+
headers: headers,
|
|
958
|
+
observe: observe,
|
|
959
|
+
reportProgress: reportProgress
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
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 });
|
|
964
|
+
LookupDataControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService });
|
|
965
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService, decorators: [{
|
|
966
|
+
type: Injectable
|
|
967
|
+
}], ctorParameters: function () {
|
|
968
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
969
|
+
type: Optional
|
|
970
|
+
}, {
|
|
971
|
+
type: Inject,
|
|
972
|
+
args: [BASE_PATH]
|
|
973
|
+
}] }, { type: Configuration, decorators: [{
|
|
974
|
+
type: Optional
|
|
975
|
+
}] }];
|
|
881
976
|
} });
|
|
882
977
|
|
|
883
|
-
const APIS = [AdvertiserControllerService, AudienceControllerService, CampaignControllerService, InsightsControllerService,
|
|
978
|
+
const APIS = [AdvertiserControllerService, AudienceControllerService, CampaignControllerService, InsightsControllerService, LookupDataControllerService];
|
|
884
979
|
|
|
885
|
-
/**
|
|
886
|
-
* Intellibid API
|
|
887
|
-
* API documentation for the Intellibid platform
|
|
888
|
-
*
|
|
889
|
-
* OpenAPI spec version: 1.0
|
|
890
|
-
*
|
|
891
|
-
*
|
|
892
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
893
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
894
|
-
* Do not edit the class manually.
|
|
895
|
-
*/
|
|
896
|
-
var
|
|
897
|
-
(function (
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
980
|
+
/**
|
|
981
|
+
* Intellibid API
|
|
982
|
+
* API documentation for the Intellibid platform
|
|
983
|
+
*
|
|
984
|
+
* OpenAPI spec version: 1.0
|
|
985
|
+
*
|
|
986
|
+
*
|
|
987
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
988
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
989
|
+
* Do not edit the class manually.
|
|
990
|
+
*/
|
|
991
|
+
var AudienceChildStatusDTO;
|
|
992
|
+
(function (AudienceChildStatusDTO) {
|
|
993
|
+
AudienceChildStatusDTO.StatusEnum = {
|
|
994
|
+
CREATING: 'CREATING',
|
|
995
|
+
ACTIVE: 'ACTIVE',
|
|
996
|
+
UPDATING: 'UPDATING',
|
|
997
|
+
DELETING: 'DELETING',
|
|
998
|
+
FAILED: 'FAILED'
|
|
999
|
+
};
|
|
1000
|
+
})(AudienceChildStatusDTO || (AudienceChildStatusDTO = {}));
|
|
1001
|
+
|
|
1002
|
+
var AudienceGroupStatusResponse;
|
|
1003
|
+
(function (AudienceGroupStatusResponse) {
|
|
1004
|
+
AudienceGroupStatusResponse.GroupTypeEnum = {
|
|
1005
|
+
BUCKETIZEDLIVE: 'BUCKETIZED_LIVE',
|
|
1006
|
+
BLOCKEDLIVE: 'BLOCKED_LIVE',
|
|
1007
|
+
BUCKETIZEDCUSTOM: 'BUCKETIZED_CUSTOM',
|
|
1008
|
+
DSCUSTOMQUERY: 'DS_CUSTOM_QUERY'
|
|
1009
|
+
};
|
|
1010
|
+
AudienceGroupStatusResponse.SyncStatusEnum = {
|
|
1011
|
+
IDLE: 'IDLE',
|
|
1012
|
+
SYNCING: 'SYNCING',
|
|
1013
|
+
PARTIAL: 'PARTIAL',
|
|
1014
|
+
FAILED: 'FAILED'
|
|
1015
|
+
};
|
|
1016
|
+
})(AudienceGroupStatusResponse || (AudienceGroupStatusResponse = {}));
|
|
1017
|
+
|
|
1018
|
+
/**
|
|
1019
|
+
* Intellibid API
|
|
1020
|
+
* API documentation for the Intellibid platform
|
|
1021
|
+
*
|
|
1022
|
+
* OpenAPI spec version: 1.0
|
|
1023
|
+
*
|
|
1024
|
+
*
|
|
1025
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1026
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1027
|
+
* Do not edit the class manually.
|
|
1028
|
+
*/
|
|
1029
|
+
var CampaignChangeLogResponse;
|
|
1030
|
+
(function (CampaignChangeLogResponse) {
|
|
1031
|
+
CampaignChangeLogResponse.EntityChangedEnum = {
|
|
1032
|
+
STATUS: 'STATUS',
|
|
1033
|
+
BUDGET: 'BUDGET',
|
|
1034
|
+
PAYOUTVALUE: 'PAYOUT_VALUE'
|
|
1035
|
+
};
|
|
1036
|
+
CampaignChangeLogResponse.StatusEnum = {
|
|
1037
|
+
SUCCESS: 'SUCCESS',
|
|
1038
|
+
FAILED: 'FAILED'
|
|
1039
|
+
};
|
|
907
1040
|
})(CampaignChangeLogResponse || (CampaignChangeLogResponse = {}));
|
|
908
1041
|
|
|
909
|
-
/**
|
|
910
|
-
* Intellibid API
|
|
911
|
-
* API documentation for the Intellibid platform
|
|
912
|
-
*
|
|
913
|
-
* OpenAPI spec version: 1.0
|
|
914
|
-
*
|
|
915
|
-
*
|
|
916
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
917
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
918
|
-
* Do not edit the class manually.
|
|
919
|
-
*/
|
|
920
|
-
var CampaignInsightRecord;
|
|
921
|
-
(function (CampaignInsightRecord) {
|
|
922
|
-
CampaignInsightRecord.PayoutTypeEnum = {
|
|
923
|
-
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
924
|
-
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
925
|
-
};
|
|
1042
|
+
/**
|
|
1043
|
+
* Intellibid API
|
|
1044
|
+
* API documentation for the Intellibid platform
|
|
1045
|
+
*
|
|
1046
|
+
* OpenAPI spec version: 1.0
|
|
1047
|
+
*
|
|
1048
|
+
*
|
|
1049
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1050
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1051
|
+
* Do not edit the class manually.
|
|
1052
|
+
*/
|
|
1053
|
+
var CampaignInsightRecord;
|
|
1054
|
+
(function (CampaignInsightRecord) {
|
|
1055
|
+
CampaignInsightRecord.PayoutTypeEnum = {
|
|
1056
|
+
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
1057
|
+
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
1058
|
+
};
|
|
926
1059
|
})(CampaignInsightRecord || (CampaignInsightRecord = {}));
|
|
927
1060
|
|
|
928
|
-
/**
|
|
929
|
-
* Intellibid API
|
|
930
|
-
* API documentation for the Intellibid platform
|
|
931
|
-
*
|
|
932
|
-
* OpenAPI spec version: 1.0
|
|
933
|
-
*
|
|
934
|
-
*
|
|
935
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
936
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
937
|
-
* Do not edit the class manually.
|
|
938
|
-
*/
|
|
939
|
-
var CampaignRequest;
|
|
940
|
-
(function (CampaignRequest) {
|
|
941
|
-
CampaignRequest.SourcePlatformEnum = {
|
|
942
|
-
META: 'META',
|
|
943
|
-
TIKTOK: 'TIKTOK',
|
|
944
|
-
GOOGLE: 'GOOGLE',
|
|
945
|
-
SNAPCHAT: 'SNAPCHAT'
|
|
946
|
-
};
|
|
947
|
-
CampaignRequest.PayoutTypeEnum = {
|
|
948
|
-
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
949
|
-
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
950
|
-
};
|
|
951
|
-
CampaignRequest.GoalEnum = {
|
|
952
|
-
COSTPERRESULT: 'COST_PER_RESULT',
|
|
953
|
-
ROAS: 'ROAS'
|
|
954
|
-
};
|
|
955
|
-
CampaignRequest.MmpAttributionSettingEnum = {
|
|
956
|
-
CTA: 'CTA',
|
|
957
|
-
CTAANDVTA: 'CTA_AND_VTA'
|
|
958
|
-
};
|
|
1061
|
+
/**
|
|
1062
|
+
* Intellibid API
|
|
1063
|
+
* API documentation for the Intellibid platform
|
|
1064
|
+
*
|
|
1065
|
+
* OpenAPI spec version: 1.0
|
|
1066
|
+
*
|
|
1067
|
+
*
|
|
1068
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1069
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1070
|
+
* Do not edit the class manually.
|
|
1071
|
+
*/
|
|
1072
|
+
var CampaignRequest;
|
|
1073
|
+
(function (CampaignRequest) {
|
|
1074
|
+
CampaignRequest.SourcePlatformEnum = {
|
|
1075
|
+
META: 'META',
|
|
1076
|
+
TIKTOK: 'TIKTOK',
|
|
1077
|
+
GOOGLE: 'GOOGLE',
|
|
1078
|
+
SNAPCHAT: 'SNAPCHAT'
|
|
1079
|
+
};
|
|
1080
|
+
CampaignRequest.PayoutTypeEnum = {
|
|
1081
|
+
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
1082
|
+
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
1083
|
+
};
|
|
1084
|
+
CampaignRequest.GoalEnum = {
|
|
1085
|
+
COSTPERRESULT: 'COST_PER_RESULT',
|
|
1086
|
+
ROAS: 'ROAS'
|
|
1087
|
+
};
|
|
1088
|
+
CampaignRequest.MmpAttributionSettingEnum = {
|
|
1089
|
+
CTA: 'CTA',
|
|
1090
|
+
CTAANDVTA: 'CTA_AND_VTA'
|
|
1091
|
+
};
|
|
959
1092
|
})(CampaignRequest || (CampaignRequest = {}));
|
|
960
1093
|
|
|
961
|
-
var CampaignResponse;
|
|
962
|
-
(function (CampaignResponse) {
|
|
963
|
-
CampaignResponse.SourcePlatformEnum = {
|
|
964
|
-
META: 'META',
|
|
965
|
-
TIKTOK: 'TIKTOK',
|
|
966
|
-
GOOGLE: 'GOOGLE',
|
|
967
|
-
SNAPCHAT: 'SNAPCHAT'
|
|
968
|
-
};
|
|
969
|
-
CampaignResponse.PayoutTypeEnum = {
|
|
970
|
-
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
971
|
-
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
972
|
-
};
|
|
973
|
-
CampaignResponse.GoalEnum = {
|
|
974
|
-
COSTPERRESULT: 'COST_PER_RESULT',
|
|
975
|
-
ROAS: 'ROAS'
|
|
976
|
-
};
|
|
977
|
-
CampaignResponse.MmpAttributionSettingEnum = {
|
|
978
|
-
CTA: 'CTA',
|
|
979
|
-
CTAANDVTA: 'CTA_AND_VTA'
|
|
980
|
-
};
|
|
1094
|
+
var CampaignResponse;
|
|
1095
|
+
(function (CampaignResponse) {
|
|
1096
|
+
CampaignResponse.SourcePlatformEnum = {
|
|
1097
|
+
META: 'META',
|
|
1098
|
+
TIKTOK: 'TIKTOK',
|
|
1099
|
+
GOOGLE: 'GOOGLE',
|
|
1100
|
+
SNAPCHAT: 'SNAPCHAT'
|
|
1101
|
+
};
|
|
1102
|
+
CampaignResponse.PayoutTypeEnum = {
|
|
1103
|
+
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
1104
|
+
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
1105
|
+
};
|
|
1106
|
+
CampaignResponse.GoalEnum = {
|
|
1107
|
+
COSTPERRESULT: 'COST_PER_RESULT',
|
|
1108
|
+
ROAS: 'ROAS'
|
|
1109
|
+
};
|
|
1110
|
+
CampaignResponse.MmpAttributionSettingEnum = {
|
|
1111
|
+
CTA: 'CTA',
|
|
1112
|
+
CTAANDVTA: 'CTA_AND_VTA'
|
|
1113
|
+
};
|
|
981
1114
|
})(CampaignResponse || (CampaignResponse = {}));
|
|
982
1115
|
|
|
983
|
-
/**
|
|
984
|
-
* Intellibid API
|
|
985
|
-
* API documentation for the Intellibid platform
|
|
986
|
-
*
|
|
987
|
-
* OpenAPI spec version: 1.0
|
|
988
|
-
*
|
|
989
|
-
*
|
|
990
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
991
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
992
|
-
* Do not edit the class manually.
|
|
993
|
-
*/
|
|
994
|
-
var
|
|
995
|
-
(function (
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
};
|
|
1002
|
-
})(CreateBlockedAudienceRequest || (CreateBlockedAudienceRequest = {}));
|
|
1003
|
-
|
|
1004
|
-
/**
|
|
1005
|
-
* Intellibid API
|
|
1006
|
-
* API documentation for the Intellibid platform
|
|
1007
|
-
*
|
|
1008
|
-
* OpenAPI spec version: 1.0
|
|
1009
|
-
*
|
|
1010
|
-
*
|
|
1011
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1012
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1013
|
-
* Do not edit the class manually.
|
|
1014
|
-
*/
|
|
1015
|
-
var CreateDynamicAudienceRequest;
|
|
1016
|
-
(function (CreateDynamicAudienceRequest) {
|
|
1017
|
-
CreateDynamicAudienceRequest.SourcePlatformEnum = {
|
|
1018
|
-
META: 'META',
|
|
1019
|
-
TIKTOK: 'TIKTOK',
|
|
1020
|
-
GOOGLE: 'GOOGLE',
|
|
1021
|
-
SNAPCHAT: 'SNAPCHAT'
|
|
1022
|
-
};
|
|
1023
|
-
})(CreateDynamicAudienceRequest || (CreateDynamicAudienceRequest = {}));
|
|
1116
|
+
/**
|
|
1117
|
+
* Intellibid API
|
|
1118
|
+
* API documentation for the Intellibid platform
|
|
1119
|
+
*
|
|
1120
|
+
* OpenAPI spec version: 1.0
|
|
1121
|
+
*
|
|
1122
|
+
*
|
|
1123
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1124
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1125
|
+
* Do not edit the class manually.
|
|
1126
|
+
*/
|
|
1127
|
+
var CreateBucketizedLiveAudienceRequest;
|
|
1128
|
+
(function (CreateBucketizedLiveAudienceRequest) {
|
|
1129
|
+
CreateBucketizedLiveAudienceRequest.AudienceTypeEnum = {
|
|
1130
|
+
DYNAMIC: 'DYNAMIC',
|
|
1131
|
+
CATALOGUE: 'CATALOGUE'
|
|
1132
|
+
};
|
|
1133
|
+
})(CreateBucketizedLiveAudienceRequest || (CreateBucketizedLiveAudienceRequest = {}));
|
|
1024
1134
|
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
* Do not edit the class manually.
|
|
1035
|
-
*/
|
|
1036
|
-
var CreateStaticAudienceRequest;
|
|
1037
|
-
(function (CreateStaticAudienceRequest) {
|
|
1038
|
-
CreateStaticAudienceRequest.SourcePlatformEnum = {
|
|
1039
|
-
META: 'META',
|
|
1040
|
-
TIKTOK: 'TIKTOK',
|
|
1041
|
-
GOOGLE: 'GOOGLE',
|
|
1042
|
-
SNAPCHAT: 'SNAPCHAT'
|
|
1043
|
-
};
|
|
1044
|
-
})(CreateStaticAudienceRequest || (CreateStaticAudienceRequest = {}));
|
|
1135
|
+
var CreateBucketizedLiveAudienceResponse;
|
|
1136
|
+
(function (CreateBucketizedLiveAudienceResponse) {
|
|
1137
|
+
CreateBucketizedLiveAudienceResponse.SyncStatusEnum = {
|
|
1138
|
+
IDLE: 'IDLE',
|
|
1139
|
+
SYNCING: 'SYNCING',
|
|
1140
|
+
PARTIAL: 'PARTIAL',
|
|
1141
|
+
FAILED: 'FAILED'
|
|
1142
|
+
};
|
|
1143
|
+
})(CreateBucketizedLiveAudienceResponse || (CreateBucketizedLiveAudienceResponse = {}));
|
|
1045
1144
|
|
|
1046
|
-
/**
|
|
1047
|
-
* Intellibid API
|
|
1048
|
-
* API documentation for the Intellibid platform
|
|
1049
|
-
*
|
|
1050
|
-
* OpenAPI spec version: 1.0
|
|
1051
|
-
*
|
|
1052
|
-
*
|
|
1053
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1054
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1055
|
-
* Do not edit the class manually.
|
|
1056
|
-
*/
|
|
1057
|
-
var ScheduleUpdateRequest;
|
|
1058
|
-
(function (ScheduleUpdateRequest) {
|
|
1059
|
-
ScheduleUpdateRequest.RequestTypeEnum = {
|
|
1060
|
-
BUDGET: 'BUDGET',
|
|
1061
|
-
PAYOUTVALUE: 'PAYOUT_VALUE'
|
|
1062
|
-
};
|
|
1145
|
+
/**
|
|
1146
|
+
* Intellibid API
|
|
1147
|
+
* API documentation for the Intellibid platform
|
|
1148
|
+
*
|
|
1149
|
+
* OpenAPI spec version: 1.0
|
|
1150
|
+
*
|
|
1151
|
+
*
|
|
1152
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1153
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1154
|
+
* Do not edit the class manually.
|
|
1155
|
+
*/
|
|
1156
|
+
var ScheduleUpdateRequest;
|
|
1157
|
+
(function (ScheduleUpdateRequest) {
|
|
1158
|
+
ScheduleUpdateRequest.RequestTypeEnum = {
|
|
1159
|
+
BUDGET: 'BUDGET',
|
|
1160
|
+
PAYOUTVALUE: 'PAYOUT_VALUE'
|
|
1161
|
+
};
|
|
1063
1162
|
})(ScheduleUpdateRequest || (ScheduleUpdateRequest = {}));
|
|
1064
1163
|
|
|
1065
|
-
class ApiModule {
|
|
1066
|
-
static forRoot(configurationFactory) {
|
|
1067
|
-
return {
|
|
1068
|
-
ngModule: ApiModule,
|
|
1069
|
-
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
1070
|
-
};
|
|
1071
|
-
}
|
|
1072
|
-
constructor(parentModule, http) {
|
|
1073
|
-
if (parentModule) {
|
|
1074
|
-
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
1075
|
-
}
|
|
1076
|
-
if (!http) {
|
|
1077
|
-
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
1078
|
-
'See also https://github.com/angular/angular/issues/20575');
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
}
|
|
1082
|
-
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 });
|
|
1083
|
-
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
|
|
1084
|
-
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
|
|
1085
|
-
AdvertiserControllerService,
|
|
1086
|
-
AudienceControllerService,
|
|
1087
|
-
CampaignControllerService,
|
|
1088
|
-
InsightsControllerService,
|
|
1089
|
-
|
|
1090
|
-
] });
|
|
1091
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
|
|
1092
|
-
type: NgModule,
|
|
1093
|
-
args: [{
|
|
1094
|
-
imports: [],
|
|
1095
|
-
declarations: [],
|
|
1096
|
-
exports: [],
|
|
1097
|
-
providers: [
|
|
1098
|
-
AdvertiserControllerService,
|
|
1099
|
-
AudienceControllerService,
|
|
1100
|
-
CampaignControllerService,
|
|
1101
|
-
InsightsControllerService,
|
|
1102
|
-
|
|
1103
|
-
]
|
|
1104
|
-
}]
|
|
1105
|
-
}], ctorParameters: function () {
|
|
1106
|
-
return [{ type: ApiModule, decorators: [{
|
|
1107
|
-
type: Optional
|
|
1108
|
-
}, {
|
|
1109
|
-
type: SkipSelf
|
|
1110
|
-
}] }, { type: i1.HttpClient, decorators: [{
|
|
1111
|
-
type: Optional
|
|
1112
|
-
}] }];
|
|
1164
|
+
class ApiModule {
|
|
1165
|
+
static forRoot(configurationFactory) {
|
|
1166
|
+
return {
|
|
1167
|
+
ngModule: ApiModule,
|
|
1168
|
+
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
1169
|
+
};
|
|
1170
|
+
}
|
|
1171
|
+
constructor(parentModule, http) {
|
|
1172
|
+
if (parentModule) {
|
|
1173
|
+
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
1174
|
+
}
|
|
1175
|
+
if (!http) {
|
|
1176
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
1177
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
1178
|
+
}
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
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 });
|
|
1182
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
|
|
1183
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
|
|
1184
|
+
AdvertiserControllerService,
|
|
1185
|
+
AudienceControllerService,
|
|
1186
|
+
CampaignControllerService,
|
|
1187
|
+
InsightsControllerService,
|
|
1188
|
+
LookupDataControllerService
|
|
1189
|
+
] });
|
|
1190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
|
|
1191
|
+
type: NgModule,
|
|
1192
|
+
args: [{
|
|
1193
|
+
imports: [],
|
|
1194
|
+
declarations: [],
|
|
1195
|
+
exports: [],
|
|
1196
|
+
providers: [
|
|
1197
|
+
AdvertiserControllerService,
|
|
1198
|
+
AudienceControllerService,
|
|
1199
|
+
CampaignControllerService,
|
|
1200
|
+
InsightsControllerService,
|
|
1201
|
+
LookupDataControllerService
|
|
1202
|
+
]
|
|
1203
|
+
}]
|
|
1204
|
+
}], ctorParameters: function () {
|
|
1205
|
+
return [{ type: ApiModule, decorators: [{
|
|
1206
|
+
type: Optional
|
|
1207
|
+
}, {
|
|
1208
|
+
type: SkipSelf
|
|
1209
|
+
}] }, { type: i1.HttpClient, decorators: [{
|
|
1210
|
+
type: Optional
|
|
1211
|
+
}] }];
|
|
1113
1212
|
} });
|
|
1114
1213
|
|
|
1115
|
-
/**
|
|
1116
|
-
* Generated bundle index. Do not edit.
|
|
1214
|
+
/**
|
|
1215
|
+
* Generated bundle index. Do not edit.
|
|
1117
1216
|
*/
|
|
1118
1217
|
|
|
1119
|
-
export { APIS, AdvertiserControllerService, ApiModule, AudienceControllerService, BASE_PATH, COLLECTION_FORMATS, CampaignChangeLogResponse, CampaignControllerService, CampaignInsightRecord, CampaignRequest, CampaignResponse, Configuration,
|
|
1218
|
+
export { APIS, AdvertiserControllerService, ApiModule, AudienceChildStatusDTO, AudienceControllerService, AudienceGroupStatusResponse, BASE_PATH, COLLECTION_FORMATS, CampaignChangeLogResponse, CampaignControllerService, CampaignInsightRecord, CampaignRequest, CampaignResponse, Configuration, CreateBucketizedLiveAudienceRequest, CreateBucketizedLiveAudienceResponse, InsightsControllerService, LookupDataControllerService, ScheduleUpdateRequest };
|
|
1120
1219
|
//# sourceMappingURL=revxui-intellibid-client-ts.mjs.map
|