@revxui/api-clients-ts 1.1.484 → 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/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/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
|
@@ -3645,212 +3645,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
3645
3645
|
type: Optional
|
|
3646
3646
|
}] }]; } });
|
|
3647
3647
|
|
|
3648
|
-
/**
|
|
3649
|
-
* Api Documentation
|
|
3650
|
-
* Api Documentation
|
|
3651
|
-
*
|
|
3652
|
-
* OpenAPI spec version: 1.0
|
|
3653
|
-
*
|
|
3654
|
-
*
|
|
3655
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
3656
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
3657
|
-
* Do not edit the class manually.
|
|
3658
|
-
*/
|
|
3659
|
-
/* tslint:disable:no-unused-variable member-ordering */
|
|
3660
|
-
class CreativeAssetOptimizationControllerService {
|
|
3661
|
-
constructor(httpClient, basePath, configuration) {
|
|
3662
|
-
this.httpClient = httpClient;
|
|
3663
|
-
this.basePath = 'https://apiv2stage7.atomex.net';
|
|
3664
|
-
this.defaultHeaders = new HttpHeaders();
|
|
3665
|
-
this.configuration = new Configuration();
|
|
3666
|
-
if (basePath) {
|
|
3667
|
-
this.basePath = basePath;
|
|
3668
|
-
}
|
|
3669
|
-
if (configuration) {
|
|
3670
|
-
this.configuration = configuration;
|
|
3671
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
3672
|
-
}
|
|
3673
|
-
}
|
|
3674
|
-
/**
|
|
3675
|
-
* @param consumes string[] mime-types
|
|
3676
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
3677
|
-
*/
|
|
3678
|
-
canConsumeForm(consumes) {
|
|
3679
|
-
const form = 'multipart/form-data';
|
|
3680
|
-
for (const consume of consumes) {
|
|
3681
|
-
if (form === consume) {
|
|
3682
|
-
return true;
|
|
3683
|
-
}
|
|
3684
|
-
}
|
|
3685
|
-
return false;
|
|
3686
|
-
}
|
|
3687
|
-
getJobStatusUsingGET(jobId, reqId, token, observe = 'body', reportProgress = false) {
|
|
3688
|
-
if (jobId === null || jobId === undefined) {
|
|
3689
|
-
throw new Error('Required parameter jobId was null or undefined when calling getJobStatusUsingGET.');
|
|
3690
|
-
}
|
|
3691
|
-
let headers = this.defaultHeaders;
|
|
3692
|
-
if (reqId !== undefined && reqId !== null) {
|
|
3693
|
-
headers = headers.set('reqId', String(reqId));
|
|
3694
|
-
}
|
|
3695
|
-
if (token !== undefined && token !== null) {
|
|
3696
|
-
headers = headers.set('token', String(token));
|
|
3697
|
-
}
|
|
3698
|
-
// to determine the Accept header
|
|
3699
|
-
let httpHeaderAccepts = [
|
|
3700
|
-
'application/json'
|
|
3701
|
-
];
|
|
3702
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3703
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
3704
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
3705
|
-
}
|
|
3706
|
-
// to determine the Content-Type header
|
|
3707
|
-
const consumes = [];
|
|
3708
|
-
return this.httpClient.get(`${this.basePath}/v2/api/creativesets/v2/jobs/${encodeURIComponent(String(jobId))}`, {
|
|
3709
|
-
withCredentials: this.configuration.withCredentials,
|
|
3710
|
-
headers: headers,
|
|
3711
|
-
observe: observe,
|
|
3712
|
-
reportProgress: reportProgress
|
|
3713
|
-
});
|
|
3714
|
-
}
|
|
3715
|
-
getSizeMappingConfigUsingGET(creativeType, reqId, token, observe = 'body', reportProgress = false) {
|
|
3716
|
-
if (creativeType === null || creativeType === undefined) {
|
|
3717
|
-
throw new Error('Required parameter creativeType was null or undefined when calling getSizeMappingConfigUsingGET.');
|
|
3718
|
-
}
|
|
3719
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
3720
|
-
if (creativeType !== undefined && creativeType !== null) {
|
|
3721
|
-
queryParameters = queryParameters.set('creativeType', creativeType);
|
|
3722
|
-
}
|
|
3723
|
-
let headers = this.defaultHeaders;
|
|
3724
|
-
if (reqId !== undefined && reqId !== null) {
|
|
3725
|
-
headers = headers.set('reqId', String(reqId));
|
|
3726
|
-
}
|
|
3727
|
-
if (token !== undefined && token !== null) {
|
|
3728
|
-
headers = headers.set('token', String(token));
|
|
3729
|
-
}
|
|
3730
|
-
// to determine the Accept header
|
|
3731
|
-
let httpHeaderAccepts = [
|
|
3732
|
-
'application/json'
|
|
3733
|
-
];
|
|
3734
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3735
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
3736
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
3737
|
-
}
|
|
3738
|
-
// to determine the Content-Type header
|
|
3739
|
-
const consumes = [];
|
|
3740
|
-
return this.httpClient.get(`${this.basePath}/v2/api/creativesets/v2/size-mapping-config`, {
|
|
3741
|
-
params: queryParameters,
|
|
3742
|
-
withCredentials: this.configuration.withCredentials,
|
|
3743
|
-
headers: headers,
|
|
3744
|
-
observe: observe,
|
|
3745
|
-
reportProgress: reportProgress
|
|
3746
|
-
});
|
|
3747
|
-
}
|
|
3748
|
-
saveUsingPOST(request, reqId, token, observe = 'body', reportProgress = false) {
|
|
3749
|
-
if (request === null || request === undefined) {
|
|
3750
|
-
throw new Error('Required parameter request was null or undefined when calling saveUsingPOST.');
|
|
3751
|
-
}
|
|
3752
|
-
let headers = this.defaultHeaders;
|
|
3753
|
-
if (reqId !== undefined && reqId !== null) {
|
|
3754
|
-
headers = headers.set('reqId', String(reqId));
|
|
3755
|
-
}
|
|
3756
|
-
if (token !== undefined && token !== null) {
|
|
3757
|
-
headers = headers.set('token', String(token));
|
|
3758
|
-
}
|
|
3759
|
-
// to determine the Accept header
|
|
3760
|
-
let httpHeaderAccepts = [
|
|
3761
|
-
'application/json'
|
|
3762
|
-
];
|
|
3763
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3764
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
3765
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
3766
|
-
}
|
|
3767
|
-
// to determine the Content-Type header
|
|
3768
|
-
const consumes = [
|
|
3769
|
-
'application/json'
|
|
3770
|
-
];
|
|
3771
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
3772
|
-
if (httpContentTypeSelected != undefined) {
|
|
3773
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
3774
|
-
}
|
|
3775
|
-
return this.httpClient.post(`${this.basePath}/v2/api/creativesets/v2/save`, request, {
|
|
3776
|
-
withCredentials: this.configuration.withCredentials,
|
|
3777
|
-
headers: headers,
|
|
3778
|
-
observe: observe,
|
|
3779
|
-
reportProgress: reportProgress
|
|
3780
|
-
});
|
|
3781
|
-
}
|
|
3782
|
-
uploadUsingPOST(advertiserId, creativeSetType, file, reqId, token, observe = 'body', reportProgress = false) {
|
|
3783
|
-
if (advertiserId === null || advertiserId === undefined) {
|
|
3784
|
-
throw new Error('Required parameter advertiserId was null or undefined when calling uploadUsingPOST.');
|
|
3785
|
-
}
|
|
3786
|
-
if (creativeSetType === null || creativeSetType === undefined) {
|
|
3787
|
-
throw new Error('Required parameter creativeSetType was null or undefined when calling uploadUsingPOST.');
|
|
3788
|
-
}
|
|
3789
|
-
if (file === null || file === undefined) {
|
|
3790
|
-
throw new Error('Required parameter file was null or undefined when calling uploadUsingPOST.');
|
|
3791
|
-
}
|
|
3792
|
-
let headers = this.defaultHeaders;
|
|
3793
|
-
if (reqId !== undefined && reqId !== null) {
|
|
3794
|
-
headers = headers.set('reqId', String(reqId));
|
|
3795
|
-
}
|
|
3796
|
-
if (token !== undefined && token !== null) {
|
|
3797
|
-
headers = headers.set('token', String(token));
|
|
3798
|
-
}
|
|
3799
|
-
// to determine the Accept header
|
|
3800
|
-
let httpHeaderAccepts = [
|
|
3801
|
-
'application/json'
|
|
3802
|
-
];
|
|
3803
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
3804
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
3805
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
3806
|
-
}
|
|
3807
|
-
// to determine the Content-Type header
|
|
3808
|
-
const consumes = [
|
|
3809
|
-
'multipart/form-data'
|
|
3810
|
-
];
|
|
3811
|
-
const canConsumeForm = this.canConsumeForm(consumes);
|
|
3812
|
-
let formParams;
|
|
3813
|
-
let useForm = false;
|
|
3814
|
-
let convertFormParamsToString = false;
|
|
3815
|
-
// use FormData to transmit files using content-type "multipart/form-data"
|
|
3816
|
-
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
3817
|
-
useForm = canConsumeForm;
|
|
3818
|
-
if (useForm) {
|
|
3819
|
-
formParams = new FormData();
|
|
3820
|
-
}
|
|
3821
|
-
else {
|
|
3822
|
-
formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
3823
|
-
}
|
|
3824
|
-
if (advertiserId !== undefined) {
|
|
3825
|
-
formParams = formParams.append('advertiserId', advertiserId) || formParams;
|
|
3826
|
-
}
|
|
3827
|
-
if (creativeSetType !== undefined) {
|
|
3828
|
-
formParams = formParams.append('creativeSetType', creativeSetType) || formParams;
|
|
3829
|
-
}
|
|
3830
|
-
if (file !== undefined) {
|
|
3831
|
-
formParams = formParams.append('file', file) || formParams;
|
|
3832
|
-
}
|
|
3833
|
-
return this.httpClient.post(`${this.basePath}/v2/api/creativesets/v2/upload`, convertFormParamsToString ? formParams.toString() : formParams, {
|
|
3834
|
-
withCredentials: this.configuration.withCredentials,
|
|
3835
|
-
headers: headers,
|
|
3836
|
-
observe: observe,
|
|
3837
|
-
reportProgress: reportProgress
|
|
3838
|
-
});
|
|
3839
|
-
}
|
|
3840
|
-
}
|
|
3841
|
-
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 });
|
|
3842
|
-
CreativeAssetOptimizationControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CreativeAssetOptimizationControllerService });
|
|
3843
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CreativeAssetOptimizationControllerService, decorators: [{
|
|
3844
|
-
type: Injectable
|
|
3845
|
-
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
3846
|
-
type: Optional
|
|
3847
|
-
}, {
|
|
3848
|
-
type: Inject,
|
|
3849
|
-
args: [BASE_PATH]
|
|
3850
|
-
}] }, { type: Configuration, decorators: [{
|
|
3851
|
-
type: Optional
|
|
3852
|
-
}] }]; } });
|
|
3853
|
-
|
|
3854
3648
|
/**
|
|
3855
3649
|
* Api Documentation
|
|
3856
3650
|
* Api Documentation
|
|
@@ -5049,12 +4843,12 @@ class CreativeSetsControllerService {
|
|
|
5049
4843
|
reportProgress: reportProgress
|
|
5050
4844
|
});
|
|
5051
4845
|
}
|
|
5052
|
-
|
|
4846
|
+
updateUsingPOST1(creativeSetRequest, id, reqId, token, observe = 'body', reportProgress = false) {
|
|
5053
4847
|
if (creativeSetRequest === null || creativeSetRequest === undefined) {
|
|
5054
|
-
throw new Error('Required parameter creativeSetRequest was null or undefined when calling
|
|
4848
|
+
throw new Error('Required parameter creativeSetRequest was null or undefined when calling updateUsingPOST1.');
|
|
5055
4849
|
}
|
|
5056
4850
|
if (id === null || id === undefined) {
|
|
5057
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
4851
|
+
throw new Error('Required parameter id was null or undefined when calling updateUsingPOST1.');
|
|
5058
4852
|
}
|
|
5059
4853
|
let headers = this.defaultHeaders;
|
|
5060
4854
|
if (reqId !== undefined && reqId !== null) {
|
|
@@ -5100,6 +4894,249 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
5100
4894
|
type: Optional
|
|
5101
4895
|
}] }]; } });
|
|
5102
4896
|
|
|
4897
|
+
/**
|
|
4898
|
+
* Api Documentation
|
|
4899
|
+
* Api Documentation
|
|
4900
|
+
*
|
|
4901
|
+
* OpenAPI spec version: 1.0
|
|
4902
|
+
*
|
|
4903
|
+
*
|
|
4904
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
4905
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
4906
|
+
* Do not edit the class manually.
|
|
4907
|
+
*/
|
|
4908
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
4909
|
+
class CreativeSetsV2ControllerService {
|
|
4910
|
+
constructor(httpClient, basePath, configuration) {
|
|
4911
|
+
this.httpClient = httpClient;
|
|
4912
|
+
this.basePath = 'https://apiv2stage7.atomex.net';
|
|
4913
|
+
this.defaultHeaders = new HttpHeaders();
|
|
4914
|
+
this.configuration = new Configuration();
|
|
4915
|
+
if (basePath) {
|
|
4916
|
+
this.basePath = basePath;
|
|
4917
|
+
}
|
|
4918
|
+
if (configuration) {
|
|
4919
|
+
this.configuration = configuration;
|
|
4920
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
4921
|
+
}
|
|
4922
|
+
}
|
|
4923
|
+
/**
|
|
4924
|
+
* @param consumes string[] mime-types
|
|
4925
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
4926
|
+
*/
|
|
4927
|
+
canConsumeForm(consumes) {
|
|
4928
|
+
const form = 'multipart/form-data';
|
|
4929
|
+
for (const consume of consumes) {
|
|
4930
|
+
if (form === consume) {
|
|
4931
|
+
return true;
|
|
4932
|
+
}
|
|
4933
|
+
}
|
|
4934
|
+
return false;
|
|
4935
|
+
}
|
|
4936
|
+
getJobStatusUsingGET(jobId, reqId, token, observe = 'body', reportProgress = false) {
|
|
4937
|
+
if (jobId === null || jobId === undefined) {
|
|
4938
|
+
throw new Error('Required parameter jobId was null or undefined when calling getJobStatusUsingGET.');
|
|
4939
|
+
}
|
|
4940
|
+
let headers = this.defaultHeaders;
|
|
4941
|
+
if (reqId !== undefined && reqId !== null) {
|
|
4942
|
+
headers = headers.set('reqId', String(reqId));
|
|
4943
|
+
}
|
|
4944
|
+
if (token !== undefined && token !== null) {
|
|
4945
|
+
headers = headers.set('token', String(token));
|
|
4946
|
+
}
|
|
4947
|
+
// to determine the Accept header
|
|
4948
|
+
let httpHeaderAccepts = [
|
|
4949
|
+
'application/json'
|
|
4950
|
+
];
|
|
4951
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
4952
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
4953
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
4954
|
+
}
|
|
4955
|
+
// to determine the Content-Type header
|
|
4956
|
+
const consumes = [];
|
|
4957
|
+
return this.httpClient.get(`${this.basePath}/v2/api/creativesets/v2/jobs/${encodeURIComponent(String(jobId))}`, {
|
|
4958
|
+
withCredentials: this.configuration.withCredentials,
|
|
4959
|
+
headers: headers,
|
|
4960
|
+
observe: observe,
|
|
4961
|
+
reportProgress: reportProgress
|
|
4962
|
+
});
|
|
4963
|
+
}
|
|
4964
|
+
getSizeMappingConfigUsingGET(creativeType, reqId, token, observe = 'body', reportProgress = false) {
|
|
4965
|
+
if (creativeType === null || creativeType === undefined) {
|
|
4966
|
+
throw new Error('Required parameter creativeType was null or undefined when calling getSizeMappingConfigUsingGET.');
|
|
4967
|
+
}
|
|
4968
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
4969
|
+
if (creativeType !== undefined && creativeType !== null) {
|
|
4970
|
+
queryParameters = queryParameters.set('creativeType', creativeType);
|
|
4971
|
+
}
|
|
4972
|
+
let headers = this.defaultHeaders;
|
|
4973
|
+
if (reqId !== undefined && reqId !== null) {
|
|
4974
|
+
headers = headers.set('reqId', String(reqId));
|
|
4975
|
+
}
|
|
4976
|
+
if (token !== undefined && token !== null) {
|
|
4977
|
+
headers = headers.set('token', String(token));
|
|
4978
|
+
}
|
|
4979
|
+
// to determine the Accept header
|
|
4980
|
+
let httpHeaderAccepts = [
|
|
4981
|
+
'application/json'
|
|
4982
|
+
];
|
|
4983
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
4984
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
4985
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
4986
|
+
}
|
|
4987
|
+
// to determine the Content-Type header
|
|
4988
|
+
const consumes = [];
|
|
4989
|
+
return this.httpClient.get(`${this.basePath}/v2/api/creativesets/v2/size-mapping-config`, {
|
|
4990
|
+
params: queryParameters,
|
|
4991
|
+
withCredentials: this.configuration.withCredentials,
|
|
4992
|
+
headers: headers,
|
|
4993
|
+
observe: observe,
|
|
4994
|
+
reportProgress: reportProgress
|
|
4995
|
+
});
|
|
4996
|
+
}
|
|
4997
|
+
saveUsingPOST(request, reqId, token, observe = 'body', reportProgress = false) {
|
|
4998
|
+
if (request === null || request === undefined) {
|
|
4999
|
+
throw new Error('Required parameter request was null or undefined when calling saveUsingPOST.');
|
|
5000
|
+
}
|
|
5001
|
+
let headers = this.defaultHeaders;
|
|
5002
|
+
if (reqId !== undefined && reqId !== null) {
|
|
5003
|
+
headers = headers.set('reqId', String(reqId));
|
|
5004
|
+
}
|
|
5005
|
+
if (token !== undefined && token !== null) {
|
|
5006
|
+
headers = headers.set('token', String(token));
|
|
5007
|
+
}
|
|
5008
|
+
// to determine the Accept header
|
|
5009
|
+
let httpHeaderAccepts = [
|
|
5010
|
+
'application/json'
|
|
5011
|
+
];
|
|
5012
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
5013
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
5014
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
5015
|
+
}
|
|
5016
|
+
// to determine the Content-Type header
|
|
5017
|
+
const consumes = [
|
|
5018
|
+
'application/json'
|
|
5019
|
+
];
|
|
5020
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
5021
|
+
if (httpContentTypeSelected != undefined) {
|
|
5022
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
5023
|
+
}
|
|
5024
|
+
return this.httpClient.post(`${this.basePath}/v2/api/creativesets/v2/save`, request, {
|
|
5025
|
+
withCredentials: this.configuration.withCredentials,
|
|
5026
|
+
headers: headers,
|
|
5027
|
+
observe: observe,
|
|
5028
|
+
reportProgress: reportProgress
|
|
5029
|
+
});
|
|
5030
|
+
}
|
|
5031
|
+
updateUsingPOST(id, request, reqId, token, observe = 'body', reportProgress = false) {
|
|
5032
|
+
if (id === null || id === undefined) {
|
|
5033
|
+
throw new Error('Required parameter id was null or undefined when calling updateUsingPOST.');
|
|
5034
|
+
}
|
|
5035
|
+
if (request === null || request === undefined) {
|
|
5036
|
+
throw new Error('Required parameter request was null or undefined when calling updateUsingPOST.');
|
|
5037
|
+
}
|
|
5038
|
+
let headers = this.defaultHeaders;
|
|
5039
|
+
if (reqId !== undefined && reqId !== null) {
|
|
5040
|
+
headers = headers.set('reqId', String(reqId));
|
|
5041
|
+
}
|
|
5042
|
+
if (token !== undefined && token !== null) {
|
|
5043
|
+
headers = headers.set('token', String(token));
|
|
5044
|
+
}
|
|
5045
|
+
// to determine the Accept header
|
|
5046
|
+
let httpHeaderAccepts = [
|
|
5047
|
+
'application/json'
|
|
5048
|
+
];
|
|
5049
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
5050
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
5051
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
5052
|
+
}
|
|
5053
|
+
// to determine the Content-Type header
|
|
5054
|
+
const consumes = [
|
|
5055
|
+
'application/json'
|
|
5056
|
+
];
|
|
5057
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
5058
|
+
if (httpContentTypeSelected != undefined) {
|
|
5059
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
5060
|
+
}
|
|
5061
|
+
return this.httpClient.post(`${this.basePath}/v2/api/creativesets/v2/save/${encodeURIComponent(String(id))}`, request, {
|
|
5062
|
+
withCredentials: this.configuration.withCredentials,
|
|
5063
|
+
headers: headers,
|
|
5064
|
+
observe: observe,
|
|
5065
|
+
reportProgress: reportProgress
|
|
5066
|
+
});
|
|
5067
|
+
}
|
|
5068
|
+
uploadUsingPOST(advertiserId, creativeSetType, file, reqId, token, observe = 'body', reportProgress = false) {
|
|
5069
|
+
if (advertiserId === null || advertiserId === undefined) {
|
|
5070
|
+
throw new Error('Required parameter advertiserId was null or undefined when calling uploadUsingPOST.');
|
|
5071
|
+
}
|
|
5072
|
+
if (creativeSetType === null || creativeSetType === undefined) {
|
|
5073
|
+
throw new Error('Required parameter creativeSetType was null or undefined when calling uploadUsingPOST.');
|
|
5074
|
+
}
|
|
5075
|
+
if (file === null || file === undefined) {
|
|
5076
|
+
throw new Error('Required parameter file was null or undefined when calling uploadUsingPOST.');
|
|
5077
|
+
}
|
|
5078
|
+
let headers = this.defaultHeaders;
|
|
5079
|
+
if (reqId !== undefined && reqId !== null) {
|
|
5080
|
+
headers = headers.set('reqId', String(reqId));
|
|
5081
|
+
}
|
|
5082
|
+
if (token !== undefined && token !== null) {
|
|
5083
|
+
headers = headers.set('token', String(token));
|
|
5084
|
+
}
|
|
5085
|
+
// to determine the Accept header
|
|
5086
|
+
let httpHeaderAccepts = [
|
|
5087
|
+
'application/json'
|
|
5088
|
+
];
|
|
5089
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
5090
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
5091
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
5092
|
+
}
|
|
5093
|
+
// to determine the Content-Type header
|
|
5094
|
+
const consumes = [
|
|
5095
|
+
'multipart/form-data'
|
|
5096
|
+
];
|
|
5097
|
+
const canConsumeForm = this.canConsumeForm(consumes);
|
|
5098
|
+
let formParams;
|
|
5099
|
+
let useForm = false;
|
|
5100
|
+
let convertFormParamsToString = false;
|
|
5101
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
5102
|
+
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
5103
|
+
useForm = canConsumeForm;
|
|
5104
|
+
if (useForm) {
|
|
5105
|
+
formParams = new FormData();
|
|
5106
|
+
}
|
|
5107
|
+
else {
|
|
5108
|
+
formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
5109
|
+
}
|
|
5110
|
+
if (advertiserId !== undefined) {
|
|
5111
|
+
formParams = formParams.append('advertiserId', advertiserId) || formParams;
|
|
5112
|
+
}
|
|
5113
|
+
if (creativeSetType !== undefined) {
|
|
5114
|
+
formParams = formParams.append('creativeSetType', creativeSetType) || formParams;
|
|
5115
|
+
}
|
|
5116
|
+
if (file !== undefined) {
|
|
5117
|
+
formParams = formParams.append('file', file) || formParams;
|
|
5118
|
+
}
|
|
5119
|
+
return this.httpClient.post(`${this.basePath}/v2/api/creativesets/v2/upload`, convertFormParamsToString ? formParams.toString() : formParams, {
|
|
5120
|
+
withCredentials: this.configuration.withCredentials,
|
|
5121
|
+
headers: headers,
|
|
5122
|
+
observe: observe,
|
|
5123
|
+
reportProgress: reportProgress
|
|
5124
|
+
});
|
|
5125
|
+
}
|
|
5126
|
+
}
|
|
5127
|
+
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 });
|
|
5128
|
+
CreativeSetsV2ControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CreativeSetsV2ControllerService });
|
|
5129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CreativeSetsV2ControllerService, decorators: [{
|
|
5130
|
+
type: Injectable
|
|
5131
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
5132
|
+
type: Optional
|
|
5133
|
+
}, {
|
|
5134
|
+
type: Inject,
|
|
5135
|
+
args: [BASE_PATH]
|
|
5136
|
+
}] }, { type: Configuration, decorators: [{
|
|
5137
|
+
type: Optional
|
|
5138
|
+
}] }]; } });
|
|
5139
|
+
|
|
5103
5140
|
/**
|
|
5104
5141
|
* Api Documentation
|
|
5105
5142
|
* Api Documentation
|
|
@@ -8106,12 +8143,12 @@ class PixelControllerService {
|
|
|
8106
8143
|
reportProgress: reportProgress
|
|
8107
8144
|
});
|
|
8108
8145
|
}
|
|
8109
|
-
|
|
8146
|
+
updateUsingPOST2(id, pixel, reqId, token, observe = 'body', reportProgress = false) {
|
|
8110
8147
|
if (id === null || id === undefined) {
|
|
8111
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
8148
|
+
throw new Error('Required parameter id was null or undefined when calling updateUsingPOST2.');
|
|
8112
8149
|
}
|
|
8113
8150
|
if (pixel === null || pixel === undefined) {
|
|
8114
|
-
throw new Error('Required parameter pixel was null or undefined when calling
|
|
8151
|
+
throw new Error('Required parameter pixel was null or undefined when calling updateUsingPOST2.');
|
|
8115
8152
|
}
|
|
8116
8153
|
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
8117
8154
|
if (id !== undefined && id !== null) {
|
|
@@ -11272,7 +11309,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
11272
11309
|
type: Optional
|
|
11273
11310
|
}] }]; } });
|
|
11274
11311
|
|
|
11275
|
-
const APIS = [AdminControllerService, AdvertiserControllerService, AppSettingsControllerService, AppsFlyerControllerService, AudienceControllerService, AuditControllerService, BidFunnelControllerService, BulkStrategyControllerService, CSSThemeController_Service, CampaignControllerService, CatalogControllerService, ClickDestinationControllerService,
|
|
11312
|
+
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];
|
|
11276
11313
|
|
|
11277
11314
|
var ABTestingDTO;
|
|
11278
11315
|
(function (ABTestingDTO) {
|
|
@@ -14720,9 +14757,9 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
|
14720
14757
|
CampaignControllerService,
|
|
14721
14758
|
CatalogControllerService,
|
|
14722
14759
|
ClickDestinationControllerService,
|
|
14723
|
-
CreativeAssetOptimizationControllerService,
|
|
14724
14760
|
CreativeControllerService,
|
|
14725
14761
|
CreativeSetsControllerService,
|
|
14762
|
+
CreativeSetsV2ControllerService,
|
|
14726
14763
|
CreativeTemplateThemesControllerService,
|
|
14727
14764
|
CreativeTemplateVariablesControllerService,
|
|
14728
14765
|
CreativeTemplatesControllerService,
|
|
@@ -14761,9 +14798,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
14761
14798
|
CampaignControllerService,
|
|
14762
14799
|
CatalogControllerService,
|
|
14763
14800
|
ClickDestinationControllerService,
|
|
14764
|
-
CreativeAssetOptimizationControllerService,
|
|
14765
14801
|
CreativeControllerService,
|
|
14766
14802
|
CreativeSetsControllerService,
|
|
14803
|
+
CreativeSetsV2ControllerService,
|
|
14767
14804
|
CreativeTemplateThemesControllerService,
|
|
14768
14805
|
CreativeTemplateVariablesControllerService,
|
|
14769
14806
|
CreativeTemplatesControllerService,
|
|
@@ -14796,5 +14833,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
14796
14833
|
* Generated bundle index. Do not edit.
|
|
14797
14834
|
*/
|
|
14798
14835
|
|
|
14799
|
-
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,
|
|
14836
|
+
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 };
|
|
14800
14837
|
//# sourceMappingURL=revxui-api-clients-ts.mjs.map
|