@revxui/intellibid-client-ts 1.0.64 → 1.0.66

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.
@@ -534,13 +534,22 @@ class AudienceControllerService {
534
534
  reportProgress: reportProgress
535
535
  });
536
536
  }
537
- getAllAudiences(searchRequest, observe = 'body', reportProgress = false) {
538
- if (searchRequest === null || searchRequest === undefined) {
539
- throw new Error('Required parameter searchRequest was null or undefined when calling getAllAudiences.');
537
+ getAllAudiences(advertiserId, groupType, sourcePlatform, audienceType, audienceSource, observe = 'body', reportProgress = false) {
538
+ if (advertiserId === null || advertiserId === undefined) {
539
+ throw new Error('Required parameter advertiserId was null or undefined when calling getAllAudiences.');
540
540
  }
541
541
  let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
542
- if (searchRequest !== undefined && searchRequest !== null) {
543
- queryParameters = queryParameters.set('searchRequest', searchRequest);
542
+ if (groupType !== undefined && groupType !== null) {
543
+ queryParameters = queryParameters.set('groupType', groupType);
544
+ }
545
+ if (sourcePlatform !== undefined && sourcePlatform !== null) {
546
+ queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
547
+ }
548
+ if (audienceType !== undefined && audienceType !== null) {
549
+ queryParameters = queryParameters.set('audienceType', audienceType);
550
+ }
551
+ if (audienceSource !== undefined && audienceSource !== null) {
552
+ queryParameters = queryParameters.set('audienceSource', audienceSource);
544
553
  }
545
554
  let headers = this.defaultHeaders;
546
555
  // to determine the Accept header
@@ -553,7 +562,7 @@ class AudienceControllerService {
553
562
  }
554
563
  // to determine the Content-Type header
555
564
  const consumes = [];
556
- return this.httpClient.request('get', `${this.basePath}/api/audiences`, {
565
+ return this.httpClient.request('get', `${this.basePath}/api/audiences/advertiser/${encodeURIComponent(String(advertiserId))}`, {
557
566
  params: queryParameters,
558
567
  withCredentials: this.configuration.withCredentials,
559
568
  headers: headers,
@@ -607,7 +616,7 @@ class AudienceControllerService {
607
616
  if (httpContentTypeSelected != undefined) {
608
617
  headers = headers.set('Content-Type', httpContentTypeSelected);
609
618
  }
610
- return this.httpClient.request('patch', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}/custom/ds-query/sql`, {
619
+ return this.httpClient.request('post', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}/custom/ds-query/sql`, {
611
620
  body: body,
612
621
  withCredentials: this.configuration.withCredentials,
613
622
  headers: headers,
@@ -639,7 +648,36 @@ class AudienceControllerService {
639
648
  if (httpContentTypeSelected != undefined) {
640
649
  headers = headers.set('Content-Type', httpContentTypeSelected);
641
650
  }
642
- return this.httpClient.request('patch', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}/name`, {
651
+ return this.httpClient.request('post', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}/name`, {
652
+ body: body,
653
+ withCredentials: this.configuration.withCredentials,
654
+ headers: headers,
655
+ observe: observe,
656
+ reportProgress: reportProgress
657
+ });
658
+ }
659
+ validateDsQuery(body, observe = 'body', reportProgress = false) {
660
+ if (body === null || body === undefined) {
661
+ throw new Error('Required parameter body was null or undefined when calling validateDsQuery.');
662
+ }
663
+ let headers = this.defaultHeaders;
664
+ // to determine the Accept header
665
+ let httpHeaderAccepts = [
666
+ '*/*'
667
+ ];
668
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
669
+ if (httpHeaderAcceptSelected != undefined) {
670
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
671
+ }
672
+ // to determine the Content-Type header
673
+ const consumes = [
674
+ 'application/json'
675
+ ];
676
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
677
+ if (httpContentTypeSelected != undefined) {
678
+ headers = headers.set('Content-Type', httpContentTypeSelected);
679
+ }
680
+ return this.httpClient.request('post', `${this.basePath}/api/audiences/validate-ds-query`, {
643
681
  body: body,
644
682
  withCredentials: this.configuration.withCredentials,
645
683
  headers: headers,
@@ -1231,42 +1269,6 @@ var AudienceResponse;
1231
1269
  };
1232
1270
  })(AudienceResponse || (AudienceResponse = {}));
1233
1271
 
1234
- /**
1235
- * Intellibid API
1236
- * API documentation for the Intellibid platform
1237
- *
1238
- * OpenAPI spec version: 1.0
1239
- *
1240
- *
1241
- * NOTE: This class is auto generated by the swagger code generator program.
1242
- * https://github.com/swagger-api/swagger-codegen.git
1243
- * Do not edit the class manually.
1244
- */
1245
- var AudienceSearchRequest;
1246
- (function (AudienceSearchRequest) {
1247
- AudienceSearchRequest.GroupTypeEnum = {
1248
- BUCKETIZEDLIVE: 'BUCKETIZED_LIVE',
1249
- BLOCKEDLIVE: 'BLOCKED_LIVE',
1250
- BUCKETIZEDCUSTOM: 'BUCKETIZED_CUSTOM',
1251
- DSCUSTOMQUERY: 'DS_CUSTOM_QUERY'
1252
- };
1253
- AudienceSearchRequest.SourcePlatformEnum = {
1254
- META: 'META',
1255
- TIKTOK: 'TIKTOK',
1256
- SNAPCHAT: 'SNAPCHAT',
1257
- GOOGLE: 'GOOGLE',
1258
- LYADS: 'LYADS'
1259
- };
1260
- AudienceSearchRequest.AudienceTypeEnum = {
1261
- DYNAMIC: 'DYNAMIC',
1262
- CATALOGUE: 'CATALOGUE'
1263
- };
1264
- AudienceSearchRequest.AudienceSourceEnum = {
1265
- INTELLIBID: 'INTELLIBID',
1266
- DS: 'DS'
1267
- };
1268
- })(AudienceSearchRequest || (AudienceSearchRequest = {}));
1269
-
1270
1272
  /**
1271
1273
  * Intellibid API
1272
1274
  * API documentation for the Intellibid platform
@@ -1688,5 +1690,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
1688
1690
  * Generated bundle index. Do not edit.
1689
1691
  */
1690
1692
 
1691
- export { APIS, AdAccountResponse, AdvertiserControllerService, ApiModule, AudienceControllerService, AudienceResponse, AudienceSearchRequest, BASE_PATH, COLLECTION_FORMATS, CampaignChangeLogResponse, CampaignControllerService, CampaignInsightRecord, CampaignRequest, CampaignResponse, ChildAudience, Configuration, CreateBlockedLiveAudienceRequest, CreateBucketizedCustomAudienceRequest, CreateBucketizedLiveAudienceRequest, CreateDsCustomQueryAudienceRequest, InsightsControllerService, LookupDataControllerService, ProductSetRequest, ProductSetResponse, ScheduleUpdateRequest, UpdateAudienceNameRequest, UpdateDsCustomQuerySqlRequest };
1693
+ export { APIS, AdAccountResponse, AdvertiserControllerService, ApiModule, AudienceControllerService, AudienceResponse, BASE_PATH, COLLECTION_FORMATS, CampaignChangeLogResponse, CampaignControllerService, CampaignInsightRecord, CampaignRequest, CampaignResponse, ChildAudience, Configuration, CreateBlockedLiveAudienceRequest, CreateBucketizedCustomAudienceRequest, CreateBucketizedLiveAudienceRequest, CreateDsCustomQueryAudienceRequest, InsightsControllerService, LookupDataControllerService, ProductSetRequest, ProductSetResponse, ScheduleUpdateRequest, UpdateAudienceNameRequest, UpdateDsCustomQuerySqlRequest };
1692
1694
  //# sourceMappingURL=revxui-intellibid-client-ts.mjs.map