@revxui/intellibid-client-ts 1.0.30 → 1.0.31

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.
@@ -2101,6 +2101,38 @@ class SourcePlatformTIKTOKControllerService {
2101
2101
  reportProgress: reportProgress
2102
2102
  });
2103
2103
  }
2104
+ getAllAdVideosInfo(adAccountId, videoIds, observe = 'body', reportProgress = false) {
2105
+ if (adAccountId === null || adAccountId === undefined) {
2106
+ throw new Error('Required parameter adAccountId was null or undefined when calling getAllAdVideosInfo.');
2107
+ }
2108
+ if (videoIds === null || videoIds === undefined) {
2109
+ throw new Error('Required parameter videoIds was null or undefined when calling getAllAdVideosInfo.');
2110
+ }
2111
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
2112
+ if (videoIds) {
2113
+ videoIds.forEach((element) => {
2114
+ queryParameters = queryParameters.append('videoIds', element);
2115
+ });
2116
+ }
2117
+ let headers = this.defaultHeaders;
2118
+ // to determine the Accept header
2119
+ let httpHeaderAccepts = [
2120
+ '*/*'
2121
+ ];
2122
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2123
+ if (httpHeaderAcceptSelected != undefined) {
2124
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
2125
+ }
2126
+ // to determine the Content-Type header
2127
+ const consumes = [];
2128
+ return this.httpClient.request('get', `${this.basePath}/api/tiktok/${encodeURIComponent(String(adAccountId))}/ad-video`, {
2129
+ params: queryParameters,
2130
+ withCredentials: this.configuration.withCredentials,
2131
+ headers: headers,
2132
+ observe: observe,
2133
+ reportProgress: reportProgress
2134
+ });
2135
+ }
2104
2136
  uploadAdImages(adAccountId, files, observe = 'body', reportProgress = false) {
2105
2137
  if (adAccountId === null || adAccountId === undefined) {
2106
2138
  throw new Error('Required parameter adAccountId was null or undefined when calling uploadAdImages.');
@@ -2261,7 +2293,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2261
2293
  * https://github.com/swagger-api/swagger-codegen.git
2262
2294
  * Do not edit the class manually.
2263
2295
  */ /* tslint:disable:no-unused-variable member-ordering */
2264
- class TiktokDpaEngagementControllerService {
2296
+ class TiktokEngagementControllerService {
2265
2297
  constructor(httpClient, basePath, configuration) {
2266
2298
  this.httpClient = httpClient;
2267
2299
  this.basePath = 'http://dev1-intellibid-svc.revx.io';
@@ -2288,9 +2320,63 @@ class TiktokDpaEngagementControllerService {
2288
2320
  }
2289
2321
  return false;
2290
2322
  }
2291
- createDpaEngagement1(body, observe = 'body', reportProgress = false) {
2323
+ create(body, observe = 'body', reportProgress = false) {
2292
2324
  if (body === null || body === undefined) {
2293
- throw new Error('Required parameter body was null or undefined when calling createDpaEngagement1.');
2325
+ throw new Error('Required parameter body was null or undefined when calling create.');
2326
+ }
2327
+ let headers = this.defaultHeaders;
2328
+ // to determine the Accept header
2329
+ let httpHeaderAccepts = [
2330
+ '*/*'
2331
+ ];
2332
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2333
+ if (httpHeaderAcceptSelected != undefined) {
2334
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
2335
+ }
2336
+ // to determine the Content-Type header
2337
+ const consumes = [
2338
+ 'application/json'
2339
+ ];
2340
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2341
+ if (httpContentTypeSelected != undefined) {
2342
+ headers = headers.set('Content-Type', httpContentTypeSelected);
2343
+ }
2344
+ return this.httpClient.request('post', `${this.basePath}/api/tiktok-engagement`, {
2345
+ body: body,
2346
+ withCredentials: this.configuration.withCredentials,
2347
+ headers: headers,
2348
+ observe: observe,
2349
+ reportProgress: reportProgress
2350
+ });
2351
+ }
2352
+ getByAdvertiserId(advertiserId, observe = 'body', reportProgress = false) {
2353
+ if (advertiserId === null || advertiserId === undefined) {
2354
+ throw new Error('Required parameter advertiserId was null or undefined when calling getByAdvertiserId.');
2355
+ }
2356
+ let headers = this.defaultHeaders;
2357
+ // to determine the Accept header
2358
+ let httpHeaderAccepts = [
2359
+ '*/*'
2360
+ ];
2361
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2362
+ if (httpHeaderAcceptSelected != undefined) {
2363
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
2364
+ }
2365
+ // to determine the Content-Type header
2366
+ const consumes = [];
2367
+ return this.httpClient.request('get', `${this.basePath}/api/tiktok-engagement/advertiser/${encodeURIComponent(String(advertiserId))}`, {
2368
+ withCredentials: this.configuration.withCredentials,
2369
+ headers: headers,
2370
+ observe: observe,
2371
+ reportProgress: reportProgress
2372
+ });
2373
+ }
2374
+ update(body, id, observe = 'body', reportProgress = false) {
2375
+ if (body === null || body === undefined) {
2376
+ throw new Error('Required parameter body was null or undefined when calling update.');
2377
+ }
2378
+ if (id === null || id === undefined) {
2379
+ throw new Error('Required parameter id was null or undefined when calling update.');
2294
2380
  }
2295
2381
  let headers = this.defaultHeaders;
2296
2382
  // to determine the Accept header
@@ -2309,7 +2395,7 @@ class TiktokDpaEngagementControllerService {
2309
2395
  if (httpContentTypeSelected != undefined) {
2310
2396
  headers = headers.set('Content-Type', httpContentTypeSelected);
2311
2397
  }
2312
- return this.httpClient.request('post', `${this.basePath}/api/dpa-engagement/tiktok`, {
2398
+ return this.httpClient.request('put', `${this.basePath}/api/tiktok-engagement/${encodeURIComponent(String(id))}`, {
2313
2399
  body: body,
2314
2400
  withCredentials: this.configuration.withCredentials,
2315
2401
  headers: headers,
@@ -2318,9 +2404,9 @@ class TiktokDpaEngagementControllerService {
2318
2404
  });
2319
2405
  }
2320
2406
  }
2321
- TiktokDpaEngagementControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TiktokDpaEngagementControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2322
- TiktokDpaEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TiktokDpaEngagementControllerService });
2323
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TiktokDpaEngagementControllerService, decorators: [{
2407
+ 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 });
2408
+ TiktokEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TiktokEngagementControllerService });
2409
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TiktokEngagementControllerService, decorators: [{
2324
2410
  type: Injectable
2325
2411
  }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2326
2412
  type: Optional
@@ -2331,7 +2417,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2331
2417
  type: Optional
2332
2418
  }] }]; } });
2333
2419
 
2334
- const APIS = [AdvertiserControllerService, BusinessGeoControllerService, CampaignInsightsControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookAdImageControllerService, FacebookAdVideoControllerService, FacebookEngagementControllerService, MobileAppDetailControllerService, PackageDetailControllerService, SourcePlatformMETAControllerService, SourcePlatformMETADictionaryControllerService, SourcePlatformTIKTOKControllerService, SourcePlatformTIKTOKDictionaryControllerService, TiktokDpaEngagementControllerService];
2420
+ const APIS = [AdvertiserControllerService, BusinessGeoControllerService, CampaignInsightsControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookAdImageControllerService, FacebookAdVideoControllerService, FacebookEngagementControllerService, MobileAppDetailControllerService, PackageDetailControllerService, SourcePlatformMETAControllerService, SourcePlatformMETADictionaryControllerService, SourcePlatformTIKTOKControllerService, SourcePlatformTIKTOKDictionaryControllerService, TiktokEngagementControllerService];
2335
2421
 
2336
2422
  /**
2337
2423
  * Intellibid API
@@ -2762,7 +2848,7 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
2762
2848
  SourcePlatformMETADictionaryControllerService,
2763
2849
  SourcePlatformTIKTOKControllerService,
2764
2850
  SourcePlatformTIKTOKDictionaryControllerService,
2765
- TiktokDpaEngagementControllerService
2851
+ TiktokEngagementControllerService
2766
2852
  ] });
2767
2853
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
2768
2854
  type: NgModule,
@@ -2785,7 +2871,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2785
2871
  SourcePlatformMETADictionaryControllerService,
2786
2872
  SourcePlatformTIKTOKControllerService,
2787
2873
  SourcePlatformTIKTOKDictionaryControllerService,
2788
- TiktokDpaEngagementControllerService
2874
+ TiktokEngagementControllerService
2789
2875
  ]
2790
2876
  }]
2791
2877
  }], ctorParameters: function () { return [{ type: ApiModule, decorators: [{
@@ -2800,5 +2886,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2800
2886
  * Generated bundle index. Do not edit.
2801
2887
  */
2802
2888
 
2803
- 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, TiktokDpaEngagementControllerService };
2889
+ 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, TiktokEngagementControllerService };
2804
2890
  //# sourceMappingURL=revxui-intellibid-client-ts.mjs.map