@revxui/api-clients-ts 1.1.456 → 1.1.458

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, file_BACKGROUND_IMAGE, file_END_CARD_HTML, file_END_CARD_IMAGE, file_PROMO_BANNER, file_PROMO_VIDEO, 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
  }
@@ -5569,12 +5569,6 @@ class DCOVideoSettingsControllerService {
5569
5569
  // use FormData to transmit files using content-type "multipart/form-data"
5570
5570
  // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5571
5571
  useForm = canConsumeForm;
5572
- // use FormData to transmit files using content-type "multipart/form-data"
5573
- // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5574
- useForm = canConsumeForm;
5575
- // use FormData to transmit files using content-type "multipart/form-data"
5576
- // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5577
- useForm = canConsumeForm;
5578
5572
  if (useForm) {
5579
5573
  formParams = new FormData();
5580
5574
  }
@@ -5584,12 +5578,6 @@ class DCOVideoSettingsControllerService {
5584
5578
  if (file_BACKGROUND_IMAGE !== undefined) {
5585
5579
  formParams = formParams.append('file_BACKGROUND_IMAGE', file_BACKGROUND_IMAGE) || formParams;
5586
5580
  }
5587
- if (file_END_CARD_HTML !== undefined) {
5588
- formParams = formParams.append('file_END_CARD_HTML', file_END_CARD_HTML) || formParams;
5589
- }
5590
- if (file_END_CARD_IMAGE !== undefined) {
5591
- formParams = formParams.append('file_END_CARD_IMAGE', file_END_CARD_IMAGE) || formParams;
5592
- }
5593
5581
  if (file_PROMO_BANNER !== undefined) {
5594
5582
  formParams = formParams.append('file_PROMO_BANNER', file_PROMO_BANNER) || formParams;
5595
5583
  }
@@ -5606,7 +5594,7 @@ class DCOVideoSettingsControllerService {
5606
5594
  reportProgress: reportProgress
5607
5595
  });
5608
5596
  }
5609
- generateSampleUsingPOST(request, reqId, token, observe = 'body', reportProgress = false) {
5597
+ generateSampleUsingPOST(request, file_BACKGROUND_IMAGE, file_PROMO_BANNER, file_PROMO_VIDEO, reqId, token, observe = 'body', reportProgress = false) {
5610
5598
  if (request === null || request === undefined) {
5611
5599
  throw new Error('Required parameter request was null or undefined when calling generateSampleUsingPOST.');
5612
5600
  }
@@ -5627,13 +5615,40 @@ class DCOVideoSettingsControllerService {
5627
5615
  }
5628
5616
  // to determine the Content-Type header
5629
5617
  const consumes = [
5630
- 'application/json'
5618
+ 'multipart/form-data'
5631
5619
  ];
5632
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
5633
- if (httpContentTypeSelected != undefined) {
5634
- headers = headers.set('Content-Type', httpContentTypeSelected);
5620
+ const canConsumeForm = this.canConsumeForm(consumes);
5621
+ let formParams;
5622
+ let useForm = false;
5623
+ let convertFormParamsToString = false;
5624
+ // use FormData to transmit files using content-type "multipart/form-data"
5625
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5626
+ useForm = canConsumeForm;
5627
+ // use FormData to transmit files using content-type "multipart/form-data"
5628
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5629
+ useForm = canConsumeForm;
5630
+ // use FormData to transmit files using content-type "multipart/form-data"
5631
+ // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5632
+ useForm = canConsumeForm;
5633
+ if (useForm) {
5634
+ formParams = new FormData();
5635
+ }
5636
+ else {
5637
+ formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
5638
+ }
5639
+ if (file_BACKGROUND_IMAGE !== undefined) {
5640
+ formParams = formParams.append('file_BACKGROUND_IMAGE', file_BACKGROUND_IMAGE) || formParams;
5635
5641
  }
5636
- return this.httpClient.post(`${this.basePath}/v2/api/dcovideo/settings/generate-sample`, request, {
5642
+ if (file_PROMO_BANNER !== undefined) {
5643
+ formParams = formParams.append('file_PROMO_BANNER', file_PROMO_BANNER) || formParams;
5644
+ }
5645
+ if (file_PROMO_VIDEO !== undefined) {
5646
+ formParams = formParams.append('file_PROMO_VIDEO', file_PROMO_VIDEO) || formParams;
5647
+ }
5648
+ if (request !== undefined) {
5649
+ formParams = formParams.append('request', request) || formParams;
5650
+ }
5651
+ return this.httpClient.post(`${this.basePath}/v2/api/dcovideo/settings/generate-sample`, convertFormParamsToString ? formParams.toString() : formParams, {
5637
5652
  withCredentials: this.configuration.withCredentials,
5638
5653
  headers: headers,
5639
5654
  observe: observe,
@@ -5762,45 +5777,6 @@ class DCOVideoSettingsControllerService {
5762
5777
  reportProgress: reportProgress
5763
5778
  });
5764
5779
  }
5765
- getGeneratedVideoSamplesUsingGET(id, page, reqId, size, status, token, observe = 'body', reportProgress = false) {
5766
- if (id === null || id === undefined) {
5767
- throw new Error('Required parameter id was null or undefined when calling getGeneratedVideoSamplesUsingGET.');
5768
- }
5769
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
5770
- if (page !== undefined && page !== null) {
5771
- queryParameters = queryParameters.set('page', page);
5772
- }
5773
- if (size !== undefined && size !== null) {
5774
- queryParameters = queryParameters.set('size', size);
5775
- }
5776
- if (status !== undefined && status !== null) {
5777
- queryParameters = queryParameters.set('status', status);
5778
- }
5779
- let headers = this.defaultHeaders;
5780
- if (reqId !== undefined && reqId !== null) {
5781
- headers = headers.set('reqId', String(reqId));
5782
- }
5783
- if (token !== undefined && token !== null) {
5784
- headers = headers.set('token', String(token));
5785
- }
5786
- // to determine the Accept header
5787
- let httpHeaderAccepts = [
5788
- 'application/json'
5789
- ];
5790
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
5791
- if (httpHeaderAcceptSelected != undefined) {
5792
- headers = headers.set('Accept', httpHeaderAcceptSelected);
5793
- }
5794
- // to determine the Content-Type header
5795
- const consumes = [];
5796
- return this.httpClient.get(`${this.basePath}/v2/api/dcovideo/settings/${encodeURIComponent(String(id))}/get-generated-video-samples`, {
5797
- params: queryParameters,
5798
- withCredentials: this.configuration.withCredentials,
5799
- headers: headers,
5800
- observe: observe,
5801
- reportProgress: reportProgress
5802
- });
5803
- }
5804
5780
  getSettingsUsingGET(advertiserId, includeInactive, reqId, token, observe = 'body', reportProgress = false) {
5805
5781
  if (advertiserId === null || advertiserId === undefined) {
5806
5782
  throw new Error('Required parameter advertiserId was null or undefined when calling getSettingsUsingGET.');
@@ -5876,7 +5852,7 @@ class DCOVideoSettingsControllerService {
5876
5852
  reportProgress: reportProgress
5877
5853
  });
5878
5854
  }
5879
- updateSettingsUsingPOST(id, request, async, file_BACKGROUND_IMAGE, file_END_CARD_HTML, file_END_CARD_IMAGE, file_PROMO_BANNER, file_PROMO_VIDEO, regenerateSample, reqId, token, observe = 'body', reportProgress = false) {
5855
+ updateSettingsUsingPOST(id, request, async, file_BACKGROUND_IMAGE, file_PROMO_BANNER, file_PROMO_VIDEO, regenerateSample, reqId, token, observe = 'body', reportProgress = false) {
5880
5856
  if (id === null || id === undefined) {
5881
5857
  throw new Error('Required parameter id was null or undefined when calling updateSettingsUsingPOST.');
5882
5858
  }
@@ -5915,12 +5891,6 @@ class DCOVideoSettingsControllerService {
5915
5891
  // use FormData to transmit files using content-type "multipart/form-data"
5916
5892
  // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5917
5893
  useForm = canConsumeForm;
5918
- // use FormData to transmit files using content-type "multipart/form-data"
5919
- // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5920
- useForm = canConsumeForm;
5921
- // use FormData to transmit files using content-type "multipart/form-data"
5922
- // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
5923
- useForm = canConsumeForm;
5924
5894
  if (useForm) {
5925
5895
  formParams = new FormData();
5926
5896
  }
@@ -5933,12 +5903,6 @@ class DCOVideoSettingsControllerService {
5933
5903
  if (file_BACKGROUND_IMAGE !== undefined) {
5934
5904
  formParams = formParams.append('file_BACKGROUND_IMAGE', file_BACKGROUND_IMAGE) || formParams;
5935
5905
  }
5936
- if (file_END_CARD_HTML !== undefined) {
5937
- formParams = formParams.append('file_END_CARD_HTML', file_END_CARD_HTML) || formParams;
5938
- }
5939
- if (file_END_CARD_IMAGE !== undefined) {
5940
- formParams = formParams.append('file_END_CARD_IMAGE', file_END_CARD_IMAGE) || formParams;
5941
- }
5942
5906
  if (file_PROMO_BANNER !== undefined) {
5943
5907
  formParams = formParams.append('file_PROMO_BANNER', file_PROMO_BANNER) || formParams;
5944
5908
  }
@@ -12415,30 +12379,6 @@ var DcoVideoAssetDTO;
12415
12379
  * Do not edit the class manually.
12416
12380
  */
12417
12381
 
12418
- /**
12419
- * Api Documentation
12420
- * Api Documentation
12421
- *
12422
- * OpenAPI spec version: 1.0
12423
- *
12424
- *
12425
- * NOTE: This class is auto generated by the swagger code generator program.
12426
- * https://github.com/swagger-api/swagger-codegen.git
12427
- * Do not edit the class manually.
12428
- */
12429
-
12430
- /**
12431
- * Api Documentation
12432
- * Api Documentation
12433
- *
12434
- * OpenAPI spec version: 1.0
12435
- *
12436
- *
12437
- * NOTE: This class is auto generated by the swagger code generator program.
12438
- * https://github.com/swagger-api/swagger-codegen.git
12439
- * Do not edit the class manually.
12440
- */
12441
-
12442
12382
  /**
12443
12383
  * Api Documentation
12444
12384
  * Api Documentation