@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
@@ -941,6 +941,38 @@ class DpaEngagementControllerService {
941
941
  reportProgress: reportProgress
942
942
  });
943
943
  }
944
+ updatePayoutValue(body, id, observe = 'body', reportProgress = false) {
945
+ if (body === null || body === undefined) {
946
+ throw new Error('Required parameter body was null or undefined when calling updatePayoutValue.');
947
+ }
948
+ if (id === null || id === undefined) {
949
+ throw new Error('Required parameter id was null or undefined when calling updatePayoutValue.');
950
+ }
951
+ let headers = this.defaultHeaders;
952
+ // to determine the Accept header
953
+ let httpHeaderAccepts = [
954
+ '*/*'
955
+ ];
956
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
957
+ if (httpHeaderAcceptSelected != undefined) {
958
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
959
+ }
960
+ // to determine the Content-Type header
961
+ const consumes = [
962
+ 'application/json'
963
+ ];
964
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
965
+ if (httpContentTypeSelected != undefined) {
966
+ headers = headers.set('Content-Type', httpContentTypeSelected);
967
+ }
968
+ return this.httpClient.request('post', `${this.basePath}/api/dpa-engagement/${encodeURIComponent(String(id))}/payoutValue`, {
969
+ body: body,
970
+ withCredentials: this.configuration.withCredentials,
971
+ headers: headers,
972
+ observe: observe,
973
+ reportProgress: reportProgress
974
+ });
975
+ }
944
976
  }
945
977
  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 });
946
978
  DpaEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaEngagementControllerService });
@@ -1322,7 +1354,7 @@ class FacebookEngagementControllerService {
1322
1354
  reportProgress: reportProgress
1323
1355
  });
1324
1356
  }
1325
- getAllFacebookEngagements(id, campaignId, facebookAccountId, facebookFanPageId, facebookCatalogId, facebookCatalogType, instagramActorId, facebookPixelId, facebookAppId, facebookProductSetId, tosAccepted, eventSourceGroupId, audienceDsdo, page, size, sort, observe = 'body', reportProgress = false) {
1357
+ getAllFacebookEngagements(id, campaignId, facebookAccountId, facebookFanPageId, facebookCatalogId, facebookCatalogType, instagramActorId, facebookPixelId, facebookAppId, facebookProductSetId, tosAccepted, eventSourceGroupId, audienceDsdo, businessManagerId, page, size, sort, observe = 'body', reportProgress = false) {
1326
1358
  let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
1327
1359
  if (id !== undefined && id !== null) {
1328
1360
  queryParameters = queryParameters.set('id', id);
@@ -1363,6 +1395,9 @@ class FacebookEngagementControllerService {
1363
1395
  if (audienceDsdo !== undefined && audienceDsdo !== null) {
1364
1396
  queryParameters = queryParameters.set('audienceDsdo', audienceDsdo);
1365
1397
  }
1398
+ if (businessManagerId !== undefined && businessManagerId !== null) {
1399
+ queryParameters = queryParameters.set('businessManagerId', businessManagerId);
1400
+ }
1366
1401
  if (page !== undefined && page !== null) {
1367
1402
  queryParameters = queryParameters.set('page', page);
1368
1403
  }
@@ -2282,6 +2317,91 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2282
2317
  type: Optional
2283
2318
  }] }]; } });
2284
2319
 
2320
+ /**
2321
+ * Intellibid API
2322
+ * API documentation for the Intellibid platform
2323
+ *
2324
+ * OpenAPI spec version: 1.0
2325
+ *
2326
+ *
2327
+ * NOTE: This class is auto generated by the swagger code generator program.
2328
+ * https://github.com/swagger-api/swagger-codegen.git
2329
+ * Do not edit the class manually.
2330
+ */ /* tslint:disable:no-unused-variable member-ordering */
2331
+ class TiktokAudienceControllerService {
2332
+ constructor(httpClient, basePath, configuration) {
2333
+ this.httpClient = httpClient;
2334
+ this.basePath = 'http://dev1-intellibid-svc.revx.io';
2335
+ this.defaultHeaders = new HttpHeaders();
2336
+ this.configuration = new Configuration();
2337
+ if (basePath) {
2338
+ this.basePath = basePath;
2339
+ }
2340
+ if (configuration) {
2341
+ this.configuration = configuration;
2342
+ this.basePath = basePath || configuration.basePath || this.basePath;
2343
+ }
2344
+ }
2345
+ /**
2346
+ * @param consumes string[] mime-types
2347
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
2348
+ */
2349
+ canConsumeForm(consumes) {
2350
+ const form = 'multipart/form-data';
2351
+ for (const consume of consumes) {
2352
+ if (form === consume) {
2353
+ return true;
2354
+ }
2355
+ }
2356
+ return false;
2357
+ }
2358
+ fetchAndSaveTiktokAudiences(advertiserId, isStatic, observe = 'body', reportProgress = false) {
2359
+ if (advertiserId === null || advertiserId === undefined) {
2360
+ throw new Error('Required parameter advertiserId was null or undefined when calling fetchAndSaveTiktokAudiences.');
2361
+ }
2362
+ if (isStatic === null || isStatic === undefined) {
2363
+ throw new Error('Required parameter isStatic was null or undefined when calling fetchAndSaveTiktokAudiences.');
2364
+ }
2365
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
2366
+ if (advertiserId !== undefined && advertiserId !== null) {
2367
+ queryParameters = queryParameters.set('advertiserId', advertiserId);
2368
+ }
2369
+ if (isStatic !== undefined && isStatic !== null) {
2370
+ queryParameters = queryParameters.set('isStatic', isStatic);
2371
+ }
2372
+ let headers = this.defaultHeaders;
2373
+ // to determine the Accept header
2374
+ let httpHeaderAccepts = [
2375
+ '*/*'
2376
+ ];
2377
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2378
+ if (httpHeaderAcceptSelected != undefined) {
2379
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
2380
+ }
2381
+ // to determine the Content-Type header
2382
+ const consumes = [];
2383
+ return this.httpClient.request('get', `${this.basePath}/api/saveTiktokAudiences`, {
2384
+ params: queryParameters,
2385
+ withCredentials: this.configuration.withCredentials,
2386
+ headers: headers,
2387
+ observe: observe,
2388
+ reportProgress: reportProgress
2389
+ });
2390
+ }
2391
+ }
2392
+ 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 });
2393
+ TiktokAudienceControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TiktokAudienceControllerService });
2394
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: TiktokAudienceControllerService, decorators: [{
2395
+ type: Injectable
2396
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2397
+ type: Optional
2398
+ }, {
2399
+ type: Inject,
2400
+ args: [BASE_PATH]
2401
+ }] }, { type: Configuration, decorators: [{
2402
+ type: Optional
2403
+ }] }]; } });
2404
+
2285
2405
  /**
2286
2406
  * Intellibid API
2287
2407
  * API documentation for the Intellibid platform
@@ -2417,7 +2537,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2417
2537
  type: Optional
2418
2538
  }] }]; } });
2419
2539
 
2420
- const APIS = [AdvertiserControllerService, BusinessGeoControllerService, CampaignInsightsControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookAdImageControllerService, FacebookAdVideoControllerService, FacebookEngagementControllerService, MobileAppDetailControllerService, PackageDetailControllerService, SourcePlatformMETAControllerService, SourcePlatformMETADictionaryControllerService, SourcePlatformTIKTOKControllerService, SourcePlatformTIKTOKDictionaryControllerService, TiktokEngagementControllerService];
2540
+ const APIS = [AdvertiserControllerService, BusinessGeoControllerService, CampaignInsightsControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookAdImageControllerService, FacebookAdVideoControllerService, FacebookEngagementControllerService, MobileAppDetailControllerService, PackageDetailControllerService, SourcePlatformMETAControllerService, SourcePlatformMETADictionaryControllerService, SourcePlatformTIKTOKControllerService, SourcePlatformTIKTOKDictionaryControllerService, TiktokAudienceControllerService, TiktokEngagementControllerService];
2421
2541
 
2422
2542
  /**
2423
2543
  * Intellibid API
@@ -2507,6 +2627,18 @@ var AdSetDetails;
2507
2627
  * Do not edit the class manually.
2508
2628
  */
2509
2629
 
2630
+ /**
2631
+ * Intellibid API
2632
+ * API documentation for the Intellibid platform
2633
+ *
2634
+ * OpenAPI spec version: 1.0
2635
+ *
2636
+ *
2637
+ * NOTE: This class is auto generated by the swagger code generator program.
2638
+ * https://github.com/swagger-api/swagger-codegen.git
2639
+ * Do not edit the class manually.
2640
+ */
2641
+
2510
2642
  /**
2511
2643
  * Intellibid API
2512
2644
  * API documentation for the Intellibid platform
@@ -2604,7 +2736,8 @@ var DpaEngagementChangeLogResponse;
2604
2736
  STATUS: 'STATUS',
2605
2737
  BUDGET: 'BUDGET',
2606
2738
  ENGAGEMENT: 'ENGAGEMENT',
2607
- MARGIN: 'MARGIN'
2739
+ MARGIN: 'MARGIN',
2740
+ PAYOUT: 'PAYOUT'
2608
2741
  };
2609
2742
  DpaEngagementChangeLogResponse.StatusEnum = {
2610
2743
  SUCCESS: 'SUCCESS',
@@ -2614,6 +2747,16 @@ var DpaEngagementChangeLogResponse;
2614
2747
 
2615
2748
  var DpaEngagementRequest;
2616
2749
  (function (DpaEngagementRequest) {
2750
+ DpaEngagementRequest.PayoutTypeEnum = {
2751
+ CPM: 'CPM',
2752
+ CPC: 'CPC',
2753
+ CPA: 'CPA',
2754
+ CPS: 'CPS',
2755
+ CPAClientAttributed: 'CPA - Client Attributed',
2756
+ CPSClientAttributed: 'CPS - Client Attributed',
2757
+ MARGIN: 'MARGIN',
2758
+ PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
2759
+ };
2617
2760
  DpaEngagementRequest.SourcePlatformEnum = {
2618
2761
  META: 'META',
2619
2762
  GOOGLE: 'GOOGLE',
@@ -2641,7 +2784,8 @@ var DpaEngagementResponse;
2641
2784
  CPS: 'CPS',
2642
2785
  CPAClientAttributed: 'CPA - Client Attributed',
2643
2786
  CPSClientAttributed: 'CPS - Client Attributed',
2644
- MARGIN: 'MARGIN'
2787
+ MARGIN: 'MARGIN',
2788
+ PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
2645
2789
  };
2646
2790
  DpaEngagementResponse.StatusEnum = {
2647
2791
  DRAFT: 'DRAFT',
@@ -2814,6 +2958,18 @@ var FacebookEngagementResponse;
2814
2958
  * Do not edit the class manually.
2815
2959
  */
2816
2960
 
2961
+ /**
2962
+ * Intellibid API
2963
+ * API documentation for the Intellibid platform
2964
+ *
2965
+ * OpenAPI spec version: 1.0
2966
+ *
2967
+ *
2968
+ * NOTE: This class is auto generated by the swagger code generator program.
2969
+ * https://github.com/swagger-api/swagger-codegen.git
2970
+ * Do not edit the class manually.
2971
+ */
2972
+
2817
2973
  class ApiModule {
2818
2974
  static forRoot(configurationFactory) {
2819
2975
  return {
@@ -2848,6 +3004,7 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
2848
3004
  SourcePlatformMETADictionaryControllerService,
2849
3005
  SourcePlatformTIKTOKControllerService,
2850
3006
  SourcePlatformTIKTOKDictionaryControllerService,
3007
+ TiktokAudienceControllerService,
2851
3008
  TiktokEngagementControllerService
2852
3009
  ] });
2853
3010
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
@@ -2871,6 +3028,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2871
3028
  SourcePlatformMETADictionaryControllerService,
2872
3029
  SourcePlatformTIKTOKControllerService,
2873
3030
  SourcePlatformTIKTOKDictionaryControllerService,
3031
+ TiktokAudienceControllerService,
2874
3032
  TiktokEngagementControllerService
2875
3033
  ]
2876
3034
  }]
@@ -2886,5 +3044,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2886
3044
  * Generated bundle index. Do not edit.
2887
3045
  */
2888
3046
 
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 };
3047
+ 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 };
2890
3048
  //# sourceMappingURL=revxui-intellibid-client-ts.mjs.map