@revxui/intellibid-client-ts 1.0.9 → 1.0.10
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,144 @@ 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 () {
|
|
217
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
218
|
+
type: Optional
|
|
219
|
+
}, {
|
|
220
|
+
type: Inject,
|
|
221
|
+
args: [BASE_PATH]
|
|
222
|
+
}] }, { type: Configuration, decorators: [{
|
|
223
|
+
type: Optional
|
|
224
|
+
}] }];
|
|
225
|
+
} });
|
|
226
|
+
|
|
73
227
|
/**
|
|
74
228
|
*
|
|
75
229
|
*
|
|
@@ -143,22 +297,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
143
297
|
}] }];
|
|
144
298
|
} });
|
|
145
299
|
|
|
146
|
-
/**
|
|
147
|
-
* CustomHttpUrlEncodingCodec
|
|
148
|
-
* Fix plus sign (+) not encoding, so sent as blank space
|
|
149
|
-
* See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
|
|
150
|
-
*/
|
|
151
|
-
class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {
|
|
152
|
-
encodeKey(k) {
|
|
153
|
-
k = super.encodeKey(k);
|
|
154
|
-
return k.replace(/\+/gi, '%2B');
|
|
155
|
-
}
|
|
156
|
-
encodeValue(v) {
|
|
157
|
-
v = super.encodeValue(v);
|
|
158
|
-
return v.replace(/\+/gi, '%2B');
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
|
|
162
300
|
/**
|
|
163
301
|
*
|
|
164
302
|
*
|
|
@@ -1197,7 +1335,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1197
1335
|
}] }];
|
|
1198
1336
|
} });
|
|
1199
1337
|
|
|
1200
|
-
const APIS = [BusinessGeoControllerService, CampaignControllerService, CountryControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookEngagementControllerService, PackageDetailControllerService];
|
|
1338
|
+
const APIS = [AdImageControllerService, BusinessGeoControllerService, CampaignControllerService, CountryControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookEngagementControllerService, PackageDetailControllerService];
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
*
|
|
1342
|
+
*
|
|
1343
|
+
*
|
|
1344
|
+
*
|
|
1345
|
+
*
|
|
1346
|
+
*
|
|
1347
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1348
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1349
|
+
* Do not edit the class manually.
|
|
1350
|
+
*/
|
|
1351
|
+
var AdImageResponse;
|
|
1352
|
+
(function (AdImageResponse) {
|
|
1353
|
+
AdImageResponse.StatusEnum = {
|
|
1354
|
+
ACTIVE: 'ACTIVE',
|
|
1355
|
+
DELETED: 'DELETED',
|
|
1356
|
+
INTERNAL: 'INTERNAL'
|
|
1357
|
+
};
|
|
1358
|
+
})(AdImageResponse || (AdImageResponse = {}));
|
|
1201
1359
|
|
|
1202
1360
|
/**
|
|
1203
1361
|
*
|
|
@@ -1361,6 +1519,7 @@ class ApiModule {
|
|
|
1361
1519
|
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 });
|
|
1362
1520
|
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
|
|
1363
1521
|
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
|
|
1522
|
+
AdImageControllerService,
|
|
1364
1523
|
BusinessGeoControllerService,
|
|
1365
1524
|
CampaignControllerService,
|
|
1366
1525
|
CountryControllerService,
|
|
@@ -1376,6 +1535,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1376
1535
|
declarations: [],
|
|
1377
1536
|
exports: [],
|
|
1378
1537
|
providers: [
|
|
1538
|
+
AdImageControllerService,
|
|
1379
1539
|
BusinessGeoControllerService,
|
|
1380
1540
|
CampaignControllerService,
|
|
1381
1541
|
CountryControllerService,
|
|
@@ -1399,5 +1559,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1399
1559
|
* Generated bundle index. Do not edit.
|
|
1400
1560
|
*/
|
|
1401
1561
|
|
|
1402
|
-
export { APIS, AdSetDetails, ApiModule, BASE_PATH, BusinessGeoControllerService, COLLECTION_FORMATS, CampaignControllerService, CampaignResponse, Configuration, CountryControllerService, DpaCampaignControllerService, DpaCampaignResponse, DpaEngagementChangeLogResponse, DpaEngagementControllerService, DpaEngagementResponse, FacebookEngagementControllerService, FacebookEngagementResponse, PackageDetailControllerService };
|
|
1562
|
+
export { APIS, AdImageControllerService, AdImageResponse, AdSetDetails, ApiModule, BASE_PATH, BusinessGeoControllerService, COLLECTION_FORMATS, CampaignControllerService, CampaignResponse, Configuration, CountryControllerService, DpaCampaignControllerService, DpaCampaignResponse, DpaEngagementChangeLogResponse, DpaEngagementControllerService, DpaEngagementResponse, FacebookEngagementControllerService, FacebookEngagementResponse, PackageDetailControllerService };
|
|
1403
1563
|
//# sourceMappingURL=revxui-intellibid-client-ts.mjs.map
|