@revxui/api-clients-ts 1.1.483 → 1.1.485
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.
- package/README.md +2 -2
- package/api/api.d.ts +3 -3
- package/api/creativeSetsController.service.d.ts +3 -3
- package/api/{creativeAssetOptimizationController.service.d.ts → creativeSetsV2Controller.service.d.ts} +23 -4
- package/api/pixelController.service.d.ts +3 -3
- package/esm2020/api/api.mjs +4 -4
- package/esm2020/api/creativeSetsController.service.mjs +4 -4
- package/esm2020/api/creativeSetsV2Controller.service.mjs +251 -0
- package/esm2020/api/pixelController.service.mjs +4 -4
- package/esm2020/api.module.mjs +4 -4
- package/esm2020/model/creativeSetDetails.mjs +1 -1
- package/esm2020/model/creativeSetPerformanceList.mjs +1 -1
- package/esm2020/model/optimizationJobStatusResponse.mjs +1 -1
- package/fesm2015/revxui-api-clients-ts.mjs +255 -218
- package/fesm2015/revxui-api-clients-ts.mjs.map +1 -1
- package/fesm2020/revxui-api-clients-ts.mjs +253 -216
- package/fesm2020/revxui-api-clients-ts.mjs.map +1 -1
- package/model/creativeSetDetails.d.ts +1 -0
- package/model/creativeSetPerformanceList.d.ts +1 -0
- package/model/optimizationJobStatusResponse.d.ts +1 -0
- package/package.json +1 -1
- package/esm2020/api/creativeAssetOptimizationController.service.mjs +0 -214
|
@@ -3669,214 +3669,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3669
3669
|
}] }];
|
|
3670
3670
|
} });
|
|
3671
3671
|
|
|
3672
|
-
/**
|
|
3673
|
-
* Api Documentation
|
|
3674
|
-
* Api Documentation
|
|
3675
|
-
*
|
|
3676
|
-
* OpenAPI spec version: 1.0
|
|
3677
|
-
*
|
|
3678
|
-
*
|
|
3679
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
3680
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
3681
|
-
* Do not edit the class manually.
|
|
3682
|
-
*/
|
|
3683
|
-
/* tslint:disable:no-unused-variable member-ordering */
|
|
3684
|
-
class CreativeAssetOptimizationControllerService {
|
|
3685
|
-
constructor(httpClient, basePath, configuration) {
|
|
3686
|
-
this.httpClient = httpClient;
|
|
3687
|
-
this.basePath = 'https://apiv2stage7.atomex.net';
|
|
3688
|
-
this.defaultHeaders = new HttpHeaders();
|
|
3689
|
-
this.configuration = new Configuration();
|
|
3690
|
-
if (basePath) {
|
|
3691
|
-
this.basePath = basePath;
|
|
3692
|
-
}
|
|
3693
|
-
if (configuration) {
|
|
3694
|
-
this.configuration = configuration;
|
|
3695
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
3696
|
-
}
|
|
3697
|
-
}
|
|
3698
|
-
/**
|
|
3699
|
-
* @param consumes string[] mime-types
|
|
3700
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
3701
|
-
*/
|
|
3702
|
-
canConsumeForm(consumes) {
|
|
3703
|
-
const form = 'multipart/form-data';
|
|
3704
|
-
for (const consume of consumes) {
|
|
3705
|
-
if (form === consume) {
|
|
3706
|
-
return true;
|
|
3707
|
-
}
|
|
3708
|
-
}
|
|
3709
|
-
return false;
|
|
3710
|
-
}
|
|
3711
|
-
getJobStatusUsingGET(jobId, reqId, token, observe = 'body', reportProgress = false) {
|
|
3712
|
-
if (jobId === null || jobId === undefined) {
|
|
3713
|
-
throw new Error('Required parameter jobId was null or undefined when calling getJobStatusUsingGET.');
|
|
3714
|
-
}
|
|
3715
|
-
let headers = this.defaultHeaders;
|
|
3716
|
-
if (reqId !== undefined && reqId !== null) {
|
|
3717
|
-
headers = headers.set('reqId', String(reqId));
|
|
3718
|
-
}
|
|
3719
|
-
if (token !== undefined && token !== null) {
|
|
3720
|
-
headers = headers.set('token', String(token));
|
|
3721
|
-
}
|
|
3722
|
-
// to determine the Accept header
|
|
3723
|
-
let httpHeaderAccepts = [
|
|
3724
|
-
'application/json'
|
|
3725
|
-
];
|
|
3726
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3727
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
3728
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
3729
|
-
}
|
|
3730
|
-
// to determine the Content-Type header
|
|
3731
|
-
const consumes = [];
|
|
3732
|
-
return this.httpClient.get(`${this.basePath}/v2/api/creativesets/v2/jobs/${encodeURIComponent(String(jobId))}`, {
|
|
3733
|
-
withCredentials: this.configuration.withCredentials,
|
|
3734
|
-
headers: headers,
|
|
3735
|
-
observe: observe,
|
|
3736
|
-
reportProgress: reportProgress
|
|
3737
|
-
});
|
|
3738
|
-
}
|
|
3739
|
-
getSizeMappingConfigUsingGET(creativeType, reqId, token, observe = 'body', reportProgress = false) {
|
|
3740
|
-
if (creativeType === null || creativeType === undefined) {
|
|
3741
|
-
throw new Error('Required parameter creativeType was null or undefined when calling getSizeMappingConfigUsingGET.');
|
|
3742
|
-
}
|
|
3743
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
3744
|
-
if (creativeType !== undefined && creativeType !== null) {
|
|
3745
|
-
queryParameters = queryParameters.set('creativeType', creativeType);
|
|
3746
|
-
}
|
|
3747
|
-
let headers = this.defaultHeaders;
|
|
3748
|
-
if (reqId !== undefined && reqId !== null) {
|
|
3749
|
-
headers = headers.set('reqId', String(reqId));
|
|
3750
|
-
}
|
|
3751
|
-
if (token !== undefined && token !== null) {
|
|
3752
|
-
headers = headers.set('token', String(token));
|
|
3753
|
-
}
|
|
3754
|
-
// to determine the Accept header
|
|
3755
|
-
let httpHeaderAccepts = [
|
|
3756
|
-
'application/json'
|
|
3757
|
-
];
|
|
3758
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3759
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
3760
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
3761
|
-
}
|
|
3762
|
-
// to determine the Content-Type header
|
|
3763
|
-
const consumes = [];
|
|
3764
|
-
return this.httpClient.get(`${this.basePath}/v2/api/creativesets/v2/size-mapping-config`, {
|
|
3765
|
-
params: queryParameters,
|
|
3766
|
-
withCredentials: this.configuration.withCredentials,
|
|
3767
|
-
headers: headers,
|
|
3768
|
-
observe: observe,
|
|
3769
|
-
reportProgress: reportProgress
|
|
3770
|
-
});
|
|
3771
|
-
}
|
|
3772
|
-
saveUsingPOST(request, reqId, token, observe = 'body', reportProgress = false) {
|
|
3773
|
-
if (request === null || request === undefined) {
|
|
3774
|
-
throw new Error('Required parameter request was null or undefined when calling saveUsingPOST.');
|
|
3775
|
-
}
|
|
3776
|
-
let headers = this.defaultHeaders;
|
|
3777
|
-
if (reqId !== undefined && reqId !== null) {
|
|
3778
|
-
headers = headers.set('reqId', String(reqId));
|
|
3779
|
-
}
|
|
3780
|
-
if (token !== undefined && token !== null) {
|
|
3781
|
-
headers = headers.set('token', String(token));
|
|
3782
|
-
}
|
|
3783
|
-
// to determine the Accept header
|
|
3784
|
-
let httpHeaderAccepts = [
|
|
3785
|
-
'application/json'
|
|
3786
|
-
];
|
|
3787
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3788
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
3789
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
3790
|
-
}
|
|
3791
|
-
// to determine the Content-Type header
|
|
3792
|
-
const consumes = [
|
|
3793
|
-
'application/json'
|
|
3794
|
-
];
|
|
3795
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
3796
|
-
if (httpContentTypeSelected != undefined) {
|
|
3797
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
3798
|
-
}
|
|
3799
|
-
return this.httpClient.post(`${this.basePath}/v2/api/creativesets/v2/save`, request, {
|
|
3800
|
-
withCredentials: this.configuration.withCredentials,
|
|
3801
|
-
headers: headers,
|
|
3802
|
-
observe: observe,
|
|
3803
|
-
reportProgress: reportProgress
|
|
3804
|
-
});
|
|
3805
|
-
}
|
|
3806
|
-
uploadUsingPOST(advertiserId, creativeSetType, file, reqId, token, observe = 'body', reportProgress = false) {
|
|
3807
|
-
if (advertiserId === null || advertiserId === undefined) {
|
|
3808
|
-
throw new Error('Required parameter advertiserId was null or undefined when calling uploadUsingPOST.');
|
|
3809
|
-
}
|
|
3810
|
-
if (creativeSetType === null || creativeSetType === undefined) {
|
|
3811
|
-
throw new Error('Required parameter creativeSetType was null or undefined when calling uploadUsingPOST.');
|
|
3812
|
-
}
|
|
3813
|
-
if (file === null || file === undefined) {
|
|
3814
|
-
throw new Error('Required parameter file was null or undefined when calling uploadUsingPOST.');
|
|
3815
|
-
}
|
|
3816
|
-
let headers = this.defaultHeaders;
|
|
3817
|
-
if (reqId !== undefined && reqId !== null) {
|
|
3818
|
-
headers = headers.set('reqId', String(reqId));
|
|
3819
|
-
}
|
|
3820
|
-
if (token !== undefined && token !== null) {
|
|
3821
|
-
headers = headers.set('token', String(token));
|
|
3822
|
-
}
|
|
3823
|
-
// to determine the Accept header
|
|
3824
|
-
let httpHeaderAccepts = [
|
|
3825
|
-
'application/json'
|
|
3826
|
-
];
|
|
3827
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3828
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
3829
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
3830
|
-
}
|
|
3831
|
-
// to determine the Content-Type header
|
|
3832
|
-
const consumes = [
|
|
3833
|
-
'multipart/form-data'
|
|
3834
|
-
];
|
|
3835
|
-
const canConsumeForm = this.canConsumeForm(consumes);
|
|
3836
|
-
let formParams;
|
|
3837
|
-
let useForm = false;
|
|
3838
|
-
let convertFormParamsToString = false;
|
|
3839
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
3840
|
-
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
3841
|
-
useForm = canConsumeForm;
|
|
3842
|
-
if (useForm) {
|
|
3843
|
-
formParams = new FormData();
|
|
3844
|
-
}
|
|
3845
|
-
else {
|
|
3846
|
-
formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
3847
|
-
}
|
|
3848
|
-
if (advertiserId !== undefined) {
|
|
3849
|
-
formParams = formParams.append('advertiserId', advertiserId) || formParams;
|
|
3850
|
-
}
|
|
3851
|
-
if (creativeSetType !== undefined) {
|
|
3852
|
-
formParams = formParams.append('creativeSetType', creativeSetType) || formParams;
|
|
3853
|
-
}
|
|
3854
|
-
if (file !== undefined) {
|
|
3855
|
-
formParams = formParams.append('file', file) || formParams;
|
|
3856
|
-
}
|
|
3857
|
-
return this.httpClient.post(`${this.basePath}/v2/api/creativesets/v2/upload`, convertFormParamsToString ? formParams.toString() : formParams, {
|
|
3858
|
-
withCredentials: this.configuration.withCredentials,
|
|
3859
|
-
headers: headers,
|
|
3860
|
-
observe: observe,
|
|
3861
|
-
reportProgress: reportProgress
|
|
3862
|
-
});
|
|
3863
|
-
}
|
|
3864
|
-
}
|
|
3865
|
-
CreativeAssetOptimizationControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CreativeAssetOptimizationControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3866
|
-
CreativeAssetOptimizationControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CreativeAssetOptimizationControllerService });
|
|
3867
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CreativeAssetOptimizationControllerService, decorators: [{
|
|
3868
|
-
type: Injectable
|
|
3869
|
-
}], ctorParameters: function () {
|
|
3870
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
3871
|
-
type: Optional
|
|
3872
|
-
}, {
|
|
3873
|
-
type: Inject,
|
|
3874
|
-
args: [BASE_PATH]
|
|
3875
|
-
}] }, { type: Configuration, decorators: [{
|
|
3876
|
-
type: Optional
|
|
3877
|
-
}] }];
|
|
3878
|
-
} });
|
|
3879
|
-
|
|
3880
3672
|
/**
|
|
3881
3673
|
* Api Documentation
|
|
3882
3674
|
* Api Documentation
|
|
@@ -5077,12 +4869,12 @@ class CreativeSetsControllerService {
|
|
|
5077
4869
|
reportProgress: reportProgress
|
|
5078
4870
|
});
|
|
5079
4871
|
}
|
|
5080
|
-
|
|
4872
|
+
updateUsingPOST1(creativeSetRequest, id, reqId, token, observe = 'body', reportProgress = false) {
|
|
5081
4873
|
if (creativeSetRequest === null || creativeSetRequest === undefined) {
|
|
5082
|
-
throw new Error('Required parameter creativeSetRequest was null or undefined when calling
|
|
4874
|
+
throw new Error('Required parameter creativeSetRequest was null or undefined when calling updateUsingPOST1.');
|
|
5083
4875
|
}
|
|
5084
4876
|
if (id === null || id === undefined) {
|
|
5085
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
4877
|
+
throw new Error('Required parameter id was null or undefined when calling updateUsingPOST1.');
|
|
5086
4878
|
}
|
|
5087
4879
|
let headers = this.defaultHeaders;
|
|
5088
4880
|
if (reqId !== undefined && reqId !== null) {
|
|
@@ -5130,6 +4922,251 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5130
4922
|
}] }];
|
|
5131
4923
|
} });
|
|
5132
4924
|
|
|
4925
|
+
/**
|
|
4926
|
+
* Api Documentation
|
|
4927
|
+
* Api Documentation
|
|
4928
|
+
*
|
|
4929
|
+
* OpenAPI spec version: 1.0
|
|
4930
|
+
*
|
|
4931
|
+
*
|
|
4932
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
4933
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
4934
|
+
* Do not edit the class manually.
|
|
4935
|
+
*/
|
|
4936
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
4937
|
+
class CreativeSetsV2ControllerService {
|
|
4938
|
+
constructor(httpClient, basePath, configuration) {
|
|
4939
|
+
this.httpClient = httpClient;
|
|
4940
|
+
this.basePath = 'https://apiv2stage7.atomex.net';
|
|
4941
|
+
this.defaultHeaders = new HttpHeaders();
|
|
4942
|
+
this.configuration = new Configuration();
|
|
4943
|
+
if (basePath) {
|
|
4944
|
+
this.basePath = basePath;
|
|
4945
|
+
}
|
|
4946
|
+
if (configuration) {
|
|
4947
|
+
this.configuration = configuration;
|
|
4948
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
4949
|
+
}
|
|
4950
|
+
}
|
|
4951
|
+
/**
|
|
4952
|
+
* @param consumes string[] mime-types
|
|
4953
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
4954
|
+
*/
|
|
4955
|
+
canConsumeForm(consumes) {
|
|
4956
|
+
const form = 'multipart/form-data';
|
|
4957
|
+
for (const consume of consumes) {
|
|
4958
|
+
if (form === consume) {
|
|
4959
|
+
return true;
|
|
4960
|
+
}
|
|
4961
|
+
}
|
|
4962
|
+
return false;
|
|
4963
|
+
}
|
|
4964
|
+
getJobStatusUsingGET(jobId, reqId, token, observe = 'body', reportProgress = false) {
|
|
4965
|
+
if (jobId === null || jobId === undefined) {
|
|
4966
|
+
throw new Error('Required parameter jobId was null or undefined when calling getJobStatusUsingGET.');
|
|
4967
|
+
}
|
|
4968
|
+
let headers = this.defaultHeaders;
|
|
4969
|
+
if (reqId !== undefined && reqId !== null) {
|
|
4970
|
+
headers = headers.set('reqId', String(reqId));
|
|
4971
|
+
}
|
|
4972
|
+
if (token !== undefined && token !== null) {
|
|
4973
|
+
headers = headers.set('token', String(token));
|
|
4974
|
+
}
|
|
4975
|
+
// to determine the Accept header
|
|
4976
|
+
let httpHeaderAccepts = [
|
|
4977
|
+
'application/json'
|
|
4978
|
+
];
|
|
4979
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
4980
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
4981
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
4982
|
+
}
|
|
4983
|
+
// to determine the Content-Type header
|
|
4984
|
+
const consumes = [];
|
|
4985
|
+
return this.httpClient.get(`${this.basePath}/v2/api/creativesets/v2/jobs/${encodeURIComponent(String(jobId))}`, {
|
|
4986
|
+
withCredentials: this.configuration.withCredentials,
|
|
4987
|
+
headers: headers,
|
|
4988
|
+
observe: observe,
|
|
4989
|
+
reportProgress: reportProgress
|
|
4990
|
+
});
|
|
4991
|
+
}
|
|
4992
|
+
getSizeMappingConfigUsingGET(creativeType, reqId, token, observe = 'body', reportProgress = false) {
|
|
4993
|
+
if (creativeType === null || creativeType === undefined) {
|
|
4994
|
+
throw new Error('Required parameter creativeType was null or undefined when calling getSizeMappingConfigUsingGET.');
|
|
4995
|
+
}
|
|
4996
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
4997
|
+
if (creativeType !== undefined && creativeType !== null) {
|
|
4998
|
+
queryParameters = queryParameters.set('creativeType', creativeType);
|
|
4999
|
+
}
|
|
5000
|
+
let headers = this.defaultHeaders;
|
|
5001
|
+
if (reqId !== undefined && reqId !== null) {
|
|
5002
|
+
headers = headers.set('reqId', String(reqId));
|
|
5003
|
+
}
|
|
5004
|
+
if (token !== undefined && token !== null) {
|
|
5005
|
+
headers = headers.set('token', String(token));
|
|
5006
|
+
}
|
|
5007
|
+
// to determine the Accept header
|
|
5008
|
+
let httpHeaderAccepts = [
|
|
5009
|
+
'application/json'
|
|
5010
|
+
];
|
|
5011
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
5012
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
5013
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
5014
|
+
}
|
|
5015
|
+
// to determine the Content-Type header
|
|
5016
|
+
const consumes = [];
|
|
5017
|
+
return this.httpClient.get(`${this.basePath}/v2/api/creativesets/v2/size-mapping-config`, {
|
|
5018
|
+
params: queryParameters,
|
|
5019
|
+
withCredentials: this.configuration.withCredentials,
|
|
5020
|
+
headers: headers,
|
|
5021
|
+
observe: observe,
|
|
5022
|
+
reportProgress: reportProgress
|
|
5023
|
+
});
|
|
5024
|
+
}
|
|
5025
|
+
saveUsingPOST(request, reqId, token, observe = 'body', reportProgress = false) {
|
|
5026
|
+
if (request === null || request === undefined) {
|
|
5027
|
+
throw new Error('Required parameter request was null or undefined when calling saveUsingPOST.');
|
|
5028
|
+
}
|
|
5029
|
+
let headers = this.defaultHeaders;
|
|
5030
|
+
if (reqId !== undefined && reqId !== null) {
|
|
5031
|
+
headers = headers.set('reqId', String(reqId));
|
|
5032
|
+
}
|
|
5033
|
+
if (token !== undefined && token !== null) {
|
|
5034
|
+
headers = headers.set('token', String(token));
|
|
5035
|
+
}
|
|
5036
|
+
// to determine the Accept header
|
|
5037
|
+
let httpHeaderAccepts = [
|
|
5038
|
+
'application/json'
|
|
5039
|
+
];
|
|
5040
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
5041
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
5042
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
5043
|
+
}
|
|
5044
|
+
// to determine the Content-Type header
|
|
5045
|
+
const consumes = [
|
|
5046
|
+
'application/json'
|
|
5047
|
+
];
|
|
5048
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
5049
|
+
if (httpContentTypeSelected != undefined) {
|
|
5050
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
5051
|
+
}
|
|
5052
|
+
return this.httpClient.post(`${this.basePath}/v2/api/creativesets/v2/save`, request, {
|
|
5053
|
+
withCredentials: this.configuration.withCredentials,
|
|
5054
|
+
headers: headers,
|
|
5055
|
+
observe: observe,
|
|
5056
|
+
reportProgress: reportProgress
|
|
5057
|
+
});
|
|
5058
|
+
}
|
|
5059
|
+
updateUsingPOST(id, request, reqId, token, observe = 'body', reportProgress = false) {
|
|
5060
|
+
if (id === null || id === undefined) {
|
|
5061
|
+
throw new Error('Required parameter id was null or undefined when calling updateUsingPOST.');
|
|
5062
|
+
}
|
|
5063
|
+
if (request === null || request === undefined) {
|
|
5064
|
+
throw new Error('Required parameter request was null or undefined when calling updateUsingPOST.');
|
|
5065
|
+
}
|
|
5066
|
+
let headers = this.defaultHeaders;
|
|
5067
|
+
if (reqId !== undefined && reqId !== null) {
|
|
5068
|
+
headers = headers.set('reqId', String(reqId));
|
|
5069
|
+
}
|
|
5070
|
+
if (token !== undefined && token !== null) {
|
|
5071
|
+
headers = headers.set('token', String(token));
|
|
5072
|
+
}
|
|
5073
|
+
// to determine the Accept header
|
|
5074
|
+
let httpHeaderAccepts = [
|
|
5075
|
+
'application/json'
|
|
5076
|
+
];
|
|
5077
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
5078
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
5079
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
5080
|
+
}
|
|
5081
|
+
// to determine the Content-Type header
|
|
5082
|
+
const consumes = [
|
|
5083
|
+
'application/json'
|
|
5084
|
+
];
|
|
5085
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
5086
|
+
if (httpContentTypeSelected != undefined) {
|
|
5087
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
5088
|
+
}
|
|
5089
|
+
return this.httpClient.post(`${this.basePath}/v2/api/creativesets/v2/save/${encodeURIComponent(String(id))}`, request, {
|
|
5090
|
+
withCredentials: this.configuration.withCredentials,
|
|
5091
|
+
headers: headers,
|
|
5092
|
+
observe: observe,
|
|
5093
|
+
reportProgress: reportProgress
|
|
5094
|
+
});
|
|
5095
|
+
}
|
|
5096
|
+
uploadUsingPOST(advertiserId, creativeSetType, file, reqId, token, observe = 'body', reportProgress = false) {
|
|
5097
|
+
if (advertiserId === null || advertiserId === undefined) {
|
|
5098
|
+
throw new Error('Required parameter advertiserId was null or undefined when calling uploadUsingPOST.');
|
|
5099
|
+
}
|
|
5100
|
+
if (creativeSetType === null || creativeSetType === undefined) {
|
|
5101
|
+
throw new Error('Required parameter creativeSetType was null or undefined when calling uploadUsingPOST.');
|
|
5102
|
+
}
|
|
5103
|
+
if (file === null || file === undefined) {
|
|
5104
|
+
throw new Error('Required parameter file was null or undefined when calling uploadUsingPOST.');
|
|
5105
|
+
}
|
|
5106
|
+
let headers = this.defaultHeaders;
|
|
5107
|
+
if (reqId !== undefined && reqId !== null) {
|
|
5108
|
+
headers = headers.set('reqId', String(reqId));
|
|
5109
|
+
}
|
|
5110
|
+
if (token !== undefined && token !== null) {
|
|
5111
|
+
headers = headers.set('token', String(token));
|
|
5112
|
+
}
|
|
5113
|
+
// to determine the Accept header
|
|
5114
|
+
let httpHeaderAccepts = [
|
|
5115
|
+
'application/json'
|
|
5116
|
+
];
|
|
5117
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
5118
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
5119
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
5120
|
+
}
|
|
5121
|
+
// to determine the Content-Type header
|
|
5122
|
+
const consumes = [
|
|
5123
|
+
'multipart/form-data'
|
|
5124
|
+
];
|
|
5125
|
+
const canConsumeForm = this.canConsumeForm(consumes);
|
|
5126
|
+
let formParams;
|
|
5127
|
+
let useForm = false;
|
|
5128
|
+
let convertFormParamsToString = false;
|
|
5129
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
5130
|
+
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
5131
|
+
useForm = canConsumeForm;
|
|
5132
|
+
if (useForm) {
|
|
5133
|
+
formParams = new FormData();
|
|
5134
|
+
}
|
|
5135
|
+
else {
|
|
5136
|
+
formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
5137
|
+
}
|
|
5138
|
+
if (advertiserId !== undefined) {
|
|
5139
|
+
formParams = formParams.append('advertiserId', advertiserId) || formParams;
|
|
5140
|
+
}
|
|
5141
|
+
if (creativeSetType !== undefined) {
|
|
5142
|
+
formParams = formParams.append('creativeSetType', creativeSetType) || formParams;
|
|
5143
|
+
}
|
|
5144
|
+
if (file !== undefined) {
|
|
5145
|
+
formParams = formParams.append('file', file) || formParams;
|
|
5146
|
+
}
|
|
5147
|
+
return this.httpClient.post(`${this.basePath}/v2/api/creativesets/v2/upload`, convertFormParamsToString ? formParams.toString() : formParams, {
|
|
5148
|
+
withCredentials: this.configuration.withCredentials,
|
|
5149
|
+
headers: headers,
|
|
5150
|
+
observe: observe,
|
|
5151
|
+
reportProgress: reportProgress
|
|
5152
|
+
});
|
|
5153
|
+
}
|
|
5154
|
+
}
|
|
5155
|
+
CreativeSetsV2ControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CreativeSetsV2ControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5156
|
+
CreativeSetsV2ControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CreativeSetsV2ControllerService });
|
|
5157
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CreativeSetsV2ControllerService, decorators: [{
|
|
5158
|
+
type: Injectable
|
|
5159
|
+
}], ctorParameters: function () {
|
|
5160
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
5161
|
+
type: Optional
|
|
5162
|
+
}, {
|
|
5163
|
+
type: Inject,
|
|
5164
|
+
args: [BASE_PATH]
|
|
5165
|
+
}] }, { type: Configuration, decorators: [{
|
|
5166
|
+
type: Optional
|
|
5167
|
+
}] }];
|
|
5168
|
+
} });
|
|
5169
|
+
|
|
5133
5170
|
/**
|
|
5134
5171
|
* Api Documentation
|
|
5135
5172
|
* Api Documentation
|
|
@@ -8152,12 +8189,12 @@ class PixelControllerService {
|
|
|
8152
8189
|
reportProgress: reportProgress
|
|
8153
8190
|
});
|
|
8154
8191
|
}
|
|
8155
|
-
|
|
8192
|
+
updateUsingPOST2(id, pixel, reqId, token, observe = 'body', reportProgress = false) {
|
|
8156
8193
|
if (id === null || id === undefined) {
|
|
8157
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
8194
|
+
throw new Error('Required parameter id was null or undefined when calling updateUsingPOST2.');
|
|
8158
8195
|
}
|
|
8159
8196
|
if (pixel === null || pixel === undefined) {
|
|
8160
|
-
throw new Error('Required parameter pixel was null or undefined when calling
|
|
8197
|
+
throw new Error('Required parameter pixel was null or undefined when calling updateUsingPOST2.');
|
|
8161
8198
|
}
|
|
8162
8199
|
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
8163
8200
|
if (id !== undefined && id !== null) {
|
|
@@ -11338,7 +11375,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
11338
11375
|
}] }];
|
|
11339
11376
|
} });
|
|
11340
11377
|
|
|
11341
|
-
const APIS = [AdminControllerService, AdvertiserControllerService, AppSettingsControllerService, AppsFlyerControllerService, AudienceControllerService, AuditControllerService, BidFunnelControllerService, BulkStrategyControllerService, CSSThemeController_Service, CampaignControllerService, CatalogControllerService, ClickDestinationControllerService,
|
|
11378
|
+
const APIS = [AdminControllerService, AdvertiserControllerService, AppSettingsControllerService, AppsFlyerControllerService, AudienceControllerService, AuditControllerService, BidFunnelControllerService, BulkStrategyControllerService, CSSThemeController_Service, CampaignControllerService, CatalogControllerService, ClickDestinationControllerService, CreativeControllerService, CreativeSetsControllerService, CreativeSetsV2ControllerService, CreativeTemplateThemesControllerService, CreativeTemplateVariablesControllerService, CreativeTemplatesControllerService, CustomerReportingControllerService, DCOVideoSettingsControllerService, DashboardControllerService, ExperimentsControllerService, NotificationsControllerService, PixelControllerService, ReportControllerService, ReportingControllerService, ReportingSchedulerControllerService, SafeguardControllerService, SliceXControllerService, StrategyControllerService, StrategyTemplateControllerService, UILoggerControllerService, UserPreferenceControllerService];
|
|
11342
11379
|
|
|
11343
11380
|
var ABTestingDTO;
|
|
11344
11381
|
(function (ABTestingDTO) {
|
|
@@ -13250,9 +13287,9 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
|
13250
13287
|
CampaignControllerService,
|
|
13251
13288
|
CatalogControllerService,
|
|
13252
13289
|
ClickDestinationControllerService,
|
|
13253
|
-
CreativeAssetOptimizationControllerService,
|
|
13254
13290
|
CreativeControllerService,
|
|
13255
13291
|
CreativeSetsControllerService,
|
|
13292
|
+
CreativeSetsV2ControllerService,
|
|
13256
13293
|
CreativeTemplateThemesControllerService,
|
|
13257
13294
|
CreativeTemplateVariablesControllerService,
|
|
13258
13295
|
CreativeTemplatesControllerService,
|
|
@@ -13291,9 +13328,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
13291
13328
|
CampaignControllerService,
|
|
13292
13329
|
CatalogControllerService,
|
|
13293
13330
|
ClickDestinationControllerService,
|
|
13294
|
-
CreativeAssetOptimizationControllerService,
|
|
13295
13331
|
CreativeControllerService,
|
|
13296
13332
|
CreativeSetsControllerService,
|
|
13333
|
+
CreativeSetsV2ControllerService,
|
|
13297
13334
|
CreativeTemplateThemesControllerService,
|
|
13298
13335
|
CreativeTemplateVariablesControllerService,
|
|
13299
13336
|
CreativeTemplatesControllerService,
|
|
@@ -13328,5 +13365,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
13328
13365
|
* Generated bundle index. Do not edit.
|
|
13329
13366
|
*/
|
|
13330
13367
|
|
|
13331
|
-
export { ABTestingDTO, ABTestingResponseDetails, ABTestingVariantDTO, APIS, ActivityLogsCreativeSetsBulkUpdateDTO, ActivityLogsStrategyBulkUpdateDTO, AdminControllerService, AdvertiserAppSettingsDTO, AdvertiserCohortDTO, AdvertiserCohortResponse, AdvertiserControllerService, AdvertiserSettings, ApiModule, AppSettingsControllerService, AppSettingsDTO, AppSettingsPropertyDTO, AppsFlyerControllerService, AuctionTypeEditField, AudienceBackfillQueryTemplateRequest, AudienceBackfillRequest, AudienceControllerService, AudienceDTO, AudienceESDTO, AudiencePerformanceDTO, AuditControllerService, BASE_PATH, BaseModelWithCreativeSetType, BidFunnelControllerService, BulkStrategyControllerService, COLLECTION_FORMATS, CSSThemeController_Service, CampaignControllerService, CatalogControllerService, ClickDestination, ClickDestinationControllerService, CohortCampaignStrategyDO, Configuration,
|
|
13368
|
+
export { ABTestingDTO, ABTestingResponseDetails, ABTestingVariantDTO, APIS, ActivityLogsCreativeSetsBulkUpdateDTO, ActivityLogsStrategyBulkUpdateDTO, AdminControllerService, AdvertiserAppSettingsDTO, AdvertiserCohortDTO, AdvertiserCohortResponse, AdvertiserControllerService, AdvertiserSettings, ApiModule, AppSettingsControllerService, AppSettingsDTO, AppSettingsPropertyDTO, AppsFlyerControllerService, AuctionTypeEditField, AudienceBackfillQueryTemplateRequest, AudienceBackfillRequest, AudienceControllerService, AudienceDTO, AudienceESDTO, AudiencePerformanceDTO, AuditControllerService, BASE_PATH, BaseModelWithCreativeSetType, BidFunnelControllerService, BulkStrategyControllerService, COLLECTION_FORMATS, CSSThemeController_Service, CampaignControllerService, CatalogControllerService, ClickDestination, ClickDestinationControllerService, CohortCampaignStrategyDO, Configuration, CreativeAssetOptimizationRequest, CreativeAssetUploadResponse, CreativeCompactDTO, CreativeControllerService, CreativeDTO, CreativeDetails, CreativeEntity, CreativeFileForSet, CreativeFiles, CreativeHtmlFileForSet, CreativeSetDashboardMetric, CreativeSetDetails, CreativeSetPerformanceList, CreativeSetRequest, CreativeSetResponse, CreativeSetsControllerService, CreativeSetsV2ControllerService, CreativeSizeMappingDTO, CreativeTemplateThemesControllerService, CreativeTemplateVariablesControllerService, CreativeTemplatesControllerService, CustomerReportingControllerService, DCOVideoSettingsControllerService, DashboardControllerService, DcoAttributesDTO, DcoVideoAssetDTO, DeviceTargetModel, DuplicateCampaignStrategyRequestDTO, DuplicateCreativeSetResponse, DynamicVideoConfigDTO, EndCardSelectionDTO, EndCards, ExperimentsControllerService, ExperimentsEntity, FilterModel, GeoFenceDTO, GeoListRequest, IncrementalityTestDTO, IncrementalityTestDetails, JobResponse, JsonNode, LookAlikeAudienceConfigDTO, Macro, MetaRuleDto, NotificationResponse, NotificationsControllerService, OptimizationJobItemStatusDTO, OptimizationJobStatusResponse, OptimizationRuleAuditLogDTO, OptimizationRuleDTO, PixelControllerService, PixelDataFileDTO, RecencyTargetingDTO, RemoteFileDTO, ReportControllerService, ReportProperty, ReportRequest, ReportResponse, ReportingControllerService, ReportingRequest, ReportingResponse, ReportingSchedulerControllerService, ReportingSchedulerResponse, RuleDTO, SafeguardBlockedItemDTO, SafeguardControllerService, SafeguardDetail, SafeguardExclusionDTO, SafeguardRequestDTO, SafeguardResponseDTO, SchedulerRequest, SelectedTargetDTO, SliceXControllerService, StrategyControllerService, StrategyDTO, StrategyInlineDTO, StrategyQuickEditDTO, StrategyRuleResponse, StrategyTemplateControllerService, StrategyTemplateDTO, StrategyTemplateResponse, TemplateVariablesDTO, UILoggerControllerService, UserPreferenceControllerService, VastCreative, VideoAttributes, VideoProperties, WhitelabelingEntity };
|
|
13332
13369
|
//# sourceMappingURL=revxui-api-clients-ts.mjs.map
|