@revxui/intellibid-client-ts 1.0.57 → 1.0.58
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 +88 -66
- package/api/api.d.ts +9 -11
- 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 +213 -169
- package/esm2020/api/api.mjs +10 -12
- 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 +54 -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/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/countryResponse.mjs +13 -0
- package/esm2020/model/goalResponse.mjs +13 -0
- package/esm2020/model/models.mjs +23 -24
- package/esm2020/model/oSResponse.mjs +12 -12
- package/esm2020/model/pageAdvertiserResponse.mjs +2 -2
- package/esm2020/model/pageCampaignChangeLogResponse.mjs +2 -2
- package/esm2020/model/pageCampaignResponse.mjs +2 -2
- package/esm2020/model/pageableObject.mjs +1 -1
- package/esm2020/model/platformResponse.mjs +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/revxui-intellibid-client-ts.mjs +4 -4
- package/esm2020/variables.mjs +8 -8
- package/fesm2015/revxui-intellibid-client-ts.mjs +956 -1085
- package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
- package/fesm2020/revxui-intellibid-client-ts.mjs +1068 -1147
- 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/{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/countryResponse.d.ts +18 -0
- package/model/goalResponse.d.ts +17 -0
- package/model/models.d.ts +22 -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/scheduleUpdateRequest.d.ts +22 -22
- package/model/scheduledUpdates.d.ts +15 -15
- package/model/sortObject.d.ts +18 -18
- package/package.json +1 -1
- package/variables.d.ts +8 -8
- package/api/audienceController.service.d.ts +0 -63
- package/api/osMasterController.service.d.ts +0 -28
- package/esm2020/api/audienceController.service.mjs +0 -174
- 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,989 @@ 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
|
+
searchAdvertisers(q, observe = 'body', reportProgress = false) {
|
|
254
|
+
if (q === null || q === undefined) {
|
|
255
|
+
throw new Error('Required parameter q was null or undefined when calling searchAdvertisers.');
|
|
256
|
+
}
|
|
257
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
258
|
+
if (q !== undefined && q !== null) {
|
|
259
|
+
queryParameters = queryParameters.set('q', q);
|
|
260
|
+
}
|
|
261
|
+
let headers = this.defaultHeaders;
|
|
262
|
+
// to determine the Accept header
|
|
263
|
+
let httpHeaderAccepts = [
|
|
264
|
+
'*/*'
|
|
265
|
+
];
|
|
266
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
267
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
268
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
269
|
+
}
|
|
270
|
+
// to determine the Content-Type header
|
|
271
|
+
const consumes = [];
|
|
272
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/search`, {
|
|
273
|
+
params: queryParameters,
|
|
274
|
+
withCredentials: this.configuration.withCredentials,
|
|
275
|
+
headers: headers,
|
|
276
|
+
observe: observe,
|
|
277
|
+
reportProgress: reportProgress
|
|
278
|
+
});
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
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 });
|
|
282
|
+
AdvertiserControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService });
|
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService, decorators: [{
|
|
284
|
+
type: Injectable
|
|
285
|
+
}], ctorParameters: function () {
|
|
286
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
287
|
+
type: Optional
|
|
288
|
+
}, {
|
|
289
|
+
type: Inject,
|
|
290
|
+
args: [BASE_PATH]
|
|
291
|
+
}] }, { type: Configuration, decorators: [{
|
|
292
|
+
type: Optional
|
|
293
|
+
}] }];
|
|
250
294
|
} });
|
|
251
295
|
|
|
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
|
|
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
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
if (
|
|
334
|
-
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
if (
|
|
346
|
-
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
];
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
headers
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
296
|
+
/**
|
|
297
|
+
* Intellibid API
|
|
298
|
+
* API documentation for the Intellibid platform
|
|
299
|
+
*
|
|
300
|
+
* OpenAPI spec version: 1.0
|
|
301
|
+
*
|
|
302
|
+
*
|
|
303
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
304
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
305
|
+
* Do not edit the class manually.
|
|
306
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
307
|
+
class CampaignControllerService {
|
|
308
|
+
constructor(httpClient, basePath, configuration) {
|
|
309
|
+
this.httpClient = httpClient;
|
|
310
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
311
|
+
this.defaultHeaders = new HttpHeaders();
|
|
312
|
+
this.configuration = new Configuration();
|
|
313
|
+
if (basePath) {
|
|
314
|
+
this.basePath = basePath;
|
|
315
|
+
}
|
|
316
|
+
if (configuration) {
|
|
317
|
+
this.configuration = configuration;
|
|
318
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
* @param consumes string[] mime-types
|
|
323
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
324
|
+
*/
|
|
325
|
+
canConsumeForm(consumes) {
|
|
326
|
+
const form = 'multipart/form-data';
|
|
327
|
+
for (const consume of consumes) {
|
|
328
|
+
if (form === consume) {
|
|
329
|
+
return true;
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
return false;
|
|
333
|
+
}
|
|
334
|
+
createCampaign(body, observe = 'body', reportProgress = false) {
|
|
335
|
+
if (body === null || body === undefined) {
|
|
336
|
+
throw new Error('Required parameter body was null or undefined when calling createCampaign.');
|
|
337
|
+
}
|
|
338
|
+
let headers = this.defaultHeaders;
|
|
339
|
+
// to determine the Accept header
|
|
340
|
+
let httpHeaderAccepts = [
|
|
341
|
+
'*/*'
|
|
342
|
+
];
|
|
343
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
344
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
345
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
346
|
+
}
|
|
347
|
+
// to determine the Content-Type header
|
|
348
|
+
const consumes = [
|
|
349
|
+
'application/json'
|
|
350
|
+
];
|
|
351
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
352
|
+
if (httpContentTypeSelected != undefined) {
|
|
353
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
354
|
+
}
|
|
355
|
+
return this.httpClient.request('post', `${this.basePath}/api/campaign`, {
|
|
356
|
+
body: body,
|
|
357
|
+
withCredentials: this.configuration.withCredentials,
|
|
358
|
+
headers: headers,
|
|
359
|
+
observe: observe,
|
|
360
|
+
reportProgress: reportProgress
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
getAllCampaigns(id, advertiserId, name, platformCampaignId, payoutType, marketFeedbackEnabled, activeOnPlatform, sourcePlatform, page, size, sort, observe = 'body', reportProgress = false) {
|
|
364
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
365
|
+
if (id !== undefined && id !== null) {
|
|
366
|
+
queryParameters = queryParameters.set('id', id);
|
|
367
|
+
}
|
|
368
|
+
if (advertiserId !== undefined && advertiserId !== null) {
|
|
369
|
+
queryParameters = queryParameters.set('advertiserId', advertiserId);
|
|
370
|
+
}
|
|
371
|
+
if (name !== undefined && name !== null) {
|
|
372
|
+
queryParameters = queryParameters.set('name', name);
|
|
373
|
+
}
|
|
374
|
+
if (platformCampaignId !== undefined && platformCampaignId !== null) {
|
|
375
|
+
queryParameters = queryParameters.set('platformCampaignId', platformCampaignId);
|
|
376
|
+
}
|
|
377
|
+
if (payoutType !== undefined && payoutType !== null) {
|
|
378
|
+
queryParameters = queryParameters.set('payoutType', payoutType);
|
|
379
|
+
}
|
|
380
|
+
if (marketFeedbackEnabled !== undefined && marketFeedbackEnabled !== null) {
|
|
381
|
+
queryParameters = queryParameters.set('marketFeedbackEnabled', marketFeedbackEnabled);
|
|
382
|
+
}
|
|
383
|
+
if (activeOnPlatform !== undefined && activeOnPlatform !== null) {
|
|
384
|
+
queryParameters = queryParameters.set('activeOnPlatform', activeOnPlatform);
|
|
385
|
+
}
|
|
386
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
387
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
388
|
+
}
|
|
389
|
+
if (page !== undefined && page !== null) {
|
|
390
|
+
queryParameters = queryParameters.set('page', page);
|
|
391
|
+
}
|
|
392
|
+
if (size !== undefined && size !== null) {
|
|
393
|
+
queryParameters = queryParameters.set('size', size);
|
|
394
|
+
}
|
|
395
|
+
if (sort) {
|
|
396
|
+
sort.forEach((element) => {
|
|
397
|
+
queryParameters = queryParameters.append('sort', element);
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
let headers = this.defaultHeaders;
|
|
401
|
+
// to determine the Accept header
|
|
402
|
+
let httpHeaderAccepts = [
|
|
403
|
+
'*/*'
|
|
404
|
+
];
|
|
405
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
406
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
407
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
408
|
+
}
|
|
409
|
+
// to determine the Content-Type header
|
|
410
|
+
const consumes = [];
|
|
411
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign`, {
|
|
412
|
+
params: queryParameters,
|
|
413
|
+
withCredentials: this.configuration.withCredentials,
|
|
414
|
+
headers: headers,
|
|
415
|
+
observe: observe,
|
|
416
|
+
reportProgress: reportProgress
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
getCampaign(id, observe = 'body', reportProgress = false) {
|
|
420
|
+
if (id === null || id === undefined) {
|
|
421
|
+
throw new Error('Required parameter id was null or undefined when calling getCampaign.');
|
|
422
|
+
}
|
|
423
|
+
let headers = this.defaultHeaders;
|
|
424
|
+
// to determine the Accept header
|
|
425
|
+
let httpHeaderAccepts = [
|
|
426
|
+
'*/*'
|
|
427
|
+
];
|
|
428
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
429
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
430
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
431
|
+
}
|
|
432
|
+
// to determine the Content-Type header
|
|
433
|
+
const consumes = [];
|
|
434
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}`, {
|
|
435
|
+
withCredentials: this.configuration.withCredentials,
|
|
436
|
+
headers: headers,
|
|
437
|
+
observe: observe,
|
|
438
|
+
reportProgress: reportProgress
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
getCampaignLogs(id, page, size, sort, observe = 'body', reportProgress = false) {
|
|
442
|
+
if (id === null || id === undefined) {
|
|
443
|
+
throw new Error('Required parameter id was null or undefined when calling getCampaignLogs.');
|
|
444
|
+
}
|
|
445
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
446
|
+
if (page !== undefined && page !== null) {
|
|
447
|
+
queryParameters = queryParameters.set('page', page);
|
|
448
|
+
}
|
|
449
|
+
if (size !== undefined && size !== null) {
|
|
450
|
+
queryParameters = queryParameters.set('size', size);
|
|
451
|
+
}
|
|
452
|
+
if (sort) {
|
|
453
|
+
sort.forEach((element) => {
|
|
454
|
+
queryParameters = queryParameters.append('sort', element);
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
let headers = this.defaultHeaders;
|
|
458
|
+
// to determine the Accept header
|
|
459
|
+
let httpHeaderAccepts = [
|
|
460
|
+
'*/*'
|
|
461
|
+
];
|
|
462
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
463
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
464
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
465
|
+
}
|
|
466
|
+
// to determine the Content-Type header
|
|
467
|
+
const consumes = [];
|
|
468
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/log`, {
|
|
469
|
+
params: queryParameters,
|
|
470
|
+
withCredentials: this.configuration.withCredentials,
|
|
471
|
+
headers: headers,
|
|
472
|
+
observe: observe,
|
|
473
|
+
reportProgress: reportProgress
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
scheduleUpdate(body, id, observe = 'body', reportProgress = false) {
|
|
477
|
+
if (body === null || body === undefined) {
|
|
478
|
+
throw new Error('Required parameter body was null or undefined when calling scheduleUpdate.');
|
|
479
|
+
}
|
|
480
|
+
if (id === null || id === undefined) {
|
|
481
|
+
throw new Error('Required parameter id was null or undefined when calling scheduleUpdate.');
|
|
482
|
+
}
|
|
483
|
+
let headers = this.defaultHeaders;
|
|
484
|
+
// to determine the Accept header
|
|
485
|
+
let httpHeaderAccepts = [
|
|
486
|
+
'*/*'
|
|
487
|
+
];
|
|
488
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
489
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
490
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
491
|
+
}
|
|
492
|
+
// to determine the Content-Type header
|
|
493
|
+
const consumes = [
|
|
494
|
+
'application/json'
|
|
495
|
+
];
|
|
496
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
497
|
+
if (httpContentTypeSelected != undefined) {
|
|
498
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
499
|
+
}
|
|
500
|
+
return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/schedule-update`, {
|
|
501
|
+
body: body,
|
|
502
|
+
withCredentials: this.configuration.withCredentials,
|
|
503
|
+
headers: headers,
|
|
504
|
+
observe: observe,
|
|
505
|
+
reportProgress: reportProgress
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
searchCampaign(q, sourcePlatform, observe = 'body', reportProgress = false) {
|
|
509
|
+
if (q === null || q === undefined) {
|
|
510
|
+
throw new Error('Required parameter q was null or undefined when calling searchCampaign.');
|
|
511
|
+
}
|
|
512
|
+
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
513
|
+
throw new Error('Required parameter sourcePlatform was null or undefined when calling searchCampaign.');
|
|
514
|
+
}
|
|
515
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
516
|
+
if (q !== undefined && q !== null) {
|
|
517
|
+
queryParameters = queryParameters.set('q', q);
|
|
518
|
+
}
|
|
519
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
520
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
521
|
+
}
|
|
522
|
+
let headers = this.defaultHeaders;
|
|
523
|
+
// to determine the Accept header
|
|
524
|
+
let httpHeaderAccepts = [
|
|
525
|
+
'*/*'
|
|
526
|
+
];
|
|
527
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
528
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
529
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
530
|
+
}
|
|
531
|
+
// to determine the Content-Type header
|
|
532
|
+
const consumes = [];
|
|
533
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign/search`, {
|
|
534
|
+
params: queryParameters,
|
|
535
|
+
withCredentials: this.configuration.withCredentials,
|
|
536
|
+
headers: headers,
|
|
537
|
+
observe: observe,
|
|
538
|
+
reportProgress: reportProgress
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
setStatus(id, active, observe = 'body', reportProgress = false) {
|
|
542
|
+
if (id === null || id === undefined) {
|
|
543
|
+
throw new Error('Required parameter id was null or undefined when calling setStatus.');
|
|
544
|
+
}
|
|
545
|
+
if (active === null || active === undefined) {
|
|
546
|
+
throw new Error('Required parameter active was null or undefined when calling setStatus.');
|
|
547
|
+
}
|
|
548
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
549
|
+
if (active !== undefined && active !== null) {
|
|
550
|
+
queryParameters = queryParameters.set('active', active);
|
|
551
|
+
}
|
|
552
|
+
let headers = this.defaultHeaders;
|
|
553
|
+
// to determine the Accept header
|
|
554
|
+
let httpHeaderAccepts = [
|
|
555
|
+
'*/*'
|
|
556
|
+
];
|
|
557
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
558
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
559
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
560
|
+
}
|
|
561
|
+
// to determine the Content-Type header
|
|
562
|
+
const consumes = [];
|
|
563
|
+
return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/status`, {
|
|
564
|
+
params: queryParameters,
|
|
565
|
+
withCredentials: this.configuration.withCredentials,
|
|
566
|
+
headers: headers,
|
|
567
|
+
observe: observe,
|
|
568
|
+
reportProgress: reportProgress
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
}
|
|
572
|
+
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 });
|
|
573
|
+
CampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService });
|
|
574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, decorators: [{
|
|
575
|
+
type: Injectable
|
|
576
|
+
}], ctorParameters: function () {
|
|
577
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
578
|
+
type: Optional
|
|
579
|
+
}, {
|
|
580
|
+
type: Inject,
|
|
581
|
+
args: [BASE_PATH]
|
|
582
|
+
}] }, { type: Configuration, decorators: [{
|
|
583
|
+
type: Optional
|
|
584
|
+
}] }];
|
|
418
585
|
} });
|
|
419
586
|
|
|
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
|
|
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
|
-
|
|
459
|
-
if (
|
|
460
|
-
throw new Error('Required parameter
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
if (
|
|
469
|
-
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
'
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
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
|
-
}] }];
|
|
587
|
+
/**
|
|
588
|
+
* Intellibid API
|
|
589
|
+
* API documentation for the Intellibid platform
|
|
590
|
+
*
|
|
591
|
+
* OpenAPI spec version: 1.0
|
|
592
|
+
*
|
|
593
|
+
*
|
|
594
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
595
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
596
|
+
* Do not edit the class manually.
|
|
597
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
598
|
+
class InsightsControllerService {
|
|
599
|
+
constructor(httpClient, basePath, configuration) {
|
|
600
|
+
this.httpClient = httpClient;
|
|
601
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
602
|
+
this.defaultHeaders = new HttpHeaders();
|
|
603
|
+
this.configuration = new Configuration();
|
|
604
|
+
if (basePath) {
|
|
605
|
+
this.basePath = basePath;
|
|
606
|
+
}
|
|
607
|
+
if (configuration) {
|
|
608
|
+
this.configuration = configuration;
|
|
609
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
610
|
+
}
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* @param consumes string[] mime-types
|
|
614
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
615
|
+
*/
|
|
616
|
+
canConsumeForm(consumes) {
|
|
617
|
+
const form = 'multipart/form-data';
|
|
618
|
+
for (const consume of consumes) {
|
|
619
|
+
if (form === consume) {
|
|
620
|
+
return true;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
return false;
|
|
624
|
+
}
|
|
625
|
+
getCampaignInsights(startDate, endDate, sourcePlatform, interval, requireMmpReport, observe = 'body', reportProgress = false) {
|
|
626
|
+
if (startDate === null || startDate === undefined) {
|
|
627
|
+
throw new Error('Required parameter startDate was null or undefined when calling getCampaignInsights.');
|
|
628
|
+
}
|
|
629
|
+
if (endDate === null || endDate === undefined) {
|
|
630
|
+
throw new Error('Required parameter endDate was null or undefined when calling getCampaignInsights.');
|
|
631
|
+
}
|
|
632
|
+
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
633
|
+
throw new Error('Required parameter sourcePlatform was null or undefined when calling getCampaignInsights.');
|
|
634
|
+
}
|
|
635
|
+
if (interval === null || interval === undefined) {
|
|
636
|
+
throw new Error('Required parameter interval was null or undefined when calling getCampaignInsights.');
|
|
637
|
+
}
|
|
638
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
639
|
+
if (startDate !== undefined && startDate !== null) {
|
|
640
|
+
queryParameters = queryParameters.set('startDate', startDate);
|
|
641
|
+
}
|
|
642
|
+
if (endDate !== undefined && endDate !== null) {
|
|
643
|
+
queryParameters = queryParameters.set('endDate', endDate);
|
|
644
|
+
}
|
|
645
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
646
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
647
|
+
}
|
|
648
|
+
if (interval !== undefined && interval !== null) {
|
|
649
|
+
queryParameters = queryParameters.set('interval', interval);
|
|
650
|
+
}
|
|
651
|
+
if (requireMmpReport !== undefined && requireMmpReport !== null) {
|
|
652
|
+
queryParameters = queryParameters.set('requireMmpReport', requireMmpReport);
|
|
653
|
+
}
|
|
654
|
+
let headers = this.defaultHeaders;
|
|
655
|
+
// to determine the Accept header
|
|
656
|
+
let httpHeaderAccepts = [
|
|
657
|
+
'*/*'
|
|
658
|
+
];
|
|
659
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
660
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
661
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
662
|
+
}
|
|
663
|
+
// to determine the Content-Type header
|
|
664
|
+
const consumes = [];
|
|
665
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign-insights`, {
|
|
666
|
+
params: queryParameters,
|
|
667
|
+
withCredentials: this.configuration.withCredentials,
|
|
668
|
+
headers: headers,
|
|
669
|
+
observe: observe,
|
|
670
|
+
reportProgress: reportProgress
|
|
671
|
+
});
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
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 });
|
|
675
|
+
InsightsControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService });
|
|
676
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, decorators: [{
|
|
677
|
+
type: Injectable
|
|
678
|
+
}], ctorParameters: function () {
|
|
679
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
680
|
+
type: Optional
|
|
681
|
+
}, {
|
|
682
|
+
type: Inject,
|
|
683
|
+
args: [BASE_PATH]
|
|
684
|
+
}] }, { type: Configuration, decorators: [{
|
|
685
|
+
type: Optional
|
|
686
|
+
}] }];
|
|
709
687
|
} });
|
|
710
688
|
|
|
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
|
|
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
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
if (
|
|
757
|
-
|
|
758
|
-
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
}
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
];
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
headers
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
689
|
+
/**
|
|
690
|
+
* Intellibid API
|
|
691
|
+
* API documentation for the Intellibid platform
|
|
692
|
+
*
|
|
693
|
+
* OpenAPI spec version: 1.0
|
|
694
|
+
*
|
|
695
|
+
*
|
|
696
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
697
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
698
|
+
* Do not edit the class manually.
|
|
699
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
700
|
+
class LookupDataControllerService {
|
|
701
|
+
constructor(httpClient, basePath, configuration) {
|
|
702
|
+
this.httpClient = httpClient;
|
|
703
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
704
|
+
this.defaultHeaders = new HttpHeaders();
|
|
705
|
+
this.configuration = new Configuration();
|
|
706
|
+
if (basePath) {
|
|
707
|
+
this.basePath = basePath;
|
|
708
|
+
}
|
|
709
|
+
if (configuration) {
|
|
710
|
+
this.configuration = configuration;
|
|
711
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* @param consumes string[] mime-types
|
|
716
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
717
|
+
*/
|
|
718
|
+
canConsumeForm(consumes) {
|
|
719
|
+
const form = 'multipart/form-data';
|
|
720
|
+
for (const consume of consumes) {
|
|
721
|
+
if (form === consume) {
|
|
722
|
+
return true;
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
return false;
|
|
726
|
+
}
|
|
727
|
+
getAllActiveOS(observe = 'body', reportProgress = false) {
|
|
728
|
+
let headers = this.defaultHeaders;
|
|
729
|
+
// to determine the Accept header
|
|
730
|
+
let httpHeaderAccepts = [
|
|
731
|
+
'*/*'
|
|
732
|
+
];
|
|
733
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
734
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
735
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
736
|
+
}
|
|
737
|
+
// to determine the Content-Type header
|
|
738
|
+
const consumes = [];
|
|
739
|
+
return this.httpClient.request('get', `${this.basePath}/api/lookups/os`, {
|
|
740
|
+
withCredentials: this.configuration.withCredentials,
|
|
741
|
+
headers: headers,
|
|
742
|
+
observe: observe,
|
|
743
|
+
reportProgress: reportProgress
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
getAllActivePlatforms(observe = 'body', reportProgress = false) {
|
|
747
|
+
let headers = this.defaultHeaders;
|
|
748
|
+
// to determine the Accept header
|
|
749
|
+
let httpHeaderAccepts = [
|
|
750
|
+
'*/*'
|
|
751
|
+
];
|
|
752
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
753
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
754
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
755
|
+
}
|
|
756
|
+
// to determine the Content-Type header
|
|
757
|
+
const consumes = [];
|
|
758
|
+
return this.httpClient.request('get', `${this.basePath}/api/lookups/platforms`, {
|
|
759
|
+
withCredentials: this.configuration.withCredentials,
|
|
760
|
+
headers: headers,
|
|
761
|
+
observe: observe,
|
|
762
|
+
reportProgress: reportProgress
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
getAllBusinessZones(observe = 'body', reportProgress = false) {
|
|
766
|
+
let headers = this.defaultHeaders;
|
|
767
|
+
// to determine the Accept header
|
|
768
|
+
let httpHeaderAccepts = [
|
|
769
|
+
'*/*'
|
|
770
|
+
];
|
|
771
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
772
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
773
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
774
|
+
}
|
|
775
|
+
// to determine the Content-Type header
|
|
776
|
+
const consumes = [];
|
|
777
|
+
return this.httpClient.request('get', `${this.basePath}/api/lookups/business-zones`, {
|
|
778
|
+
withCredentials: this.configuration.withCredentials,
|
|
779
|
+
headers: headers,
|
|
780
|
+
observe: observe,
|
|
781
|
+
reportProgress: reportProgress
|
|
782
|
+
});
|
|
783
|
+
}
|
|
784
|
+
getAllCountries(observe = 'body', reportProgress = false) {
|
|
785
|
+
let headers = this.defaultHeaders;
|
|
786
|
+
// to determine the Accept header
|
|
787
|
+
let httpHeaderAccepts = [
|
|
788
|
+
'*/*'
|
|
789
|
+
];
|
|
790
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
791
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
792
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
793
|
+
}
|
|
794
|
+
// to determine the Content-Type header
|
|
795
|
+
const consumes = [];
|
|
796
|
+
return this.httpClient.request('get', `${this.basePath}/api/lookups/countries`, {
|
|
797
|
+
withCredentials: this.configuration.withCredentials,
|
|
798
|
+
headers: headers,
|
|
799
|
+
observe: observe,
|
|
800
|
+
reportProgress: reportProgress
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
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 });
|
|
805
|
+
LookupDataControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService });
|
|
806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService, decorators: [{
|
|
807
|
+
type: Injectable
|
|
808
|
+
}], ctorParameters: function () {
|
|
809
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
810
|
+
type: Optional
|
|
811
|
+
}, {
|
|
812
|
+
type: Inject,
|
|
813
|
+
args: [BASE_PATH]
|
|
814
|
+
}] }, { type: Configuration, decorators: [{
|
|
815
|
+
type: Optional
|
|
816
|
+
}] }];
|
|
808
817
|
} });
|
|
809
818
|
|
|
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 OsMasterControllerService {
|
|
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
|
-
OsMasterControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OsMasterControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
869
|
-
OsMasterControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OsMasterControllerService });
|
|
870
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OsMasterControllerService, decorators: [{
|
|
871
|
-
type: Injectable
|
|
872
|
-
}], ctorParameters: function () {
|
|
873
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
874
|
-
type: Optional
|
|
875
|
-
}, {
|
|
876
|
-
type: Inject,
|
|
877
|
-
args: [BASE_PATH]
|
|
878
|
-
}] }, { type: Configuration, decorators: [{
|
|
879
|
-
type: Optional
|
|
880
|
-
}] }];
|
|
881
|
-
} });
|
|
882
|
-
|
|
883
|
-
const APIS = [AdvertiserControllerService, AudienceControllerService, CampaignControllerService, InsightsControllerService, OsMasterControllerService];
|
|
819
|
+
const APIS = [AdvertiserControllerService, CampaignControllerService, InsightsControllerService, LookupDataControllerService];
|
|
884
820
|
|
|
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 CampaignChangeLogResponse;
|
|
897
|
-
(function (CampaignChangeLogResponse) {
|
|
898
|
-
CampaignChangeLogResponse.EntityChangedEnum = {
|
|
899
|
-
STATUS: 'STATUS',
|
|
900
|
-
BUDGET: 'BUDGET',
|
|
901
|
-
PAYOUTVALUE: 'PAYOUT_VALUE'
|
|
902
|
-
};
|
|
903
|
-
CampaignChangeLogResponse.StatusEnum = {
|
|
904
|
-
SUCCESS: 'SUCCESS',
|
|
905
|
-
FAILED: 'FAILED'
|
|
906
|
-
};
|
|
821
|
+
/**
|
|
822
|
+
* Intellibid API
|
|
823
|
+
* API documentation for the Intellibid platform
|
|
824
|
+
*
|
|
825
|
+
* OpenAPI spec version: 1.0
|
|
826
|
+
*
|
|
827
|
+
*
|
|
828
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
829
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
830
|
+
* Do not edit the class manually.
|
|
831
|
+
*/
|
|
832
|
+
var CampaignChangeLogResponse;
|
|
833
|
+
(function (CampaignChangeLogResponse) {
|
|
834
|
+
CampaignChangeLogResponse.EntityChangedEnum = {
|
|
835
|
+
STATUS: 'STATUS',
|
|
836
|
+
BUDGET: 'BUDGET',
|
|
837
|
+
PAYOUTVALUE: 'PAYOUT_VALUE'
|
|
838
|
+
};
|
|
839
|
+
CampaignChangeLogResponse.StatusEnum = {
|
|
840
|
+
SUCCESS: 'SUCCESS',
|
|
841
|
+
FAILED: 'FAILED'
|
|
842
|
+
};
|
|
907
843
|
})(CampaignChangeLogResponse || (CampaignChangeLogResponse = {}));
|
|
908
844
|
|
|
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
|
-
};
|
|
845
|
+
/**
|
|
846
|
+
* Intellibid API
|
|
847
|
+
* API documentation for the Intellibid platform
|
|
848
|
+
*
|
|
849
|
+
* OpenAPI spec version: 1.0
|
|
850
|
+
*
|
|
851
|
+
*
|
|
852
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
853
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
854
|
+
* Do not edit the class manually.
|
|
855
|
+
*/
|
|
856
|
+
var CampaignInsightRecord;
|
|
857
|
+
(function (CampaignInsightRecord) {
|
|
858
|
+
CampaignInsightRecord.PayoutTypeEnum = {
|
|
859
|
+
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
860
|
+
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
861
|
+
};
|
|
926
862
|
})(CampaignInsightRecord || (CampaignInsightRecord = {}));
|
|
927
863
|
|
|
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
|
-
};
|
|
864
|
+
/**
|
|
865
|
+
* Intellibid API
|
|
866
|
+
* API documentation for the Intellibid platform
|
|
867
|
+
*
|
|
868
|
+
* OpenAPI spec version: 1.0
|
|
869
|
+
*
|
|
870
|
+
*
|
|
871
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
872
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
873
|
+
* Do not edit the class manually.
|
|
874
|
+
*/
|
|
875
|
+
var CampaignRequest;
|
|
876
|
+
(function (CampaignRequest) {
|
|
877
|
+
CampaignRequest.SourcePlatformEnum = {
|
|
878
|
+
META: 'META',
|
|
879
|
+
TIKTOK: 'TIKTOK',
|
|
880
|
+
GOOGLE: 'GOOGLE',
|
|
881
|
+
SNAPCHAT: 'SNAPCHAT'
|
|
882
|
+
};
|
|
883
|
+
CampaignRequest.PayoutTypeEnum = {
|
|
884
|
+
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
885
|
+
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
886
|
+
};
|
|
887
|
+
CampaignRequest.GoalEnum = {
|
|
888
|
+
COSTPERRESULT: 'COST_PER_RESULT',
|
|
889
|
+
ROAS: 'ROAS'
|
|
890
|
+
};
|
|
891
|
+
CampaignRequest.MmpAttributionSettingEnum = {
|
|
892
|
+
CTA: 'CTA',
|
|
893
|
+
CTAANDVTA: 'CTA_AND_VTA'
|
|
894
|
+
};
|
|
959
895
|
})(CampaignRequest || (CampaignRequest = {}));
|
|
960
896
|
|
|
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
|
-
};
|
|
897
|
+
var CampaignResponse;
|
|
898
|
+
(function (CampaignResponse) {
|
|
899
|
+
CampaignResponse.SourcePlatformEnum = {
|
|
900
|
+
META: 'META',
|
|
901
|
+
TIKTOK: 'TIKTOK',
|
|
902
|
+
GOOGLE: 'GOOGLE',
|
|
903
|
+
SNAPCHAT: 'SNAPCHAT'
|
|
904
|
+
};
|
|
905
|
+
CampaignResponse.PayoutTypeEnum = {
|
|
906
|
+
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
907
|
+
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
908
|
+
};
|
|
909
|
+
CampaignResponse.GoalEnum = {
|
|
910
|
+
COSTPERRESULT: 'COST_PER_RESULT',
|
|
911
|
+
ROAS: 'ROAS'
|
|
912
|
+
};
|
|
913
|
+
CampaignResponse.MmpAttributionSettingEnum = {
|
|
914
|
+
CTA: 'CTA',
|
|
915
|
+
CTAANDVTA: 'CTA_AND_VTA'
|
|
916
|
+
};
|
|
981
917
|
})(CampaignResponse || (CampaignResponse = {}));
|
|
982
918
|
|
|
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
|
-
SNAPCHAT: 'SNAPCHAT'
|
|
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 = {}));
|
|
1024
|
-
|
|
1025
|
-
/**
|
|
1026
|
-
* Intellibid API
|
|
1027
|
-
* API documentation for the Intellibid platform
|
|
1028
|
-
*
|
|
1029
|
-
* OpenAPI spec version: 1.0
|
|
1030
|
-
*
|
|
1031
|
-
*
|
|
1032
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1033
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
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 = {}));
|
|
1045
|
-
|
|
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
|
-
};
|
|
919
|
+
/**
|
|
920
|
+
* Intellibid API
|
|
921
|
+
* API documentation for the Intellibid platform
|
|
922
|
+
*
|
|
923
|
+
* OpenAPI spec version: 1.0
|
|
924
|
+
*
|
|
925
|
+
*
|
|
926
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
927
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
928
|
+
* Do not edit the class manually.
|
|
929
|
+
*/
|
|
930
|
+
var ScheduleUpdateRequest;
|
|
931
|
+
(function (ScheduleUpdateRequest) {
|
|
932
|
+
ScheduleUpdateRequest.RequestTypeEnum = {
|
|
933
|
+
BUDGET: 'BUDGET',
|
|
934
|
+
PAYOUTVALUE: 'PAYOUT_VALUE'
|
|
935
|
+
};
|
|
1063
936
|
})(ScheduleUpdateRequest || (ScheduleUpdateRequest = {}));
|
|
1064
937
|
|
|
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
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
type:
|
|
1108
|
-
}, {
|
|
1109
|
-
type:
|
|
1110
|
-
}] }
|
|
1111
|
-
type: Optional
|
|
1112
|
-
}] }];
|
|
938
|
+
class ApiModule {
|
|
939
|
+
static forRoot(configurationFactory) {
|
|
940
|
+
return {
|
|
941
|
+
ngModule: ApiModule,
|
|
942
|
+
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
943
|
+
};
|
|
944
|
+
}
|
|
945
|
+
constructor(parentModule, http) {
|
|
946
|
+
if (parentModule) {
|
|
947
|
+
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
948
|
+
}
|
|
949
|
+
if (!http) {
|
|
950
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
951
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
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 });
|
|
956
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
|
|
957
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
|
|
958
|
+
AdvertiserControllerService,
|
|
959
|
+
CampaignControllerService,
|
|
960
|
+
InsightsControllerService,
|
|
961
|
+
LookupDataControllerService
|
|
962
|
+
] });
|
|
963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
|
|
964
|
+
type: NgModule,
|
|
965
|
+
args: [{
|
|
966
|
+
imports: [],
|
|
967
|
+
declarations: [],
|
|
968
|
+
exports: [],
|
|
969
|
+
providers: [
|
|
970
|
+
AdvertiserControllerService,
|
|
971
|
+
CampaignControllerService,
|
|
972
|
+
InsightsControllerService,
|
|
973
|
+
LookupDataControllerService
|
|
974
|
+
]
|
|
975
|
+
}]
|
|
976
|
+
}], ctorParameters: function () {
|
|
977
|
+
return [{ type: ApiModule, decorators: [{
|
|
978
|
+
type: Optional
|
|
979
|
+
}, {
|
|
980
|
+
type: SkipSelf
|
|
981
|
+
}] }, { type: i1.HttpClient, decorators: [{
|
|
982
|
+
type: Optional
|
|
983
|
+
}] }];
|
|
1113
984
|
} });
|
|
1114
985
|
|
|
1115
|
-
/**
|
|
1116
|
-
* Generated bundle index. Do not edit.
|
|
986
|
+
/**
|
|
987
|
+
* Generated bundle index. Do not edit.
|
|
1117
988
|
*/
|
|
1118
989
|
|
|
1119
|
-
export { APIS, AdvertiserControllerService, ApiModule,
|
|
990
|
+
export { APIS, AdvertiserControllerService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CampaignChangeLogResponse, CampaignControllerService, CampaignInsightRecord, CampaignRequest, CampaignResponse, Configuration, InsightsControllerService, LookupDataControllerService, ScheduleUpdateRequest };
|
|
1120
991
|
//# sourceMappingURL=revxui-intellibid-client-ts.mjs.map
|