@revxui/api-clients-ts 1.1.448 → 1.1.450

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.
@@ -5533,7 +5533,7 @@ class DCOVideoSettingsControllerService {
5533
5533
  reportProgress: reportProgress
5534
5534
  });
5535
5535
  }
5536
- createSettingsUsingPOST(request, reqId, token, observe = 'body', reportProgress = false) {
5536
+ createSettingsUsingPOST(request, file_BACKGROUND_IMAGE, file_PROMO_BANNER, file_PROMO_VIDEO, reqId, token, observe = 'body', reportProgress = false) {
5537
5537
  if (request === null || request === undefined) {
5538
5538
  throw new Error('Required parameter request was null or undefined when calling createSettingsUsingPOST.');
5539
5539
  }
@@ -5554,13 +5554,40 @@ class DCOVideoSettingsControllerService {
5554
5554
  }
5555
5555
  // to determine the Content-Type header
5556
5556
  const consumes = [
5557
- 'application/json'
5557
+ 'multipart/form-data'
5558
5558
  ];
5559
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
5560
- if (httpContentTypeSelected != undefined) {
5561
- headers = headers.set('Content-Type', httpContentTypeSelected);
5559
+ const canConsumeForm = this.canConsumeForm(consumes);
5560
+ let formParams;
5561
+ let useForm = false;
5562
+ let convertFormParamsToString = false;
5563
+ // use FormData to transmit files using content-type "multipart/form-data"
5564
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5565
+ useForm = canConsumeForm;
5566
+ // use FormData to transmit files using content-type "multipart/form-data"
5567
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5568
+ useForm = canConsumeForm;
5569
+ // use FormData to transmit files using content-type "multipart/form-data"
5570
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5571
+ useForm = canConsumeForm;
5572
+ if (useForm) {
5573
+ formParams = new FormData();
5574
+ }
5575
+ else {
5576
+ formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
5562
5577
  }
5563
- return this.httpClient.post(`${this.basePath}/v2/api/dcovideo/settings`, request, {
5578
+ if (file_BACKGROUND_IMAGE !== undefined) {
5579
+ formParams = formParams.append('file_BACKGROUND_IMAGE', file_BACKGROUND_IMAGE) || formParams;
5580
+ }
5581
+ if (file_PROMO_BANNER !== undefined) {
5582
+ formParams = formParams.append('file_PROMO_BANNER', file_PROMO_BANNER) || formParams;
5583
+ }
5584
+ if (file_PROMO_VIDEO !== undefined) {
5585
+ formParams = formParams.append('file_PROMO_VIDEO', file_PROMO_VIDEO) || formParams;
5586
+ }
5587
+ if (request !== undefined) {
5588
+ formParams = formParams.append('request', request) || formParams;
5589
+ }
5590
+ return this.httpClient.post(`${this.basePath}/v2/api/dcovideo/settings`, convertFormParamsToString ? formParams.toString() : formParams, {
5564
5591
  withCredentials: this.configuration.withCredentials,
5565
5592
  headers: headers,
5566
5593
  observe: observe,
@@ -5601,6 +5628,67 @@ class DCOVideoSettingsControllerService {
5601
5628
  reportProgress: reportProgress
5602
5629
  });
5603
5630
  }
5631
+ getBrandGuidelinesUsingGET(advertiserId, includeInactive, reqId, token, observe = 'body', reportProgress = false) {
5632
+ if (advertiserId === null || advertiserId === undefined) {
5633
+ throw new Error('Required parameter advertiserId was null or undefined when calling getBrandGuidelinesUsingGET.');
5634
+ }
5635
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
5636
+ if (includeInactive !== undefined && includeInactive !== null) {
5637
+ queryParameters = queryParameters.set('includeInactive', includeInactive);
5638
+ }
5639
+ let headers = this.defaultHeaders;
5640
+ if (reqId !== undefined && reqId !== null) {
5641
+ headers = headers.set('reqId', String(reqId));
5642
+ }
5643
+ if (token !== undefined && token !== null) {
5644
+ headers = headers.set('token', String(token));
5645
+ }
5646
+ // to determine the Accept header
5647
+ let httpHeaderAccepts = [
5648
+ 'application/json'
5649
+ ];
5650
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
5651
+ if (httpHeaderAcceptSelected != undefined) {
5652
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
5653
+ }
5654
+ // to determine the Content-Type header
5655
+ const consumes = [];
5656
+ return this.httpClient.get(`${this.basePath}/v2/api/dcovideo/advertiser/${encodeURIComponent(String(advertiserId))}/brand-guidelines`, {
5657
+ params: queryParameters,
5658
+ withCredentials: this.configuration.withCredentials,
5659
+ headers: headers,
5660
+ observe: observe,
5661
+ reportProgress: reportProgress
5662
+ });
5663
+ }
5664
+ getFeedKeysUsingGET(advertiserId, reqId, token, observe = 'body', reportProgress = false) {
5665
+ if (advertiserId === null || advertiserId === undefined) {
5666
+ throw new Error('Required parameter advertiserId was null or undefined when calling getFeedKeysUsingGET.');
5667
+ }
5668
+ let headers = this.defaultHeaders;
5669
+ if (reqId !== undefined && reqId !== null) {
5670
+ headers = headers.set('reqId', String(reqId));
5671
+ }
5672
+ if (token !== undefined && token !== null) {
5673
+ headers = headers.set('token', String(token));
5674
+ }
5675
+ // to determine the Accept header
5676
+ let httpHeaderAccepts = [
5677
+ 'application/json'
5678
+ ];
5679
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
5680
+ if (httpHeaderAcceptSelected != undefined) {
5681
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
5682
+ }
5683
+ // to determine the Content-Type header
5684
+ const consumes = [];
5685
+ return this.httpClient.get(`${this.basePath}/v2/api/dcovideo/advertiser/${encodeURIComponent(String(advertiserId))}/feed-keys`, {
5686
+ withCredentials: this.configuration.withCredentials,
5687
+ headers: headers,
5688
+ observe: observe,
5689
+ reportProgress: reportProgress
5690
+ });
5691
+ }
5604
5692
  getGeneratedVideoCountUsingGET(id, reqId, token, observe = 'body', reportProgress = false) {
5605
5693
  if (id === null || id === undefined) {
5606
5694
  throw new Error('Required parameter id was null or undefined when calling getGeneratedVideoCountUsingGET.');
@@ -5746,20 +5834,13 @@ class DCOVideoSettingsControllerService {
5746
5834
  reportProgress: reportProgress
5747
5835
  });
5748
5836
  }
5749
- updateSettingsUsingPOST(id, request, async, regenerateSample, reqId, token, observe = 'body', reportProgress = false) {
5837
+ updateSettingsUsingPOST(id, request, async, file_BACKGROUND_IMAGE, file_PROMO_BANNER, file_PROMO_VIDEO, regenerateSample, reqId, token, observe = 'body', reportProgress = false) {
5750
5838
  if (id === null || id === undefined) {
5751
5839
  throw new Error('Required parameter id was null or undefined when calling updateSettingsUsingPOST.');
5752
5840
  }
5753
5841
  if (request === null || request === undefined) {
5754
5842
  throw new Error('Required parameter request was null or undefined when calling updateSettingsUsingPOST.');
5755
5843
  }
5756
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
5757
- if (async !== undefined && async !== null) {
5758
- queryParameters = queryParameters.set('async', async);
5759
- }
5760
- if (regenerateSample !== undefined && regenerateSample !== null) {
5761
- queryParameters = queryParameters.set('regenerateSample', regenerateSample);
5762
- }
5763
5844
  let headers = this.defaultHeaders;
5764
5845
  if (reqId !== undefined && reqId !== null) {
5765
5846
  headers = headers.set('reqId', String(reqId));
@@ -5777,14 +5858,46 @@ class DCOVideoSettingsControllerService {
5777
5858
  }
5778
5859
  // to determine the Content-Type header
5779
5860
  const consumes = [
5780
- 'application/json'
5861
+ 'multipart/form-data'
5781
5862
  ];
5782
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
5783
- if (httpContentTypeSelected != undefined) {
5784
- headers = headers.set('Content-Type', httpContentTypeSelected);
5863
+ const canConsumeForm = this.canConsumeForm(consumes);
5864
+ let formParams;
5865
+ let useForm = false;
5866
+ let convertFormParamsToString = false;
5867
+ // use FormData to transmit files using content-type "multipart/form-data"
5868
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5869
+ useForm = canConsumeForm;
5870
+ // use FormData to transmit files using content-type "multipart/form-data"
5871
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5872
+ useForm = canConsumeForm;
5873
+ // use FormData to transmit files using content-type "multipart/form-data"
5874
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5875
+ useForm = canConsumeForm;
5876
+ if (useForm) {
5877
+ formParams = new FormData();
5785
5878
  }
5786
- return this.httpClient.post(`${this.basePath}/v2/api/dcovideo/settings/${encodeURIComponent(String(id))}`, request, {
5787
- params: queryParameters,
5879
+ else {
5880
+ formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
5881
+ }
5882
+ if (async !== undefined) {
5883
+ formParams = formParams.append('async', async) || formParams;
5884
+ }
5885
+ if (file_BACKGROUND_IMAGE !== undefined) {
5886
+ formParams = formParams.append('file_BACKGROUND_IMAGE', file_BACKGROUND_IMAGE) || formParams;
5887
+ }
5888
+ if (file_PROMO_BANNER !== undefined) {
5889
+ formParams = formParams.append('file_PROMO_BANNER', file_PROMO_BANNER) || formParams;
5890
+ }
5891
+ if (file_PROMO_VIDEO !== undefined) {
5892
+ formParams = formParams.append('file_PROMO_VIDEO', file_PROMO_VIDEO) || formParams;
5893
+ }
5894
+ if (regenerateSample !== undefined) {
5895
+ formParams = formParams.append('regenerateSample', regenerateSample) || formParams;
5896
+ }
5897
+ if (request !== undefined) {
5898
+ formParams = formParams.append('request', request) || formParams;
5899
+ }
5900
+ return this.httpClient.post(`${this.basePath}/v2/api/dcovideo/settings/${encodeURIComponent(String(id))}`, convertFormParamsToString ? formParams.toString() : formParams, {
5788
5901
  withCredentials: this.configuration.withCredentials,
5789
5902
  headers: headers,
5790
5903
  observe: observe,
@@ -11096,6 +11209,18 @@ var AdvertiserCohortResponse;
11096
11209
  * Do not edit the class manually.
11097
11210
  */
11098
11211
 
11212
+ /**
11213
+ * Api Documentation
11214
+ * Api Documentation
11215
+ *
11216
+ * OpenAPI spec version: 1.0
11217
+ *
11218
+ *
11219
+ * NOTE: This class is auto generated by the swagger code generator program.
11220
+ * https://github.com/swagger-api/swagger-codegen.git
11221
+ * Do not edit the class manually.
11222
+ */
11223
+
11099
11224
  var AppSettingsDTO;
11100
11225
  (function (AppSettingsDTO) {
11101
11226
  AppSettingsDTO.SettingsKeyEnum = {
@@ -12229,6 +12354,18 @@ var DcoAttributesDTO;
12229
12354
  * Do not edit the class manually.
12230
12355
  */
12231
12356
 
12357
+ /**
12358
+ * Api Documentation
12359
+ * Api Documentation
12360
+ *
12361
+ * OpenAPI spec version: 1.0
12362
+ *
12363
+ *
12364
+ * NOTE: This class is auto generated by the swagger code generator program.
12365
+ * https://github.com/swagger-api/swagger-codegen.git
12366
+ * Do not edit the class manually.
12367
+ */
12368
+
12232
12369
  /**
12233
12370
  * Api Documentation
12234
12371
  * Api Documentation
@@ -12643,6 +12780,18 @@ var IncrementalityTestDetails;
12643
12780
  * Do not edit the class manually.
12644
12781
  */
12645
12782
 
12783
+ /**
12784
+ * Api Documentation
12785
+ * Api Documentation
12786
+ *
12787
+ * OpenAPI spec version: 1.0
12788
+ *
12789
+ *
12790
+ * NOTE: This class is auto generated by the swagger code generator program.
12791
+ * https://github.com/swagger-api/swagger-codegen.git
12792
+ * Do not edit the class manually.
12793
+ */
12794
+
12646
12795
  /**
12647
12796
  * Api Documentation
12648
12797
  * Api Documentation
@@ -12820,6 +12969,18 @@ var MetaRuleDto;
12820
12969
  * Do not edit the class manually.
12821
12970
  */
12822
12971
 
12972
+ /**
12973
+ * Api Documentation
12974
+ * Api Documentation
12975
+ *
12976
+ * OpenAPI spec version: 1.0
12977
+ *
12978
+ *
12979
+ * NOTE: This class is auto generated by the swagger code generator program.
12980
+ * https://github.com/swagger-api/swagger-codegen.git
12981
+ * Do not edit the class manually.
12982
+ */
12983
+
12823
12984
  /**
12824
12985
  * Api Documentation
12825
12986
  * Api Documentation
@@ -13778,6 +13939,30 @@ var TemplateVariablesDTO;
13778
13939
  * Do not edit the class manually.
13779
13940
  */
13780
13941
 
13942
+ /**
13943
+ * Api Documentation
13944
+ * Api Documentation
13945
+ *
13946
+ * OpenAPI spec version: 1.0
13947
+ *
13948
+ *
13949
+ * NOTE: This class is auto generated by the swagger code generator program.
13950
+ * https://github.com/swagger-api/swagger-codegen.git
13951
+ * Do not edit the class manually.
13952
+ */
13953
+
13954
+ /**
13955
+ * Api Documentation
13956
+ * Api Documentation
13957
+ *
13958
+ * OpenAPI spec version: 1.0
13959
+ *
13960
+ *
13961
+ * NOTE: This class is auto generated by the swagger code generator program.
13962
+ * https://github.com/swagger-api/swagger-codegen.git
13963
+ * Do not edit the class manually.
13964
+ */
13965
+
13781
13966
  var VastCreative;
13782
13967
  (function (VastCreative) {
13783
13968
  VastCreative.VideoFormatEnum = {