@revxui/intellibid-client-ts 1.0.46 → 1.0.51

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