@revxui/intellibid-client-ts 1.0.46 → 1.0.50
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 +14 -26
- package/api/api.d.ts +5 -31
- package/api/campaignController.service.d.ts +110 -0
- package/api/{campaignInsightsController.service.d.ts → insightsController.service.d.ts} +7 -6
- package/esm2020/api/advertiserController.service.mjs +12 -44
- package/esm2020/api/api.mjs +6 -32
- package/esm2020/api/campaignController.service.mjs +297 -0
- package/esm2020/api/insightsController.service.mjs +105 -0
- package/esm2020/api.module.mjs +7 -46
- package/esm2020/model/advertiserResponse.mjs +13 -0
- package/esm2020/model/advertiserSearchResponse.mjs +13 -0
- package/esm2020/model/campaignChangeLogResponse.mjs +25 -0
- package/esm2020/model/campaignRequest.mjs +29 -0
- package/esm2020/model/campaignResponse.mjs +12 -26
- package/esm2020/model/campaignSearchResponse.mjs +1 -1
- package/esm2020/model/campaignUpdateRequest.mjs +20 -0
- package/esm2020/model/models.mjs +8 -32
- package/esm2020/model/pageAdvertiserResponse.mjs +2 -0
- package/esm2020/model/pageCampaignChangeLogResponse.mjs +2 -0
- package/esm2020/model/pageCampaignResponse.mjs +1 -1
- package/fesm2015/revxui-intellibid-client-ts.mjs +208 -2241
- package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
- package/fesm2020/revxui-intellibid-client-ts.mjs +214 -2365
- package/fesm2020/revxui-intellibid-client-ts.mjs.map +1 -1
- package/model/advertiserResponse.d.ts +30 -0
- package/model/{packageDetailResponse.d.ts → advertiserSearchResponse.d.ts} +2 -2
- package/model/{dpaEngagementChangeLogResponse.d.ts → campaignChangeLogResponse.d.ts} +10 -13
- package/model/campaignRequest.d.ts +44 -0
- package/model/campaignResponse.d.ts +34 -96
- package/model/campaignSearchResponse.d.ts +0 -1
- package/model/{updateRequest.d.ts → campaignUpdateRequest.d.ts} +3 -3
- package/model/models.d.ts +7 -31
- package/model/{pagePackageDetailResponse.d.ts → pageAdvertiserResponse.d.ts} +4 -4
- package/model/{pageMobileAppDetailResponse.d.ts → pageCampaignChangeLogResponse.d.ts} +4 -4
- package/model/pageCampaignResponse.d.ts +1 -1
- package/package.json +1 -1
- package/api/businessGeoController.service.d.ts +0 -28
- package/api/dpaCampaignController.service.d.ts +0 -52
- package/api/dpaEngagementController.service.d.ts +0 -143
- package/api/facebookAdImageController.service.d.ts +0 -52
- package/api/facebookAdVideoController.service.d.ts +0 -63
- package/api/facebookEngagementController.service.d.ts +0 -68
- package/api/mobileAppDetailController.service.d.ts +0 -65
- package/api/packageDetailController.service.d.ts +0 -45
- package/api/sourcePlatformMETAController.service.d.ts +0 -97
- package/api/sourcePlatformMETADictionaryController.service.d.ts +0 -28
- package/api/sourcePlatformTIKTOKController.service.d.ts +0 -64
- package/api/sourcePlatformTIKTOKDictionaryController.service.d.ts +0 -28
- package/api/tiktokAudienceController.service.d.ts +0 -35
- package/api/tiktokEngagementController.service.d.ts +0 -50
- package/esm2020/api/businessGeoController.service.mjs +0 -78
- package/esm2020/api/campaignInsightsController.service.mjs +0 -99
- package/esm2020/api/dpaCampaignController.service.mjs +0 -145
- package/esm2020/api/dpaEngagementController.service.mjs +0 -374
- package/esm2020/api/facebookAdImageController.service.mjs +0 -144
- package/esm2020/api/facebookAdVideoController.service.mjs +0 -169
- package/esm2020/api/facebookEngagementController.service.mjs +0 -188
- package/esm2020/api/mobileAppDetailController.service.mjs +0 -179
- package/esm2020/api/packageDetailController.service.mjs +0 -123
- package/esm2020/api/sourcePlatformMETAController.service.mjs +0 -253
- package/esm2020/api/sourcePlatformMETADictionaryController.service.mjs +0 -78
- package/esm2020/api/sourcePlatformTIKTOKController.service.mjs +0 -188
- package/esm2020/api/sourcePlatformTIKTOKDictionaryController.service.mjs +0 -78
- package/esm2020/api/tiktokAudienceController.service.mjs +0 -93
- package/esm2020/api/tiktokEngagementController.service.mjs +0 -142
- package/esm2020/model/adImageResponse.mjs +0 -20
- package/esm2020/model/adSetDetails.mjs +0 -20
- package/esm2020/model/adVideoResponse.mjs +0 -13
- package/esm2020/model/attributionSettings.mjs +0 -13
- package/esm2020/model/audienceDetails.mjs +0 -13
- package/esm2020/model/businessGeoResponse.mjs +0 -13
- package/esm2020/model/countryResponse.mjs +0 -13
- package/esm2020/model/createCampaignRequest.mjs +0 -13
- package/esm2020/model/creativeDetails.mjs +0 -2
- package/esm2020/model/dpaCampaignRequest.mjs +0 -2
- package/esm2020/model/dpaCampaignResponse.mjs +0 -12
- package/esm2020/model/dpaEngagementChangeLogResponse.mjs +0 -26
- package/esm2020/model/dpaEngagementRequest.mjs +0 -20
- package/esm2020/model/dpaEngagementResponse.mjs +0 -40
- package/esm2020/model/dpaEngagementSearchResponse.mjs +0 -13
- package/esm2020/model/exclusionRule.mjs +0 -13
- package/esm2020/model/facebookDetails.mjs +0 -2
- package/esm2020/model/facebookEngagementRequest.mjs +0 -13
- package/esm2020/model/facebookEngagementResponse.mjs +0 -21
- package/esm2020/model/imageOverlaySpecDetails.mjs +0 -13
- package/esm2020/model/mobileAppDetailRequest.mjs +0 -13
- package/esm2020/model/mobileAppDetailResponse.mjs +0 -13
- package/esm2020/model/packageDetailResponse.mjs +0 -13
- package/esm2020/model/pageDpaEngagementChangeLogResponse.mjs +0 -2
- package/esm2020/model/pageDpaEngagementResponse.mjs +0 -2
- package/esm2020/model/pageFacebookEngagementResponse.mjs +0 -2
- package/esm2020/model/pageMobileAppDetailResponse.mjs +0 -2
- package/esm2020/model/pagePackageDetailResponse.mjs +0 -2
- package/esm2020/model/tiktokCountryResponse.mjs +0 -13
- package/esm2020/model/tiktokEngagement.mjs +0 -2
- package/esm2020/model/updateRequest.mjs +0 -20
- package/model/adImageResponse.d.ts +0 -26
- package/model/adSetDetails.d.ts +0 -28
- package/model/adVideoResponse.d.ts +0 -18
- package/model/attributionSettings.d.ts +0 -17
- package/model/audienceDetails.d.ts +0 -22
- package/model/businessGeoResponse.d.ts +0 -15
- package/model/countryResponse.d.ts +0 -16
- package/model/createCampaignRequest.d.ts +0 -18
- package/model/creativeDetails.d.ts +0 -25
- package/model/dpaCampaignRequest.d.ts +0 -17
- package/model/dpaCampaignResponse.d.ts +0 -36
- package/model/dpaEngagementRequest.d.ts +0 -65
- package/model/dpaEngagementResponse.d.ts +0 -114
- package/model/dpaEngagementSearchResponse.d.ts +0 -15
- package/model/exclusionRule.d.ts +0 -15
- package/model/facebookDetails.d.ts +0 -27
- package/model/facebookEngagementRequest.d.ts +0 -24
- package/model/facebookEngagementResponse.d.ts +0 -39
- package/model/imageOverlaySpecDetails.d.ts +0 -20
- package/model/mobileAppDetailRequest.d.ts +0 -23
- package/model/mobileAppDetailResponse.d.ts +0 -24
- package/model/pageDpaEngagementChangeLogResponse.d.ts +0 -27
- package/model/pageDpaEngagementResponse.d.ts +0 -27
- package/model/pageFacebookEngagementResponse.d.ts +0 -27
- package/model/tiktokCountryResponse.d.ts +0 -16
- package/model/tiktokEngagement.d.ts +0 -26
|
@@ -100,7 +100,7 @@ class Configuration {
|
|
|
100
100
|
class AdvertiserControllerService {
|
|
101
101
|
constructor(httpClient, basePath, configuration) {
|
|
102
102
|
this.httpClient = httpClient;
|
|
103
|
-
this.basePath = 'http://
|
|
103
|
+
this.basePath = 'http://bidapi01.atomex.net';
|
|
104
104
|
this.defaultHeaders = new HttpHeaders();
|
|
105
105
|
this.configuration = new Configuration();
|
|
106
106
|
if (basePath) {
|
|
@@ -124,9 +124,9 @@ class AdvertiserControllerService {
|
|
|
124
124
|
}
|
|
125
125
|
return false;
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
if (
|
|
129
|
-
throw new Error('Required parameter
|
|
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
130
|
}
|
|
131
131
|
let headers = this.defaultHeaders;
|
|
132
132
|
// to determine the Accept header
|
|
@@ -138,31 +138,21 @@ class AdvertiserControllerService {
|
|
|
138
138
|
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
139
139
|
}
|
|
140
140
|
// to determine the Content-Type header
|
|
141
|
-
const consumes = [
|
|
142
|
-
|
|
143
|
-
];
|
|
144
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
145
|
-
if (httpContentTypeSelected != undefined) {
|
|
146
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
147
|
-
}
|
|
148
|
-
return this.httpClient.request('post', `${this.basePath}/api/advertiser`, {
|
|
149
|
-
body: body,
|
|
141
|
+
const consumes = [];
|
|
142
|
+
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}`, {
|
|
150
143
|
withCredentials: this.configuration.withCredentials,
|
|
151
144
|
headers: headers,
|
|
152
145
|
observe: observe,
|
|
153
146
|
reportProgress: reportProgress
|
|
154
147
|
});
|
|
155
148
|
}
|
|
156
|
-
|
|
149
|
+
getAllAdvertisers(name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
|
|
157
150
|
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
158
151
|
if (name !== undefined && name !== null) {
|
|
159
152
|
queryParameters = queryParameters.set('name', name);
|
|
160
153
|
}
|
|
161
|
-
if (
|
|
162
|
-
queryParameters = queryParameters.set('
|
|
163
|
-
}
|
|
164
|
-
if (status !== undefined && status !== null) {
|
|
165
|
-
queryParameters = queryParameters.set('status', status);
|
|
154
|
+
if (isActive !== undefined && isActive !== null) {
|
|
155
|
+
queryParameters = queryParameters.set('isActive', isActive);
|
|
166
156
|
}
|
|
167
157
|
if (page !== undefined && page !== null) {
|
|
168
158
|
queryParameters = queryParameters.set('page', page);
|
|
@@ -194,31 +184,9 @@ class AdvertiserControllerService {
|
|
|
194
184
|
reportProgress: reportProgress
|
|
195
185
|
});
|
|
196
186
|
}
|
|
197
|
-
|
|
198
|
-
if (id === null || id === undefined) {
|
|
199
|
-
throw new Error('Required parameter id was null or undefined when calling getCampaign.');
|
|
200
|
-
}
|
|
201
|
-
let headers = this.defaultHeaders;
|
|
202
|
-
// to determine the Accept header
|
|
203
|
-
let httpHeaderAccepts = [
|
|
204
|
-
'*/*'
|
|
205
|
-
];
|
|
206
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
207
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
208
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
209
|
-
}
|
|
210
|
-
// to determine the Content-Type header
|
|
211
|
-
const consumes = [];
|
|
212
|
-
return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}`, {
|
|
213
|
-
withCredentials: this.configuration.withCredentials,
|
|
214
|
-
headers: headers,
|
|
215
|
-
observe: observe,
|
|
216
|
-
reportProgress: reportProgress
|
|
217
|
-
});
|
|
218
|
-
}
|
|
219
|
-
searchCampaigns(q, observe = 'body', reportProgress = false) {
|
|
187
|
+
searchAdvertisers(q, observe = 'body', reportProgress = false) {
|
|
220
188
|
if (q === null || q === undefined) {
|
|
221
|
-
throw new Error('Required parameter q was null or undefined when calling
|
|
189
|
+
throw new Error('Required parameter q was null or undefined when calling searchAdvertisers.');
|
|
222
190
|
}
|
|
223
191
|
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
224
192
|
if (q !== undefined && q !== null) {
|
|
@@ -268,10 +236,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
268
236
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
269
237
|
* Do not edit the class manually.
|
|
270
238
|
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
271
|
-
class
|
|
239
|
+
class CampaignControllerService {
|
|
272
240
|
constructor(httpClient, basePath, configuration) {
|
|
273
241
|
this.httpClient = httpClient;
|
|
274
|
-
this.basePath = 'http://
|
|
242
|
+
this.basePath = 'http://bidapi01.atomex.net';
|
|
275
243
|
this.defaultHeaders = new HttpHeaders();
|
|
276
244
|
this.configuration = new Configuration();
|
|
277
245
|
if (basePath) {
|
|
@@ -295,7 +263,10 @@ class BusinessGeoControllerService {
|
|
|
295
263
|
}
|
|
296
264
|
return false;
|
|
297
265
|
}
|
|
298
|
-
|
|
266
|
+
createCampaign(body, observe = 'body', reportProgress = false) {
|
|
267
|
+
if (body === null || body === undefined) {
|
|
268
|
+
throw new Error('Required parameter body was null or undefined when calling createCampaign.');
|
|
269
|
+
}
|
|
299
270
|
let headers = this.defaultHeaders;
|
|
300
271
|
// to determine the Accept header
|
|
301
272
|
let httpHeaderAccepts = [
|
|
@@ -306,85 +277,57 @@ class BusinessGeoControllerService {
|
|
|
306
277
|
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
307
278
|
}
|
|
308
279
|
// to determine the Content-Type header
|
|
309
|
-
const consumes = [
|
|
310
|
-
|
|
280
|
+
const consumes = [
|
|
281
|
+
'application/json'
|
|
282
|
+
];
|
|
283
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
284
|
+
if (httpContentTypeSelected != undefined) {
|
|
285
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
286
|
+
}
|
|
287
|
+
return this.httpClient.request('post', `${this.basePath}/api/campaign`, {
|
|
288
|
+
body: body,
|
|
311
289
|
withCredentials: this.configuration.withCredentials,
|
|
312
290
|
headers: headers,
|
|
313
291
|
observe: observe,
|
|
314
292
|
reportProgress: reportProgress
|
|
315
293
|
});
|
|
316
294
|
}
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
type: Injectable
|
|
322
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
323
|
-
type: Optional
|
|
324
|
-
}, {
|
|
325
|
-
type: Inject,
|
|
326
|
-
args: [BASE_PATH]
|
|
327
|
-
}] }, { type: Configuration, decorators: [{
|
|
328
|
-
type: Optional
|
|
329
|
-
}] }]; } });
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Intellibid API
|
|
333
|
-
* API documentation for the Intellibid platform
|
|
334
|
-
*
|
|
335
|
-
* OpenAPI spec version: 1.0
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
339
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
340
|
-
* Do not edit the class manually.
|
|
341
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
342
|
-
class CampaignInsightsControllerService {
|
|
343
|
-
constructor(httpClient, basePath, configuration) {
|
|
344
|
-
this.httpClient = httpClient;
|
|
345
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
346
|
-
this.defaultHeaders = new HttpHeaders();
|
|
347
|
-
this.configuration = new Configuration();
|
|
348
|
-
if (basePath) {
|
|
349
|
-
this.basePath = basePath;
|
|
295
|
+
getAllCampaigns(id, advertiserId, name, platformCampaignId, payoutType, marketFeedbackEnabled, activeOnPlatform, sourcePlatform, page, size, sort, observe = 'body', reportProgress = false) {
|
|
296
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
297
|
+
if (id !== undefined && id !== null) {
|
|
298
|
+
queryParameters = queryParameters.set('id', id);
|
|
350
299
|
}
|
|
351
|
-
if (
|
|
352
|
-
|
|
353
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
300
|
+
if (advertiserId !== undefined && advertiserId !== null) {
|
|
301
|
+
queryParameters = queryParameters.set('advertiserId', advertiserId);
|
|
354
302
|
}
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
* @param consumes string[] mime-types
|
|
358
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
359
|
-
*/
|
|
360
|
-
canConsumeForm(consumes) {
|
|
361
|
-
const form = 'multipart/form-data';
|
|
362
|
-
for (const consume of consumes) {
|
|
363
|
-
if (form === consume) {
|
|
364
|
-
return true;
|
|
365
|
-
}
|
|
303
|
+
if (name !== undefined && name !== null) {
|
|
304
|
+
queryParameters = queryParameters.set('name', name);
|
|
366
305
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
getCampaignInsights(startDate, endDate, interval, observe = 'body', reportProgress = false) {
|
|
370
|
-
if (startDate === null || startDate === undefined) {
|
|
371
|
-
throw new Error('Required parameter startDate was null or undefined when calling getCampaignInsights.');
|
|
306
|
+
if (platformCampaignId !== undefined && platformCampaignId !== null) {
|
|
307
|
+
queryParameters = queryParameters.set('platformCampaignId', platformCampaignId);
|
|
372
308
|
}
|
|
373
|
-
if (
|
|
374
|
-
|
|
309
|
+
if (payoutType !== undefined && payoutType !== null) {
|
|
310
|
+
queryParameters = queryParameters.set('payoutType', payoutType);
|
|
375
311
|
}
|
|
376
|
-
if (
|
|
377
|
-
|
|
312
|
+
if (marketFeedbackEnabled !== undefined && marketFeedbackEnabled !== null) {
|
|
313
|
+
queryParameters = queryParameters.set('marketFeedbackEnabled', marketFeedbackEnabled);
|
|
378
314
|
}
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
queryParameters = queryParameters.set('startDate', startDate);
|
|
315
|
+
if (activeOnPlatform !== undefined && activeOnPlatform !== null) {
|
|
316
|
+
queryParameters = queryParameters.set('activeOnPlatform', activeOnPlatform);
|
|
382
317
|
}
|
|
383
|
-
if (
|
|
384
|
-
queryParameters = queryParameters.set('
|
|
318
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
319
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
385
320
|
}
|
|
386
|
-
if (
|
|
387
|
-
queryParameters = queryParameters.set('
|
|
321
|
+
if (page !== undefined && page !== null) {
|
|
322
|
+
queryParameters = queryParameters.set('page', page);
|
|
323
|
+
}
|
|
324
|
+
if (size !== undefined && size !== null) {
|
|
325
|
+
queryParameters = queryParameters.set('size', size);
|
|
326
|
+
}
|
|
327
|
+
if (sort) {
|
|
328
|
+
sort.forEach((element) => {
|
|
329
|
+
queryParameters = queryParameters.append('sort', element);
|
|
330
|
+
});
|
|
388
331
|
}
|
|
389
332
|
let headers = this.defaultHeaders;
|
|
390
333
|
// to determine the Accept header
|
|
@@ -397,7 +340,7 @@ class CampaignInsightsControllerService {
|
|
|
397
340
|
}
|
|
398
341
|
// to determine the Content-Type header
|
|
399
342
|
const consumes = [];
|
|
400
|
-
return this.httpClient.request('get', `${this.basePath}/api/campaign
|
|
343
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign`, {
|
|
401
344
|
params: queryParameters,
|
|
402
345
|
withCredentials: this.configuration.withCredentials,
|
|
403
346
|
headers: headers,
|
|
@@ -405,64 +348,69 @@ class CampaignInsightsControllerService {
|
|
|
405
348
|
reportProgress: reportProgress
|
|
406
349
|
});
|
|
407
350
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignInsightsControllerService, decorators: [{
|
|
412
|
-
type: Injectable
|
|
413
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
414
|
-
type: Optional
|
|
415
|
-
}, {
|
|
416
|
-
type: Inject,
|
|
417
|
-
args: [BASE_PATH]
|
|
418
|
-
}] }, { type: Configuration, decorators: [{
|
|
419
|
-
type: Optional
|
|
420
|
-
}] }]; } });
|
|
421
|
-
|
|
422
|
-
/**
|
|
423
|
-
* Intellibid API
|
|
424
|
-
* API documentation for the Intellibid platform
|
|
425
|
-
*
|
|
426
|
-
* OpenAPI spec version: 1.0
|
|
427
|
-
*
|
|
428
|
-
*
|
|
429
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
430
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
431
|
-
* Do not edit the class manually.
|
|
432
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
433
|
-
class DpaCampaignControllerService {
|
|
434
|
-
constructor(httpClient, basePath, configuration) {
|
|
435
|
-
this.httpClient = httpClient;
|
|
436
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
437
|
-
this.defaultHeaders = new HttpHeaders();
|
|
438
|
-
this.configuration = new Configuration();
|
|
439
|
-
if (basePath) {
|
|
440
|
-
this.basePath = basePath;
|
|
351
|
+
getCampaign(id, observe = 'body', reportProgress = false) {
|
|
352
|
+
if (id === null || id === undefined) {
|
|
353
|
+
throw new Error('Required parameter id was null or undefined when calling getCampaign.');
|
|
441
354
|
}
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
355
|
+
let headers = this.defaultHeaders;
|
|
356
|
+
// to determine the Accept header
|
|
357
|
+
let httpHeaderAccepts = [
|
|
358
|
+
'*/*'
|
|
359
|
+
];
|
|
360
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
361
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
362
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
445
363
|
}
|
|
364
|
+
// to determine the Content-Type header
|
|
365
|
+
const consumes = [];
|
|
366
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}`, {
|
|
367
|
+
withCredentials: this.configuration.withCredentials,
|
|
368
|
+
headers: headers,
|
|
369
|
+
observe: observe,
|
|
370
|
+
reportProgress: reportProgress
|
|
371
|
+
});
|
|
446
372
|
}
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
*/
|
|
451
|
-
canConsumeForm(consumes) {
|
|
452
|
-
const form = 'multipart/form-data';
|
|
453
|
-
for (const consume of consumes) {
|
|
454
|
-
if (form === consume) {
|
|
455
|
-
return true;
|
|
456
|
-
}
|
|
373
|
+
getCampaignLogs(id, page, size, sort, observe = 'body', reportProgress = false) {
|
|
374
|
+
if (id === null || id === undefined) {
|
|
375
|
+
throw new Error('Required parameter id was null or undefined when calling getCampaignLogs.');
|
|
457
376
|
}
|
|
458
|
-
|
|
377
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
378
|
+
if (page !== undefined && page !== null) {
|
|
379
|
+
queryParameters = queryParameters.set('page', page);
|
|
380
|
+
}
|
|
381
|
+
if (size !== undefined && size !== null) {
|
|
382
|
+
queryParameters = queryParameters.set('size', size);
|
|
383
|
+
}
|
|
384
|
+
if (sort) {
|
|
385
|
+
sort.forEach((element) => {
|
|
386
|
+
queryParameters = queryParameters.append('sort', element);
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
let headers = this.defaultHeaders;
|
|
390
|
+
// to determine the Accept header
|
|
391
|
+
let httpHeaderAccepts = [
|
|
392
|
+
'*/*'
|
|
393
|
+
];
|
|
394
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
395
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
396
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
397
|
+
}
|
|
398
|
+
// to determine the Content-Type header
|
|
399
|
+
const consumes = [];
|
|
400
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/log`, {
|
|
401
|
+
params: queryParameters,
|
|
402
|
+
withCredentials: this.configuration.withCredentials,
|
|
403
|
+
headers: headers,
|
|
404
|
+
observe: observe,
|
|
405
|
+
reportProgress: reportProgress
|
|
406
|
+
});
|
|
459
407
|
}
|
|
460
|
-
|
|
408
|
+
scheduleUpdate(body, id, observe = 'body', reportProgress = false) {
|
|
461
409
|
if (body === null || body === undefined) {
|
|
462
|
-
throw new Error('Required parameter body was null or undefined when calling
|
|
410
|
+
throw new Error('Required parameter body was null or undefined when calling scheduleUpdate.');
|
|
463
411
|
}
|
|
464
412
|
if (id === null || id === undefined) {
|
|
465
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
413
|
+
throw new Error('Required parameter id was null or undefined when calling scheduleUpdate.');
|
|
466
414
|
}
|
|
467
415
|
let headers = this.defaultHeaders;
|
|
468
416
|
// to determine the Accept header
|
|
@@ -481,7 +429,7 @@ class DpaCampaignControllerService {
|
|
|
481
429
|
if (httpContentTypeSelected != undefined) {
|
|
482
430
|
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
483
431
|
}
|
|
484
|
-
return this.httpClient.request('post', `${this.basePath}/api/
|
|
432
|
+
return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/schedule-update`, {
|
|
485
433
|
body: body,
|
|
486
434
|
withCredentials: this.configuration.withCredentials,
|
|
487
435
|
headers: headers,
|
|
@@ -489,9 +437,19 @@ class DpaCampaignControllerService {
|
|
|
489
437
|
reportProgress: reportProgress
|
|
490
438
|
});
|
|
491
439
|
}
|
|
492
|
-
|
|
493
|
-
if (
|
|
494
|
-
throw new Error('Required parameter
|
|
440
|
+
searchCampaign(q, sourcePlatform, observe = 'body', reportProgress = false) {
|
|
441
|
+
if (q === null || q === undefined) {
|
|
442
|
+
throw new Error('Required parameter q was null or undefined when calling searchCampaign.');
|
|
443
|
+
}
|
|
444
|
+
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
445
|
+
throw new Error('Required parameter sourcePlatform was null or undefined when calling searchCampaign.');
|
|
446
|
+
}
|
|
447
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
448
|
+
if (q !== undefined && q !== null) {
|
|
449
|
+
queryParameters = queryParameters.set('q', q);
|
|
450
|
+
}
|
|
451
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
452
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
495
453
|
}
|
|
496
454
|
let headers = this.defaultHeaders;
|
|
497
455
|
// to determine the Accept header
|
|
@@ -504,19 +462,24 @@ class DpaCampaignControllerService {
|
|
|
504
462
|
}
|
|
505
463
|
// to determine the Content-Type header
|
|
506
464
|
const consumes = [];
|
|
507
|
-
return this.httpClient.request('get', `${this.basePath}/api/
|
|
465
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign/search`, {
|
|
466
|
+
params: queryParameters,
|
|
508
467
|
withCredentials: this.configuration.withCredentials,
|
|
509
468
|
headers: headers,
|
|
510
469
|
observe: observe,
|
|
511
470
|
reportProgress: reportProgress
|
|
512
471
|
});
|
|
513
472
|
}
|
|
514
|
-
|
|
515
|
-
if (body === null || body === undefined) {
|
|
516
|
-
throw new Error('Required parameter body was null or undefined when calling updateDpaCampaign.');
|
|
517
|
-
}
|
|
473
|
+
setStatus(id, active, observe = 'body', reportProgress = false) {
|
|
518
474
|
if (id === null || id === undefined) {
|
|
519
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
475
|
+
throw new Error('Required parameter id was null or undefined when calling setStatus.');
|
|
476
|
+
}
|
|
477
|
+
if (active === null || active === undefined) {
|
|
478
|
+
throw new Error('Required parameter active was null or undefined when calling setStatus.');
|
|
479
|
+
}
|
|
480
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
481
|
+
if (active !== undefined && active !== null) {
|
|
482
|
+
queryParameters = queryParameters.set('active', active);
|
|
520
483
|
}
|
|
521
484
|
let headers = this.defaultHeaders;
|
|
522
485
|
// to determine the Accept header
|
|
@@ -528,15 +491,9 @@ class DpaCampaignControllerService {
|
|
|
528
491
|
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
529
492
|
}
|
|
530
493
|
// to determine the Content-Type header
|
|
531
|
-
const consumes = [
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
535
|
-
if (httpContentTypeSelected != undefined) {
|
|
536
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
537
|
-
}
|
|
538
|
-
return this.httpClient.request('put', `${this.basePath}/api/dpa-campaign/${encodeURIComponent(String(id))}`, {
|
|
539
|
-
body: body,
|
|
494
|
+
const consumes = [];
|
|
495
|
+
return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/status`, {
|
|
496
|
+
params: queryParameters,
|
|
540
497
|
withCredentials: this.configuration.withCredentials,
|
|
541
498
|
headers: headers,
|
|
542
499
|
observe: observe,
|
|
@@ -544,9 +501,9 @@ class DpaCampaignControllerService {
|
|
|
544
501
|
});
|
|
545
502
|
}
|
|
546
503
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type:
|
|
504
|
+
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 });
|
|
505
|
+
CampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService });
|
|
506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, decorators: [{
|
|
550
507
|
type: Injectable
|
|
551
508
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
552
509
|
type: Optional
|
|
@@ -568,10 +525,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
568
525
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
569
526
|
* Do not edit the class manually.
|
|
570
527
|
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
571
|
-
class
|
|
528
|
+
class InsightsControllerService {
|
|
572
529
|
constructor(httpClient, basePath, configuration) {
|
|
573
530
|
this.httpClient = httpClient;
|
|
574
|
-
this.basePath = 'http://
|
|
531
|
+
this.basePath = 'http://bidapi01.atomex.net';
|
|
575
532
|
this.defaultHeaders = new HttpHeaders();
|
|
576
533
|
this.configuration = new Configuration();
|
|
577
534
|
if (basePath) {
|
|
@@ -595,1844 +552,31 @@ class DpaEngagementControllerService {
|
|
|
595
552
|
}
|
|
596
553
|
return false;
|
|
597
554
|
}
|
|
598
|
-
|
|
599
|
-
if (
|
|
600
|
-
throw new Error('Required parameter
|
|
555
|
+
getCampaignInsights(startDate, endDate, sourcePlatform, interval, observe = 'body', reportProgress = false) {
|
|
556
|
+
if (startDate === null || startDate === undefined) {
|
|
557
|
+
throw new Error('Required parameter startDate was null or undefined when calling getCampaignInsights.');
|
|
601
558
|
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
let httpHeaderAccepts = [
|
|
605
|
-
'*/*'
|
|
606
|
-
];
|
|
607
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
608
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
609
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
610
|
-
}
|
|
611
|
-
// to determine the Content-Type header
|
|
612
|
-
const consumes = [];
|
|
613
|
-
return this.httpClient.request('post', `${this.basePath}/api/dpa-engagement/${encodeURIComponent(String(id))}/activate`, {
|
|
614
|
-
withCredentials: this.configuration.withCredentials,
|
|
615
|
-
headers: headers,
|
|
616
|
-
observe: observe,
|
|
617
|
-
reportProgress: reportProgress
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
createDpaEngagement(body, observe = 'body', reportProgress = false) {
|
|
621
|
-
if (body === null || body === undefined) {
|
|
622
|
-
throw new Error('Required parameter body was null or undefined when calling createDpaEngagement.');
|
|
623
|
-
}
|
|
624
|
-
let headers = this.defaultHeaders;
|
|
625
|
-
// to determine the Accept header
|
|
626
|
-
let httpHeaderAccepts = [
|
|
627
|
-
'*/*'
|
|
628
|
-
];
|
|
629
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
630
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
631
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
632
|
-
}
|
|
633
|
-
// to determine the Content-Type header
|
|
634
|
-
const consumes = [
|
|
635
|
-
'application/json'
|
|
636
|
-
];
|
|
637
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
638
|
-
if (httpContentTypeSelected != undefined) {
|
|
639
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
640
|
-
}
|
|
641
|
-
return this.httpClient.request('post', `${this.basePath}/api/dpa-engagement`, {
|
|
642
|
-
body: body,
|
|
643
|
-
withCredentials: this.configuration.withCredentials,
|
|
644
|
-
headers: headers,
|
|
645
|
-
observe: observe,
|
|
646
|
-
reportProgress: reportProgress
|
|
647
|
-
});
|
|
648
|
-
}
|
|
649
|
-
getAllDpaEngagements(id, campaignId, facebookCampaignId, name, payoutType, status, isIntellibidEnabled, isMarketFeedbackEnabled, campaignStatus, staticCampaign, sourcePlatform, page, size, sort, observe = 'body', reportProgress = false) {
|
|
650
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
651
|
-
if (id !== undefined && id !== null) {
|
|
652
|
-
queryParameters = queryParameters.set('id', id);
|
|
653
|
-
}
|
|
654
|
-
if (campaignId !== undefined && campaignId !== null) {
|
|
655
|
-
queryParameters = queryParameters.set('campaignId', campaignId);
|
|
656
|
-
}
|
|
657
|
-
if (facebookCampaignId !== undefined && facebookCampaignId !== null) {
|
|
658
|
-
queryParameters = queryParameters.set('facebookCampaignId', facebookCampaignId);
|
|
659
|
-
}
|
|
660
|
-
if (name !== undefined && name !== null) {
|
|
661
|
-
queryParameters = queryParameters.set('name', name);
|
|
662
|
-
}
|
|
663
|
-
if (payoutType !== undefined && payoutType !== null) {
|
|
664
|
-
queryParameters = queryParameters.set('payoutType', payoutType);
|
|
665
|
-
}
|
|
666
|
-
if (status !== undefined && status !== null) {
|
|
667
|
-
queryParameters = queryParameters.set('status', status);
|
|
668
|
-
}
|
|
669
|
-
if (isIntellibidEnabled !== undefined && isIntellibidEnabled !== null) {
|
|
670
|
-
queryParameters = queryParameters.set('isIntellibidEnabled', isIntellibidEnabled);
|
|
671
|
-
}
|
|
672
|
-
if (isMarketFeedbackEnabled !== undefined && isMarketFeedbackEnabled !== null) {
|
|
673
|
-
queryParameters = queryParameters.set('isMarketFeedbackEnabled', isMarketFeedbackEnabled);
|
|
674
|
-
}
|
|
675
|
-
if (campaignStatus !== undefined && campaignStatus !== null) {
|
|
676
|
-
queryParameters = queryParameters.set('campaignStatus', campaignStatus);
|
|
677
|
-
}
|
|
678
|
-
if (staticCampaign !== undefined && staticCampaign !== null) {
|
|
679
|
-
queryParameters = queryParameters.set('staticCampaign', staticCampaign);
|
|
680
|
-
}
|
|
681
|
-
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
682
|
-
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
683
|
-
}
|
|
684
|
-
if (page !== undefined && page !== null) {
|
|
685
|
-
queryParameters = queryParameters.set('page', page);
|
|
686
|
-
}
|
|
687
|
-
if (size !== undefined && size !== null) {
|
|
688
|
-
queryParameters = queryParameters.set('size', size);
|
|
689
|
-
}
|
|
690
|
-
if (sort) {
|
|
691
|
-
sort.forEach((element) => {
|
|
692
|
-
queryParameters = queryParameters.append('sort', element);
|
|
693
|
-
});
|
|
694
|
-
}
|
|
695
|
-
let headers = this.defaultHeaders;
|
|
696
|
-
// to determine the Accept header
|
|
697
|
-
let httpHeaderAccepts = [
|
|
698
|
-
'*/*'
|
|
699
|
-
];
|
|
700
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
701
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
702
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
703
|
-
}
|
|
704
|
-
// to determine the Content-Type header
|
|
705
|
-
const consumes = [];
|
|
706
|
-
return this.httpClient.request('get', `${this.basePath}/api/dpa-engagement`, {
|
|
707
|
-
params: queryParameters,
|
|
708
|
-
withCredentials: this.configuration.withCredentials,
|
|
709
|
-
headers: headers,
|
|
710
|
-
observe: observe,
|
|
711
|
-
reportProgress: reportProgress
|
|
712
|
-
});
|
|
713
|
-
}
|
|
714
|
-
getDpaEngagement(id, observe = 'body', reportProgress = false) {
|
|
715
|
-
if (id === null || id === undefined) {
|
|
716
|
-
throw new Error('Required parameter id was null or undefined when calling getDpaEngagement.');
|
|
717
|
-
}
|
|
718
|
-
let headers = this.defaultHeaders;
|
|
719
|
-
// to determine the Accept header
|
|
720
|
-
let httpHeaderAccepts = [
|
|
721
|
-
'*/*'
|
|
722
|
-
];
|
|
723
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
724
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
725
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
726
|
-
}
|
|
727
|
-
// to determine the Content-Type header
|
|
728
|
-
const consumes = [];
|
|
729
|
-
return this.httpClient.request('get', `${this.basePath}/api/dpa-engagement/${encodeURIComponent(String(id))}`, {
|
|
730
|
-
withCredentials: this.configuration.withCredentials,
|
|
731
|
-
headers: headers,
|
|
732
|
-
observe: observe,
|
|
733
|
-
reportProgress: reportProgress
|
|
734
|
-
});
|
|
735
|
-
}
|
|
736
|
-
getDpaEngagementLogs(id, page, size, sort, observe = 'body', reportProgress = false) {
|
|
737
|
-
if (id === null || id === undefined) {
|
|
738
|
-
throw new Error('Required parameter id was null or undefined when calling getDpaEngagementLogs.');
|
|
739
|
-
}
|
|
740
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
741
|
-
if (page !== undefined && page !== null) {
|
|
742
|
-
queryParameters = queryParameters.set('page', page);
|
|
743
|
-
}
|
|
744
|
-
if (size !== undefined && size !== null) {
|
|
745
|
-
queryParameters = queryParameters.set('size', size);
|
|
746
|
-
}
|
|
747
|
-
if (sort) {
|
|
748
|
-
sort.forEach((element) => {
|
|
749
|
-
queryParameters = queryParameters.append('sort', element);
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
let headers = this.defaultHeaders;
|
|
753
|
-
// to determine the Accept header
|
|
754
|
-
let httpHeaderAccepts = [
|
|
755
|
-
'*/*'
|
|
756
|
-
];
|
|
757
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
758
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
759
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
760
|
-
}
|
|
761
|
-
// to determine the Content-Type header
|
|
762
|
-
const consumes = [];
|
|
763
|
-
return this.httpClient.request('get', `${this.basePath}/api/dpa-engagement/${encodeURIComponent(String(id))}/log`, {
|
|
764
|
-
params: queryParameters,
|
|
765
|
-
withCredentials: this.configuration.withCredentials,
|
|
766
|
-
headers: headers,
|
|
767
|
-
observe: observe,
|
|
768
|
-
reportProgress: reportProgress
|
|
769
|
-
});
|
|
770
|
-
}
|
|
771
|
-
pauseDpaEngagement(id, observe = 'body', reportProgress = false) {
|
|
772
|
-
if (id === null || id === undefined) {
|
|
773
|
-
throw new Error('Required parameter id was null or undefined when calling pauseDpaEngagement.');
|
|
774
|
-
}
|
|
775
|
-
let headers = this.defaultHeaders;
|
|
776
|
-
// to determine the Accept header
|
|
777
|
-
let httpHeaderAccepts = [
|
|
778
|
-
'*/*'
|
|
779
|
-
];
|
|
780
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
781
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
782
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
783
|
-
}
|
|
784
|
-
// to determine the Content-Type header
|
|
785
|
-
const consumes = [];
|
|
786
|
-
return this.httpClient.request('post', `${this.basePath}/api/dpa-engagement/${encodeURIComponent(String(id))}/pause`, {
|
|
787
|
-
withCredentials: this.configuration.withCredentials,
|
|
788
|
-
headers: headers,
|
|
789
|
-
observe: observe,
|
|
790
|
-
reportProgress: reportProgress
|
|
791
|
-
});
|
|
792
|
-
}
|
|
793
|
-
publishDpaEngagement(id, observe = 'body', reportProgress = false) {
|
|
794
|
-
if (id === null || id === undefined) {
|
|
795
|
-
throw new Error('Required parameter id was null or undefined when calling publishDpaEngagement.');
|
|
796
|
-
}
|
|
797
|
-
let headers = this.defaultHeaders;
|
|
798
|
-
// to determine the Accept header
|
|
799
|
-
let httpHeaderAccepts = [
|
|
800
|
-
'*/*'
|
|
801
|
-
];
|
|
802
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
803
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
804
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
805
|
-
}
|
|
806
|
-
// to determine the Content-Type header
|
|
807
|
-
const consumes = [];
|
|
808
|
-
return this.httpClient.request('post', `${this.basePath}/api/dpa-engagement/${encodeURIComponent(String(id))}/publish`, {
|
|
809
|
-
withCredentials: this.configuration.withCredentials,
|
|
810
|
-
headers: headers,
|
|
811
|
-
observe: observe,
|
|
812
|
-
reportProgress: reportProgress
|
|
813
|
-
});
|
|
814
|
-
}
|
|
815
|
-
scheduleUpdate(body, id, observe = 'body', reportProgress = false) {
|
|
816
|
-
if (body === null || body === undefined) {
|
|
817
|
-
throw new Error('Required parameter body was null or undefined when calling scheduleUpdate.');
|
|
818
|
-
}
|
|
819
|
-
if (id === null || id === undefined) {
|
|
820
|
-
throw new Error('Required parameter id was null or undefined when calling scheduleUpdate.');
|
|
821
|
-
}
|
|
822
|
-
let headers = this.defaultHeaders;
|
|
823
|
-
// to determine the Accept header
|
|
824
|
-
let httpHeaderAccepts = [
|
|
825
|
-
'*/*'
|
|
826
|
-
];
|
|
827
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
828
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
829
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
830
|
-
}
|
|
831
|
-
// to determine the Content-Type header
|
|
832
|
-
const consumes = [
|
|
833
|
-
'application/json'
|
|
834
|
-
];
|
|
835
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
836
|
-
if (httpContentTypeSelected != undefined) {
|
|
837
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
838
|
-
}
|
|
839
|
-
return this.httpClient.request('post', `${this.basePath}/api/dpa-engagement/${encodeURIComponent(String(id))}/schedule-update`, {
|
|
840
|
-
body: body,
|
|
841
|
-
withCredentials: this.configuration.withCredentials,
|
|
842
|
-
headers: headers,
|
|
843
|
-
observe: observe,
|
|
844
|
-
reportProgress: reportProgress
|
|
845
|
-
});
|
|
846
|
-
}
|
|
847
|
-
searchDpaEngagements(q, sourcePlatform, observe = 'body', reportProgress = false) {
|
|
848
|
-
if (q === null || q === undefined) {
|
|
849
|
-
throw new Error('Required parameter q was null or undefined when calling searchDpaEngagements.');
|
|
850
|
-
}
|
|
851
|
-
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
852
|
-
throw new Error('Required parameter sourcePlatform was null or undefined when calling searchDpaEngagements.');
|
|
853
|
-
}
|
|
854
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
855
|
-
if (q !== undefined && q !== null) {
|
|
856
|
-
queryParameters = queryParameters.set('q', q);
|
|
857
|
-
}
|
|
858
|
-
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
859
|
-
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
860
|
-
}
|
|
861
|
-
let headers = this.defaultHeaders;
|
|
862
|
-
// to determine the Accept header
|
|
863
|
-
let httpHeaderAccepts = [
|
|
864
|
-
'*/*'
|
|
865
|
-
];
|
|
866
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
867
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
868
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
869
|
-
}
|
|
870
|
-
// to determine the Content-Type header
|
|
871
|
-
const consumes = [];
|
|
872
|
-
return this.httpClient.request('get', `${this.basePath}/api/dpa-engagement/search`, {
|
|
873
|
-
params: queryParameters,
|
|
874
|
-
withCredentials: this.configuration.withCredentials,
|
|
875
|
-
headers: headers,
|
|
876
|
-
observe: observe,
|
|
877
|
-
reportProgress: reportProgress
|
|
878
|
-
});
|
|
879
|
-
}
|
|
880
|
-
updateDpaEngagement(body, id, observe = 'body', reportProgress = false) {
|
|
881
|
-
if (body === null || body === undefined) {
|
|
882
|
-
throw new Error('Required parameter body was null or undefined when calling updateDpaEngagement.');
|
|
883
|
-
}
|
|
884
|
-
if (id === null || id === undefined) {
|
|
885
|
-
throw new Error('Required parameter id was null or undefined when calling updateDpaEngagement.');
|
|
886
|
-
}
|
|
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
|
-
'application/json'
|
|
899
|
-
];
|
|
900
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
901
|
-
if (httpContentTypeSelected != undefined) {
|
|
902
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
903
|
-
}
|
|
904
|
-
return this.httpClient.request('post', `${this.basePath}/api/dpa-engagement/${encodeURIComponent(String(id))}`, {
|
|
905
|
-
body: body,
|
|
906
|
-
withCredentials: this.configuration.withCredentials,
|
|
907
|
-
headers: headers,
|
|
908
|
-
observe: observe,
|
|
909
|
-
reportProgress: reportProgress
|
|
910
|
-
});
|
|
911
|
-
}
|
|
912
|
-
}
|
|
913
|
-
DpaEngagementControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaEngagementControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
914
|
-
DpaEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaEngagementControllerService });
|
|
915
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaEngagementControllerService, decorators: [{
|
|
916
|
-
type: Injectable
|
|
917
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
918
|
-
type: Optional
|
|
919
|
-
}, {
|
|
920
|
-
type: Inject,
|
|
921
|
-
args: [BASE_PATH]
|
|
922
|
-
}] }, { type: Configuration, decorators: [{
|
|
923
|
-
type: Optional
|
|
924
|
-
}] }]; } });
|
|
925
|
-
|
|
926
|
-
/**
|
|
927
|
-
* Intellibid API
|
|
928
|
-
* API documentation for the Intellibid platform
|
|
929
|
-
*
|
|
930
|
-
* OpenAPI spec version: 1.0
|
|
931
|
-
*
|
|
932
|
-
*
|
|
933
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
934
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
935
|
-
* Do not edit the class manually.
|
|
936
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
937
|
-
class FacebookAdImageControllerService {
|
|
938
|
-
constructor(httpClient, basePath, configuration) {
|
|
939
|
-
this.httpClient = httpClient;
|
|
940
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
941
|
-
this.defaultHeaders = new HttpHeaders();
|
|
942
|
-
this.configuration = new Configuration();
|
|
943
|
-
if (basePath) {
|
|
944
|
-
this.basePath = basePath;
|
|
945
|
-
}
|
|
946
|
-
if (configuration) {
|
|
947
|
-
this.configuration = configuration;
|
|
948
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
/**
|
|
952
|
-
* @param consumes string[] mime-types
|
|
953
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
954
|
-
*/
|
|
955
|
-
canConsumeForm(consumes) {
|
|
956
|
-
const form = 'multipart/form-data';
|
|
957
|
-
for (const consume of consumes) {
|
|
958
|
-
if (form === consume) {
|
|
959
|
-
return true;
|
|
960
|
-
}
|
|
961
|
-
}
|
|
962
|
-
return false;
|
|
963
|
-
}
|
|
964
|
-
deleteAdImage1(adAccountId, hash, observe = 'body', reportProgress = false) {
|
|
965
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
966
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling deleteAdImage1.');
|
|
967
|
-
}
|
|
968
|
-
if (hash === null || hash === undefined) {
|
|
969
|
-
throw new Error('Required parameter hash was null or undefined when calling deleteAdImage1.');
|
|
970
|
-
}
|
|
971
|
-
let headers = this.defaultHeaders;
|
|
972
|
-
// to determine the Accept header
|
|
973
|
-
let httpHeaderAccepts = [];
|
|
974
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
975
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
976
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
977
|
-
}
|
|
978
|
-
// to determine the Content-Type header
|
|
979
|
-
const consumes = [];
|
|
980
|
-
return this.httpClient.request('post', `${this.basePath}/api/facebook/${encodeURIComponent(String(adAccountId))}/ad-image/${encodeURIComponent(String(hash))}/delete`, {
|
|
981
|
-
withCredentials: this.configuration.withCredentials,
|
|
982
|
-
headers: headers,
|
|
983
|
-
observe: observe,
|
|
984
|
-
reportProgress: reportProgress
|
|
985
|
-
});
|
|
986
|
-
}
|
|
987
|
-
getAllAdImages1(adAccountId, hashes, observe = 'body', reportProgress = false) {
|
|
988
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
989
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling getAllAdImages1.');
|
|
990
|
-
}
|
|
991
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
992
|
-
if (hashes) {
|
|
993
|
-
hashes.forEach((element) => {
|
|
994
|
-
queryParameters = queryParameters.append('hashes', element);
|
|
995
|
-
});
|
|
996
|
-
}
|
|
997
|
-
let headers = this.defaultHeaders;
|
|
998
|
-
// to determine the Accept header
|
|
999
|
-
let httpHeaderAccepts = [
|
|
1000
|
-
'*/*'
|
|
1001
|
-
];
|
|
1002
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1003
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1004
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1005
|
-
}
|
|
1006
|
-
// to determine the Content-Type header
|
|
1007
|
-
const consumes = [];
|
|
1008
|
-
return this.httpClient.request('get', `${this.basePath}/api/facebook/${encodeURIComponent(String(adAccountId))}/ad-image`, {
|
|
1009
|
-
params: queryParameters,
|
|
1010
|
-
withCredentials: this.configuration.withCredentials,
|
|
1011
|
-
headers: headers,
|
|
1012
|
-
observe: observe,
|
|
1013
|
-
reportProgress: reportProgress
|
|
1014
|
-
});
|
|
1015
|
-
}
|
|
1016
|
-
uploadAdImages2(adAccountId, files, observe = 'body', reportProgress = false) {
|
|
1017
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
1018
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling uploadAdImages2.');
|
|
1019
|
-
}
|
|
1020
|
-
if (files === null || files === undefined) {
|
|
1021
|
-
throw new Error('Required parameter files was null or undefined when calling uploadAdImages2.');
|
|
1022
|
-
}
|
|
1023
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1024
|
-
if (files) {
|
|
1025
|
-
files.forEach((element) => {
|
|
1026
|
-
queryParameters = queryParameters.append('files', element);
|
|
1027
|
-
});
|
|
1028
|
-
}
|
|
1029
|
-
let headers = this.defaultHeaders;
|
|
1030
|
-
// to determine the Accept header
|
|
1031
|
-
let httpHeaderAccepts = [
|
|
1032
|
-
'*/*'
|
|
1033
|
-
];
|
|
1034
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1035
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1036
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1037
|
-
}
|
|
1038
|
-
// to determine the Content-Type header
|
|
1039
|
-
const consumes = [];
|
|
1040
|
-
return this.httpClient.request('post', `${this.basePath}/api/facebook/${encodeURIComponent(String(adAccountId))}/ad-image`, {
|
|
1041
|
-
params: queryParameters,
|
|
1042
|
-
withCredentials: this.configuration.withCredentials,
|
|
1043
|
-
headers: headers,
|
|
1044
|
-
observe: observe,
|
|
1045
|
-
reportProgress: reportProgress
|
|
1046
|
-
});
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
FacebookAdImageControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookAdImageControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1050
|
-
FacebookAdImageControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookAdImageControllerService });
|
|
1051
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookAdImageControllerService, decorators: [{
|
|
1052
|
-
type: Injectable
|
|
1053
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1054
|
-
type: Optional
|
|
1055
|
-
}, {
|
|
1056
|
-
type: Inject,
|
|
1057
|
-
args: [BASE_PATH]
|
|
1058
|
-
}] }, { type: Configuration, decorators: [{
|
|
1059
|
-
type: Optional
|
|
1060
|
-
}] }]; } });
|
|
1061
|
-
|
|
1062
|
-
/**
|
|
1063
|
-
* Intellibid API
|
|
1064
|
-
* API documentation for the Intellibid platform
|
|
1065
|
-
*
|
|
1066
|
-
* OpenAPI spec version: 1.0
|
|
1067
|
-
*
|
|
1068
|
-
*
|
|
1069
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1070
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1071
|
-
* Do not edit the class manually.
|
|
1072
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
1073
|
-
class FacebookAdVideoControllerService {
|
|
1074
|
-
constructor(httpClient, basePath, configuration) {
|
|
1075
|
-
this.httpClient = httpClient;
|
|
1076
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
1077
|
-
this.defaultHeaders = new HttpHeaders();
|
|
1078
|
-
this.configuration = new Configuration();
|
|
1079
|
-
if (basePath) {
|
|
1080
|
-
this.basePath = basePath;
|
|
1081
|
-
}
|
|
1082
|
-
if (configuration) {
|
|
1083
|
-
this.configuration = configuration;
|
|
1084
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
/**
|
|
1088
|
-
* @param consumes string[] mime-types
|
|
1089
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1090
|
-
*/
|
|
1091
|
-
canConsumeForm(consumes) {
|
|
1092
|
-
const form = 'multipart/form-data';
|
|
1093
|
-
for (const consume of consumes) {
|
|
1094
|
-
if (form === consume) {
|
|
1095
|
-
return true;
|
|
1096
|
-
}
|
|
1097
|
-
}
|
|
1098
|
-
return false;
|
|
1099
|
-
}
|
|
1100
|
-
deleteAdVideo1(adAccountId, videoId, observe = 'body', reportProgress = false) {
|
|
1101
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
1102
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling deleteAdVideo1.');
|
|
1103
|
-
}
|
|
1104
|
-
if (videoId === null || videoId === undefined) {
|
|
1105
|
-
throw new Error('Required parameter videoId was null or undefined when calling deleteAdVideo1.');
|
|
1106
|
-
}
|
|
1107
|
-
let headers = this.defaultHeaders;
|
|
1108
|
-
// to determine the Accept header
|
|
1109
|
-
let httpHeaderAccepts = [];
|
|
1110
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1111
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1112
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1113
|
-
}
|
|
1114
|
-
// to determine the Content-Type header
|
|
1115
|
-
const consumes = [];
|
|
1116
|
-
return this.httpClient.request('post', `${this.basePath}/api/facebook/${encodeURIComponent(String(adAccountId))}/ad-video/${encodeURIComponent(String(videoId))}/delete`, {
|
|
1117
|
-
withCredentials: this.configuration.withCredentials,
|
|
1118
|
-
headers: headers,
|
|
1119
|
-
observe: observe,
|
|
1120
|
-
reportProgress: reportProgress
|
|
1121
|
-
});
|
|
1122
|
-
}
|
|
1123
|
-
getAdVideo1(adAccountId, videoId, observe = 'body', reportProgress = false) {
|
|
1124
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
1125
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling getAdVideo1.');
|
|
1126
|
-
}
|
|
1127
|
-
if (videoId === null || videoId === undefined) {
|
|
1128
|
-
throw new Error('Required parameter videoId was null or undefined when calling getAdVideo1.');
|
|
1129
|
-
}
|
|
1130
|
-
let headers = this.defaultHeaders;
|
|
1131
|
-
// to determine the Accept header
|
|
1132
|
-
let httpHeaderAccepts = [
|
|
1133
|
-
'*/*'
|
|
1134
|
-
];
|
|
1135
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1136
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1137
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1138
|
-
}
|
|
1139
|
-
// to determine the Content-Type header
|
|
1140
|
-
const consumes = [];
|
|
1141
|
-
return this.httpClient.request('get', `${this.basePath}/api/facebook/${encodeURIComponent(String(adAccountId))}/ad-video/${encodeURIComponent(String(videoId))}`, {
|
|
1142
|
-
withCredentials: this.configuration.withCredentials,
|
|
1143
|
-
headers: headers,
|
|
1144
|
-
observe: observe,
|
|
1145
|
-
reportProgress: reportProgress
|
|
1146
|
-
});
|
|
1147
|
-
}
|
|
1148
|
-
getAllAdVideos1(adAccountId, videoIds, observe = 'body', reportProgress = false) {
|
|
1149
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
1150
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling getAllAdVideos1.');
|
|
1151
|
-
}
|
|
1152
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1153
|
-
if (videoIds) {
|
|
1154
|
-
videoIds.forEach((element) => {
|
|
1155
|
-
queryParameters = queryParameters.append('videoIds', element);
|
|
1156
|
-
});
|
|
1157
|
-
}
|
|
1158
|
-
let headers = this.defaultHeaders;
|
|
1159
|
-
// to determine the Accept header
|
|
1160
|
-
let httpHeaderAccepts = [
|
|
1161
|
-
'*/*'
|
|
1162
|
-
];
|
|
1163
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1164
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1165
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1166
|
-
}
|
|
1167
|
-
// to determine the Content-Type header
|
|
1168
|
-
const consumes = [];
|
|
1169
|
-
return this.httpClient.request('get', `${this.basePath}/api/facebook/${encodeURIComponent(String(adAccountId))}/ad-video`, {
|
|
1170
|
-
params: queryParameters,
|
|
1171
|
-
withCredentials: this.configuration.withCredentials,
|
|
1172
|
-
headers: headers,
|
|
1173
|
-
observe: observe,
|
|
1174
|
-
reportProgress: reportProgress
|
|
1175
|
-
});
|
|
1176
|
-
}
|
|
1177
|
-
uploadAdVideos2(adAccountId, files, observe = 'body', reportProgress = false) {
|
|
1178
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
1179
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling uploadAdVideos2.');
|
|
1180
|
-
}
|
|
1181
|
-
if (files === null || files === undefined) {
|
|
1182
|
-
throw new Error('Required parameter files was null or undefined when calling uploadAdVideos2.');
|
|
1183
|
-
}
|
|
1184
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1185
|
-
if (files) {
|
|
1186
|
-
files.forEach((element) => {
|
|
1187
|
-
queryParameters = queryParameters.append('files', element);
|
|
1188
|
-
});
|
|
1189
|
-
}
|
|
1190
|
-
let headers = this.defaultHeaders;
|
|
1191
|
-
// to determine the Accept header
|
|
1192
|
-
let httpHeaderAccepts = [
|
|
1193
|
-
'*/*'
|
|
1194
|
-
];
|
|
1195
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1196
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1197
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1198
|
-
}
|
|
1199
|
-
// to determine the Content-Type header
|
|
1200
|
-
const consumes = [];
|
|
1201
|
-
return this.httpClient.request('post', `${this.basePath}/api/facebook/${encodeURIComponent(String(adAccountId))}/ad-video`, {
|
|
1202
|
-
params: queryParameters,
|
|
1203
|
-
withCredentials: this.configuration.withCredentials,
|
|
1204
|
-
headers: headers,
|
|
1205
|
-
observe: observe,
|
|
1206
|
-
reportProgress: reportProgress
|
|
1207
|
-
});
|
|
1208
|
-
}
|
|
1209
|
-
}
|
|
1210
|
-
FacebookAdVideoControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookAdVideoControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1211
|
-
FacebookAdVideoControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookAdVideoControllerService });
|
|
1212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookAdVideoControllerService, decorators: [{
|
|
1213
|
-
type: Injectable
|
|
1214
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1215
|
-
type: Optional
|
|
1216
|
-
}, {
|
|
1217
|
-
type: Inject,
|
|
1218
|
-
args: [BASE_PATH]
|
|
1219
|
-
}] }, { type: Configuration, decorators: [{
|
|
1220
|
-
type: Optional
|
|
1221
|
-
}] }]; } });
|
|
1222
|
-
|
|
1223
|
-
/**
|
|
1224
|
-
* Intellibid API
|
|
1225
|
-
* API documentation for the Intellibid platform
|
|
1226
|
-
*
|
|
1227
|
-
* OpenAPI spec version: 1.0
|
|
1228
|
-
*
|
|
1229
|
-
*
|
|
1230
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1231
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1232
|
-
* Do not edit the class manually.
|
|
1233
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
1234
|
-
class FacebookEngagementControllerService {
|
|
1235
|
-
constructor(httpClient, basePath, configuration) {
|
|
1236
|
-
this.httpClient = httpClient;
|
|
1237
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
1238
|
-
this.defaultHeaders = new HttpHeaders();
|
|
1239
|
-
this.configuration = new Configuration();
|
|
1240
|
-
if (basePath) {
|
|
1241
|
-
this.basePath = basePath;
|
|
1242
|
-
}
|
|
1243
|
-
if (configuration) {
|
|
1244
|
-
this.configuration = configuration;
|
|
1245
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
/**
|
|
1249
|
-
* @param consumes string[] mime-types
|
|
1250
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1251
|
-
*/
|
|
1252
|
-
canConsumeForm(consumes) {
|
|
1253
|
-
const form = 'multipart/form-data';
|
|
1254
|
-
for (const consume of consumes) {
|
|
1255
|
-
if (form === consume) {
|
|
1256
|
-
return true;
|
|
1257
|
-
}
|
|
1258
|
-
}
|
|
1259
|
-
return false;
|
|
1260
|
-
}
|
|
1261
|
-
createOrUpdateFacebookEngagement(body, id, observe = 'body', reportProgress = false) {
|
|
1262
|
-
if (body === null || body === undefined) {
|
|
1263
|
-
throw new Error('Required parameter body was null or undefined when calling createOrUpdateFacebookEngagement.');
|
|
1264
|
-
}
|
|
1265
|
-
if (id === null || id === undefined) {
|
|
1266
|
-
throw new Error('Required parameter id was null or undefined when calling createOrUpdateFacebookEngagement.');
|
|
1267
|
-
}
|
|
1268
|
-
let headers = this.defaultHeaders;
|
|
1269
|
-
// to determine the Accept header
|
|
1270
|
-
let httpHeaderAccepts = [
|
|
1271
|
-
'*/*'
|
|
1272
|
-
];
|
|
1273
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1274
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1275
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1276
|
-
}
|
|
1277
|
-
// to determine the Content-Type header
|
|
1278
|
-
const consumes = [
|
|
1279
|
-
'application/json'
|
|
1280
|
-
];
|
|
1281
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1282
|
-
if (httpContentTypeSelected != undefined) {
|
|
1283
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
1284
|
-
}
|
|
1285
|
-
return this.httpClient.request('post', `${this.basePath}/api/facebook-engagement/${encodeURIComponent(String(id))}`, {
|
|
1286
|
-
body: body,
|
|
1287
|
-
withCredentials: this.configuration.withCredentials,
|
|
1288
|
-
headers: headers,
|
|
1289
|
-
observe: observe,
|
|
1290
|
-
reportProgress: reportProgress
|
|
1291
|
-
});
|
|
1292
|
-
}
|
|
1293
|
-
getAllFacebookEngagements(id, campaignId, facebookAccountId, facebookFanPageId, facebookCatalogId, facebookCatalogType, instagramActorId, facebookPixelId, facebookAppId, facebookProductSetId, tosAccepted, eventSourceGroupId, audienceDsdo, businessManagerId, page, size, sort, observe = 'body', reportProgress = false) {
|
|
1294
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1295
|
-
if (id !== undefined && id !== null) {
|
|
1296
|
-
queryParameters = queryParameters.set('id', id);
|
|
1297
|
-
}
|
|
1298
|
-
if (campaignId !== undefined && campaignId !== null) {
|
|
1299
|
-
queryParameters = queryParameters.set('campaignId', campaignId);
|
|
1300
|
-
}
|
|
1301
|
-
if (facebookAccountId !== undefined && facebookAccountId !== null) {
|
|
1302
|
-
queryParameters = queryParameters.set('facebookAccountId', facebookAccountId);
|
|
1303
|
-
}
|
|
1304
|
-
if (facebookFanPageId !== undefined && facebookFanPageId !== null) {
|
|
1305
|
-
queryParameters = queryParameters.set('facebookFanPageId', facebookFanPageId);
|
|
1306
|
-
}
|
|
1307
|
-
if (facebookCatalogId !== undefined && facebookCatalogId !== null) {
|
|
1308
|
-
queryParameters = queryParameters.set('facebookCatalogId', facebookCatalogId);
|
|
1309
|
-
}
|
|
1310
|
-
if (facebookCatalogType !== undefined && facebookCatalogType !== null) {
|
|
1311
|
-
queryParameters = queryParameters.set('facebookCatalogType', facebookCatalogType);
|
|
1312
|
-
}
|
|
1313
|
-
if (instagramActorId !== undefined && instagramActorId !== null) {
|
|
1314
|
-
queryParameters = queryParameters.set('instagramActorId', instagramActorId);
|
|
1315
|
-
}
|
|
1316
|
-
if (facebookPixelId !== undefined && facebookPixelId !== null) {
|
|
1317
|
-
queryParameters = queryParameters.set('facebookPixelId', facebookPixelId);
|
|
1318
|
-
}
|
|
1319
|
-
if (facebookAppId !== undefined && facebookAppId !== null) {
|
|
1320
|
-
queryParameters = queryParameters.set('facebookAppId', facebookAppId);
|
|
1321
|
-
}
|
|
1322
|
-
if (facebookProductSetId !== undefined && facebookProductSetId !== null) {
|
|
1323
|
-
queryParameters = queryParameters.set('facebookProductSetId', facebookProductSetId);
|
|
1324
|
-
}
|
|
1325
|
-
if (tosAccepted !== undefined && tosAccepted !== null) {
|
|
1326
|
-
queryParameters = queryParameters.set('tosAccepted', tosAccepted);
|
|
1327
|
-
}
|
|
1328
|
-
if (eventSourceGroupId !== undefined && eventSourceGroupId !== null) {
|
|
1329
|
-
queryParameters = queryParameters.set('eventSourceGroupId', eventSourceGroupId);
|
|
1330
|
-
}
|
|
1331
|
-
if (audienceDsdo !== undefined && audienceDsdo !== null) {
|
|
1332
|
-
queryParameters = queryParameters.set('audienceDsdo', audienceDsdo);
|
|
1333
|
-
}
|
|
1334
|
-
if (businessManagerId !== undefined && businessManagerId !== null) {
|
|
1335
|
-
queryParameters = queryParameters.set('businessManagerId', businessManagerId);
|
|
1336
|
-
}
|
|
1337
|
-
if (page !== undefined && page !== null) {
|
|
1338
|
-
queryParameters = queryParameters.set('page', page);
|
|
1339
|
-
}
|
|
1340
|
-
if (size !== undefined && size !== null) {
|
|
1341
|
-
queryParameters = queryParameters.set('size', size);
|
|
1342
|
-
}
|
|
1343
|
-
if (sort) {
|
|
1344
|
-
sort.forEach((element) => {
|
|
1345
|
-
queryParameters = queryParameters.append('sort', element);
|
|
1346
|
-
});
|
|
1347
|
-
}
|
|
1348
|
-
let headers = this.defaultHeaders;
|
|
1349
|
-
// to determine the Accept header
|
|
1350
|
-
let httpHeaderAccepts = [
|
|
1351
|
-
'*/*'
|
|
1352
|
-
];
|
|
1353
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1354
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1355
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1356
|
-
}
|
|
1357
|
-
// to determine the Content-Type header
|
|
1358
|
-
const consumes = [];
|
|
1359
|
-
return this.httpClient.request('get', `${this.basePath}/api/facebook-engagement`, {
|
|
1360
|
-
params: queryParameters,
|
|
1361
|
-
withCredentials: this.configuration.withCredentials,
|
|
1362
|
-
headers: headers,
|
|
1363
|
-
observe: observe,
|
|
1364
|
-
reportProgress: reportProgress
|
|
1365
|
-
});
|
|
1366
|
-
}
|
|
1367
|
-
getFacebookEngagement(id, observe = 'body', reportProgress = false) {
|
|
1368
|
-
if (id === null || id === undefined) {
|
|
1369
|
-
throw new Error('Required parameter id was null or undefined when calling getFacebookEngagement.');
|
|
1370
|
-
}
|
|
1371
|
-
let headers = this.defaultHeaders;
|
|
1372
|
-
// to determine the Accept header
|
|
1373
|
-
let httpHeaderAccepts = [
|
|
1374
|
-
'*/*'
|
|
1375
|
-
];
|
|
1376
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1377
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1378
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1379
|
-
}
|
|
1380
|
-
// to determine the Content-Type header
|
|
1381
|
-
const consumes = [];
|
|
1382
|
-
return this.httpClient.request('get', `${this.basePath}/api/facebook-engagement/${encodeURIComponent(String(id))}`, {
|
|
1383
|
-
withCredentials: this.configuration.withCredentials,
|
|
1384
|
-
headers: headers,
|
|
1385
|
-
observe: observe,
|
|
1386
|
-
reportProgress: reportProgress
|
|
1387
|
-
});
|
|
1388
|
-
}
|
|
1389
|
-
}
|
|
1390
|
-
FacebookEngagementControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1391
|
-
FacebookEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService });
|
|
1392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService, decorators: [{
|
|
1393
|
-
type: Injectable
|
|
1394
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1395
|
-
type: Optional
|
|
1396
|
-
}, {
|
|
1397
|
-
type: Inject,
|
|
1398
|
-
args: [BASE_PATH]
|
|
1399
|
-
}] }, { type: Configuration, decorators: [{
|
|
1400
|
-
type: Optional
|
|
1401
|
-
}] }]; } });
|
|
1402
|
-
|
|
1403
|
-
/**
|
|
1404
|
-
* Intellibid API
|
|
1405
|
-
* API documentation for the Intellibid platform
|
|
1406
|
-
*
|
|
1407
|
-
* OpenAPI spec version: 1.0
|
|
1408
|
-
*
|
|
1409
|
-
*
|
|
1410
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1411
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1412
|
-
* Do not edit the class manually.
|
|
1413
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
1414
|
-
class MobileAppDetailControllerService {
|
|
1415
|
-
constructor(httpClient, basePath, configuration) {
|
|
1416
|
-
this.httpClient = httpClient;
|
|
1417
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
1418
|
-
this.defaultHeaders = new HttpHeaders();
|
|
1419
|
-
this.configuration = new Configuration();
|
|
1420
|
-
if (basePath) {
|
|
1421
|
-
this.basePath = basePath;
|
|
1422
|
-
}
|
|
1423
|
-
if (configuration) {
|
|
1424
|
-
this.configuration = configuration;
|
|
1425
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
1426
|
-
}
|
|
1427
|
-
}
|
|
1428
|
-
/**
|
|
1429
|
-
* @param consumes string[] mime-types
|
|
1430
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1431
|
-
*/
|
|
1432
|
-
canConsumeForm(consumes) {
|
|
1433
|
-
const form = 'multipart/form-data';
|
|
1434
|
-
for (const consume of consumes) {
|
|
1435
|
-
if (form === consume) {
|
|
1436
|
-
return true;
|
|
1437
|
-
}
|
|
1438
|
-
}
|
|
1439
|
-
return false;
|
|
1440
|
-
}
|
|
1441
|
-
createOrUpdateMobileAppDetail(body, id, observe = 'body', reportProgress = false) {
|
|
1442
|
-
if (body === null || body === undefined) {
|
|
1443
|
-
throw new Error('Required parameter body was null or undefined when calling createOrUpdateMobileAppDetail.');
|
|
1444
|
-
}
|
|
1445
|
-
if (id === null || id === undefined) {
|
|
1446
|
-
throw new Error('Required parameter id was null or undefined when calling createOrUpdateMobileAppDetail.');
|
|
1447
|
-
}
|
|
1448
|
-
let headers = this.defaultHeaders;
|
|
1449
|
-
// to determine the Accept header
|
|
1450
|
-
let httpHeaderAccepts = [
|
|
1451
|
-
'*/*'
|
|
1452
|
-
];
|
|
1453
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1454
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1455
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1456
|
-
}
|
|
1457
|
-
// to determine the Content-Type header
|
|
1458
|
-
const consumes = [
|
|
1459
|
-
'application/json'
|
|
1460
|
-
];
|
|
1461
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1462
|
-
if (httpContentTypeSelected != undefined) {
|
|
1463
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
1464
|
-
}
|
|
1465
|
-
return this.httpClient.request('post', `${this.basePath}/api/mobile-app/${encodeURIComponent(String(id))}`, {
|
|
1466
|
-
body: body,
|
|
1467
|
-
withCredentials: this.configuration.withCredentials,
|
|
1468
|
-
headers: headers,
|
|
1469
|
-
observe: observe,
|
|
1470
|
-
reportProgress: reportProgress
|
|
1471
|
-
});
|
|
1472
|
-
}
|
|
1473
|
-
getAllMobileAppDetails(campaignId, altLandingPage, playStoreLink, playStoreId, fbAppIdForPlayStore, itunesLink, itunesId, fbAppIdForItunes, iosAppName, androidAppName, defaultWebSiteUrl, page, size, sort, observe = 'body', reportProgress = false) {
|
|
1474
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1475
|
-
if (campaignId !== undefined && campaignId !== null) {
|
|
1476
|
-
queryParameters = queryParameters.set('campaignId', campaignId);
|
|
1477
|
-
}
|
|
1478
|
-
if (altLandingPage !== undefined && altLandingPage !== null) {
|
|
1479
|
-
queryParameters = queryParameters.set('altLandingPage', altLandingPage);
|
|
1480
|
-
}
|
|
1481
|
-
if (playStoreLink !== undefined && playStoreLink !== null) {
|
|
1482
|
-
queryParameters = queryParameters.set('playStoreLink', playStoreLink);
|
|
1483
|
-
}
|
|
1484
|
-
if (playStoreId !== undefined && playStoreId !== null) {
|
|
1485
|
-
queryParameters = queryParameters.set('playStoreId', playStoreId);
|
|
1486
|
-
}
|
|
1487
|
-
if (fbAppIdForPlayStore !== undefined && fbAppIdForPlayStore !== null) {
|
|
1488
|
-
queryParameters = queryParameters.set('fbAppIdForPlayStore', fbAppIdForPlayStore);
|
|
1489
|
-
}
|
|
1490
|
-
if (itunesLink !== undefined && itunesLink !== null) {
|
|
1491
|
-
queryParameters = queryParameters.set('itunesLink', itunesLink);
|
|
1492
|
-
}
|
|
1493
|
-
if (itunesId !== undefined && itunesId !== null) {
|
|
1494
|
-
queryParameters = queryParameters.set('itunesId', itunesId);
|
|
1495
|
-
}
|
|
1496
|
-
if (fbAppIdForItunes !== undefined && fbAppIdForItunes !== null) {
|
|
1497
|
-
queryParameters = queryParameters.set('fbAppIdForItunes', fbAppIdForItunes);
|
|
1498
|
-
}
|
|
1499
|
-
if (iosAppName !== undefined && iosAppName !== null) {
|
|
1500
|
-
queryParameters = queryParameters.set('iosAppName', iosAppName);
|
|
1501
|
-
}
|
|
1502
|
-
if (androidAppName !== undefined && androidAppName !== null) {
|
|
1503
|
-
queryParameters = queryParameters.set('androidAppName', androidAppName);
|
|
1504
|
-
}
|
|
1505
|
-
if (defaultWebSiteUrl !== undefined && defaultWebSiteUrl !== null) {
|
|
1506
|
-
queryParameters = queryParameters.set('defaultWebSiteUrl', defaultWebSiteUrl);
|
|
1507
|
-
}
|
|
1508
|
-
if (page !== undefined && page !== null) {
|
|
1509
|
-
queryParameters = queryParameters.set('page', page);
|
|
1510
|
-
}
|
|
1511
|
-
if (size !== undefined && size !== null) {
|
|
1512
|
-
queryParameters = queryParameters.set('size', size);
|
|
1513
|
-
}
|
|
1514
|
-
if (sort) {
|
|
1515
|
-
sort.forEach((element) => {
|
|
1516
|
-
queryParameters = queryParameters.append('sort', element);
|
|
1517
|
-
});
|
|
1518
|
-
}
|
|
1519
|
-
let headers = this.defaultHeaders;
|
|
1520
|
-
// to determine the Accept header
|
|
1521
|
-
let httpHeaderAccepts = [
|
|
1522
|
-
'*/*'
|
|
1523
|
-
];
|
|
1524
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1525
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1526
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1527
|
-
}
|
|
1528
|
-
// to determine the Content-Type header
|
|
1529
|
-
const consumes = [];
|
|
1530
|
-
return this.httpClient.request('get', `${this.basePath}/api/mobile-app`, {
|
|
1531
|
-
params: queryParameters,
|
|
1532
|
-
withCredentials: this.configuration.withCredentials,
|
|
1533
|
-
headers: headers,
|
|
1534
|
-
observe: observe,
|
|
1535
|
-
reportProgress: reportProgress
|
|
1536
|
-
});
|
|
1537
|
-
}
|
|
1538
|
-
getMobileAppDetail(id, observe = 'body', reportProgress = false) {
|
|
1539
|
-
if (id === null || id === undefined) {
|
|
1540
|
-
throw new Error('Required parameter id was null or undefined when calling getMobileAppDetail.');
|
|
1541
|
-
}
|
|
1542
|
-
let headers = this.defaultHeaders;
|
|
1543
|
-
// to determine the Accept header
|
|
1544
|
-
let httpHeaderAccepts = [
|
|
1545
|
-
'*/*'
|
|
1546
|
-
];
|
|
1547
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1548
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1549
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1550
|
-
}
|
|
1551
|
-
// to determine the Content-Type header
|
|
1552
|
-
const consumes = [];
|
|
1553
|
-
return this.httpClient.request('get', `${this.basePath}/api/mobile-app/${encodeURIComponent(String(id))}`, {
|
|
1554
|
-
withCredentials: this.configuration.withCredentials,
|
|
1555
|
-
headers: headers,
|
|
1556
|
-
observe: observe,
|
|
1557
|
-
reportProgress: reportProgress
|
|
1558
|
-
});
|
|
1559
|
-
}
|
|
1560
|
-
}
|
|
1561
|
-
MobileAppDetailControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MobileAppDetailControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1562
|
-
MobileAppDetailControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MobileAppDetailControllerService });
|
|
1563
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: MobileAppDetailControllerService, decorators: [{
|
|
1564
|
-
type: Injectable
|
|
1565
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1566
|
-
type: Optional
|
|
1567
|
-
}, {
|
|
1568
|
-
type: Inject,
|
|
1569
|
-
args: [BASE_PATH]
|
|
1570
|
-
}] }, { type: Configuration, decorators: [{
|
|
1571
|
-
type: Optional
|
|
1572
|
-
}] }]; } });
|
|
1573
|
-
|
|
1574
|
-
/**
|
|
1575
|
-
* Intellibid API
|
|
1576
|
-
* API documentation for the Intellibid platform
|
|
1577
|
-
*
|
|
1578
|
-
* OpenAPI spec version: 1.0
|
|
1579
|
-
*
|
|
1580
|
-
*
|
|
1581
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1582
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1583
|
-
* Do not edit the class manually.
|
|
1584
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
1585
|
-
class PackageDetailControllerService {
|
|
1586
|
-
constructor(httpClient, basePath, configuration) {
|
|
1587
|
-
this.httpClient = httpClient;
|
|
1588
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
1589
|
-
this.defaultHeaders = new HttpHeaders();
|
|
1590
|
-
this.configuration = new Configuration();
|
|
1591
|
-
if (basePath) {
|
|
1592
|
-
this.basePath = basePath;
|
|
1593
|
-
}
|
|
1594
|
-
if (configuration) {
|
|
1595
|
-
this.configuration = configuration;
|
|
1596
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
1597
|
-
}
|
|
1598
|
-
}
|
|
1599
|
-
/**
|
|
1600
|
-
* @param consumes string[] mime-types
|
|
1601
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1602
|
-
*/
|
|
1603
|
-
canConsumeForm(consumes) {
|
|
1604
|
-
const form = 'multipart/form-data';
|
|
1605
|
-
for (const consume of consumes) {
|
|
1606
|
-
if (form === consume) {
|
|
1607
|
-
return true;
|
|
1608
|
-
}
|
|
1609
|
-
}
|
|
1610
|
-
return false;
|
|
1611
|
-
}
|
|
1612
|
-
getAllPackageDetails(id, name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
|
|
1613
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1614
|
-
if (id !== undefined && id !== null) {
|
|
1615
|
-
queryParameters = queryParameters.set('id', id);
|
|
1616
|
-
}
|
|
1617
|
-
if (name !== undefined && name !== null) {
|
|
1618
|
-
queryParameters = queryParameters.set('name', name);
|
|
1619
|
-
}
|
|
1620
|
-
if (isActive !== undefined && isActive !== null) {
|
|
1621
|
-
queryParameters = queryParameters.set('isActive', isActive);
|
|
1622
|
-
}
|
|
1623
|
-
if (page !== undefined && page !== null) {
|
|
1624
|
-
queryParameters = queryParameters.set('page', page);
|
|
1625
|
-
}
|
|
1626
|
-
if (size !== undefined && size !== null) {
|
|
1627
|
-
queryParameters = queryParameters.set('size', size);
|
|
1628
|
-
}
|
|
1629
|
-
if (sort) {
|
|
1630
|
-
sort.forEach((element) => {
|
|
1631
|
-
queryParameters = queryParameters.append('sort', element);
|
|
1632
|
-
});
|
|
1633
|
-
}
|
|
1634
|
-
let headers = this.defaultHeaders;
|
|
1635
|
-
// to determine the Accept header
|
|
1636
|
-
let httpHeaderAccepts = [
|
|
1637
|
-
'*/*'
|
|
1638
|
-
];
|
|
1639
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1640
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1641
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1642
|
-
}
|
|
1643
|
-
// to determine the Content-Type header
|
|
1644
|
-
const consumes = [];
|
|
1645
|
-
return this.httpClient.request('get', `${this.basePath}/api/package`, {
|
|
1646
|
-
params: queryParameters,
|
|
1647
|
-
withCredentials: this.configuration.withCredentials,
|
|
1648
|
-
headers: headers,
|
|
1649
|
-
observe: observe,
|
|
1650
|
-
reportProgress: reportProgress
|
|
1651
|
-
});
|
|
1652
|
-
}
|
|
1653
|
-
getPackageDetail(id, observe = 'body', reportProgress = false) {
|
|
1654
|
-
if (id === null || id === undefined) {
|
|
1655
|
-
throw new Error('Required parameter id was null or undefined when calling getPackageDetail.');
|
|
1656
|
-
}
|
|
1657
|
-
let headers = this.defaultHeaders;
|
|
1658
|
-
// to determine the Accept header
|
|
1659
|
-
let httpHeaderAccepts = [
|
|
1660
|
-
'*/*'
|
|
1661
|
-
];
|
|
1662
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1663
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1664
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1665
|
-
}
|
|
1666
|
-
// to determine the Content-Type header
|
|
1667
|
-
const consumes = [];
|
|
1668
|
-
return this.httpClient.request('get', `${this.basePath}/api/package/${encodeURIComponent(String(id))}`, {
|
|
1669
|
-
withCredentials: this.configuration.withCredentials,
|
|
1670
|
-
headers: headers,
|
|
1671
|
-
observe: observe,
|
|
1672
|
-
reportProgress: reportProgress
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
PackageDetailControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1677
|
-
PackageDetailControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService });
|
|
1678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService, decorators: [{
|
|
1679
|
-
type: Injectable
|
|
1680
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1681
|
-
type: Optional
|
|
1682
|
-
}, {
|
|
1683
|
-
type: Inject,
|
|
1684
|
-
args: [BASE_PATH]
|
|
1685
|
-
}] }, { type: Configuration, decorators: [{
|
|
1686
|
-
type: Optional
|
|
1687
|
-
}] }]; } });
|
|
1688
|
-
|
|
1689
|
-
/**
|
|
1690
|
-
* Intellibid API
|
|
1691
|
-
* API documentation for the Intellibid platform
|
|
1692
|
-
*
|
|
1693
|
-
* OpenAPI spec version: 1.0
|
|
1694
|
-
*
|
|
1695
|
-
*
|
|
1696
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1697
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1698
|
-
* Do not edit the class manually.
|
|
1699
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
1700
|
-
class SourcePlatformMETAControllerService {
|
|
1701
|
-
constructor(httpClient, basePath, configuration) {
|
|
1702
|
-
this.httpClient = httpClient;
|
|
1703
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
1704
|
-
this.defaultHeaders = new HttpHeaders();
|
|
1705
|
-
this.configuration = new Configuration();
|
|
1706
|
-
if (basePath) {
|
|
1707
|
-
this.basePath = basePath;
|
|
1708
|
-
}
|
|
1709
|
-
if (configuration) {
|
|
1710
|
-
this.configuration = configuration;
|
|
1711
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
1712
|
-
}
|
|
1713
|
-
}
|
|
1714
|
-
/**
|
|
1715
|
-
* @param consumes string[] mime-types
|
|
1716
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1717
|
-
*/
|
|
1718
|
-
canConsumeForm(consumes) {
|
|
1719
|
-
const form = 'multipart/form-data';
|
|
1720
|
-
for (const consume of consumes) {
|
|
1721
|
-
if (form === consume) {
|
|
1722
|
-
return true;
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1725
|
-
return false;
|
|
1726
|
-
}
|
|
1727
|
-
deleteAdImage(adAccountId, hash, observe = 'body', reportProgress = false) {
|
|
1728
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
1729
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling deleteAdImage.');
|
|
1730
|
-
}
|
|
1731
|
-
if (hash === null || hash === undefined) {
|
|
1732
|
-
throw new Error('Required parameter hash was null or undefined when calling deleteAdImage.');
|
|
1733
|
-
}
|
|
1734
|
-
let headers = this.defaultHeaders;
|
|
1735
|
-
// to determine the Accept header
|
|
1736
|
-
let httpHeaderAccepts = [];
|
|
1737
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1738
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1739
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1740
|
-
}
|
|
1741
|
-
// to determine the Content-Type header
|
|
1742
|
-
const consumes = [];
|
|
1743
|
-
return this.httpClient.request('post', `${this.basePath}/api/meta/${encodeURIComponent(String(adAccountId))}/ad-image/${encodeURIComponent(String(hash))}/delete`, {
|
|
1744
|
-
withCredentials: this.configuration.withCredentials,
|
|
1745
|
-
headers: headers,
|
|
1746
|
-
observe: observe,
|
|
1747
|
-
reportProgress: reportProgress
|
|
1748
|
-
});
|
|
1749
|
-
}
|
|
1750
|
-
deleteAdVideo(adAccountId, videoId, observe = 'body', reportProgress = false) {
|
|
1751
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
1752
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling deleteAdVideo.');
|
|
1753
|
-
}
|
|
1754
|
-
if (videoId === null || videoId === undefined) {
|
|
1755
|
-
throw new Error('Required parameter videoId was null or undefined when calling deleteAdVideo.');
|
|
1756
|
-
}
|
|
1757
|
-
let headers = this.defaultHeaders;
|
|
1758
|
-
// to determine the Accept header
|
|
1759
|
-
let httpHeaderAccepts = [];
|
|
1760
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1761
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1762
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1763
|
-
}
|
|
1764
|
-
// to determine the Content-Type header
|
|
1765
|
-
const consumes = [];
|
|
1766
|
-
return this.httpClient.request('post', `${this.basePath}/api/meta/${encodeURIComponent(String(adAccountId))}/ad-video/${encodeURIComponent(String(videoId))}/delete`, {
|
|
1767
|
-
withCredentials: this.configuration.withCredentials,
|
|
1768
|
-
headers: headers,
|
|
1769
|
-
observe: observe,
|
|
1770
|
-
reportProgress: reportProgress
|
|
1771
|
-
});
|
|
1772
|
-
}
|
|
1773
|
-
getAdVideo(adAccountId, videoId, observe = 'body', reportProgress = false) {
|
|
1774
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
1775
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling getAdVideo.');
|
|
1776
|
-
}
|
|
1777
|
-
if (videoId === null || videoId === undefined) {
|
|
1778
|
-
throw new Error('Required parameter videoId was null or undefined when calling getAdVideo.');
|
|
1779
|
-
}
|
|
1780
|
-
let headers = this.defaultHeaders;
|
|
1781
|
-
// to determine the Accept header
|
|
1782
|
-
let httpHeaderAccepts = [
|
|
1783
|
-
'*/*'
|
|
1784
|
-
];
|
|
1785
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1786
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1787
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1788
|
-
}
|
|
1789
|
-
// to determine the Content-Type header
|
|
1790
|
-
const consumes = [];
|
|
1791
|
-
return this.httpClient.request('get', `${this.basePath}/api/meta/${encodeURIComponent(String(adAccountId))}/ad-video/${encodeURIComponent(String(videoId))}`, {
|
|
1792
|
-
withCredentials: this.configuration.withCredentials,
|
|
1793
|
-
headers: headers,
|
|
1794
|
-
observe: observe,
|
|
1795
|
-
reportProgress: reportProgress
|
|
1796
|
-
});
|
|
1797
|
-
}
|
|
1798
|
-
getAllAdImages(adAccountId, hashes, observe = 'body', reportProgress = false) {
|
|
1799
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
1800
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling getAllAdImages.');
|
|
1801
|
-
}
|
|
1802
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1803
|
-
if (hashes) {
|
|
1804
|
-
hashes.forEach((element) => {
|
|
1805
|
-
queryParameters = queryParameters.append('hashes', element);
|
|
1806
|
-
});
|
|
1807
|
-
}
|
|
1808
|
-
let headers = this.defaultHeaders;
|
|
1809
|
-
// to determine the Accept header
|
|
1810
|
-
let httpHeaderAccepts = [
|
|
1811
|
-
'*/*'
|
|
1812
|
-
];
|
|
1813
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1814
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1815
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1816
|
-
}
|
|
1817
|
-
// to determine the Content-Type header
|
|
1818
|
-
const consumes = [];
|
|
1819
|
-
return this.httpClient.request('get', `${this.basePath}/api/meta/${encodeURIComponent(String(adAccountId))}/ad-image`, {
|
|
1820
|
-
params: queryParameters,
|
|
1821
|
-
withCredentials: this.configuration.withCredentials,
|
|
1822
|
-
headers: headers,
|
|
1823
|
-
observe: observe,
|
|
1824
|
-
reportProgress: reportProgress
|
|
1825
|
-
});
|
|
1826
|
-
}
|
|
1827
|
-
getAllAdVideos(adAccountId, videoIds, observe = 'body', reportProgress = false) {
|
|
1828
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
1829
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling getAllAdVideos.');
|
|
1830
|
-
}
|
|
1831
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1832
|
-
if (videoIds) {
|
|
1833
|
-
videoIds.forEach((element) => {
|
|
1834
|
-
queryParameters = queryParameters.append('videoIds', element);
|
|
1835
|
-
});
|
|
1836
|
-
}
|
|
1837
|
-
let headers = this.defaultHeaders;
|
|
1838
|
-
// to determine the Accept header
|
|
1839
|
-
let httpHeaderAccepts = [
|
|
1840
|
-
'*/*'
|
|
1841
|
-
];
|
|
1842
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1843
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1844
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1845
|
-
}
|
|
1846
|
-
// to determine the Content-Type header
|
|
1847
|
-
const consumes = [];
|
|
1848
|
-
return this.httpClient.request('get', `${this.basePath}/api/meta/${encodeURIComponent(String(adAccountId))}/ad-video`, {
|
|
1849
|
-
params: queryParameters,
|
|
1850
|
-
withCredentials: this.configuration.withCredentials,
|
|
1851
|
-
headers: headers,
|
|
1852
|
-
observe: observe,
|
|
1853
|
-
reportProgress: reportProgress
|
|
1854
|
-
});
|
|
1855
|
-
}
|
|
1856
|
-
uploadAdImages1(adAccountId, files, observe = 'body', reportProgress = false) {
|
|
1857
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
1858
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling uploadAdImages1.');
|
|
1859
|
-
}
|
|
1860
|
-
if (files === null || files === undefined) {
|
|
1861
|
-
throw new Error('Required parameter files was null or undefined when calling uploadAdImages1.');
|
|
1862
|
-
}
|
|
1863
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1864
|
-
if (files) {
|
|
1865
|
-
files.forEach((element) => {
|
|
1866
|
-
queryParameters = queryParameters.append('files', element);
|
|
1867
|
-
});
|
|
1868
|
-
}
|
|
1869
|
-
let headers = this.defaultHeaders;
|
|
1870
|
-
// to determine the Accept header
|
|
1871
|
-
let httpHeaderAccepts = [
|
|
1872
|
-
'*/*'
|
|
1873
|
-
];
|
|
1874
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1875
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1876
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1877
|
-
}
|
|
1878
|
-
// to determine the Content-Type header
|
|
1879
|
-
const consumes = [];
|
|
1880
|
-
return this.httpClient.request('post', `${this.basePath}/api/meta/${encodeURIComponent(String(adAccountId))}/ad-image`, {
|
|
1881
|
-
params: queryParameters,
|
|
1882
|
-
withCredentials: this.configuration.withCredentials,
|
|
1883
|
-
headers: headers,
|
|
1884
|
-
observe: observe,
|
|
1885
|
-
reportProgress: reportProgress
|
|
1886
|
-
});
|
|
1887
|
-
}
|
|
1888
|
-
uploadAdVideos1(adAccountId, files, observe = 'body', reportProgress = false) {
|
|
1889
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
1890
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling uploadAdVideos1.');
|
|
1891
|
-
}
|
|
1892
|
-
if (files === null || files === undefined) {
|
|
1893
|
-
throw new Error('Required parameter files was null or undefined when calling uploadAdVideos1.');
|
|
1894
|
-
}
|
|
1895
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1896
|
-
if (files) {
|
|
1897
|
-
files.forEach((element) => {
|
|
1898
|
-
queryParameters = queryParameters.append('files', element);
|
|
1899
|
-
});
|
|
1900
|
-
}
|
|
1901
|
-
let headers = this.defaultHeaders;
|
|
1902
|
-
// to determine the Accept header
|
|
1903
|
-
let httpHeaderAccepts = [
|
|
1904
|
-
'*/*'
|
|
1905
|
-
];
|
|
1906
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1907
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1908
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1909
|
-
}
|
|
1910
|
-
// to determine the Content-Type header
|
|
1911
|
-
const consumes = [];
|
|
1912
|
-
return this.httpClient.request('post', `${this.basePath}/api/meta/${encodeURIComponent(String(adAccountId))}/ad-video`, {
|
|
1913
|
-
params: queryParameters,
|
|
1914
|
-
withCredentials: this.configuration.withCredentials,
|
|
1915
|
-
headers: headers,
|
|
1916
|
-
observe: observe,
|
|
1917
|
-
reportProgress: reportProgress
|
|
1918
|
-
});
|
|
1919
|
-
}
|
|
1920
|
-
}
|
|
1921
|
-
SourcePlatformMETAControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SourcePlatformMETAControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1922
|
-
SourcePlatformMETAControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SourcePlatformMETAControllerService });
|
|
1923
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SourcePlatformMETAControllerService, decorators: [{
|
|
1924
|
-
type: Injectable
|
|
1925
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1926
|
-
type: Optional
|
|
1927
|
-
}, {
|
|
1928
|
-
type: Inject,
|
|
1929
|
-
args: [BASE_PATH]
|
|
1930
|
-
}] }, { type: Configuration, decorators: [{
|
|
1931
|
-
type: Optional
|
|
1932
|
-
}] }]; } });
|
|
1933
|
-
|
|
1934
|
-
/**
|
|
1935
|
-
* Intellibid API
|
|
1936
|
-
* API documentation for the Intellibid platform
|
|
1937
|
-
*
|
|
1938
|
-
* OpenAPI spec version: 1.0
|
|
1939
|
-
*
|
|
1940
|
-
*
|
|
1941
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1942
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1943
|
-
* Do not edit the class manually.
|
|
1944
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
1945
|
-
class SourcePlatformMETADictionaryControllerService {
|
|
1946
|
-
constructor(httpClient, basePath, configuration) {
|
|
1947
|
-
this.httpClient = httpClient;
|
|
1948
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
1949
|
-
this.defaultHeaders = new HttpHeaders();
|
|
1950
|
-
this.configuration = new Configuration();
|
|
1951
|
-
if (basePath) {
|
|
1952
|
-
this.basePath = basePath;
|
|
1953
|
-
}
|
|
1954
|
-
if (configuration) {
|
|
1955
|
-
this.configuration = configuration;
|
|
1956
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
1957
|
-
}
|
|
1958
|
-
}
|
|
1959
|
-
/**
|
|
1960
|
-
* @param consumes string[] mime-types
|
|
1961
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1962
|
-
*/
|
|
1963
|
-
canConsumeForm(consumes) {
|
|
1964
|
-
const form = 'multipart/form-data';
|
|
1965
|
-
for (const consume of consumes) {
|
|
1966
|
-
if (form === consume) {
|
|
1967
|
-
return true;
|
|
1968
|
-
}
|
|
1969
|
-
}
|
|
1970
|
-
return false;
|
|
1971
|
-
}
|
|
1972
|
-
getAllMETACountries(observe = 'body', reportProgress = false) {
|
|
1973
|
-
let headers = this.defaultHeaders;
|
|
1974
|
-
// to determine the Accept header
|
|
1975
|
-
let httpHeaderAccepts = [
|
|
1976
|
-
'*/*'
|
|
1977
|
-
];
|
|
1978
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1979
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1980
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1981
|
-
}
|
|
1982
|
-
// to determine the Content-Type header
|
|
1983
|
-
const consumes = [];
|
|
1984
|
-
return this.httpClient.request('get', `${this.basePath}/api/meta/dictionary/country`, {
|
|
1985
|
-
withCredentials: this.configuration.withCredentials,
|
|
1986
|
-
headers: headers,
|
|
1987
|
-
observe: observe,
|
|
1988
|
-
reportProgress: reportProgress
|
|
1989
|
-
});
|
|
1990
|
-
}
|
|
1991
|
-
}
|
|
1992
|
-
SourcePlatformMETADictionaryControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SourcePlatformMETADictionaryControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1993
|
-
SourcePlatformMETADictionaryControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SourcePlatformMETADictionaryControllerService });
|
|
1994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SourcePlatformMETADictionaryControllerService, decorators: [{
|
|
1995
|
-
type: Injectable
|
|
1996
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1997
|
-
type: Optional
|
|
1998
|
-
}, {
|
|
1999
|
-
type: Inject,
|
|
2000
|
-
args: [BASE_PATH]
|
|
2001
|
-
}] }, { type: Configuration, decorators: [{
|
|
2002
|
-
type: Optional
|
|
2003
|
-
}] }]; } });
|
|
2004
|
-
|
|
2005
|
-
/**
|
|
2006
|
-
* Intellibid API
|
|
2007
|
-
* API documentation for the Intellibid platform
|
|
2008
|
-
*
|
|
2009
|
-
* OpenAPI spec version: 1.0
|
|
2010
|
-
*
|
|
2011
|
-
*
|
|
2012
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2013
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2014
|
-
* Do not edit the class manually.
|
|
2015
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
2016
|
-
class SourcePlatformTIKTOKControllerService {
|
|
2017
|
-
constructor(httpClient, basePath, configuration) {
|
|
2018
|
-
this.httpClient = httpClient;
|
|
2019
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
2020
|
-
this.defaultHeaders = new HttpHeaders();
|
|
2021
|
-
this.configuration = new Configuration();
|
|
2022
|
-
if (basePath) {
|
|
2023
|
-
this.basePath = basePath;
|
|
2024
|
-
}
|
|
2025
|
-
if (configuration) {
|
|
2026
|
-
this.configuration = configuration;
|
|
2027
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
2028
|
-
}
|
|
2029
|
-
}
|
|
2030
|
-
/**
|
|
2031
|
-
* @param consumes string[] mime-types
|
|
2032
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
2033
|
-
*/
|
|
2034
|
-
canConsumeForm(consumes) {
|
|
2035
|
-
const form = 'multipart/form-data';
|
|
2036
|
-
for (const consume of consumes) {
|
|
2037
|
-
if (form === consume) {
|
|
2038
|
-
return true;
|
|
2039
|
-
}
|
|
2040
|
-
}
|
|
2041
|
-
return false;
|
|
2042
|
-
}
|
|
2043
|
-
getAllAdImagesInfo(adAccountId, imageIds, observe = 'body', reportProgress = false) {
|
|
2044
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
2045
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling getAllAdImagesInfo.');
|
|
2046
|
-
}
|
|
2047
|
-
if (imageIds === null || imageIds === undefined) {
|
|
2048
|
-
throw new Error('Required parameter imageIds was null or undefined when calling getAllAdImagesInfo.');
|
|
2049
|
-
}
|
|
2050
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
2051
|
-
if (imageIds) {
|
|
2052
|
-
imageIds.forEach((element) => {
|
|
2053
|
-
queryParameters = queryParameters.append('imageIds', element);
|
|
2054
|
-
});
|
|
2055
|
-
}
|
|
2056
|
-
let headers = this.defaultHeaders;
|
|
2057
|
-
// to determine the Accept header
|
|
2058
|
-
let httpHeaderAccepts = [
|
|
2059
|
-
'*/*'
|
|
2060
|
-
];
|
|
2061
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2062
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
2063
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
2064
|
-
}
|
|
2065
|
-
// to determine the Content-Type header
|
|
2066
|
-
const consumes = [];
|
|
2067
|
-
return this.httpClient.request('get', `${this.basePath}/api/tiktok/${encodeURIComponent(String(adAccountId))}/ad-image`, {
|
|
2068
|
-
params: queryParameters,
|
|
2069
|
-
withCredentials: this.configuration.withCredentials,
|
|
2070
|
-
headers: headers,
|
|
2071
|
-
observe: observe,
|
|
2072
|
-
reportProgress: reportProgress
|
|
2073
|
-
});
|
|
2074
|
-
}
|
|
2075
|
-
getAllAdVideosInfo(adAccountId, videoIds, observe = 'body', reportProgress = false) {
|
|
2076
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
2077
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling getAllAdVideosInfo.');
|
|
2078
|
-
}
|
|
2079
|
-
if (videoIds === null || videoIds === undefined) {
|
|
2080
|
-
throw new Error('Required parameter videoIds was null or undefined when calling getAllAdVideosInfo.');
|
|
2081
|
-
}
|
|
2082
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
2083
|
-
if (videoIds) {
|
|
2084
|
-
videoIds.forEach((element) => {
|
|
2085
|
-
queryParameters = queryParameters.append('videoIds', element);
|
|
2086
|
-
});
|
|
2087
|
-
}
|
|
2088
|
-
let headers = this.defaultHeaders;
|
|
2089
|
-
// to determine the Accept header
|
|
2090
|
-
let httpHeaderAccepts = [
|
|
2091
|
-
'*/*'
|
|
2092
|
-
];
|
|
2093
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2094
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
2095
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
2096
|
-
}
|
|
2097
|
-
// to determine the Content-Type header
|
|
2098
|
-
const consumes = [];
|
|
2099
|
-
return this.httpClient.request('get', `${this.basePath}/api/tiktok/${encodeURIComponent(String(adAccountId))}/ad-video`, {
|
|
2100
|
-
params: queryParameters,
|
|
2101
|
-
withCredentials: this.configuration.withCredentials,
|
|
2102
|
-
headers: headers,
|
|
2103
|
-
observe: observe,
|
|
2104
|
-
reportProgress: reportProgress
|
|
2105
|
-
});
|
|
2106
|
-
}
|
|
2107
|
-
uploadAdImages(adAccountId, files, observe = 'body', reportProgress = false) {
|
|
2108
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
2109
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling uploadAdImages.');
|
|
2110
|
-
}
|
|
2111
|
-
if (files === null || files === undefined) {
|
|
2112
|
-
throw new Error('Required parameter files was null or undefined when calling uploadAdImages.');
|
|
2113
|
-
}
|
|
2114
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
2115
|
-
if (files) {
|
|
2116
|
-
files.forEach((element) => {
|
|
2117
|
-
queryParameters = queryParameters.append('files', element);
|
|
2118
|
-
});
|
|
2119
|
-
}
|
|
2120
|
-
let headers = this.defaultHeaders;
|
|
2121
|
-
// to determine the Accept header
|
|
2122
|
-
let httpHeaderAccepts = [
|
|
2123
|
-
'*/*'
|
|
2124
|
-
];
|
|
2125
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2126
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
2127
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
2128
|
-
}
|
|
2129
|
-
// to determine the Content-Type header
|
|
2130
|
-
const consumes = [];
|
|
2131
|
-
return this.httpClient.request('post', `${this.basePath}/api/tiktok/${encodeURIComponent(String(adAccountId))}/ad-image`, {
|
|
2132
|
-
params: queryParameters,
|
|
2133
|
-
withCredentials: this.configuration.withCredentials,
|
|
2134
|
-
headers: headers,
|
|
2135
|
-
observe: observe,
|
|
2136
|
-
reportProgress: reportProgress
|
|
2137
|
-
});
|
|
2138
|
-
}
|
|
2139
|
-
uploadAdVideos(adAccountId, files, observe = 'body', reportProgress = false) {
|
|
2140
|
-
if (adAccountId === null || adAccountId === undefined) {
|
|
2141
|
-
throw new Error('Required parameter adAccountId was null or undefined when calling uploadAdVideos.');
|
|
2142
|
-
}
|
|
2143
|
-
if (files === null || files === undefined) {
|
|
2144
|
-
throw new Error('Required parameter files was null or undefined when calling uploadAdVideos.');
|
|
2145
|
-
}
|
|
2146
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
2147
|
-
if (files) {
|
|
2148
|
-
files.forEach((element) => {
|
|
2149
|
-
queryParameters = queryParameters.append('files', element);
|
|
2150
|
-
});
|
|
2151
|
-
}
|
|
2152
|
-
let headers = this.defaultHeaders;
|
|
2153
|
-
// to determine the Accept header
|
|
2154
|
-
let httpHeaderAccepts = [
|
|
2155
|
-
'*/*'
|
|
2156
|
-
];
|
|
2157
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2158
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
2159
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
2160
|
-
}
|
|
2161
|
-
// to determine the Content-Type header
|
|
2162
|
-
const consumes = [];
|
|
2163
|
-
return this.httpClient.request('post', `${this.basePath}/api/tiktok/${encodeURIComponent(String(adAccountId))}/ad-video`, {
|
|
2164
|
-
params: queryParameters,
|
|
2165
|
-
withCredentials: this.configuration.withCredentials,
|
|
2166
|
-
headers: headers,
|
|
2167
|
-
observe: observe,
|
|
2168
|
-
reportProgress: reportProgress
|
|
2169
|
-
});
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
SourcePlatformTIKTOKControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SourcePlatformTIKTOKControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2173
|
-
SourcePlatformTIKTOKControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SourcePlatformTIKTOKControllerService });
|
|
2174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SourcePlatformTIKTOKControllerService, decorators: [{
|
|
2175
|
-
type: Injectable
|
|
2176
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2177
|
-
type: Optional
|
|
2178
|
-
}, {
|
|
2179
|
-
type: Inject,
|
|
2180
|
-
args: [BASE_PATH]
|
|
2181
|
-
}] }, { type: Configuration, decorators: [{
|
|
2182
|
-
type: Optional
|
|
2183
|
-
}] }]; } });
|
|
2184
|
-
|
|
2185
|
-
/**
|
|
2186
|
-
* Intellibid API
|
|
2187
|
-
* API documentation for the Intellibid platform
|
|
2188
|
-
*
|
|
2189
|
-
* OpenAPI spec version: 1.0
|
|
2190
|
-
*
|
|
2191
|
-
*
|
|
2192
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2193
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2194
|
-
* Do not edit the class manually.
|
|
2195
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
2196
|
-
class SourcePlatformTIKTOKDictionaryControllerService {
|
|
2197
|
-
constructor(httpClient, basePath, configuration) {
|
|
2198
|
-
this.httpClient = httpClient;
|
|
2199
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
2200
|
-
this.defaultHeaders = new HttpHeaders();
|
|
2201
|
-
this.configuration = new Configuration();
|
|
2202
|
-
if (basePath) {
|
|
2203
|
-
this.basePath = basePath;
|
|
2204
|
-
}
|
|
2205
|
-
if (configuration) {
|
|
2206
|
-
this.configuration = configuration;
|
|
2207
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
2208
|
-
}
|
|
2209
|
-
}
|
|
2210
|
-
/**
|
|
2211
|
-
* @param consumes string[] mime-types
|
|
2212
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
2213
|
-
*/
|
|
2214
|
-
canConsumeForm(consumes) {
|
|
2215
|
-
const form = 'multipart/form-data';
|
|
2216
|
-
for (const consume of consumes) {
|
|
2217
|
-
if (form === consume) {
|
|
2218
|
-
return true;
|
|
2219
|
-
}
|
|
2220
|
-
}
|
|
2221
|
-
return false;
|
|
2222
|
-
}
|
|
2223
|
-
getAllTiktokCountries(observe = 'body', reportProgress = false) {
|
|
2224
|
-
let headers = this.defaultHeaders;
|
|
2225
|
-
// to determine the Accept header
|
|
2226
|
-
let httpHeaderAccepts = [
|
|
2227
|
-
'*/*'
|
|
2228
|
-
];
|
|
2229
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2230
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
2231
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
2232
|
-
}
|
|
2233
|
-
// to determine the Content-Type header
|
|
2234
|
-
const consumes = [];
|
|
2235
|
-
return this.httpClient.request('get', `${this.basePath}/api/tiktok/dictionary/country`, {
|
|
2236
|
-
withCredentials: this.configuration.withCredentials,
|
|
2237
|
-
headers: headers,
|
|
2238
|
-
observe: observe,
|
|
2239
|
-
reportProgress: reportProgress
|
|
2240
|
-
});
|
|
2241
|
-
}
|
|
2242
|
-
}
|
|
2243
|
-
SourcePlatformTIKTOKDictionaryControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SourcePlatformTIKTOKDictionaryControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2244
|
-
SourcePlatformTIKTOKDictionaryControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SourcePlatformTIKTOKDictionaryControllerService });
|
|
2245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SourcePlatformTIKTOKDictionaryControllerService, decorators: [{
|
|
2246
|
-
type: Injectable
|
|
2247
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2248
|
-
type: Optional
|
|
2249
|
-
}, {
|
|
2250
|
-
type: Inject,
|
|
2251
|
-
args: [BASE_PATH]
|
|
2252
|
-
}] }, { type: Configuration, decorators: [{
|
|
2253
|
-
type: Optional
|
|
2254
|
-
}] }]; } });
|
|
2255
|
-
|
|
2256
|
-
/**
|
|
2257
|
-
* Intellibid API
|
|
2258
|
-
* API documentation for the Intellibid platform
|
|
2259
|
-
*
|
|
2260
|
-
* OpenAPI spec version: 1.0
|
|
2261
|
-
*
|
|
2262
|
-
*
|
|
2263
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2264
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2265
|
-
* Do not edit the class manually.
|
|
2266
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
2267
|
-
class TiktokAudienceControllerService {
|
|
2268
|
-
constructor(httpClient, basePath, configuration) {
|
|
2269
|
-
this.httpClient = httpClient;
|
|
2270
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
2271
|
-
this.defaultHeaders = new HttpHeaders();
|
|
2272
|
-
this.configuration = new Configuration();
|
|
2273
|
-
if (basePath) {
|
|
2274
|
-
this.basePath = basePath;
|
|
2275
|
-
}
|
|
2276
|
-
if (configuration) {
|
|
2277
|
-
this.configuration = configuration;
|
|
2278
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
2279
|
-
}
|
|
2280
|
-
}
|
|
2281
|
-
/**
|
|
2282
|
-
* @param consumes string[] mime-types
|
|
2283
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
2284
|
-
*/
|
|
2285
|
-
canConsumeForm(consumes) {
|
|
2286
|
-
const form = 'multipart/form-data';
|
|
2287
|
-
for (const consume of consumes) {
|
|
2288
|
-
if (form === consume) {
|
|
2289
|
-
return true;
|
|
2290
|
-
}
|
|
559
|
+
if (endDate === null || endDate === undefined) {
|
|
560
|
+
throw new Error('Required parameter endDate was null or undefined when calling getCampaignInsights.');
|
|
2291
561
|
}
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
fetchAndSaveTiktokAudiences(advertiserId, isStatic, observe = 'body', reportProgress = false) {
|
|
2295
|
-
if (advertiserId === null || advertiserId === undefined) {
|
|
2296
|
-
throw new Error('Required parameter advertiserId was null or undefined when calling fetchAndSaveTiktokAudiences.');
|
|
562
|
+
if (sourcePlatform === null || sourcePlatform === undefined) {
|
|
563
|
+
throw new Error('Required parameter sourcePlatform was null or undefined when calling getCampaignInsights.');
|
|
2297
564
|
}
|
|
2298
|
-
if (
|
|
2299
|
-
throw new Error('Required parameter
|
|
565
|
+
if (interval === null || interval === undefined) {
|
|
566
|
+
throw new Error('Required parameter interval was null or undefined when calling getCampaignInsights.');
|
|
2300
567
|
}
|
|
2301
568
|
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
2302
|
-
if (
|
|
2303
|
-
queryParameters = queryParameters.set('
|
|
2304
|
-
}
|
|
2305
|
-
if (isStatic !== undefined && isStatic !== null) {
|
|
2306
|
-
queryParameters = queryParameters.set('isStatic', isStatic);
|
|
2307
|
-
}
|
|
2308
|
-
let headers = this.defaultHeaders;
|
|
2309
|
-
// to determine the Accept header
|
|
2310
|
-
let httpHeaderAccepts = [
|
|
2311
|
-
'*/*'
|
|
2312
|
-
];
|
|
2313
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2314
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
2315
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
2316
|
-
}
|
|
2317
|
-
// to determine the Content-Type header
|
|
2318
|
-
const consumes = [];
|
|
2319
|
-
return this.httpClient.request('get', `${this.basePath}/api/saveTiktokAudiences`, {
|
|
2320
|
-
params: queryParameters,
|
|
2321
|
-
withCredentials: this.configuration.withCredentials,
|
|
2322
|
-
headers: headers,
|
|
2323
|
-
observe: observe,
|
|
2324
|
-
reportProgress: reportProgress
|
|
2325
|
-
});
|
|
2326
|
-
}
|
|
2327
|
-
}
|
|
2328
|
-
TiktokAudienceControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TiktokAudienceControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2329
|
-
TiktokAudienceControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TiktokAudienceControllerService });
|
|
2330
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TiktokAudienceControllerService, decorators: [{
|
|
2331
|
-
type: Injectable
|
|
2332
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2333
|
-
type: Optional
|
|
2334
|
-
}, {
|
|
2335
|
-
type: Inject,
|
|
2336
|
-
args: [BASE_PATH]
|
|
2337
|
-
}] }, { type: Configuration, decorators: [{
|
|
2338
|
-
type: Optional
|
|
2339
|
-
}] }]; } });
|
|
2340
|
-
|
|
2341
|
-
/**
|
|
2342
|
-
* Intellibid API
|
|
2343
|
-
* API documentation for the Intellibid platform
|
|
2344
|
-
*
|
|
2345
|
-
* OpenAPI spec version: 1.0
|
|
2346
|
-
*
|
|
2347
|
-
*
|
|
2348
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2349
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2350
|
-
* Do not edit the class manually.
|
|
2351
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
2352
|
-
class TiktokEngagementControllerService {
|
|
2353
|
-
constructor(httpClient, basePath, configuration) {
|
|
2354
|
-
this.httpClient = httpClient;
|
|
2355
|
-
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
2356
|
-
this.defaultHeaders = new HttpHeaders();
|
|
2357
|
-
this.configuration = new Configuration();
|
|
2358
|
-
if (basePath) {
|
|
2359
|
-
this.basePath = basePath;
|
|
2360
|
-
}
|
|
2361
|
-
if (configuration) {
|
|
2362
|
-
this.configuration = configuration;
|
|
2363
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
2364
|
-
}
|
|
2365
|
-
}
|
|
2366
|
-
/**
|
|
2367
|
-
* @param consumes string[] mime-types
|
|
2368
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
2369
|
-
*/
|
|
2370
|
-
canConsumeForm(consumes) {
|
|
2371
|
-
const form = 'multipart/form-data';
|
|
2372
|
-
for (const consume of consumes) {
|
|
2373
|
-
if (form === consume) {
|
|
2374
|
-
return true;
|
|
2375
|
-
}
|
|
2376
|
-
}
|
|
2377
|
-
return false;
|
|
2378
|
-
}
|
|
2379
|
-
create(body, observe = 'body', reportProgress = false) {
|
|
2380
|
-
if (body === null || body === undefined) {
|
|
2381
|
-
throw new Error('Required parameter body was null or undefined when calling create.');
|
|
2382
|
-
}
|
|
2383
|
-
let headers = this.defaultHeaders;
|
|
2384
|
-
// to determine the Accept header
|
|
2385
|
-
let httpHeaderAccepts = [
|
|
2386
|
-
'*/*'
|
|
2387
|
-
];
|
|
2388
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2389
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
2390
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
2391
|
-
}
|
|
2392
|
-
// to determine the Content-Type header
|
|
2393
|
-
const consumes = [
|
|
2394
|
-
'application/json'
|
|
2395
|
-
];
|
|
2396
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2397
|
-
if (httpContentTypeSelected != undefined) {
|
|
2398
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
2399
|
-
}
|
|
2400
|
-
return this.httpClient.request('post', `${this.basePath}/api/tiktok-engagement`, {
|
|
2401
|
-
body: body,
|
|
2402
|
-
withCredentials: this.configuration.withCredentials,
|
|
2403
|
-
headers: headers,
|
|
2404
|
-
observe: observe,
|
|
2405
|
-
reportProgress: reportProgress
|
|
2406
|
-
});
|
|
2407
|
-
}
|
|
2408
|
-
getByAdvertiserId(advertiserId, observe = 'body', reportProgress = false) {
|
|
2409
|
-
if (advertiserId === null || advertiserId === undefined) {
|
|
2410
|
-
throw new Error('Required parameter advertiserId was null or undefined when calling getByAdvertiserId.');
|
|
2411
|
-
}
|
|
2412
|
-
let headers = this.defaultHeaders;
|
|
2413
|
-
// to determine the Accept header
|
|
2414
|
-
let httpHeaderAccepts = [
|
|
2415
|
-
'*/*'
|
|
2416
|
-
];
|
|
2417
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2418
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
2419
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
569
|
+
if (startDate !== undefined && startDate !== null) {
|
|
570
|
+
queryParameters = queryParameters.set('startDate', startDate);
|
|
2420
571
|
}
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
return this.httpClient.request('get', `${this.basePath}/api/tiktok-engagement/advertiser/${encodeURIComponent(String(advertiserId))}`, {
|
|
2424
|
-
withCredentials: this.configuration.withCredentials,
|
|
2425
|
-
headers: headers,
|
|
2426
|
-
observe: observe,
|
|
2427
|
-
reportProgress: reportProgress
|
|
2428
|
-
});
|
|
2429
|
-
}
|
|
2430
|
-
update(body, id, observe = 'body', reportProgress = false) {
|
|
2431
|
-
if (body === null || body === undefined) {
|
|
2432
|
-
throw new Error('Required parameter body was null or undefined when calling update.');
|
|
572
|
+
if (endDate !== undefined && endDate !== null) {
|
|
573
|
+
queryParameters = queryParameters.set('endDate', endDate);
|
|
2433
574
|
}
|
|
2434
|
-
if (
|
|
2435
|
-
|
|
575
|
+
if (sourcePlatform !== undefined && sourcePlatform !== null) {
|
|
576
|
+
queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
|
|
577
|
+
}
|
|
578
|
+
if (interval !== undefined && interval !== null) {
|
|
579
|
+
queryParameters = queryParameters.set('interval', interval);
|
|
2436
580
|
}
|
|
2437
581
|
let headers = this.defaultHeaders;
|
|
2438
582
|
// to determine the Accept header
|
|
@@ -2444,15 +588,9 @@ class TiktokEngagementControllerService {
|
|
|
2444
588
|
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
2445
589
|
}
|
|
2446
590
|
// to determine the Content-Type header
|
|
2447
|
-
const consumes = [
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2451
|
-
if (httpContentTypeSelected != undefined) {
|
|
2452
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
2453
|
-
}
|
|
2454
|
-
return this.httpClient.request('put', `${this.basePath}/api/tiktok-engagement/${encodeURIComponent(String(id))}`, {
|
|
2455
|
-
body: body,
|
|
591
|
+
const consumes = [];
|
|
592
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign-insights`, {
|
|
593
|
+
params: queryParameters,
|
|
2456
594
|
withCredentials: this.configuration.withCredentials,
|
|
2457
595
|
headers: headers,
|
|
2458
596
|
observe: observe,
|
|
@@ -2460,9 +598,9 @@ class TiktokEngagementControllerService {
|
|
|
2460
598
|
});
|
|
2461
599
|
}
|
|
2462
600
|
}
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type:
|
|
601
|
+
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 });
|
|
602
|
+
InsightsControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService });
|
|
603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, decorators: [{
|
|
2466
604
|
type: Injectable
|
|
2467
605
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2468
606
|
type: Optional
|
|
@@ -2473,83 +611,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2473
611
|
type: Optional
|
|
2474
612
|
}] }]; } });
|
|
2475
613
|
|
|
2476
|
-
const APIS = [AdvertiserControllerService,
|
|
2477
|
-
|
|
2478
|
-
/**
|
|
2479
|
-
* Intellibid API
|
|
2480
|
-
* API documentation for the Intellibid platform
|
|
2481
|
-
*
|
|
2482
|
-
* OpenAPI spec version: 1.0
|
|
2483
|
-
*
|
|
2484
|
-
*
|
|
2485
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2486
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2487
|
-
* Do not edit the class manually.
|
|
2488
|
-
*/
|
|
2489
|
-
var AdImageResponse;
|
|
2490
|
-
(function (AdImageResponse) {
|
|
2491
|
-
AdImageResponse.StatusEnum = {
|
|
2492
|
-
ACTIVE: 'ACTIVE',
|
|
2493
|
-
DELETED: 'DELETED',
|
|
2494
|
-
INTERNAL: 'INTERNAL'
|
|
2495
|
-
};
|
|
2496
|
-
})(AdImageResponse || (AdImageResponse = {}));
|
|
2497
|
-
|
|
2498
|
-
/**
|
|
2499
|
-
* Intellibid API
|
|
2500
|
-
* API documentation for the Intellibid platform
|
|
2501
|
-
*
|
|
2502
|
-
* OpenAPI spec version: 1.0
|
|
2503
|
-
*
|
|
2504
|
-
*
|
|
2505
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2506
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2507
|
-
* Do not edit the class manually.
|
|
2508
|
-
*/
|
|
2509
|
-
var AdSetDetails;
|
|
2510
|
-
(function (AdSetDetails) {
|
|
2511
|
-
AdSetDetails.TypeEnum = {
|
|
2512
|
-
IB: 'IB',
|
|
2513
|
-
Engage: 'Engage',
|
|
2514
|
-
Default: 'Default'
|
|
2515
|
-
};
|
|
2516
|
-
})(AdSetDetails || (AdSetDetails = {}));
|
|
2517
|
-
|
|
2518
|
-
/**
|
|
2519
|
-
* Intellibid API
|
|
2520
|
-
* API documentation for the Intellibid platform
|
|
2521
|
-
*
|
|
2522
|
-
* OpenAPI spec version: 1.0
|
|
2523
|
-
*
|
|
2524
|
-
*
|
|
2525
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2526
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2527
|
-
* Do not edit the class manually.
|
|
2528
|
-
*/
|
|
2529
|
-
|
|
2530
|
-
/**
|
|
2531
|
-
* Intellibid API
|
|
2532
|
-
* API documentation for the Intellibid platform
|
|
2533
|
-
*
|
|
2534
|
-
* OpenAPI spec version: 1.0
|
|
2535
|
-
*
|
|
2536
|
-
*
|
|
2537
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2538
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2539
|
-
* Do not edit the class manually.
|
|
2540
|
-
*/
|
|
2541
|
-
|
|
2542
|
-
/**
|
|
2543
|
-
* Intellibid API
|
|
2544
|
-
* API documentation for the Intellibid platform
|
|
2545
|
-
*
|
|
2546
|
-
* OpenAPI spec version: 1.0
|
|
2547
|
-
*
|
|
2548
|
-
*
|
|
2549
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2550
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2551
|
-
* Do not edit the class manually.
|
|
2552
|
-
*/
|
|
614
|
+
const APIS = [AdvertiserControllerService, CampaignControllerService, InsightsControllerService];
|
|
2553
615
|
|
|
2554
616
|
/**
|
|
2555
617
|
* Intellibid API
|
|
@@ -2586,38 +648,19 @@ var AdSetDetails;
|
|
|
2586
648
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
2587
649
|
* Do not edit the class manually.
|
|
2588
650
|
*/
|
|
2589
|
-
var
|
|
2590
|
-
(function (
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
};
|
|
2597
|
-
CampaignResponse.SegDbTypeEnum = {
|
|
2598
|
-
SEGMENTATION: 'SEGMENTATION',
|
|
2599
|
-
COUNT: 'COUNT'
|
|
651
|
+
var CampaignChangeLogResponse;
|
|
652
|
+
(function (CampaignChangeLogResponse) {
|
|
653
|
+
CampaignChangeLogResponse.EntityChangedEnum = {
|
|
654
|
+
STATUS: 'STATUS',
|
|
655
|
+
BUDGET: 'BUDGET',
|
|
656
|
+
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
657
|
+
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
2600
658
|
};
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
RETARGETING: 'RETARGETING',
|
|
2605
|
-
DSP: 'DSP',
|
|
2606
|
-
DMP: 'DMP'
|
|
659
|
+
CampaignChangeLogResponse.StatusEnum = {
|
|
660
|
+
SUCCESS: 'SUCCESS',
|
|
661
|
+
FAILED: 'FAILED'
|
|
2607
662
|
};
|
|
2608
|
-
})(
|
|
2609
|
-
|
|
2610
|
-
/**
|
|
2611
|
-
* Intellibid API
|
|
2612
|
-
* API documentation for the Intellibid platform
|
|
2613
|
-
*
|
|
2614
|
-
* OpenAPI spec version: 1.0
|
|
2615
|
-
*
|
|
2616
|
-
*
|
|
2617
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2618
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2619
|
-
* Do not edit the class manually.
|
|
2620
|
-
*/
|
|
663
|
+
})(CampaignChangeLogResponse || (CampaignChangeLogResponse = {}));
|
|
2621
664
|
|
|
2622
665
|
/**
|
|
2623
666
|
* Intellibid API
|
|
@@ -2642,128 +685,41 @@ var CampaignResponse;
|
|
|
2642
685
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
2643
686
|
* Do not edit the class manually.
|
|
2644
687
|
*/
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
DpaCampaignResponse.StatusEnum = {
|
|
2649
|
-
DRAFT: 'DRAFT',
|
|
2650
|
-
INITIALIZED: 'INITIALIZED',
|
|
2651
|
-
RUNNING: 'RUNNING',
|
|
2652
|
-
UPDATING: 'UPDATING',
|
|
2653
|
-
PAUSED: 'PAUSED',
|
|
2654
|
-
FAILED: 'FAILED'
|
|
2655
|
-
};
|
|
2656
|
-
})(DpaCampaignResponse || (DpaCampaignResponse = {}));
|
|
2657
|
-
|
|
2658
|
-
/**
|
|
2659
|
-
* Intellibid API
|
|
2660
|
-
* API documentation for the Intellibid platform
|
|
2661
|
-
*
|
|
2662
|
-
* OpenAPI spec version: 1.0
|
|
2663
|
-
*
|
|
2664
|
-
*
|
|
2665
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2666
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2667
|
-
* Do not edit the class manually.
|
|
2668
|
-
*/
|
|
2669
|
-
var DpaEngagementChangeLogResponse;
|
|
2670
|
-
(function (DpaEngagementChangeLogResponse) {
|
|
2671
|
-
DpaEngagementChangeLogResponse.EntityChangedEnum = {
|
|
2672
|
-
STATUS: 'STATUS',
|
|
2673
|
-
BUDGET: 'BUDGET',
|
|
2674
|
-
ENGAGEMENT: 'ENGAGEMENT',
|
|
2675
|
-
MARGIN: 'MARGIN',
|
|
2676
|
-
PAYOUT: 'PAYOUT'
|
|
2677
|
-
};
|
|
2678
|
-
DpaEngagementChangeLogResponse.StatusEnum = {
|
|
2679
|
-
SUCCESS: 'SUCCESS',
|
|
2680
|
-
FAILED: 'FAILED'
|
|
2681
|
-
};
|
|
2682
|
-
})(DpaEngagementChangeLogResponse || (DpaEngagementChangeLogResponse = {}));
|
|
2683
|
-
|
|
2684
|
-
var DpaEngagementRequest;
|
|
2685
|
-
(function (DpaEngagementRequest) {
|
|
2686
|
-
DpaEngagementRequest.PayoutTypeEnum = {
|
|
2687
|
-
CPM: 'CPM',
|
|
2688
|
-
CPC: 'CPC',
|
|
2689
|
-
CPA: 'CPA',
|
|
2690
|
-
CPS: 'CPS',
|
|
2691
|
-
CPAClientAttributed: 'CPA - Client Attributed',
|
|
2692
|
-
CPSClientAttributed: 'CPS - Client Attributed',
|
|
2693
|
-
MARGIN: 'MARGIN',
|
|
2694
|
-
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
2695
|
-
};
|
|
2696
|
-
DpaEngagementRequest.SourcePlatformEnum = {
|
|
688
|
+
var CampaignRequest;
|
|
689
|
+
(function (CampaignRequest) {
|
|
690
|
+
CampaignRequest.SourcePlatformEnum = {
|
|
2697
691
|
META: 'META',
|
|
2698
|
-
GOOGLE: 'GOOGLE',
|
|
2699
692
|
TIKTOK: 'TIKTOK',
|
|
693
|
+
GOOGLE: 'GOOGLE',
|
|
2700
694
|
SNAPCHAT: 'SNAPCHAT'
|
|
2701
695
|
};
|
|
2702
|
-
|
|
696
|
+
CampaignRequest.PayoutTypeEnum = {
|
|
697
|
+
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
698
|
+
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
699
|
+
};
|
|
700
|
+
CampaignRequest.GoalEnum = {
|
|
701
|
+
COSTPERRESULT: 'COST_PER_RESULT',
|
|
702
|
+
ROAS: 'ROAS'
|
|
703
|
+
};
|
|
704
|
+
})(CampaignRequest || (CampaignRequest = {}));
|
|
2703
705
|
|
|
2704
|
-
var
|
|
2705
|
-
(function (
|
|
2706
|
-
|
|
706
|
+
var CampaignResponse;
|
|
707
|
+
(function (CampaignResponse) {
|
|
708
|
+
CampaignResponse.SourcePlatformEnum = {
|
|
2707
709
|
META: 'META',
|
|
2708
|
-
GOOGLE: 'GOOGLE',
|
|
2709
710
|
TIKTOK: 'TIKTOK',
|
|
711
|
+
GOOGLE: 'GOOGLE',
|
|
2710
712
|
SNAPCHAT: 'SNAPCHAT'
|
|
2711
713
|
};
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
VIZURY: 'VIZURY'
|
|
2715
|
-
};
|
|
2716
|
-
DpaEngagementResponse.PayoutTypeEnum = {
|
|
2717
|
-
CPM: 'CPM',
|
|
2718
|
-
CPC: 'CPC',
|
|
2719
|
-
CPA: 'CPA',
|
|
2720
|
-
CPS: 'CPS',
|
|
2721
|
-
CPAClientAttributed: 'CPA - Client Attributed',
|
|
2722
|
-
CPSClientAttributed: 'CPS - Client Attributed',
|
|
2723
|
-
MARGIN: 'MARGIN',
|
|
714
|
+
CampaignResponse.PayoutTypeEnum = {
|
|
715
|
+
DYNAMICMARGIN: 'DYNAMIC_MARGIN',
|
|
2724
716
|
PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
|
|
2725
717
|
};
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
RUNNING: 'RUNNING',
|
|
2730
|
-
UPDATING: 'UPDATING',
|
|
2731
|
-
PAUSED: 'PAUSED',
|
|
2732
|
-
FAILED: 'FAILED'
|
|
2733
|
-
};
|
|
2734
|
-
DpaEngagementResponse.TemplateEnum = {
|
|
2735
|
-
None: 'none',
|
|
2736
|
-
TextOnImage: 'text-on-image',
|
|
2737
|
-
Price: 'price',
|
|
2738
|
-
PercentageOff: 'percentage_off',
|
|
2739
|
-
StrikethroughPrice: 'strikethrough_price',
|
|
2740
|
-
ImageOverlay: 'image-overlay'
|
|
718
|
+
CampaignResponse.GoalEnum = {
|
|
719
|
+
COSTPERRESULT: 'COST_PER_RESULT',
|
|
720
|
+
ROAS: 'ROAS'
|
|
2741
721
|
};
|
|
2742
|
-
})(
|
|
2743
|
-
|
|
2744
|
-
/**
|
|
2745
|
-
* Intellibid API
|
|
2746
|
-
* API documentation for the Intellibid platform
|
|
2747
|
-
*
|
|
2748
|
-
* OpenAPI spec version: 1.0
|
|
2749
|
-
*
|
|
2750
|
-
*
|
|
2751
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2752
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2753
|
-
* Do not edit the class manually.
|
|
2754
|
-
*/
|
|
2755
|
-
|
|
2756
|
-
/**
|
|
2757
|
-
* Intellibid API
|
|
2758
|
-
* API documentation for the Intellibid platform
|
|
2759
|
-
*
|
|
2760
|
-
* OpenAPI spec version: 1.0
|
|
2761
|
-
*
|
|
2762
|
-
*
|
|
2763
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2764
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2765
|
-
* Do not edit the class manually.
|
|
2766
|
-
*/
|
|
722
|
+
})(CampaignResponse || (CampaignResponse = {}));
|
|
2767
723
|
|
|
2768
724
|
/**
|
|
2769
725
|
* Intellibid API
|
|
@@ -2788,27 +744,14 @@ var DpaEngagementResponse;
|
|
|
2788
744
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
2789
745
|
* Do not edit the class manually.
|
|
2790
746
|
*/
|
|
2791
|
-
var
|
|
2792
|
-
(function (
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
FLIGHTS: 'FLIGHTS'
|
|
747
|
+
var CampaignUpdateRequest;
|
|
748
|
+
(function (CampaignUpdateRequest) {
|
|
749
|
+
CampaignUpdateRequest.RequestTypeEnum = {
|
|
750
|
+
BUDGET: 'BUDGET',
|
|
751
|
+
MARGIN: 'MARGIN',
|
|
752
|
+
PAYOUT: 'PAYOUT'
|
|
2798
753
|
};
|
|
2799
|
-
})(
|
|
2800
|
-
|
|
2801
|
-
/**
|
|
2802
|
-
* Intellibid API
|
|
2803
|
-
* API documentation for the Intellibid platform
|
|
2804
|
-
*
|
|
2805
|
-
* OpenAPI spec version: 1.0
|
|
2806
|
-
*
|
|
2807
|
-
*
|
|
2808
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2809
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2810
|
-
* Do not edit the class manually.
|
|
2811
|
-
*/
|
|
754
|
+
})(CampaignUpdateRequest || (CampaignUpdateRequest = {}));
|
|
2812
755
|
|
|
2813
756
|
/**
|
|
2814
757
|
* Intellibid API
|
|
@@ -2834,74 +777,6 @@ var FacebookEngagementResponse;
|
|
|
2834
777
|
* Do not edit the class manually.
|
|
2835
778
|
*/
|
|
2836
779
|
|
|
2837
|
-
/**
|
|
2838
|
-
* Intellibid API
|
|
2839
|
-
* API documentation for the Intellibid platform
|
|
2840
|
-
*
|
|
2841
|
-
* OpenAPI spec version: 1.0
|
|
2842
|
-
*
|
|
2843
|
-
*
|
|
2844
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2845
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2846
|
-
* Do not edit the class manually.
|
|
2847
|
-
*/
|
|
2848
|
-
|
|
2849
|
-
/**
|
|
2850
|
-
* Intellibid API
|
|
2851
|
-
* API documentation for the Intellibid platform
|
|
2852
|
-
*
|
|
2853
|
-
* OpenAPI spec version: 1.0
|
|
2854
|
-
*
|
|
2855
|
-
*
|
|
2856
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2857
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2858
|
-
* Do not edit the class manually.
|
|
2859
|
-
*/
|
|
2860
|
-
|
|
2861
|
-
/**
|
|
2862
|
-
* Intellibid API
|
|
2863
|
-
* API documentation for the Intellibid platform
|
|
2864
|
-
*
|
|
2865
|
-
* OpenAPI spec version: 1.0
|
|
2866
|
-
*
|
|
2867
|
-
*
|
|
2868
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2869
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2870
|
-
* Do not edit the class manually.
|
|
2871
|
-
*/
|
|
2872
|
-
|
|
2873
|
-
/**
|
|
2874
|
-
* Intellibid API
|
|
2875
|
-
* API documentation for the Intellibid platform
|
|
2876
|
-
*
|
|
2877
|
-
* OpenAPI spec version: 1.0
|
|
2878
|
-
*
|
|
2879
|
-
*
|
|
2880
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2881
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2882
|
-
* Do not edit the class manually.
|
|
2883
|
-
*/
|
|
2884
|
-
|
|
2885
|
-
/**
|
|
2886
|
-
* Intellibid API
|
|
2887
|
-
* API documentation for the Intellibid platform
|
|
2888
|
-
*
|
|
2889
|
-
* OpenAPI spec version: 1.0
|
|
2890
|
-
*
|
|
2891
|
-
*
|
|
2892
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2893
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
2894
|
-
* Do not edit the class manually.
|
|
2895
|
-
*/
|
|
2896
|
-
var UpdateRequest;
|
|
2897
|
-
(function (UpdateRequest) {
|
|
2898
|
-
UpdateRequest.RequestTypeEnum = {
|
|
2899
|
-
BUDGET: 'BUDGET',
|
|
2900
|
-
MARGIN: 'MARGIN',
|
|
2901
|
-
PAYOUT: 'PAYOUT'
|
|
2902
|
-
};
|
|
2903
|
-
})(UpdateRequest || (UpdateRequest = {}));
|
|
2904
|
-
|
|
2905
780
|
class ApiModule {
|
|
2906
781
|
static forRoot(configurationFactory) {
|
|
2907
782
|
return {
|
|
@@ -2923,21 +798,8 @@ ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2
|
|
|
2923
798
|
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
|
|
2924
799
|
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
|
|
2925
800
|
AdvertiserControllerService,
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
DpaCampaignControllerService,
|
|
2929
|
-
DpaEngagementControllerService,
|
|
2930
|
-
FacebookAdImageControllerService,
|
|
2931
|
-
FacebookAdVideoControllerService,
|
|
2932
|
-
FacebookEngagementControllerService,
|
|
2933
|
-
MobileAppDetailControllerService,
|
|
2934
|
-
PackageDetailControllerService,
|
|
2935
|
-
SourcePlatformMETAControllerService,
|
|
2936
|
-
SourcePlatformMETADictionaryControllerService,
|
|
2937
|
-
SourcePlatformTIKTOKControllerService,
|
|
2938
|
-
SourcePlatformTIKTOKDictionaryControllerService,
|
|
2939
|
-
TiktokAudienceControllerService,
|
|
2940
|
-
TiktokEngagementControllerService
|
|
801
|
+
CampaignControllerService,
|
|
802
|
+
InsightsControllerService
|
|
2941
803
|
] });
|
|
2942
804
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
|
|
2943
805
|
type: NgModule,
|
|
@@ -2947,21 +809,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2947
809
|
exports: [],
|
|
2948
810
|
providers: [
|
|
2949
811
|
AdvertiserControllerService,
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
DpaCampaignControllerService,
|
|
2953
|
-
DpaEngagementControllerService,
|
|
2954
|
-
FacebookAdImageControllerService,
|
|
2955
|
-
FacebookAdVideoControllerService,
|
|
2956
|
-
FacebookEngagementControllerService,
|
|
2957
|
-
MobileAppDetailControllerService,
|
|
2958
|
-
PackageDetailControllerService,
|
|
2959
|
-
SourcePlatformMETAControllerService,
|
|
2960
|
-
SourcePlatformMETADictionaryControllerService,
|
|
2961
|
-
SourcePlatformTIKTOKControllerService,
|
|
2962
|
-
SourcePlatformTIKTOKDictionaryControllerService,
|
|
2963
|
-
TiktokAudienceControllerService,
|
|
2964
|
-
TiktokEngagementControllerService
|
|
812
|
+
CampaignControllerService,
|
|
813
|
+
InsightsControllerService
|
|
2965
814
|
]
|
|
2966
815
|
}]
|
|
2967
816
|
}], ctorParameters: function () { return [{ type: ApiModule, decorators: [{
|
|
@@ -2976,5 +825,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2976
825
|
* Generated bundle index. Do not edit.
|
|
2977
826
|
*/
|
|
2978
827
|
|
|
2979
|
-
export { APIS,
|
|
828
|
+
export { APIS, AdvertiserControllerService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CampaignChangeLogResponse, CampaignControllerService, CampaignRequest, CampaignResponse, CampaignUpdateRequest, Configuration, InsightsControllerService };
|
|
2980
829
|
//# sourceMappingURL=revxui-intellibid-client-ts.mjs.map
|