@revxui/intellibid-client-ts 1.0.8 → 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/api/dpaEngagementController.service.d.ts +14 -0
- package/esm2020/api/adImageController.service.mjs +144 -0
- package/esm2020/api/api.mjs +4 -2
- package/esm2020/api/dpaEngagementController.service.mjs +36 -1
- package/esm2020/api.module.mjs +4 -1
- package/esm2020/model/adImageResponse.mjs +20 -0
- package/esm2020/model/dpaEngagementChangeLogResponse.mjs +24 -0
- package/esm2020/model/models.mjs +4 -1
- package/esm2020/model/pageCampaignResponse.mjs +1 -1
- package/esm2020/model/pageDpaEngagementChangeLogResponse.mjs +2 -0
- 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 +238 -19
- package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
- package/fesm2020/revxui-intellibid-client-ts.mjs +236 -19
- package/fesm2020/revxui-intellibid-client-ts.mjs.map +1 -1
- package/model/adImageResponse.d.ts +26 -0
- package/model/dpaEngagementChangeLogResponse.d.ts +36 -0
- package/model/models.d.ts +3 -0
- package/model/pageCampaignResponse.d.ts +1 -1
- package/model/pageDpaEngagementChangeLogResponse.d.ts +27 -0
- package/model/pageDpaEngagementResponse.d.ts +1 -1
- package/model/pageFacebookEngagementResponse.d.ts +1 -1
- package/model/pagePackageDetailResponse.d.ts +1 -1
- 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
|
*
|
|
@@ -707,6 +843,41 @@ class DpaEngagementControllerService {
|
|
|
707
843
|
reportProgress: reportProgress
|
|
708
844
|
});
|
|
709
845
|
}
|
|
846
|
+
getDpaEngagementLogs(id, page, size, sort, observe = 'body', reportProgress = false) {
|
|
847
|
+
if (id === null || id === undefined) {
|
|
848
|
+
throw new Error('Required parameter id was null or undefined when calling getDpaEngagementLogs.');
|
|
849
|
+
}
|
|
850
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
851
|
+
if (page !== undefined && page !== null) {
|
|
852
|
+
queryParameters = queryParameters.set('page', page);
|
|
853
|
+
}
|
|
854
|
+
if (size !== undefined && size !== null) {
|
|
855
|
+
queryParameters = queryParameters.set('size', size);
|
|
856
|
+
}
|
|
857
|
+
if (sort) {
|
|
858
|
+
sort.forEach((element) => {
|
|
859
|
+
queryParameters = queryParameters.append('sort', element);
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
let headers = this.defaultHeaders;
|
|
863
|
+
// to determine the Accept header
|
|
864
|
+
let httpHeaderAccepts = [
|
|
865
|
+
'*/*'
|
|
866
|
+
];
|
|
867
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
868
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
869
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
870
|
+
}
|
|
871
|
+
// to determine the Content-Type header
|
|
872
|
+
const consumes = [];
|
|
873
|
+
return this.httpClient.request('get', `${this.basePath}/api/dpa-engagement/${encodeURIComponent(String(id))}/log`, {
|
|
874
|
+
params: queryParameters,
|
|
875
|
+
withCredentials: this.configuration.withCredentials,
|
|
876
|
+
headers: headers,
|
|
877
|
+
observe: observe,
|
|
878
|
+
reportProgress: reportProgress
|
|
879
|
+
});
|
|
880
|
+
}
|
|
710
881
|
pauseDpaEngagement(id, observe = 'body', reportProgress = false) {
|
|
711
882
|
if (id === null || id === undefined) {
|
|
712
883
|
throw new Error('Required parameter id was null or undefined when calling pauseDpaEngagement.');
|
|
@@ -1148,7 +1319,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1148
1319
|
type: Optional
|
|
1149
1320
|
}] }]; } });
|
|
1150
1321
|
|
|
1151
|
-
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 = {}));
|
|
1152
1343
|
|
|
1153
1344
|
/**
|
|
1154
1345
|
*
|
|
@@ -1274,6 +1465,30 @@ var DpaCampaignResponse;
|
|
|
1274
1465
|
};
|
|
1275
1466
|
})(DpaCampaignResponse || (DpaCampaignResponse = {}));
|
|
1276
1467
|
|
|
1468
|
+
/**
|
|
1469
|
+
*
|
|
1470
|
+
*
|
|
1471
|
+
*
|
|
1472
|
+
*
|
|
1473
|
+
*
|
|
1474
|
+
*
|
|
1475
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1476
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1477
|
+
* Do not edit the class manually.
|
|
1478
|
+
*/
|
|
1479
|
+
var DpaEngagementChangeLogResponse;
|
|
1480
|
+
(function (DpaEngagementChangeLogResponse) {
|
|
1481
|
+
DpaEngagementChangeLogResponse.EntityChangedEnum = {
|
|
1482
|
+
STATUS: 'STATUS',
|
|
1483
|
+
BUDGET: 'BUDGET',
|
|
1484
|
+
ENGAGEMENT: 'ENGAGEMENT'
|
|
1485
|
+
};
|
|
1486
|
+
DpaEngagementChangeLogResponse.StatusEnum = {
|
|
1487
|
+
SUCCESS: 'SUCCESS',
|
|
1488
|
+
FAILED: 'FAILED'
|
|
1489
|
+
};
|
|
1490
|
+
})(DpaEngagementChangeLogResponse || (DpaEngagementChangeLogResponse = {}));
|
|
1491
|
+
|
|
1277
1492
|
var DpaEngagementResponse;
|
|
1278
1493
|
(function (DpaEngagementResponse) {
|
|
1279
1494
|
DpaEngagementResponse.RunByEnum = {
|
|
@@ -1432,6 +1647,7 @@ class ApiModule {
|
|
|
1432
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 });
|
|
1433
1648
|
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
|
|
1434
1649
|
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
|
|
1650
|
+
AdImageControllerService,
|
|
1435
1651
|
BusinessGeoControllerService,
|
|
1436
1652
|
CampaignControllerService,
|
|
1437
1653
|
CountryControllerService,
|
|
@@ -1447,6 +1663,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1447
1663
|
declarations: [],
|
|
1448
1664
|
exports: [],
|
|
1449
1665
|
providers: [
|
|
1666
|
+
AdImageControllerService,
|
|
1450
1667
|
BusinessGeoControllerService,
|
|
1451
1668
|
CampaignControllerService,
|
|
1452
1669
|
CountryControllerService,
|
|
@@ -1468,5 +1685,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
1468
1685
|
* Generated bundle index. Do not edit.
|
|
1469
1686
|
*/
|
|
1470
1687
|
|
|
1471
|
-
export { APIS, AdSetDetails, ApiModule, BASE_PATH, BusinessGeoControllerService, COLLECTION_FORMATS, CampaignControllerService, CampaignResponse, Configuration, CountryControllerService, DpaCampaignControllerService, DpaCampaignResponse, 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 };
|
|
1472
1689
|
//# sourceMappingURL=revxui-intellibid-client-ts.mjs.map
|