@revxui/intellibid-client-ts 1.0.33 → 1.0.35

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 (31) hide show
  1. package/README.md +2 -2
  2. package/api/api.d.ts +3 -1
  3. package/api/dpaEngagementController.service.d.ts +12 -0
  4. package/api/facebookEngagementController.service.d.ts +4 -3
  5. package/api/tiktokAudienceController.service.d.ts +35 -0
  6. package/esm2020/api/api.mjs +4 -2
  7. package/esm2020/api/dpaEngagementController.service.mjs +33 -1
  8. package/esm2020/api/facebookEngagementController.service.mjs +5 -2
  9. package/esm2020/api/tiktokAudienceController.service.mjs +93 -0
  10. package/esm2020/api.module.mjs +4 -1
  11. package/esm2020/model/attributionSettings.mjs +13 -0
  12. package/esm2020/model/dpaEngagementChangeLogResponse.mjs +3 -2
  13. package/esm2020/model/dpaEngagementRequest.mjs +11 -1
  14. package/esm2020/model/dpaEngagementResponse.mjs +3 -2
  15. package/esm2020/model/facebookEngagementRequest.mjs +1 -1
  16. package/esm2020/model/facebookEngagementResponse.mjs +1 -1
  17. package/esm2020/model/models.mjs +3 -1
  18. package/esm2020/model/updatePayoutRequest.mjs +13 -0
  19. package/fesm2015/revxui-intellibid-client-ts.mjs +141 -5
  20. package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
  21. package/fesm2020/revxui-intellibid-client-ts.mjs +163 -5
  22. package/fesm2020/revxui-intellibid-client-ts.mjs.map +1 -1
  23. package/model/attributionSettings.d.ts +16 -0
  24. package/model/dpaEngagementChangeLogResponse.d.ts +2 -1
  25. package/model/dpaEngagementRequest.d.ts +16 -0
  26. package/model/dpaEngagementResponse.d.ts +5 -1
  27. package/model/facebookEngagementRequest.d.ts +1 -0
  28. package/model/facebookEngagementResponse.d.ts +1 -0
  29. package/model/models.d.ts +2 -0
  30. package/model/updatePayoutRequest.d.ts +14 -0
  31. package/package.json +1 -1
@@ -949,6 +949,38 @@ class DpaEngagementControllerService {
949
949
  reportProgress: reportProgress
950
950
  });
951
951
  }
952
+ updatePayoutValue(body, id, observe = 'body', reportProgress = false) {
953
+ if (body === null || body === undefined) {
954
+ throw new Error('Required parameter body was null or undefined when calling updatePayoutValue.');
955
+ }
956
+ if (id === null || id === undefined) {
957
+ throw new Error('Required parameter id was null or undefined when calling updatePayoutValue.');
958
+ }
959
+ let headers = this.defaultHeaders;
960
+ // to determine the Accept header
961
+ let httpHeaderAccepts = [
962
+ '*/*'
963
+ ];
964
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
965
+ if (httpHeaderAcceptSelected != undefined) {
966
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
967
+ }
968
+ // to determine the Content-Type header
969
+ const consumes = [
970
+ 'application/json'
971
+ ];
972
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
973
+ if (httpContentTypeSelected != undefined) {
974
+ headers = headers.set('Content-Type', httpContentTypeSelected);
975
+ }
976
+ return this.httpClient.request('post', `${this.basePath}/api/dpa-engagement/${encodeURIComponent(String(id))}/payoutValue`, {
977
+ body: body,
978
+ withCredentials: this.configuration.withCredentials,
979
+ headers: headers,
980
+ observe: observe,
981
+ reportProgress: reportProgress
982
+ });
983
+ }
952
984
  }
953
985
  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 });
954
986
  DpaEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaEngagementControllerService });
@@ -1336,7 +1368,7 @@ class FacebookEngagementControllerService {
1336
1368
  reportProgress: reportProgress
1337
1369
  });
1338
1370
  }
1339
- getAllFacebookEngagements(id, campaignId, facebookAccountId, facebookFanPageId, facebookCatalogId, facebookCatalogType, instagramActorId, facebookPixelId, facebookAppId, facebookProductSetId, tosAccepted, eventSourceGroupId, audienceDsdo, page, size, sort, observe = 'body', reportProgress = false) {
1371
+ getAllFacebookEngagements(id, campaignId, facebookAccountId, facebookFanPageId, facebookCatalogId, facebookCatalogType, instagramActorId, facebookPixelId, facebookAppId, facebookProductSetId, tosAccepted, eventSourceGroupId, audienceDsdo, businessManagerId, page, size, sort, observe = 'body', reportProgress = false) {
1340
1372
  let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
1341
1373
  if (id !== undefined && id !== null) {
1342
1374
  queryParameters = queryParameters.set('id', id);
@@ -1377,6 +1409,9 @@ class FacebookEngagementControllerService {
1377
1409
  if (audienceDsdo !== undefined && audienceDsdo !== null) {
1378
1410
  queryParameters = queryParameters.set('audienceDsdo', audienceDsdo);
1379
1411
  }
1412
+ if (businessManagerId !== undefined && businessManagerId !== null) {
1413
+ queryParameters = queryParameters.set('businessManagerId', businessManagerId);
1414
+ }
1380
1415
  if (page !== undefined && page !== null) {
1381
1416
  queryParameters = queryParameters.set('page', page);
1382
1417
  }
@@ -2310,6 +2345,93 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2310
2345
  }] }];
2311
2346
  } });
2312
2347
 
2348
+ /**
2349
+ * Intellibid API
2350
+ * API documentation for the Intellibid platform
2351
+ *
2352
+ * OpenAPI spec version: 1.0
2353
+ *
2354
+ *
2355
+ * NOTE: This class is auto generated by the swagger code generator program.
2356
+ * https://github.com/swagger-api/swagger-codegen.git
2357
+ * Do not edit the class manually.
2358
+ */ /* tslint:disable:no-unused-variable member-ordering */
2359
+ class TiktokAudienceControllerService {
2360
+ constructor(httpClient, basePath, configuration) {
2361
+ this.httpClient = httpClient;
2362
+ this.basePath = 'http://dev1-intellibid-svc.revx.io';
2363
+ this.defaultHeaders = new HttpHeaders();
2364
+ this.configuration = new Configuration();
2365
+ if (basePath) {
2366
+ this.basePath = basePath;
2367
+ }
2368
+ if (configuration) {
2369
+ this.configuration = configuration;
2370
+ this.basePath = basePath || configuration.basePath || this.basePath;
2371
+ }
2372
+ }
2373
+ /**
2374
+ * @param consumes string[] mime-types
2375
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
2376
+ */
2377
+ canConsumeForm(consumes) {
2378
+ const form = 'multipart/form-data';
2379
+ for (const consume of consumes) {
2380
+ if (form === consume) {
2381
+ return true;
2382
+ }
2383
+ }
2384
+ return false;
2385
+ }
2386
+ fetchAndSaveTiktokAudiences(advertiserId, isStatic, observe = 'body', reportProgress = false) {
2387
+ if (advertiserId === null || advertiserId === undefined) {
2388
+ throw new Error('Required parameter advertiserId was null or undefined when calling fetchAndSaveTiktokAudiences.');
2389
+ }
2390
+ if (isStatic === null || isStatic === undefined) {
2391
+ throw new Error('Required parameter isStatic was null or undefined when calling fetchAndSaveTiktokAudiences.');
2392
+ }
2393
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
2394
+ if (advertiserId !== undefined && advertiserId !== null) {
2395
+ queryParameters = queryParameters.set('advertiserId', advertiserId);
2396
+ }
2397
+ if (isStatic !== undefined && isStatic !== null) {
2398
+ queryParameters = queryParameters.set('isStatic', isStatic);
2399
+ }
2400
+ let headers = this.defaultHeaders;
2401
+ // to determine the Accept header
2402
+ let httpHeaderAccepts = [
2403
+ '*/*'
2404
+ ];
2405
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2406
+ if (httpHeaderAcceptSelected != undefined) {
2407
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
2408
+ }
2409
+ // to determine the Content-Type header
2410
+ const consumes = [];
2411
+ return this.httpClient.request('get', `${this.basePath}/api/saveTiktokAudiences`, {
2412
+ params: queryParameters,
2413
+ withCredentials: this.configuration.withCredentials,
2414
+ headers: headers,
2415
+ observe: observe,
2416
+ reportProgress: reportProgress
2417
+ });
2418
+ }
2419
+ }
2420
+ 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 });
2421
+ TiktokAudienceControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TiktokAudienceControllerService });
2422
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TiktokAudienceControllerService, decorators: [{
2423
+ type: Injectable
2424
+ }], ctorParameters: function () {
2425
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2426
+ type: Optional
2427
+ }, {
2428
+ type: Inject,
2429
+ args: [BASE_PATH]
2430
+ }] }, { type: Configuration, decorators: [{
2431
+ type: Optional
2432
+ }] }];
2433
+ } });
2434
+
2313
2435
  /**
2314
2436
  * Intellibid API
2315
2437
  * API documentation for the Intellibid platform
@@ -2447,7 +2569,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2447
2569
  }] }];
2448
2570
  } });
2449
2571
 
2450
- const APIS = [AdvertiserControllerService, BusinessGeoControllerService, CampaignInsightsControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookAdImageControllerService, FacebookAdVideoControllerService, FacebookEngagementControllerService, MobileAppDetailControllerService, PackageDetailControllerService, SourcePlatformMETAControllerService, SourcePlatformMETADictionaryControllerService, SourcePlatformTIKTOKControllerService, SourcePlatformTIKTOKDictionaryControllerService, TiktokEngagementControllerService];
2572
+ const APIS = [AdvertiserControllerService, BusinessGeoControllerService, CampaignInsightsControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookAdImageControllerService, FacebookAdVideoControllerService, FacebookEngagementControllerService, MobileAppDetailControllerService, PackageDetailControllerService, SourcePlatformMETAControllerService, SourcePlatformMETADictionaryControllerService, SourcePlatformTIKTOKControllerService, SourcePlatformTIKTOKDictionaryControllerService, TiktokAudienceControllerService, TiktokEngagementControllerService];
2451
2573
 
2452
2574
  /**
2453
2575
  * Intellibid API
@@ -2550,7 +2672,8 @@ var DpaEngagementChangeLogResponse;
2550
2672
  STATUS: 'STATUS',
2551
2673
  BUDGET: 'BUDGET',
2552
2674
  ENGAGEMENT: 'ENGAGEMENT',
2553
- MARGIN: 'MARGIN'
2675
+ MARGIN: 'MARGIN',
2676
+ PAYOUT: 'PAYOUT'
2554
2677
  };
2555
2678
  DpaEngagementChangeLogResponse.StatusEnum = {
2556
2679
  SUCCESS: 'SUCCESS',
@@ -2560,6 +2683,16 @@ var DpaEngagementChangeLogResponse;
2560
2683
 
2561
2684
  var DpaEngagementRequest;
2562
2685
  (function (DpaEngagementRequest) {
2686
+ DpaEngagementRequest.PayoutTypeEnum = {
2687
+ CPM: 'CPM',
2688
+ CPC: 'CPC',
2689
+ CPA: 'CPA',
2690
+ CPS: 'CPS',
2691
+ CPAClientAttributed: 'CPA - Client Attributed',
2692
+ CPSClientAttributed: 'CPS - Client Attributed',
2693
+ MARGIN: 'MARGIN',
2694
+ PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
2695
+ };
2563
2696
  DpaEngagementRequest.SourcePlatformEnum = {
2564
2697
  META: 'META',
2565
2698
  GOOGLE: 'GOOGLE',
@@ -2587,7 +2720,8 @@ var DpaEngagementResponse;
2587
2720
  CPS: 'CPS',
2588
2721
  CPAClientAttributed: 'CPA - Client Attributed',
2589
2722
  CPSClientAttributed: 'CPS - Client Attributed',
2590
- MARGIN: 'MARGIN'
2723
+ MARGIN: 'MARGIN',
2724
+ PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
2591
2725
  };
2592
2726
  DpaEngagementResponse.StatusEnum = {
2593
2727
  DRAFT: 'DRAFT',
@@ -2662,6 +2796,7 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
2662
2796
  SourcePlatformMETADictionaryControllerService,
2663
2797
  SourcePlatformTIKTOKControllerService,
2664
2798
  SourcePlatformTIKTOKDictionaryControllerService,
2799
+ TiktokAudienceControllerService,
2665
2800
  TiktokEngagementControllerService
2666
2801
  ] });
2667
2802
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
@@ -2685,6 +2820,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2685
2820
  SourcePlatformMETADictionaryControllerService,
2686
2821
  SourcePlatformTIKTOKControllerService,
2687
2822
  SourcePlatformTIKTOKDictionaryControllerService,
2823
+ TiktokAudienceControllerService,
2688
2824
  TiktokEngagementControllerService
2689
2825
  ]
2690
2826
  }]
@@ -2702,5 +2838,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2702
2838
  * Generated bundle index. Do not edit.
2703
2839
  */
2704
2840
 
2705
- 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 };
2841
+ 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 };
2706
2842
  //# sourceMappingURL=revxui-intellibid-client-ts.mjs.map