@revxui/intellibid-client-ts 1.0.34 → 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.
@@ -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
@@ -2616,7 +2736,8 @@ var DpaEngagementChangeLogResponse;
2616
2736
  STATUS: 'STATUS',
2617
2737
  BUDGET: 'BUDGET',
2618
2738
  ENGAGEMENT: 'ENGAGEMENT',
2619
- MARGIN: 'MARGIN'
2739
+ MARGIN: 'MARGIN',
2740
+ PAYOUT: 'PAYOUT'
2620
2741
  };
2621
2742
  DpaEngagementChangeLogResponse.StatusEnum = {
2622
2743
  SUCCESS: 'SUCCESS',
@@ -2626,6 +2747,16 @@ var DpaEngagementChangeLogResponse;
2626
2747
 
2627
2748
  var DpaEngagementRequest;
2628
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
+ };
2629
2760
  DpaEngagementRequest.SourcePlatformEnum = {
2630
2761
  META: 'META',
2631
2762
  GOOGLE: 'GOOGLE',
@@ -2653,7 +2784,8 @@ var DpaEngagementResponse;
2653
2784
  CPS: 'CPS',
2654
2785
  CPAClientAttributed: 'CPA - Client Attributed',
2655
2786
  CPSClientAttributed: 'CPS - Client Attributed',
2656
- MARGIN: 'MARGIN'
2787
+ MARGIN: 'MARGIN',
2788
+ PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
2657
2789
  };
2658
2790
  DpaEngagementResponse.StatusEnum = {
2659
2791
  DRAFT: 'DRAFT',
@@ -2826,6 +2958,18 @@ var FacebookEngagementResponse;
2826
2958
  * Do not edit the class manually.
2827
2959
  */
2828
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
+
2829
2973
  class ApiModule {
2830
2974
  static forRoot(configurationFactory) {
2831
2975
  return {
@@ -2860,6 +3004,7 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
2860
3004
  SourcePlatformMETADictionaryControllerService,
2861
3005
  SourcePlatformTIKTOKControllerService,
2862
3006
  SourcePlatformTIKTOKDictionaryControllerService,
3007
+ TiktokAudienceControllerService,
2863
3008
  TiktokEngagementControllerService
2864
3009
  ] });
2865
3010
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
@@ -2883,6 +3028,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2883
3028
  SourcePlatformMETADictionaryControllerService,
2884
3029
  SourcePlatformTIKTOKControllerService,
2885
3030
  SourcePlatformTIKTOKDictionaryControllerService,
3031
+ TiktokAudienceControllerService,
2886
3032
  TiktokEngagementControllerService
2887
3033
  ]
2888
3034
  }]
@@ -2898,5 +3044,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
2898
3044
  * Generated bundle index. Do not edit.
2899
3045
  */
2900
3046
 
2901
- 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 };
2902
3048
  //# sourceMappingURL=revxui-intellibid-client-ts.mjs.map