@revxui/intellibid-client-ts 1.0.9 → 1.0.11
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/adImageController.service.d.ts +52 -0
- package/api/api.d.ts +3 -1
- package/esm2020/api/adImageController.service.mjs +144 -0
- package/esm2020/api/api.mjs +4 -2
- package/esm2020/api.module.mjs +4 -1
- package/esm2020/model/adImageResponse.mjs +20 -0
- package/esm2020/model/models.mjs +2 -1
- package/esm2020/model/pageCampaignResponse.mjs +1 -1
- package/esm2020/model/pageDpaEngagementChangeLogResponse.mjs +1 -1
- package/esm2020/model/pageDpaEngagementResponse.mjs +1 -1
- package/esm2020/model/pageFacebookEngagementResponse.mjs +1 -1
- package/esm2020/model/pagePackageDetailResponse.mjs +1 -1
- package/esm2020/model/pageableObject.mjs +1 -1
- package/fesm2015/revxui-intellibid-client-ts.mjs +179 -19
- package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
- package/fesm2020/revxui-intellibid-client-ts.mjs +177 -19
- package/fesm2020/revxui-intellibid-client-ts.mjs.map +1 -1
- package/model/adImageResponse.d.ts +26 -0
- package/model/models.d.ts +1 -0
- package/model/pageCampaignResponse.d.ts +2 -2
- package/model/pageDpaEngagementChangeLogResponse.d.ts +2 -2
- package/model/pageDpaEngagementResponse.d.ts +2 -2
- package/model/pageFacebookEngagementResponse.d.ts +2 -2
- package/model/pagePackageDetailResponse.d.ts +2 -2
- package/model/pageableObject.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,7 +1,23 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Injectable, Optional, Inject, NgModule, SkipSelf } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
|
-
import {
|
|
4
|
+
import { HttpUrlEncodingCodec, HttpHeaders, HttpParams } from '@angular/common/http';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* CustomHttpUrlEncodingCodec
|
|
8
|
+
* Fix plus sign (+) not encoding, so sent as blank space
|
|
9
|
+
* See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
|
|
10
|
+
*/
|
|
11
|
+
class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {
|
|
12
|
+
encodeKey(k) {
|
|
13
|
+
k = super.encodeKey(k);
|
|
14
|
+
return k.replace(/\+/gi, '%2B');
|
|
15
|
+
}
|
|
16
|
+
encodeValue(v) {
|
|
17
|
+
v = super.encodeValue(v);
|
|
18
|
+
return v.replace(/\+/gi, '%2B');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
5
21
|
|
|
6
22
|
const BASE_PATH = new InjectionToken('basePath');
|
|
7
23
|
const COLLECTION_FORMATS = {
|
|
@@ -70,6 +86,142 @@ class Configuration {
|
|
|
70
86
|
}
|
|
71
87
|
}
|
|
72
88
|
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
*
|
|
92
|
+
*
|
|
93
|
+
*
|
|
94
|
+
*
|
|
95
|
+
*
|
|
96
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
97
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
98
|
+
* Do not edit the class manually.
|
|
99
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
100
|
+
class AdImageControllerService {
|
|
101
|
+
constructor(httpClient, basePath, configuration) {
|
|
102
|
+
this.httpClient = httpClient;
|
|
103
|
+
this.basePath = 'http://dev1-intellibid-svc.revx.io';
|
|
104
|
+
this.defaultHeaders = new HttpHeaders();
|
|
105
|
+
this.configuration = new Configuration();
|
|
106
|
+
if (basePath) {
|
|
107
|
+
this.basePath = basePath;
|
|
108
|
+
}
|
|
109
|
+
if (configuration) {
|
|
110
|
+
this.configuration = configuration;
|
|
111
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* @param consumes string[] mime-types
|
|
116
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
117
|
+
*/
|
|
118
|
+
canConsumeForm(consumes) {
|
|
119
|
+
const form = 'multipart/form-data';
|
|
120
|
+
for (const consume of consumes) {
|
|
121
|
+
if (form === consume) {
|
|
122
|
+
return true;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
127
|
+
deleteAdImage(adAccountId, hash, observe = 'body', reportProgress = false) {
|
|
128
|
+
if (adAccountId === null || adAccountId === undefined) {
|
|
129
|
+
throw new Error('Required parameter adAccountId was null or undefined when calling deleteAdImage.');
|
|
130
|
+
}
|
|
131
|
+
if (hash === null || hash === undefined) {
|
|
132
|
+
throw new Error('Required parameter hash was null or undefined when calling deleteAdImage.');
|
|
133
|
+
}
|
|
134
|
+
let headers = this.defaultHeaders;
|
|
135
|
+
// to determine the Accept header
|
|
136
|
+
let httpHeaderAccepts = [];
|
|
137
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
138
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
139
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
140
|
+
}
|
|
141
|
+
// to determine the Content-Type header
|
|
142
|
+
const consumes = [];
|
|
143
|
+
return this.httpClient.request('delete', `${this.basePath}/api/facebook/${encodeURIComponent(String(adAccountId))}/ad-image/${encodeURIComponent(String(hash))}`, {
|
|
144
|
+
withCredentials: this.configuration.withCredentials,
|
|
145
|
+
headers: headers,
|
|
146
|
+
observe: observe,
|
|
147
|
+
reportProgress: reportProgress
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
getAllAdImages(adAccountId, hashes, observe = 'body', reportProgress = false) {
|
|
151
|
+
if (adAccountId === null || adAccountId === undefined) {
|
|
152
|
+
throw new Error('Required parameter adAccountId was null or undefined when calling getAllAdImages.');
|
|
153
|
+
}
|
|
154
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
155
|
+
if (hashes) {
|
|
156
|
+
hashes.forEach((element) => {
|
|
157
|
+
queryParameters = queryParameters.append('hashes', element);
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
let headers = this.defaultHeaders;
|
|
161
|
+
// to determine the Accept header
|
|
162
|
+
let httpHeaderAccepts = [
|
|
163
|
+
'*/*'
|
|
164
|
+
];
|
|
165
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
166
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
167
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
168
|
+
}
|
|
169
|
+
// to determine the Content-Type header
|
|
170
|
+
const consumes = [];
|
|
171
|
+
return this.httpClient.request('get', `${this.basePath}/api/facebook/${encodeURIComponent(String(adAccountId))}/ad-image`, {
|
|
172
|
+
params: queryParameters,
|
|
173
|
+
withCredentials: this.configuration.withCredentials,
|
|
174
|
+
headers: headers,
|
|
175
|
+
observe: observe,
|
|
176
|
+
reportProgress: reportProgress
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
uploadAdImages(adAccountId, files, observe = 'body', reportProgress = false) {
|
|
180
|
+
if (adAccountId === null || adAccountId === undefined) {
|
|
181
|
+
throw new Error('Required parameter adAccountId was null or undefined when calling uploadAdImages.');
|
|
182
|
+
}
|
|
183
|
+
if (files === null || files === undefined) {
|
|
184
|
+
throw new Error('Required parameter files was null or undefined when calling uploadAdImages.');
|
|
185
|
+
}
|
|
186
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
187
|
+
if (files) {
|
|
188
|
+
files.forEach((element) => {
|
|
189
|
+
queryParameters = queryParameters.append('files', element);
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
let headers = this.defaultHeaders;
|
|
193
|
+
// to determine the Accept header
|
|
194
|
+
let httpHeaderAccepts = [
|
|
195
|
+
'*/*'
|
|
196
|
+
];
|
|
197
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
198
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
199
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
200
|
+
}
|
|
201
|
+
// to determine the Content-Type header
|
|
202
|
+
const consumes = [];
|
|
203
|
+
return this.httpClient.request('post', `${this.basePath}/api/facebook/${encodeURIComponent(String(adAccountId))}/ad-image`, {
|
|
204
|
+
params: queryParameters,
|
|
205
|
+
withCredentials: this.configuration.withCredentials,
|
|
206
|
+
headers: headers,
|
|
207
|
+
observe: observe,
|
|
208
|
+
reportProgress: reportProgress
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
AdImageControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdImageControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
213
|
+
AdImageControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdImageControllerService });
|
|
214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdImageControllerService, decorators: [{
|
|
215
|
+
type: Injectable
|
|
216
|
+
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
217
|
+
type: Optional
|
|
218
|
+
}, {
|
|
219
|
+
type: Inject,
|
|
220
|
+
args: [BASE_PATH]
|
|
221
|
+
}] }, { type: Configuration, decorators: [{
|
|
222
|
+
type: Optional
|
|
223
|
+
}] }]; } });
|
|
224
|
+
|
|
73
225
|
/**
|
|
74
226
|
*
|
|
75
227
|
*
|
|
@@ -141,22 +293,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
141
293
|
type: Optional
|
|
142
294
|
}] }]; } });
|
|
143
295
|
|
|
144
|
-
/**
|
|
145
|
-
* CustomHttpUrlEncodingCodec
|
|
146
|
-
* Fix plus sign (+) not encoding, so sent as blank space
|
|
147
|
-
* See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
|
|
148
|
-
*/
|
|
149
|
-
class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {
|
|
150
|
-
encodeKey(k) {
|
|
151
|
-
k = super.encodeKey(k);
|
|
152
|
-
return k.replace(/\+/gi, '%2B');
|
|
153
|
-
}
|
|
154
|
-
encodeValue(v) {
|
|
155
|
-
v = super.encodeValue(v);
|
|
156
|
-
return v.replace(/\+/gi, '%2B');
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
296
|
/**
|
|
161
297
|
*
|
|
162
298
|
*
|
|
@@ -1183,7 +1319,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1183
1319
|
type: Optional
|
|
1184
1320
|
}] }]; } });
|
|
1185
1321
|
|
|
1186
|
-
const APIS = [BusinessGeoControllerService, CampaignControllerService, CountryControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookEngagementControllerService, PackageDetailControllerService];
|
|
1322
|
+
const APIS = [AdImageControllerService, BusinessGeoControllerService, CampaignControllerService, CountryControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookEngagementControllerService, PackageDetailControllerService];
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
*
|
|
1326
|
+
*
|
|
1327
|
+
*
|
|
1328
|
+
*
|
|
1329
|
+
*
|
|
1330
|
+
*
|
|
1331
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1332
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1333
|
+
* Do not edit the class manually.
|
|
1334
|
+
*/
|
|
1335
|
+
var AdImageResponse;
|
|
1336
|
+
(function (AdImageResponse) {
|
|
1337
|
+
AdImageResponse.StatusEnum = {
|
|
1338
|
+
ACTIVE: 'ACTIVE',
|
|
1339
|
+
DELETED: 'DELETED',
|
|
1340
|
+
INTERNAL: 'INTERNAL'
|
|
1341
|
+
};
|
|
1342
|
+
})(AdImageResponse || (AdImageResponse = {}));
|
|
1187
1343
|
|
|
1188
1344
|
/**
|
|
1189
1345
|
*
|
|
@@ -1491,6 +1647,7 @@ class ApiModule {
|
|
|
1491
1647
|
ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, deps: [{ token: ApiModule, optional: true, skipSelf: true }, { token: i1.HttpClient, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1492
1648
|
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
|
|
1493
1649
|
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
|
|
1650
|
+
AdImageControllerService,
|
|
1494
1651
|
BusinessGeoControllerService,
|
|
1495
1652
|
CampaignControllerService,
|
|
1496
1653
|
CountryControllerService,
|
|
@@ -1506,6 +1663,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1506
1663
|
declarations: [],
|
|
1507
1664
|
exports: [],
|
|
1508
1665
|
providers: [
|
|
1666
|
+
AdImageControllerService,
|
|
1509
1667
|
BusinessGeoControllerService,
|
|
1510
1668
|
CampaignControllerService,
|
|
1511
1669
|
CountryControllerService,
|
|
@@ -1527,5 +1685,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1527
1685
|
* Generated bundle index. Do not edit.
|
|
1528
1686
|
*/
|
|
1529
1687
|
|
|
1530
|
-
export { APIS, AdSetDetails, ApiModule, BASE_PATH, BusinessGeoControllerService, COLLECTION_FORMATS, CampaignControllerService, CampaignResponse, Configuration, CountryControllerService, DpaCampaignControllerService, DpaCampaignResponse, DpaEngagementChangeLogResponse, DpaEngagementControllerService, DpaEngagementResponse, FacebookEngagementControllerService, FacebookEngagementResponse, PackageDetailControllerService };
|
|
1688
|
+
export { APIS, AdImageControllerService, AdImageResponse, AdSetDetails, ApiModule, BASE_PATH, BusinessGeoControllerService, COLLECTION_FORMATS, CampaignControllerService, CampaignResponse, Configuration, CountryControllerService, DpaCampaignControllerService, DpaCampaignResponse, DpaEngagementChangeLogResponse, DpaEngagementControllerService, DpaEngagementResponse, FacebookEngagementControllerService, FacebookEngagementResponse, PackageDetailControllerService };
|
|
1531
1689
|
//# sourceMappingURL=revxui-intellibid-client-ts.mjs.map
|