@revxui/intellibid-client-ts 1.0.16 → 1.0.17
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 -1
- package/api/campaignInsightsController.service.d.ts +31 -0
- package/esm2020/api/api.mjs +4 -2
- package/esm2020/api/campaignInsightsController.service.mjs +96 -0
- package/esm2020/api.module.mjs +4 -1
- package/esm2020/model/campaignInsightsResponse.mjs +13 -0
- package/esm2020/model/models.mjs +2 -1
- package/esm2020/model/pageableObject.mjs +1 -1
- package/fesm2015/revxui-intellibid-client-ts.mjs +94 -2
- package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
- package/fesm2020/revxui-intellibid-client-ts.mjs +104 -2
- package/fesm2020/revxui-intellibid-client-ts.mjs.map +1 -1
- package/model/campaignInsightsResponse.d.ts +32 -0
- package/model/models.d.ts +1 -0
- package/model/pageableObject.d.ts +1 -1
- package/package.json +1 -1
|
@@ -625,6 +625,94 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
625
625
|
type: Optional
|
|
626
626
|
}] }]; } });
|
|
627
627
|
|
|
628
|
+
/**
|
|
629
|
+
*
|
|
630
|
+
*
|
|
631
|
+
*
|
|
632
|
+
*
|
|
633
|
+
*
|
|
634
|
+
*
|
|
635
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
636
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
637
|
+
* Do not edit the class manually.
|
|
638
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
639
|
+
class CampaignInsightsControllerService {
|
|
640
|
+
constructor(httpClient, basePath, configuration) {
|
|
641
|
+
this.httpClient = httpClient;
|
|
642
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
643
|
+
this.defaultHeaders = new HttpHeaders();
|
|
644
|
+
this.configuration = new Configuration();
|
|
645
|
+
if (basePath) {
|
|
646
|
+
this.basePath = basePath;
|
|
647
|
+
}
|
|
648
|
+
if (configuration) {
|
|
649
|
+
this.configuration = configuration;
|
|
650
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
/**
|
|
654
|
+
* @param consumes string[] mime-types
|
|
655
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
656
|
+
*/
|
|
657
|
+
canConsumeForm(consumes) {
|
|
658
|
+
const form = 'multipart/form-data';
|
|
659
|
+
for (const consume of consumes) {
|
|
660
|
+
if (form === consume) {
|
|
661
|
+
return true;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
return false;
|
|
665
|
+
}
|
|
666
|
+
getCampaignInsights(advertiserId, startDate, endDate, observe = 'body', reportProgress = false) {
|
|
667
|
+
if (advertiserId === null || advertiserId === undefined) {
|
|
668
|
+
throw new Error('Required parameter advertiserId was null or undefined when calling getCampaignInsights.');
|
|
669
|
+
}
|
|
670
|
+
if (startDate === null || startDate === undefined) {
|
|
671
|
+
throw new Error('Required parameter startDate was null or undefined when calling getCampaignInsights.');
|
|
672
|
+
}
|
|
673
|
+
if (endDate === null || endDate === undefined) {
|
|
674
|
+
throw new Error('Required parameter endDate was null or undefined when calling getCampaignInsights.');
|
|
675
|
+
}
|
|
676
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
677
|
+
if (startDate !== undefined && startDate !== null) {
|
|
678
|
+
queryParameters = queryParameters.set('startDate', startDate);
|
|
679
|
+
}
|
|
680
|
+
if (endDate !== undefined && endDate !== null) {
|
|
681
|
+
queryParameters = queryParameters.set('endDate', endDate);
|
|
682
|
+
}
|
|
683
|
+
let headers = this.defaultHeaders;
|
|
684
|
+
// to determine the Accept header
|
|
685
|
+
let httpHeaderAccepts = [
|
|
686
|
+
'*/*'
|
|
687
|
+
];
|
|
688
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
689
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
690
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
691
|
+
}
|
|
692
|
+
// to determine the Content-Type header
|
|
693
|
+
const consumes = [];
|
|
694
|
+
return this.httpClient.request('get', `${this.basePath}/api/campaign-insights/${encodeURIComponent(String(advertiserId))}`, {
|
|
695
|
+
params: queryParameters,
|
|
696
|
+
withCredentials: this.configuration.withCredentials,
|
|
697
|
+
headers: headers,
|
|
698
|
+
observe: observe,
|
|
699
|
+
reportProgress: reportProgress
|
|
700
|
+
});
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
CampaignInsightsControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignInsightsControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
704
|
+
CampaignInsightsControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignInsightsControllerService });
|
|
705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignInsightsControllerService, decorators: [{
|
|
706
|
+
type: Injectable
|
|
707
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
708
|
+
type: Optional
|
|
709
|
+
}, {
|
|
710
|
+
type: Inject,
|
|
711
|
+
args: [BASE_PATH]
|
|
712
|
+
}] }, { type: Configuration, decorators: [{
|
|
713
|
+
type: Optional
|
|
714
|
+
}] }]; } });
|
|
715
|
+
|
|
628
716
|
/**
|
|
629
717
|
*
|
|
630
718
|
*
|
|
@@ -1654,7 +1742,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1654
1742
|
type: Optional
|
|
1655
1743
|
}] }]; } });
|
|
1656
1744
|
|
|
1657
|
-
const APIS = [AdImageControllerService, AdVideoControllerService, BusinessGeoControllerService, CampaignControllerService, CountryControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookEngagementControllerService, MobileAppDetailControllerService, PackageDetailControllerService];
|
|
1745
|
+
const APIS = [AdImageControllerService, AdVideoControllerService, BusinessGeoControllerService, CampaignControllerService, CampaignInsightsControllerService, CountryControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookEngagementControllerService, MobileAppDetailControllerService, PackageDetailControllerService];
|
|
1658
1746
|
|
|
1659
1747
|
/**
|
|
1660
1748
|
*
|
|
@@ -1732,6 +1820,18 @@ var AdSetDetails;
|
|
|
1732
1820
|
* Do not edit the class manually.
|
|
1733
1821
|
*/
|
|
1734
1822
|
|
|
1823
|
+
/**
|
|
1824
|
+
*
|
|
1825
|
+
*
|
|
1826
|
+
*
|
|
1827
|
+
*
|
|
1828
|
+
*
|
|
1829
|
+
*
|
|
1830
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1831
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1832
|
+
* Do not edit the class manually.
|
|
1833
|
+
*/
|
|
1834
|
+
|
|
1735
1835
|
/**
|
|
1736
1836
|
*
|
|
1737
1837
|
*
|
|
@@ -2022,6 +2122,7 @@ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
|
2022
2122
|
AdVideoControllerService,
|
|
2023
2123
|
BusinessGeoControllerService,
|
|
2024
2124
|
CampaignControllerService,
|
|
2125
|
+
CampaignInsightsControllerService,
|
|
2025
2126
|
CountryControllerService,
|
|
2026
2127
|
DpaCampaignControllerService,
|
|
2027
2128
|
DpaEngagementControllerService,
|
|
@@ -2040,6 +2141,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2040
2141
|
AdVideoControllerService,
|
|
2041
2142
|
BusinessGeoControllerService,
|
|
2042
2143
|
CampaignControllerService,
|
|
2144
|
+
CampaignInsightsControllerService,
|
|
2043
2145
|
CountryControllerService,
|
|
2044
2146
|
DpaCampaignControllerService,
|
|
2045
2147
|
DpaEngagementControllerService,
|
|
@@ -2060,5 +2162,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
2060
2162
|
* Generated bundle index. Do not edit.
|
|
2061
2163
|
*/
|
|
2062
2164
|
|
|
2063
|
-
export { APIS, AdImageControllerService, AdImageResponse, AdSetDetails, AdVideoControllerService, ApiModule, BASE_PATH, BusinessGeoControllerService, COLLECTION_FORMATS, CampaignControllerService, CampaignResponse, Configuration, CountryControllerService, DpaCampaignControllerService, DpaCampaignResponse, DpaEngagementChangeLogResponse, DpaEngagementControllerService, DpaEngagementResponse, FacebookEngagementControllerService, FacebookEngagementResponse, MobileAppDetailControllerService, PackageDetailControllerService };
|
|
2165
|
+
export { APIS, AdImageControllerService, AdImageResponse, AdSetDetails, AdVideoControllerService, ApiModule, BASE_PATH, BusinessGeoControllerService, COLLECTION_FORMATS, CampaignControllerService, CampaignInsightsControllerService, CampaignResponse, Configuration, CountryControllerService, DpaCampaignControllerService, DpaCampaignResponse, DpaEngagementChangeLogResponse, DpaEngagementControllerService, DpaEngagementResponse, FacebookEngagementControllerService, FacebookEngagementResponse, MobileAppDetailControllerService, PackageDetailControllerService };
|
|
2064
2166
|
//# sourceMappingURL=revxui-intellibid-client-ts.mjs.map
|