@revxui/intellibid-client-ts 1.0.2 → 1.0.4
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 +15 -15
- package/api/businessGeoController.service.d.ts +28 -28
- package/api/campaignController.service.d.ts +67 -67
- package/api/countryController.service.d.ts +28 -28
- package/api/dpaCampaignController.service.d.ts +52 -52
- package/api/dpaEngagementController.service.d.ts +126 -126
- package/api/facebookEngagementController.service.d.ts +67 -77
- package/api/packageDetailController.service.d.ts +45 -45
- package/api.module.d.ts +11 -11
- package/configuration.d.ts +48 -48
- package/encoder.d.ts +10 -10
- package/esm2020/api/api.mjs +15 -15
- package/esm2020/api/businessGeoController.service.mjs +77 -77
- package/esm2020/api/campaignController.service.mjs +178 -178
- package/esm2020/api/countryController.service.mjs +77 -77
- package/esm2020/api/dpaCampaignController.service.mjs +144 -144
- package/esm2020/api/dpaEngagementController.service.mjs +326 -326
- package/esm2020/api/facebookEngagementController.service.mjs +185 -214
- package/esm2020/api/packageDetailController.service.mjs +122 -122
- package/esm2020/api.module.mjs +62 -62
- package/esm2020/configuration.mjs +58 -58
- package/esm2020/encoder.mjs +16 -16
- package/esm2020/index.mjs +5 -5
- package/esm2020/model/adSetDetails.mjs +19 -19
- package/esm2020/model/audienceDetails.mjs +12 -12
- package/esm2020/model/businessGeoResponse.mjs +12 -12
- package/esm2020/model/campaignResponse.mjs +31 -31
- package/esm2020/model/countryResponse.mjs +12 -12
- package/esm2020/model/createCampaignRequest.mjs +12 -12
- package/esm2020/model/creativeDetails.mjs +1 -1
- package/esm2020/model/dpaCampaignRequest.mjs +1 -1
- package/esm2020/model/dpaCampaignResponse.mjs +10 -10
- package/esm2020/model/dpaEngagementRequest.mjs +2 -2
- package/esm2020/model/dpaEngagementResponse.mjs +31 -31
- package/esm2020/model/entitySearchResponse.mjs +12 -12
- package/esm2020/model/exclusionRule.mjs +12 -12
- package/esm2020/model/facebookDetails.mjs +1 -1
- package/esm2020/model/facebookEngagementRequest.mjs +13 -13
- package/esm2020/model/facebookEngagementResponse.mjs +21 -21
- package/esm2020/model/imageOverlaySpecDetails.mjs +12 -12
- package/esm2020/model/models.mjs +25 -25
- package/esm2020/model/packageDetailResponse.mjs +12 -12
- package/esm2020/model/pageCampaignResponse.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/esm2020/model/sortObject.mjs +12 -12
- package/esm2020/model/updateDailyBudgetRequest.mjs +12 -12
- package/esm2020/revxui-intellibid-client-ts.mjs +4 -4
- package/esm2020/variables.mjs +8 -8
- package/fesm2015/revxui-intellibid-client-ts.mjs +1299 -1328
- package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
- package/fesm2020/revxui-intellibid-client-ts.mjs +1393 -1422
- package/fesm2020/revxui-intellibid-client-ts.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/model/adSetDetails.d.ts +28 -28
- package/model/audienceDetails.d.ts +22 -22
- package/model/businessGeoResponse.d.ts +15 -15
- package/model/campaignResponse.d.ts +117 -117
- package/model/countryResponse.d.ts +16 -16
- package/model/createCampaignRequest.d.ts +16 -16
- package/model/creativeDetails.d.ts +21 -21
- package/model/dpaCampaignRequest.d.ts +17 -17
- package/model/dpaCampaignResponse.d.ts +35 -35
- package/model/dpaEngagementRequest.d.ts +30 -29
- package/model/dpaEngagementResponse.d.ts +90 -90
- package/model/entitySearchResponse.d.ts +15 -15
- package/model/exclusionRule.d.ts +15 -15
- package/model/facebookDetails.d.ts +27 -27
- package/model/facebookEngagementRequest.d.ts +23 -24
- package/model/facebookEngagementResponse.d.ts +38 -39
- package/model/imageOverlaySpecDetails.d.ts +20 -20
- package/model/models.d.ts +25 -25
- package/model/packageDetailResponse.d.ts +16 -16
- package/model/pageCampaignResponse.d.ts +27 -27
- package/model/pageDpaEngagementResponse.d.ts +27 -27
- package/model/pageFacebookEngagementResponse.d.ts +27 -27
- package/model/pagePackageDetailResponse.d.ts +27 -27
- package/model/pageableObject.d.ts +20 -20
- package/model/sortObject.d.ts +18 -18
- package/model/updateDailyBudgetRequest.d.ts +14 -14
- package/package.json +1 -1
- package/variables.d.ts +8 -8
|
@@ -3,1368 +3,1339 @@ import { InjectionToken, Injectable, Optional, Inject, NgModule, SkipSelf } from
|
|
|
3
3
|
import * as i1 from '@angular/common/http';
|
|
4
4
|
import { HttpHeaders, HttpUrlEncodingCodec, HttpParams } from '@angular/common/http';
|
|
5
5
|
|
|
6
|
-
const BASE_PATH = new InjectionToken('basePath');
|
|
7
|
-
const COLLECTION_FORMATS = {
|
|
8
|
-
'csv': ',',
|
|
9
|
-
'tsv': ' ',
|
|
10
|
-
'ssv': ' ',
|
|
11
|
-
'pipes': '|'
|
|
6
|
+
const BASE_PATH = new InjectionToken('basePath');
|
|
7
|
+
const COLLECTION_FORMATS = {
|
|
8
|
+
'csv': ',',
|
|
9
|
+
'tsv': ' ',
|
|
10
|
+
'ssv': ' ',
|
|
11
|
+
'pipes': '|'
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
class Configuration {
|
|
15
|
-
constructor(configurationParameters = {}) {
|
|
16
|
-
this.apiKeys = configurationParameters.apiKeys;
|
|
17
|
-
this.username = configurationParameters.username;
|
|
18
|
-
this.password = configurationParameters.password;
|
|
19
|
-
this.accessToken = configurationParameters.accessToken;
|
|
20
|
-
this.basePath = configurationParameters.basePath;
|
|
21
|
-
this.withCredentials = configurationParameters.withCredentials;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Select the correct content-type to use for a request.
|
|
25
|
-
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
26
|
-
* If no content type is found return the first found type if the contentTypes is not empty
|
|
27
|
-
* @param contentTypes - the array of content types that are available for selection
|
|
28
|
-
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
29
|
-
*/
|
|
30
|
-
selectHeaderContentType(contentTypes) {
|
|
31
|
-
if (contentTypes.length == 0) {
|
|
32
|
-
return undefined;
|
|
33
|
-
}
|
|
34
|
-
let type = contentTypes.find(x => this.isJsonMime(x));
|
|
35
|
-
if (type === undefined) {
|
|
36
|
-
return contentTypes[0];
|
|
37
|
-
}
|
|
38
|
-
return type;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Select the correct accept content-type to use for a request.
|
|
42
|
-
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
43
|
-
* If no content type is found return the first found type if the contentTypes is not empty
|
|
44
|
-
* @param accepts - the array of content types that are available for selection.
|
|
45
|
-
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
46
|
-
*/
|
|
47
|
-
selectHeaderAccept(accepts) {
|
|
48
|
-
if (accepts.length == 0) {
|
|
49
|
-
return undefined;
|
|
50
|
-
}
|
|
51
|
-
let type = accepts.find(x => this.isJsonMime(x));
|
|
52
|
-
if (type === undefined) {
|
|
53
|
-
return accepts[0];
|
|
54
|
-
}
|
|
55
|
-
return type;
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Check if the given MIME is a JSON MIME.
|
|
59
|
-
* JSON MIME examples:
|
|
60
|
-
* application/json
|
|
61
|
-
* application/json; charset=UTF8
|
|
62
|
-
* APPLICATION/JSON
|
|
63
|
-
* application/vnd.company+json
|
|
64
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
65
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
66
|
-
*/
|
|
67
|
-
isJsonMime(mime) {
|
|
68
|
-
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
69
|
-
return mime != null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
70
|
-
}
|
|
14
|
+
class Configuration {
|
|
15
|
+
constructor(configurationParameters = {}) {
|
|
16
|
+
this.apiKeys = configurationParameters.apiKeys;
|
|
17
|
+
this.username = configurationParameters.username;
|
|
18
|
+
this.password = configurationParameters.password;
|
|
19
|
+
this.accessToken = configurationParameters.accessToken;
|
|
20
|
+
this.basePath = configurationParameters.basePath;
|
|
21
|
+
this.withCredentials = configurationParameters.withCredentials;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Select the correct content-type to use for a request.
|
|
25
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct content-type.
|
|
26
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
27
|
+
* @param contentTypes - the array of content types that are available for selection
|
|
28
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
29
|
+
*/
|
|
30
|
+
selectHeaderContentType(contentTypes) {
|
|
31
|
+
if (contentTypes.length == 0) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
let type = contentTypes.find(x => this.isJsonMime(x));
|
|
35
|
+
if (type === undefined) {
|
|
36
|
+
return contentTypes[0];
|
|
37
|
+
}
|
|
38
|
+
return type;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Select the correct accept content-type to use for a request.
|
|
42
|
+
* Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
|
|
43
|
+
* If no content type is found return the first found type if the contentTypes is not empty
|
|
44
|
+
* @param accepts - the array of content types that are available for selection.
|
|
45
|
+
* @returns the selected content-type or <code>undefined</code> if no selection could be made.
|
|
46
|
+
*/
|
|
47
|
+
selectHeaderAccept(accepts) {
|
|
48
|
+
if (accepts.length == 0) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
let type = accepts.find(x => this.isJsonMime(x));
|
|
52
|
+
if (type === undefined) {
|
|
53
|
+
return accepts[0];
|
|
54
|
+
}
|
|
55
|
+
return type;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Check if the given MIME is a JSON MIME.
|
|
59
|
+
* JSON MIME examples:
|
|
60
|
+
* application/json
|
|
61
|
+
* application/json; charset=UTF8
|
|
62
|
+
* APPLICATION/JSON
|
|
63
|
+
* application/vnd.company+json
|
|
64
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
65
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
66
|
+
*/
|
|
67
|
+
isJsonMime(mime) {
|
|
68
|
+
const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
69
|
+
return mime != null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
70
|
+
}
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
81
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
82
|
-
* Do not edit the class manually.
|
|
83
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
84
|
-
class BusinessGeoControllerService {
|
|
85
|
-
constructor(httpClient, basePath, configuration) {
|
|
86
|
-
this.httpClient = httpClient;
|
|
87
|
-
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
88
|
-
this.defaultHeaders = new HttpHeaders();
|
|
89
|
-
this.configuration = new Configuration();
|
|
90
|
-
if (basePath) {
|
|
91
|
-
this.basePath = basePath;
|
|
92
|
-
}
|
|
93
|
-
if (configuration) {
|
|
94
|
-
this.configuration = configuration;
|
|
95
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* @param consumes string[] mime-types
|
|
100
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
101
|
-
*/
|
|
102
|
-
canConsumeForm(consumes) {
|
|
103
|
-
const form = 'multipart/form-data';
|
|
104
|
-
for (const consume of consumes) {
|
|
105
|
-
if (form === consume) {
|
|
106
|
-
return true;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
return false;
|
|
110
|
-
}
|
|
111
|
-
getAllBusinessGeos(observe = 'body', reportProgress = false) {
|
|
112
|
-
let headers = this.defaultHeaders;
|
|
113
|
-
// to determine the Accept header
|
|
114
|
-
let httpHeaderAccepts = [
|
|
115
|
-
'*/*'
|
|
116
|
-
];
|
|
117
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
118
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
119
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
120
|
-
}
|
|
121
|
-
// to determine the Content-Type header
|
|
122
|
-
const consumes = [];
|
|
123
|
-
return this.httpClient.request('get', `${this.basePath}/business-geo`, {
|
|
124
|
-
withCredentials: this.configuration.withCredentials,
|
|
125
|
-
headers: headers,
|
|
126
|
-
observe: observe,
|
|
127
|
-
reportProgress: reportProgress
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
BusinessGeoControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BusinessGeoControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
132
|
-
BusinessGeoControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BusinessGeoControllerService });
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BusinessGeoControllerService, decorators: [{
|
|
134
|
-
type: Injectable
|
|
135
|
-
}], ctorParameters: function () {
|
|
136
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
137
|
-
type: Optional
|
|
138
|
-
}, {
|
|
139
|
-
type: Inject,
|
|
140
|
-
args: [BASE_PATH]
|
|
141
|
-
}] }, { type: Configuration, decorators: [{
|
|
142
|
-
type: Optional
|
|
143
|
-
}] }];
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
*
|
|
76
|
+
*
|
|
77
|
+
*
|
|
78
|
+
*
|
|
79
|
+
*
|
|
80
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
81
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
82
|
+
* Do not edit the class manually.
|
|
83
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
84
|
+
class BusinessGeoControllerService {
|
|
85
|
+
constructor(httpClient, basePath, configuration) {
|
|
86
|
+
this.httpClient = httpClient;
|
|
87
|
+
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
88
|
+
this.defaultHeaders = new HttpHeaders();
|
|
89
|
+
this.configuration = new Configuration();
|
|
90
|
+
if (basePath) {
|
|
91
|
+
this.basePath = basePath;
|
|
92
|
+
}
|
|
93
|
+
if (configuration) {
|
|
94
|
+
this.configuration = configuration;
|
|
95
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* @param consumes string[] mime-types
|
|
100
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
101
|
+
*/
|
|
102
|
+
canConsumeForm(consumes) {
|
|
103
|
+
const form = 'multipart/form-data';
|
|
104
|
+
for (const consume of consumes) {
|
|
105
|
+
if (form === consume) {
|
|
106
|
+
return true;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
getAllBusinessGeos(observe = 'body', reportProgress = false) {
|
|
112
|
+
let headers = this.defaultHeaders;
|
|
113
|
+
// to determine the Accept header
|
|
114
|
+
let httpHeaderAccepts = [
|
|
115
|
+
'*/*'
|
|
116
|
+
];
|
|
117
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
118
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
119
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
120
|
+
}
|
|
121
|
+
// to determine the Content-Type header
|
|
122
|
+
const consumes = [];
|
|
123
|
+
return this.httpClient.request('get', `${this.basePath}/business-geo`, {
|
|
124
|
+
withCredentials: this.configuration.withCredentials,
|
|
125
|
+
headers: headers,
|
|
126
|
+
observe: observe,
|
|
127
|
+
reportProgress: reportProgress
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
BusinessGeoControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BusinessGeoControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
132
|
+
BusinessGeoControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BusinessGeoControllerService });
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: BusinessGeoControllerService, decorators: [{
|
|
134
|
+
type: Injectable
|
|
135
|
+
}], ctorParameters: function () {
|
|
136
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
137
|
+
type: Optional
|
|
138
|
+
}, {
|
|
139
|
+
type: Inject,
|
|
140
|
+
args: [BASE_PATH]
|
|
141
|
+
}] }, { type: Configuration, decorators: [{
|
|
142
|
+
type: Optional
|
|
143
|
+
}] }];
|
|
144
144
|
} });
|
|
145
145
|
|
|
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
|
-
}
|
|
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
160
|
}
|
|
161
161
|
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
*
|
|
169
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
170
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
171
|
-
* Do not edit the class manually.
|
|
172
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
173
|
-
class CampaignControllerService {
|
|
174
|
-
constructor(httpClient, basePath, configuration) {
|
|
175
|
-
this.httpClient = httpClient;
|
|
176
|
-
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
177
|
-
this.defaultHeaders = new HttpHeaders();
|
|
178
|
-
this.configuration = new Configuration();
|
|
179
|
-
if (basePath) {
|
|
180
|
-
this.basePath = basePath;
|
|
181
|
-
}
|
|
182
|
-
if (configuration) {
|
|
183
|
-
this.configuration = configuration;
|
|
184
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* @param consumes string[] mime-types
|
|
189
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
190
|
-
*/
|
|
191
|
-
canConsumeForm(consumes) {
|
|
192
|
-
const form = 'multipart/form-data';
|
|
193
|
-
for (const consume of consumes) {
|
|
194
|
-
if (form === consume) {
|
|
195
|
-
return true;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
return false;
|
|
199
|
-
}
|
|
200
|
-
createCampaign(body, observe = 'body', reportProgress = false) {
|
|
201
|
-
if (body === null || body === undefined) {
|
|
202
|
-
throw new Error('Required parameter body was null or undefined when calling createCampaign.');
|
|
203
|
-
}
|
|
204
|
-
let headers = this.defaultHeaders;
|
|
205
|
-
// to determine the Accept header
|
|
206
|
-
let httpHeaderAccepts = [
|
|
207
|
-
'*/*'
|
|
208
|
-
];
|
|
209
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
210
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
211
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
212
|
-
}
|
|
213
|
-
// to determine the Content-Type header
|
|
214
|
-
const consumes = [
|
|
215
|
-
'application/json'
|
|
216
|
-
];
|
|
217
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
218
|
-
if (httpContentTypeSelected != undefined) {
|
|
219
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
220
|
-
}
|
|
221
|
-
return this.httpClient.request('post', `${this.basePath}/campaign`, {
|
|
222
|
-
body: body,
|
|
223
|
-
withCredentials: this.configuration.withCredentials,
|
|
224
|
-
headers: headers,
|
|
225
|
-
observe: observe,
|
|
226
|
-
reportProgress: reportProgress
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
getAllCampaigns(name, vizardPackageId, status, page, size, sort, observe = 'body', reportProgress = false) {
|
|
230
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
231
|
-
if (name !== undefined && name !== null) {
|
|
232
|
-
queryParameters = queryParameters.set('name', name);
|
|
233
|
-
}
|
|
234
|
-
if (vizardPackageId !== undefined && vizardPackageId !== null) {
|
|
235
|
-
queryParameters = queryParameters.set('vizardPackageId', vizardPackageId);
|
|
236
|
-
}
|
|
237
|
-
if (status !== undefined && status !== null) {
|
|
238
|
-
queryParameters = queryParameters.set('status', status);
|
|
239
|
-
}
|
|
240
|
-
if (page !== undefined && page !== null) {
|
|
241
|
-
queryParameters = queryParameters.set('page', page);
|
|
242
|
-
}
|
|
243
|
-
if (size !== undefined && size !== null) {
|
|
244
|
-
queryParameters = queryParameters.set('size', size);
|
|
245
|
-
}
|
|
246
|
-
if (sort) {
|
|
247
|
-
sort.forEach((element) => {
|
|
248
|
-
queryParameters = queryParameters.append('sort', element);
|
|
249
|
-
});
|
|
250
|
-
}
|
|
251
|
-
let headers = this.defaultHeaders;
|
|
252
|
-
// to determine the Accept header
|
|
253
|
-
let httpHeaderAccepts = [
|
|
254
|
-
'*/*'
|
|
255
|
-
];
|
|
256
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
257
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
258
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
259
|
-
}
|
|
260
|
-
// to determine the Content-Type header
|
|
261
|
-
const consumes = [];
|
|
262
|
-
return this.httpClient.request('get', `${this.basePath}/campaign`, {
|
|
263
|
-
params: queryParameters,
|
|
264
|
-
withCredentials: this.configuration.withCredentials,
|
|
265
|
-
headers: headers,
|
|
266
|
-
observe: observe,
|
|
267
|
-
reportProgress: reportProgress
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
getCampaign(id, observe = 'body', reportProgress = false) {
|
|
271
|
-
if (id === null || id === undefined) {
|
|
272
|
-
throw new Error('Required parameter id was null or undefined when calling getCampaign.');
|
|
273
|
-
}
|
|
274
|
-
let headers = this.defaultHeaders;
|
|
275
|
-
// to determine the Accept header
|
|
276
|
-
let httpHeaderAccepts = [
|
|
277
|
-
'*/*'
|
|
278
|
-
];
|
|
279
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
280
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
281
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
282
|
-
}
|
|
283
|
-
// to determine the Content-Type header
|
|
284
|
-
const consumes = [];
|
|
285
|
-
return this.httpClient.request('get', `${this.basePath}/campaign/${encodeURIComponent(String(id))}`, {
|
|
286
|
-
withCredentials: this.configuration.withCredentials,
|
|
287
|
-
headers: headers,
|
|
288
|
-
observe: observe,
|
|
289
|
-
reportProgress: reportProgress
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
searchCampaigns(q, observe = 'body', reportProgress = false) {
|
|
293
|
-
if (q === null || q === undefined) {
|
|
294
|
-
throw new Error('Required parameter q was null or undefined when calling searchCampaigns.');
|
|
295
|
-
}
|
|
296
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
297
|
-
if (q !== undefined && q !== null) {
|
|
298
|
-
queryParameters = queryParameters.set('q', q);
|
|
299
|
-
}
|
|
300
|
-
let headers = this.defaultHeaders;
|
|
301
|
-
// to determine the Accept header
|
|
302
|
-
let httpHeaderAccepts = [
|
|
303
|
-
'*/*'
|
|
304
|
-
];
|
|
305
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
306
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
307
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
308
|
-
}
|
|
309
|
-
// to determine the Content-Type header
|
|
310
|
-
const consumes = [];
|
|
311
|
-
return this.httpClient.request('get', `${this.basePath}/campaign/search`, {
|
|
312
|
-
params: queryParameters,
|
|
313
|
-
withCredentials: this.configuration.withCredentials,
|
|
314
|
-
headers: headers,
|
|
315
|
-
observe: observe,
|
|
316
|
-
reportProgress: reportProgress
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
CampaignControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
321
|
-
CampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService });
|
|
322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, decorators: [{
|
|
323
|
-
type: Injectable
|
|
324
|
-
}], ctorParameters: function () {
|
|
325
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
326
|
-
type: Optional
|
|
327
|
-
}, {
|
|
328
|
-
type: Inject,
|
|
329
|
-
args: [BASE_PATH]
|
|
330
|
-
}] }, { type: Configuration, decorators: [{
|
|
331
|
-
type: Optional
|
|
332
|
-
}] }];
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
*
|
|
165
|
+
*
|
|
166
|
+
*
|
|
167
|
+
*
|
|
168
|
+
*
|
|
169
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
170
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
171
|
+
* Do not edit the class manually.
|
|
172
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
173
|
+
class CampaignControllerService {
|
|
174
|
+
constructor(httpClient, basePath, configuration) {
|
|
175
|
+
this.httpClient = httpClient;
|
|
176
|
+
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
177
|
+
this.defaultHeaders = new HttpHeaders();
|
|
178
|
+
this.configuration = new Configuration();
|
|
179
|
+
if (basePath) {
|
|
180
|
+
this.basePath = basePath;
|
|
181
|
+
}
|
|
182
|
+
if (configuration) {
|
|
183
|
+
this.configuration = configuration;
|
|
184
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* @param consumes string[] mime-types
|
|
189
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
190
|
+
*/
|
|
191
|
+
canConsumeForm(consumes) {
|
|
192
|
+
const form = 'multipart/form-data';
|
|
193
|
+
for (const consume of consumes) {
|
|
194
|
+
if (form === consume) {
|
|
195
|
+
return true;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
return false;
|
|
199
|
+
}
|
|
200
|
+
createCampaign(body, observe = 'body', reportProgress = false) {
|
|
201
|
+
if (body === null || body === undefined) {
|
|
202
|
+
throw new Error('Required parameter body was null or undefined when calling createCampaign.');
|
|
203
|
+
}
|
|
204
|
+
let headers = this.defaultHeaders;
|
|
205
|
+
// to determine the Accept header
|
|
206
|
+
let httpHeaderAccepts = [
|
|
207
|
+
'*/*'
|
|
208
|
+
];
|
|
209
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
210
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
211
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
212
|
+
}
|
|
213
|
+
// to determine the Content-Type header
|
|
214
|
+
const consumes = [
|
|
215
|
+
'application/json'
|
|
216
|
+
];
|
|
217
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
218
|
+
if (httpContentTypeSelected != undefined) {
|
|
219
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
220
|
+
}
|
|
221
|
+
return this.httpClient.request('post', `${this.basePath}/campaign`, {
|
|
222
|
+
body: body,
|
|
223
|
+
withCredentials: this.configuration.withCredentials,
|
|
224
|
+
headers: headers,
|
|
225
|
+
observe: observe,
|
|
226
|
+
reportProgress: reportProgress
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
getAllCampaigns(name, vizardPackageId, status, page, size, sort, observe = 'body', reportProgress = false) {
|
|
230
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
231
|
+
if (name !== undefined && name !== null) {
|
|
232
|
+
queryParameters = queryParameters.set('name', name);
|
|
233
|
+
}
|
|
234
|
+
if (vizardPackageId !== undefined && vizardPackageId !== null) {
|
|
235
|
+
queryParameters = queryParameters.set('vizardPackageId', vizardPackageId);
|
|
236
|
+
}
|
|
237
|
+
if (status !== undefined && status !== null) {
|
|
238
|
+
queryParameters = queryParameters.set('status', status);
|
|
239
|
+
}
|
|
240
|
+
if (page !== undefined && page !== null) {
|
|
241
|
+
queryParameters = queryParameters.set('page', page);
|
|
242
|
+
}
|
|
243
|
+
if (size !== undefined && size !== null) {
|
|
244
|
+
queryParameters = queryParameters.set('size', size);
|
|
245
|
+
}
|
|
246
|
+
if (sort) {
|
|
247
|
+
sort.forEach((element) => {
|
|
248
|
+
queryParameters = queryParameters.append('sort', element);
|
|
249
|
+
});
|
|
250
|
+
}
|
|
251
|
+
let headers = this.defaultHeaders;
|
|
252
|
+
// to determine the Accept header
|
|
253
|
+
let httpHeaderAccepts = [
|
|
254
|
+
'*/*'
|
|
255
|
+
];
|
|
256
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
257
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
258
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
259
|
+
}
|
|
260
|
+
// to determine the Content-Type header
|
|
261
|
+
const consumes = [];
|
|
262
|
+
return this.httpClient.request('get', `${this.basePath}/campaign`, {
|
|
263
|
+
params: queryParameters,
|
|
264
|
+
withCredentials: this.configuration.withCredentials,
|
|
265
|
+
headers: headers,
|
|
266
|
+
observe: observe,
|
|
267
|
+
reportProgress: reportProgress
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
getCampaign(id, observe = 'body', reportProgress = false) {
|
|
271
|
+
if (id === null || id === undefined) {
|
|
272
|
+
throw new Error('Required parameter id was null or undefined when calling getCampaign.');
|
|
273
|
+
}
|
|
274
|
+
let headers = this.defaultHeaders;
|
|
275
|
+
// to determine the Accept header
|
|
276
|
+
let httpHeaderAccepts = [
|
|
277
|
+
'*/*'
|
|
278
|
+
];
|
|
279
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
280
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
281
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
282
|
+
}
|
|
283
|
+
// to determine the Content-Type header
|
|
284
|
+
const consumes = [];
|
|
285
|
+
return this.httpClient.request('get', `${this.basePath}/campaign/${encodeURIComponent(String(id))}`, {
|
|
286
|
+
withCredentials: this.configuration.withCredentials,
|
|
287
|
+
headers: headers,
|
|
288
|
+
observe: observe,
|
|
289
|
+
reportProgress: reportProgress
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
searchCampaigns(q, observe = 'body', reportProgress = false) {
|
|
293
|
+
if (q === null || q === undefined) {
|
|
294
|
+
throw new Error('Required parameter q was null or undefined when calling searchCampaigns.');
|
|
295
|
+
}
|
|
296
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
297
|
+
if (q !== undefined && q !== null) {
|
|
298
|
+
queryParameters = queryParameters.set('q', q);
|
|
299
|
+
}
|
|
300
|
+
let headers = this.defaultHeaders;
|
|
301
|
+
// to determine the Accept header
|
|
302
|
+
let httpHeaderAccepts = [
|
|
303
|
+
'*/*'
|
|
304
|
+
];
|
|
305
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
306
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
307
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
308
|
+
}
|
|
309
|
+
// to determine the Content-Type header
|
|
310
|
+
const consumes = [];
|
|
311
|
+
return this.httpClient.request('get', `${this.basePath}/campaign/search`, {
|
|
312
|
+
params: queryParameters,
|
|
313
|
+
withCredentials: this.configuration.withCredentials,
|
|
314
|
+
headers: headers,
|
|
315
|
+
observe: observe,
|
|
316
|
+
reportProgress: reportProgress
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
CampaignControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
321
|
+
CampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService });
|
|
322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, decorators: [{
|
|
323
|
+
type: Injectable
|
|
324
|
+
}], ctorParameters: function () {
|
|
325
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
326
|
+
type: Optional
|
|
327
|
+
}, {
|
|
328
|
+
type: Inject,
|
|
329
|
+
args: [BASE_PATH]
|
|
330
|
+
}] }, { type: Configuration, decorators: [{
|
|
331
|
+
type: Optional
|
|
332
|
+
}] }];
|
|
333
333
|
} });
|
|
334
334
|
|
|
335
|
-
/**
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
*
|
|
339
|
-
*
|
|
340
|
-
*
|
|
341
|
-
*
|
|
342
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
343
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
344
|
-
* Do not edit the class manually.
|
|
345
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
346
|
-
class CountryControllerService {
|
|
347
|
-
constructor(httpClient, basePath, configuration) {
|
|
348
|
-
this.httpClient = httpClient;
|
|
349
|
-
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
350
|
-
this.defaultHeaders = new HttpHeaders();
|
|
351
|
-
this.configuration = new Configuration();
|
|
352
|
-
if (basePath) {
|
|
353
|
-
this.basePath = basePath;
|
|
354
|
-
}
|
|
355
|
-
if (configuration) {
|
|
356
|
-
this.configuration = configuration;
|
|
357
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* @param consumes string[] mime-types
|
|
362
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
363
|
-
*/
|
|
364
|
-
canConsumeForm(consumes) {
|
|
365
|
-
const form = 'multipart/form-data';
|
|
366
|
-
for (const consume of consumes) {
|
|
367
|
-
if (form === consume) {
|
|
368
|
-
return true;
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
return false;
|
|
372
|
-
}
|
|
373
|
-
getAllCountries(observe = 'body', reportProgress = false) {
|
|
374
|
-
let headers = this.defaultHeaders;
|
|
375
|
-
// to determine the Accept header
|
|
376
|
-
let httpHeaderAccepts = [
|
|
377
|
-
'*/*'
|
|
378
|
-
];
|
|
379
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
380
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
381
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
382
|
-
}
|
|
383
|
-
// to determine the Content-Type header
|
|
384
|
-
const consumes = [];
|
|
385
|
-
return this.httpClient.request('get', `${this.basePath}/country`, {
|
|
386
|
-
withCredentials: this.configuration.withCredentials,
|
|
387
|
-
headers: headers,
|
|
388
|
-
observe: observe,
|
|
389
|
-
reportProgress: reportProgress
|
|
390
|
-
});
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
CountryControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CountryControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
394
|
-
CountryControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CountryControllerService });
|
|
395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CountryControllerService, decorators: [{
|
|
396
|
-
type: Injectable
|
|
397
|
-
}], ctorParameters: function () {
|
|
398
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
399
|
-
type: Optional
|
|
400
|
-
}, {
|
|
401
|
-
type: Inject,
|
|
402
|
-
args: [BASE_PATH]
|
|
403
|
-
}] }, { type: Configuration, decorators: [{
|
|
404
|
-
type: Optional
|
|
405
|
-
}] }];
|
|
335
|
+
/**
|
|
336
|
+
*
|
|
337
|
+
*
|
|
338
|
+
*
|
|
339
|
+
*
|
|
340
|
+
*
|
|
341
|
+
*
|
|
342
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
343
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
344
|
+
* Do not edit the class manually.
|
|
345
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
346
|
+
class CountryControllerService {
|
|
347
|
+
constructor(httpClient, basePath, configuration) {
|
|
348
|
+
this.httpClient = httpClient;
|
|
349
|
+
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
350
|
+
this.defaultHeaders = new HttpHeaders();
|
|
351
|
+
this.configuration = new Configuration();
|
|
352
|
+
if (basePath) {
|
|
353
|
+
this.basePath = basePath;
|
|
354
|
+
}
|
|
355
|
+
if (configuration) {
|
|
356
|
+
this.configuration = configuration;
|
|
357
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* @param consumes string[] mime-types
|
|
362
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
363
|
+
*/
|
|
364
|
+
canConsumeForm(consumes) {
|
|
365
|
+
const form = 'multipart/form-data';
|
|
366
|
+
for (const consume of consumes) {
|
|
367
|
+
if (form === consume) {
|
|
368
|
+
return true;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
return false;
|
|
372
|
+
}
|
|
373
|
+
getAllCountries(observe = 'body', reportProgress = false) {
|
|
374
|
+
let headers = this.defaultHeaders;
|
|
375
|
+
// to determine the Accept header
|
|
376
|
+
let httpHeaderAccepts = [
|
|
377
|
+
'*/*'
|
|
378
|
+
];
|
|
379
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
380
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
381
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
382
|
+
}
|
|
383
|
+
// to determine the Content-Type header
|
|
384
|
+
const consumes = [];
|
|
385
|
+
return this.httpClient.request('get', `${this.basePath}/country`, {
|
|
386
|
+
withCredentials: this.configuration.withCredentials,
|
|
387
|
+
headers: headers,
|
|
388
|
+
observe: observe,
|
|
389
|
+
reportProgress: reportProgress
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
CountryControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CountryControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
394
|
+
CountryControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CountryControllerService });
|
|
395
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CountryControllerService, decorators: [{
|
|
396
|
+
type: Injectable
|
|
397
|
+
}], ctorParameters: function () {
|
|
398
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
399
|
+
type: Optional
|
|
400
|
+
}, {
|
|
401
|
+
type: Inject,
|
|
402
|
+
args: [BASE_PATH]
|
|
403
|
+
}] }, { type: Configuration, decorators: [{
|
|
404
|
+
type: Optional
|
|
405
|
+
}] }];
|
|
406
406
|
} });
|
|
407
407
|
|
|
408
|
-
/**
|
|
409
|
-
*
|
|
410
|
-
*
|
|
411
|
-
*
|
|
412
|
-
*
|
|
413
|
-
*
|
|
414
|
-
*
|
|
415
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
416
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
417
|
-
* Do not edit the class manually.
|
|
418
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
419
|
-
class DpaCampaignControllerService {
|
|
420
|
-
constructor(httpClient, basePath, configuration) {
|
|
421
|
-
this.httpClient = httpClient;
|
|
422
|
-
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
423
|
-
this.defaultHeaders = new HttpHeaders();
|
|
424
|
-
this.configuration = new Configuration();
|
|
425
|
-
if (basePath) {
|
|
426
|
-
this.basePath = basePath;
|
|
427
|
-
}
|
|
428
|
-
if (configuration) {
|
|
429
|
-
this.configuration = configuration;
|
|
430
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
/**
|
|
434
|
-
* @param consumes string[] mime-types
|
|
435
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
436
|
-
*/
|
|
437
|
-
canConsumeForm(consumes) {
|
|
438
|
-
const form = 'multipart/form-data';
|
|
439
|
-
for (const consume of consumes) {
|
|
440
|
-
if (form === consume) {
|
|
441
|
-
return true;
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
return false;
|
|
445
|
-
}
|
|
446
|
-
createOrUpdateDpaCampaign(body, id, observe = 'body', reportProgress = false) {
|
|
447
|
-
if (body === null || body === undefined) {
|
|
448
|
-
throw new Error('Required parameter body was null or undefined when calling createOrUpdateDpaCampaign.');
|
|
449
|
-
}
|
|
450
|
-
if (id === null || id === undefined) {
|
|
451
|
-
throw new Error('Required parameter id was null or undefined when calling createOrUpdateDpaCampaign.');
|
|
452
|
-
}
|
|
453
|
-
let headers = this.defaultHeaders;
|
|
454
|
-
// to determine the Accept header
|
|
455
|
-
let httpHeaderAccepts = [
|
|
456
|
-
'*/*'
|
|
457
|
-
];
|
|
458
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
459
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
460
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
461
|
-
}
|
|
462
|
-
// to determine the Content-Type header
|
|
463
|
-
const consumes = [
|
|
464
|
-
'application/json'
|
|
465
|
-
];
|
|
466
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
467
|
-
if (httpContentTypeSelected != undefined) {
|
|
468
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
469
|
-
}
|
|
470
|
-
return this.httpClient.request('post', `${this.basePath}/dpa-campaign/${encodeURIComponent(String(id))}`, {
|
|
471
|
-
body: body,
|
|
472
|
-
withCredentials: this.configuration.withCredentials,
|
|
473
|
-
headers: headers,
|
|
474
|
-
observe: observe,
|
|
475
|
-
reportProgress: reportProgress
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
getDpaCampaign(id, observe = 'body', reportProgress = false) {
|
|
479
|
-
if (id === null || id === undefined) {
|
|
480
|
-
throw new Error('Required parameter id was null or undefined when calling getDpaCampaign.');
|
|
481
|
-
}
|
|
482
|
-
let headers = this.defaultHeaders;
|
|
483
|
-
// to determine the Accept header
|
|
484
|
-
let httpHeaderAccepts = [
|
|
485
|
-
'*/*'
|
|
486
|
-
];
|
|
487
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
488
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
489
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
490
|
-
}
|
|
491
|
-
// to determine the Content-Type header
|
|
492
|
-
const consumes = [];
|
|
493
|
-
return this.httpClient.request('get', `${this.basePath}/dpa-campaign/${encodeURIComponent(String(id))}`, {
|
|
494
|
-
withCredentials: this.configuration.withCredentials,
|
|
495
|
-
headers: headers,
|
|
496
|
-
observe: observe,
|
|
497
|
-
reportProgress: reportProgress
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
updateDpaCampaign(body, id, observe = 'body', reportProgress = false) {
|
|
501
|
-
if (body === null || body === undefined) {
|
|
502
|
-
throw new Error('Required parameter body was null or undefined when calling updateDpaCampaign.');
|
|
503
|
-
}
|
|
504
|
-
if (id === null || id === undefined) {
|
|
505
|
-
throw new Error('Required parameter id was null or undefined when calling updateDpaCampaign.');
|
|
506
|
-
}
|
|
507
|
-
let headers = this.defaultHeaders;
|
|
508
|
-
// to determine the Accept header
|
|
509
|
-
let httpHeaderAccepts = [
|
|
510
|
-
'*/*'
|
|
511
|
-
];
|
|
512
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
513
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
514
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
515
|
-
}
|
|
516
|
-
// to determine the Content-Type header
|
|
517
|
-
const consumes = [
|
|
518
|
-
'application/json'
|
|
519
|
-
];
|
|
520
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
521
|
-
if (httpContentTypeSelected != undefined) {
|
|
522
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
523
|
-
}
|
|
524
|
-
return this.httpClient.request('put', `${this.basePath}/dpa-campaign/${encodeURIComponent(String(id))}`, {
|
|
525
|
-
body: body,
|
|
526
|
-
withCredentials: this.configuration.withCredentials,
|
|
527
|
-
headers: headers,
|
|
528
|
-
observe: observe,
|
|
529
|
-
reportProgress: reportProgress
|
|
530
|
-
});
|
|
531
|
-
}
|
|
532
|
-
}
|
|
533
|
-
DpaCampaignControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaCampaignControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
534
|
-
DpaCampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaCampaignControllerService });
|
|
535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaCampaignControllerService, decorators: [{
|
|
536
|
-
type: Injectable
|
|
537
|
-
}], ctorParameters: function () {
|
|
538
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
539
|
-
type: Optional
|
|
540
|
-
}, {
|
|
541
|
-
type: Inject,
|
|
542
|
-
args: [BASE_PATH]
|
|
543
|
-
}] }, { type: Configuration, decorators: [{
|
|
544
|
-
type: Optional
|
|
545
|
-
}] }];
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
*
|
|
411
|
+
*
|
|
412
|
+
*
|
|
413
|
+
*
|
|
414
|
+
*
|
|
415
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
416
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
417
|
+
* Do not edit the class manually.
|
|
418
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
419
|
+
class DpaCampaignControllerService {
|
|
420
|
+
constructor(httpClient, basePath, configuration) {
|
|
421
|
+
this.httpClient = httpClient;
|
|
422
|
+
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
423
|
+
this.defaultHeaders = new HttpHeaders();
|
|
424
|
+
this.configuration = new Configuration();
|
|
425
|
+
if (basePath) {
|
|
426
|
+
this.basePath = basePath;
|
|
427
|
+
}
|
|
428
|
+
if (configuration) {
|
|
429
|
+
this.configuration = configuration;
|
|
430
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
/**
|
|
434
|
+
* @param consumes string[] mime-types
|
|
435
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
436
|
+
*/
|
|
437
|
+
canConsumeForm(consumes) {
|
|
438
|
+
const form = 'multipart/form-data';
|
|
439
|
+
for (const consume of consumes) {
|
|
440
|
+
if (form === consume) {
|
|
441
|
+
return true;
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
return false;
|
|
445
|
+
}
|
|
446
|
+
createOrUpdateDpaCampaign(body, id, observe = 'body', reportProgress = false) {
|
|
447
|
+
if (body === null || body === undefined) {
|
|
448
|
+
throw new Error('Required parameter body was null or undefined when calling createOrUpdateDpaCampaign.');
|
|
449
|
+
}
|
|
450
|
+
if (id === null || id === undefined) {
|
|
451
|
+
throw new Error('Required parameter id was null or undefined when calling createOrUpdateDpaCampaign.');
|
|
452
|
+
}
|
|
453
|
+
let headers = this.defaultHeaders;
|
|
454
|
+
// to determine the Accept header
|
|
455
|
+
let httpHeaderAccepts = [
|
|
456
|
+
'*/*'
|
|
457
|
+
];
|
|
458
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
459
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
460
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
461
|
+
}
|
|
462
|
+
// to determine the Content-Type header
|
|
463
|
+
const consumes = [
|
|
464
|
+
'application/json'
|
|
465
|
+
];
|
|
466
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
467
|
+
if (httpContentTypeSelected != undefined) {
|
|
468
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
469
|
+
}
|
|
470
|
+
return this.httpClient.request('post', `${this.basePath}/dpa-campaign/${encodeURIComponent(String(id))}`, {
|
|
471
|
+
body: body,
|
|
472
|
+
withCredentials: this.configuration.withCredentials,
|
|
473
|
+
headers: headers,
|
|
474
|
+
observe: observe,
|
|
475
|
+
reportProgress: reportProgress
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
getDpaCampaign(id, observe = 'body', reportProgress = false) {
|
|
479
|
+
if (id === null || id === undefined) {
|
|
480
|
+
throw new Error('Required parameter id was null or undefined when calling getDpaCampaign.');
|
|
481
|
+
}
|
|
482
|
+
let headers = this.defaultHeaders;
|
|
483
|
+
// to determine the Accept header
|
|
484
|
+
let httpHeaderAccepts = [
|
|
485
|
+
'*/*'
|
|
486
|
+
];
|
|
487
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
488
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
489
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
490
|
+
}
|
|
491
|
+
// to determine the Content-Type header
|
|
492
|
+
const consumes = [];
|
|
493
|
+
return this.httpClient.request('get', `${this.basePath}/dpa-campaign/${encodeURIComponent(String(id))}`, {
|
|
494
|
+
withCredentials: this.configuration.withCredentials,
|
|
495
|
+
headers: headers,
|
|
496
|
+
observe: observe,
|
|
497
|
+
reportProgress: reportProgress
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
updateDpaCampaign(body, id, observe = 'body', reportProgress = false) {
|
|
501
|
+
if (body === null || body === undefined) {
|
|
502
|
+
throw new Error('Required parameter body was null or undefined when calling updateDpaCampaign.');
|
|
503
|
+
}
|
|
504
|
+
if (id === null || id === undefined) {
|
|
505
|
+
throw new Error('Required parameter id was null or undefined when calling updateDpaCampaign.');
|
|
506
|
+
}
|
|
507
|
+
let headers = this.defaultHeaders;
|
|
508
|
+
// to determine the Accept header
|
|
509
|
+
let httpHeaderAccepts = [
|
|
510
|
+
'*/*'
|
|
511
|
+
];
|
|
512
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
513
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
514
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
515
|
+
}
|
|
516
|
+
// to determine the Content-Type header
|
|
517
|
+
const consumes = [
|
|
518
|
+
'application/json'
|
|
519
|
+
];
|
|
520
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
521
|
+
if (httpContentTypeSelected != undefined) {
|
|
522
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
523
|
+
}
|
|
524
|
+
return this.httpClient.request('put', `${this.basePath}/dpa-campaign/${encodeURIComponent(String(id))}`, {
|
|
525
|
+
body: body,
|
|
526
|
+
withCredentials: this.configuration.withCredentials,
|
|
527
|
+
headers: headers,
|
|
528
|
+
observe: observe,
|
|
529
|
+
reportProgress: reportProgress
|
|
530
|
+
});
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
DpaCampaignControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaCampaignControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
534
|
+
DpaCampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaCampaignControllerService });
|
|
535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaCampaignControllerService, decorators: [{
|
|
536
|
+
type: Injectable
|
|
537
|
+
}], ctorParameters: function () {
|
|
538
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
539
|
+
type: Optional
|
|
540
|
+
}, {
|
|
541
|
+
type: Inject,
|
|
542
|
+
args: [BASE_PATH]
|
|
543
|
+
}] }, { type: Configuration, decorators: [{
|
|
544
|
+
type: Optional
|
|
545
|
+
}] }];
|
|
546
546
|
} });
|
|
547
547
|
|
|
548
|
-
/**
|
|
549
|
-
*
|
|
550
|
-
*
|
|
551
|
-
*
|
|
552
|
-
*
|
|
553
|
-
*
|
|
554
|
-
*
|
|
555
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
556
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
557
|
-
* Do not edit the class manually.
|
|
558
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
559
|
-
class DpaEngagementControllerService {
|
|
560
|
-
constructor(httpClient, basePath, configuration) {
|
|
561
|
-
this.httpClient = httpClient;
|
|
562
|
-
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
563
|
-
this.defaultHeaders = new HttpHeaders();
|
|
564
|
-
this.configuration = new Configuration();
|
|
565
|
-
if (basePath) {
|
|
566
|
-
this.basePath = basePath;
|
|
567
|
-
}
|
|
568
|
-
if (configuration) {
|
|
569
|
-
this.configuration = configuration;
|
|
570
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
/**
|
|
574
|
-
* @param consumes string[] mime-types
|
|
575
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
576
|
-
*/
|
|
577
|
-
canConsumeForm(consumes) {
|
|
578
|
-
const form = 'multipart/form-data';
|
|
579
|
-
for (const consume of consumes) {
|
|
580
|
-
if (form === consume) {
|
|
581
|
-
return true;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
return false;
|
|
585
|
-
}
|
|
586
|
-
activateDpaEngagement(id, observe = 'body', reportProgress = false) {
|
|
587
|
-
if (id === null || id === undefined) {
|
|
588
|
-
throw new Error('Required parameter id was null or undefined when calling activateDpaEngagement.');
|
|
589
|
-
}
|
|
590
|
-
let headers = this.defaultHeaders;
|
|
591
|
-
// to determine the Accept header
|
|
592
|
-
let httpHeaderAccepts = [
|
|
593
|
-
'*/*'
|
|
594
|
-
];
|
|
595
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
596
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
597
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
598
|
-
}
|
|
599
|
-
// to determine the Content-Type header
|
|
600
|
-
const consumes = [];
|
|
601
|
-
return this.httpClient.request('post', `${this.basePath}/dpa-engagement/${encodeURIComponent(String(id))}/activate`, {
|
|
602
|
-
withCredentials: this.configuration.withCredentials,
|
|
603
|
-
headers: headers,
|
|
604
|
-
observe: observe,
|
|
605
|
-
reportProgress: reportProgress
|
|
606
|
-
});
|
|
607
|
-
}
|
|
608
|
-
createDpaEngagement(body, observe = 'body', reportProgress = false) {
|
|
609
|
-
if (body === null || body === undefined) {
|
|
610
|
-
throw new Error('Required parameter body was null or undefined when calling createDpaEngagement.');
|
|
611
|
-
}
|
|
612
|
-
let headers = this.defaultHeaders;
|
|
613
|
-
// to determine the Accept header
|
|
614
|
-
let httpHeaderAccepts = [
|
|
615
|
-
'*/*'
|
|
616
|
-
];
|
|
617
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
618
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
619
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
620
|
-
}
|
|
621
|
-
// to determine the Content-Type header
|
|
622
|
-
const consumes = [
|
|
623
|
-
'application/json'
|
|
624
|
-
];
|
|
625
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
626
|
-
if (httpContentTypeSelected != undefined) {
|
|
627
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
628
|
-
}
|
|
629
|
-
return this.httpClient.request('post', `${this.basePath}/dpa-engagement`, {
|
|
630
|
-
body: body,
|
|
631
|
-
withCredentials: this.configuration.withCredentials,
|
|
632
|
-
headers: headers,
|
|
633
|
-
observe: observe,
|
|
634
|
-
reportProgress: reportProgress
|
|
635
|
-
});
|
|
636
|
-
}
|
|
637
|
-
getAllDpaEngagements(id, campaignId, facebookCampaignId, name, payoutType, status, isIntellibidEnabled, isMarketFeedbackEnabled, campaignStatus, page, size, sort, observe = 'body', reportProgress = false) {
|
|
638
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
639
|
-
if (id !== undefined && id !== null) {
|
|
640
|
-
queryParameters = queryParameters.set('id', id);
|
|
641
|
-
}
|
|
642
|
-
if (campaignId !== undefined && campaignId !== null) {
|
|
643
|
-
queryParameters = queryParameters.set('campaignId', campaignId);
|
|
644
|
-
}
|
|
645
|
-
if (facebookCampaignId !== undefined && facebookCampaignId !== null) {
|
|
646
|
-
queryParameters = queryParameters.set('facebookCampaignId', facebookCampaignId);
|
|
647
|
-
}
|
|
648
|
-
if (name !== undefined && name !== null) {
|
|
649
|
-
queryParameters = queryParameters.set('name', name);
|
|
650
|
-
}
|
|
651
|
-
if (payoutType !== undefined && payoutType !== null) {
|
|
652
|
-
queryParameters = queryParameters.set('payoutType', payoutType);
|
|
653
|
-
}
|
|
654
|
-
if (status !== undefined && status !== null) {
|
|
655
|
-
queryParameters = queryParameters.set('status', status);
|
|
656
|
-
}
|
|
657
|
-
if (isIntellibidEnabled !== undefined && isIntellibidEnabled !== null) {
|
|
658
|
-
queryParameters = queryParameters.set('isIntellibidEnabled', isIntellibidEnabled);
|
|
659
|
-
}
|
|
660
|
-
if (isMarketFeedbackEnabled !== undefined && isMarketFeedbackEnabled !== null) {
|
|
661
|
-
queryParameters = queryParameters.set('isMarketFeedbackEnabled', isMarketFeedbackEnabled);
|
|
662
|
-
}
|
|
663
|
-
if (campaignStatus !== undefined && campaignStatus !== null) {
|
|
664
|
-
queryParameters = queryParameters.set('campaignStatus', campaignStatus);
|
|
665
|
-
}
|
|
666
|
-
if (page !== undefined && page !== null) {
|
|
667
|
-
queryParameters = queryParameters.set('page', page);
|
|
668
|
-
}
|
|
669
|
-
if (size !== undefined && size !== null) {
|
|
670
|
-
queryParameters = queryParameters.set('size', size);
|
|
671
|
-
}
|
|
672
|
-
if (sort) {
|
|
673
|
-
sort.forEach((element) => {
|
|
674
|
-
queryParameters = queryParameters.append('sort', element);
|
|
675
|
-
});
|
|
676
|
-
}
|
|
677
|
-
let headers = this.defaultHeaders;
|
|
678
|
-
// to determine the Accept header
|
|
679
|
-
let httpHeaderAccepts = [
|
|
680
|
-
'*/*'
|
|
681
|
-
];
|
|
682
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
683
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
684
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
685
|
-
}
|
|
686
|
-
// to determine the Content-Type header
|
|
687
|
-
const consumes = [];
|
|
688
|
-
return this.httpClient.request('get', `${this.basePath}/dpa-engagement`, {
|
|
689
|
-
params: queryParameters,
|
|
690
|
-
withCredentials: this.configuration.withCredentials,
|
|
691
|
-
headers: headers,
|
|
692
|
-
observe: observe,
|
|
693
|
-
reportProgress: reportProgress
|
|
694
|
-
});
|
|
695
|
-
}
|
|
696
|
-
getDpaEngagement(id, observe = 'body', reportProgress = false) {
|
|
697
|
-
if (id === null || id === undefined) {
|
|
698
|
-
throw new Error('Required parameter id was null or undefined when calling getDpaEngagement.');
|
|
699
|
-
}
|
|
700
|
-
let headers = this.defaultHeaders;
|
|
701
|
-
// to determine the Accept header
|
|
702
|
-
let httpHeaderAccepts = [
|
|
703
|
-
'*/*'
|
|
704
|
-
];
|
|
705
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
706
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
707
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
708
|
-
}
|
|
709
|
-
// to determine the Content-Type header
|
|
710
|
-
const consumes = [];
|
|
711
|
-
return this.httpClient.request('get', `${this.basePath}/dpa-engagement/${encodeURIComponent(String(id))}`, {
|
|
712
|
-
withCredentials: this.configuration.withCredentials,
|
|
713
|
-
headers: headers,
|
|
714
|
-
observe: observe,
|
|
715
|
-
reportProgress: reportProgress
|
|
716
|
-
});
|
|
717
|
-
}
|
|
718
|
-
pauseDpaEngagement(id, observe = 'body', reportProgress = false) {
|
|
719
|
-
if (id === null || id === undefined) {
|
|
720
|
-
throw new Error('Required parameter id was null or undefined when calling pauseDpaEngagement.');
|
|
721
|
-
}
|
|
722
|
-
let headers = this.defaultHeaders;
|
|
723
|
-
// to determine the Accept header
|
|
724
|
-
let httpHeaderAccepts = [
|
|
725
|
-
'*/*'
|
|
726
|
-
];
|
|
727
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
728
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
729
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
730
|
-
}
|
|
731
|
-
// to determine the Content-Type header
|
|
732
|
-
const consumes = [];
|
|
733
|
-
return this.httpClient.request('post', `${this.basePath}/dpa-engagement/${encodeURIComponent(String(id))}/pause`, {
|
|
734
|
-
withCredentials: this.configuration.withCredentials,
|
|
735
|
-
headers: headers,
|
|
736
|
-
observe: observe,
|
|
737
|
-
reportProgress: reportProgress
|
|
738
|
-
});
|
|
739
|
-
}
|
|
740
|
-
publishDpaEngagement(id, observe = 'body', reportProgress = false) {
|
|
741
|
-
if (id === null || id === undefined) {
|
|
742
|
-
throw new Error('Required parameter id was null or undefined when calling publishDpaEngagement.');
|
|
743
|
-
}
|
|
744
|
-
let headers = this.defaultHeaders;
|
|
745
|
-
// to determine the Accept header
|
|
746
|
-
let httpHeaderAccepts = [
|
|
747
|
-
'*/*'
|
|
748
|
-
];
|
|
749
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
750
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
751
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
752
|
-
}
|
|
753
|
-
// to determine the Content-Type header
|
|
754
|
-
const consumes = [];
|
|
755
|
-
return this.httpClient.request('post', `${this.basePath}/dpa-engagement/${encodeURIComponent(String(id))}/publish`, {
|
|
756
|
-
withCredentials: this.configuration.withCredentials,
|
|
757
|
-
headers: headers,
|
|
758
|
-
observe: observe,
|
|
759
|
-
reportProgress: reportProgress
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
searchDpaEngagements(q, observe = 'body', reportProgress = false) {
|
|
763
|
-
if (q === null || q === undefined) {
|
|
764
|
-
throw new Error('Required parameter q was null or undefined when calling searchDpaEngagements.');
|
|
765
|
-
}
|
|
766
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
767
|
-
if (q !== undefined && q !== null) {
|
|
768
|
-
queryParameters = queryParameters.set('q', q);
|
|
769
|
-
}
|
|
770
|
-
let headers = this.defaultHeaders;
|
|
771
|
-
// to determine the Accept header
|
|
772
|
-
let httpHeaderAccepts = [
|
|
773
|
-
'*/*'
|
|
774
|
-
];
|
|
775
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
776
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
777
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
778
|
-
}
|
|
779
|
-
// to determine the Content-Type header
|
|
780
|
-
const consumes = [];
|
|
781
|
-
return this.httpClient.request('get', `${this.basePath}/dpa-engagement/search`, {
|
|
782
|
-
params: queryParameters,
|
|
783
|
-
withCredentials: this.configuration.withCredentials,
|
|
784
|
-
headers: headers,
|
|
785
|
-
observe: observe,
|
|
786
|
-
reportProgress: reportProgress
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
updateDailyBudget(body, id, observe = 'body', reportProgress = false) {
|
|
790
|
-
if (body === null || body === undefined) {
|
|
791
|
-
throw new Error('Required parameter body was null or undefined when calling updateDailyBudget.');
|
|
792
|
-
}
|
|
793
|
-
if (id === null || id === undefined) {
|
|
794
|
-
throw new Error('Required parameter id was null or undefined when calling updateDailyBudget.');
|
|
795
|
-
}
|
|
796
|
-
let headers = this.defaultHeaders;
|
|
797
|
-
// to determine the Accept header
|
|
798
|
-
let httpHeaderAccepts = [
|
|
799
|
-
'*/*'
|
|
800
|
-
];
|
|
801
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
802
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
803
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
804
|
-
}
|
|
805
|
-
// to determine the Content-Type header
|
|
806
|
-
const consumes = [
|
|
807
|
-
'application/json'
|
|
808
|
-
];
|
|
809
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
810
|
-
if (httpContentTypeSelected != undefined) {
|
|
811
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
812
|
-
}
|
|
813
|
-
return this.httpClient.request('post', `${this.basePath}/dpa-engagement/${encodeURIComponent(String(id))}/daily-budget`, {
|
|
814
|
-
body: body,
|
|
815
|
-
withCredentials: this.configuration.withCredentials,
|
|
816
|
-
headers: headers,
|
|
817
|
-
observe: observe,
|
|
818
|
-
reportProgress: reportProgress
|
|
819
|
-
});
|
|
820
|
-
}
|
|
821
|
-
updateDpaEngagement(body, id, observe = 'body', reportProgress = false) {
|
|
822
|
-
if (body === null || body === undefined) {
|
|
823
|
-
throw new Error('Required parameter body was null or undefined when calling updateDpaEngagement.');
|
|
824
|
-
}
|
|
825
|
-
if (id === null || id === undefined) {
|
|
826
|
-
throw new Error('Required parameter id was null or undefined when calling updateDpaEngagement.');
|
|
827
|
-
}
|
|
828
|
-
let headers = this.defaultHeaders;
|
|
829
|
-
// to determine the Accept header
|
|
830
|
-
let httpHeaderAccepts = [
|
|
831
|
-
'*/*'
|
|
832
|
-
];
|
|
833
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
834
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
835
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
836
|
-
}
|
|
837
|
-
// to determine the Content-Type header
|
|
838
|
-
const consumes = [
|
|
839
|
-
'application/json'
|
|
840
|
-
];
|
|
841
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
842
|
-
if (httpContentTypeSelected != undefined) {
|
|
843
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
844
|
-
}
|
|
845
|
-
return this.httpClient.request('post', `${this.basePath}/dpa-engagement/${encodeURIComponent(String(id))}`, {
|
|
846
|
-
body: body,
|
|
847
|
-
withCredentials: this.configuration.withCredentials,
|
|
848
|
-
headers: headers,
|
|
849
|
-
observe: observe,
|
|
850
|
-
reportProgress: reportProgress
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
DpaEngagementControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaEngagementControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
855
|
-
DpaEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaEngagementControllerService });
|
|
856
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaEngagementControllerService, decorators: [{
|
|
857
|
-
type: Injectable
|
|
858
|
-
}], ctorParameters: function () {
|
|
859
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
860
|
-
type: Optional
|
|
861
|
-
}, {
|
|
862
|
-
type: Inject,
|
|
863
|
-
args: [BASE_PATH]
|
|
864
|
-
}] }, { type: Configuration, decorators: [{
|
|
865
|
-
type: Optional
|
|
866
|
-
}] }];
|
|
548
|
+
/**
|
|
549
|
+
*
|
|
550
|
+
*
|
|
551
|
+
*
|
|
552
|
+
*
|
|
553
|
+
*
|
|
554
|
+
*
|
|
555
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
556
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
557
|
+
* Do not edit the class manually.
|
|
558
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
559
|
+
class DpaEngagementControllerService {
|
|
560
|
+
constructor(httpClient, basePath, configuration) {
|
|
561
|
+
this.httpClient = httpClient;
|
|
562
|
+
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
563
|
+
this.defaultHeaders = new HttpHeaders();
|
|
564
|
+
this.configuration = new Configuration();
|
|
565
|
+
if (basePath) {
|
|
566
|
+
this.basePath = basePath;
|
|
567
|
+
}
|
|
568
|
+
if (configuration) {
|
|
569
|
+
this.configuration = configuration;
|
|
570
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* @param consumes string[] mime-types
|
|
575
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
576
|
+
*/
|
|
577
|
+
canConsumeForm(consumes) {
|
|
578
|
+
const form = 'multipart/form-data';
|
|
579
|
+
for (const consume of consumes) {
|
|
580
|
+
if (form === consume) {
|
|
581
|
+
return true;
|
|
582
|
+
}
|
|
583
|
+
}
|
|
584
|
+
return false;
|
|
585
|
+
}
|
|
586
|
+
activateDpaEngagement(id, observe = 'body', reportProgress = false) {
|
|
587
|
+
if (id === null || id === undefined) {
|
|
588
|
+
throw new Error('Required parameter id was null or undefined when calling activateDpaEngagement.');
|
|
589
|
+
}
|
|
590
|
+
let headers = this.defaultHeaders;
|
|
591
|
+
// to determine the Accept header
|
|
592
|
+
let httpHeaderAccepts = [
|
|
593
|
+
'*/*'
|
|
594
|
+
];
|
|
595
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
596
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
597
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
598
|
+
}
|
|
599
|
+
// to determine the Content-Type header
|
|
600
|
+
const consumes = [];
|
|
601
|
+
return this.httpClient.request('post', `${this.basePath}/dpa-engagement/${encodeURIComponent(String(id))}/activate`, {
|
|
602
|
+
withCredentials: this.configuration.withCredentials,
|
|
603
|
+
headers: headers,
|
|
604
|
+
observe: observe,
|
|
605
|
+
reportProgress: reportProgress
|
|
606
|
+
});
|
|
607
|
+
}
|
|
608
|
+
createDpaEngagement(body, observe = 'body', reportProgress = false) {
|
|
609
|
+
if (body === null || body === undefined) {
|
|
610
|
+
throw new Error('Required parameter body was null or undefined when calling createDpaEngagement.');
|
|
611
|
+
}
|
|
612
|
+
let headers = this.defaultHeaders;
|
|
613
|
+
// to determine the Accept header
|
|
614
|
+
let httpHeaderAccepts = [
|
|
615
|
+
'*/*'
|
|
616
|
+
];
|
|
617
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
618
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
619
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
620
|
+
}
|
|
621
|
+
// to determine the Content-Type header
|
|
622
|
+
const consumes = [
|
|
623
|
+
'application/json'
|
|
624
|
+
];
|
|
625
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
626
|
+
if (httpContentTypeSelected != undefined) {
|
|
627
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
628
|
+
}
|
|
629
|
+
return this.httpClient.request('post', `${this.basePath}/dpa-engagement`, {
|
|
630
|
+
body: body,
|
|
631
|
+
withCredentials: this.configuration.withCredentials,
|
|
632
|
+
headers: headers,
|
|
633
|
+
observe: observe,
|
|
634
|
+
reportProgress: reportProgress
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
getAllDpaEngagements(id, campaignId, facebookCampaignId, name, payoutType, status, isIntellibidEnabled, isMarketFeedbackEnabled, campaignStatus, page, size, sort, observe = 'body', reportProgress = false) {
|
|
638
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
639
|
+
if (id !== undefined && id !== null) {
|
|
640
|
+
queryParameters = queryParameters.set('id', id);
|
|
641
|
+
}
|
|
642
|
+
if (campaignId !== undefined && campaignId !== null) {
|
|
643
|
+
queryParameters = queryParameters.set('campaignId', campaignId);
|
|
644
|
+
}
|
|
645
|
+
if (facebookCampaignId !== undefined && facebookCampaignId !== null) {
|
|
646
|
+
queryParameters = queryParameters.set('facebookCampaignId', facebookCampaignId);
|
|
647
|
+
}
|
|
648
|
+
if (name !== undefined && name !== null) {
|
|
649
|
+
queryParameters = queryParameters.set('name', name);
|
|
650
|
+
}
|
|
651
|
+
if (payoutType !== undefined && payoutType !== null) {
|
|
652
|
+
queryParameters = queryParameters.set('payoutType', payoutType);
|
|
653
|
+
}
|
|
654
|
+
if (status !== undefined && status !== null) {
|
|
655
|
+
queryParameters = queryParameters.set('status', status);
|
|
656
|
+
}
|
|
657
|
+
if (isIntellibidEnabled !== undefined && isIntellibidEnabled !== null) {
|
|
658
|
+
queryParameters = queryParameters.set('isIntellibidEnabled', isIntellibidEnabled);
|
|
659
|
+
}
|
|
660
|
+
if (isMarketFeedbackEnabled !== undefined && isMarketFeedbackEnabled !== null) {
|
|
661
|
+
queryParameters = queryParameters.set('isMarketFeedbackEnabled', isMarketFeedbackEnabled);
|
|
662
|
+
}
|
|
663
|
+
if (campaignStatus !== undefined && campaignStatus !== null) {
|
|
664
|
+
queryParameters = queryParameters.set('campaignStatus', campaignStatus);
|
|
665
|
+
}
|
|
666
|
+
if (page !== undefined && page !== null) {
|
|
667
|
+
queryParameters = queryParameters.set('page', page);
|
|
668
|
+
}
|
|
669
|
+
if (size !== undefined && size !== null) {
|
|
670
|
+
queryParameters = queryParameters.set('size', size);
|
|
671
|
+
}
|
|
672
|
+
if (sort) {
|
|
673
|
+
sort.forEach((element) => {
|
|
674
|
+
queryParameters = queryParameters.append('sort', element);
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
let headers = this.defaultHeaders;
|
|
678
|
+
// to determine the Accept header
|
|
679
|
+
let httpHeaderAccepts = [
|
|
680
|
+
'*/*'
|
|
681
|
+
];
|
|
682
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
683
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
684
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
685
|
+
}
|
|
686
|
+
// to determine the Content-Type header
|
|
687
|
+
const consumes = [];
|
|
688
|
+
return this.httpClient.request('get', `${this.basePath}/dpa-engagement`, {
|
|
689
|
+
params: queryParameters,
|
|
690
|
+
withCredentials: this.configuration.withCredentials,
|
|
691
|
+
headers: headers,
|
|
692
|
+
observe: observe,
|
|
693
|
+
reportProgress: reportProgress
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
getDpaEngagement(id, observe = 'body', reportProgress = false) {
|
|
697
|
+
if (id === null || id === undefined) {
|
|
698
|
+
throw new Error('Required parameter id was null or undefined when calling getDpaEngagement.');
|
|
699
|
+
}
|
|
700
|
+
let headers = this.defaultHeaders;
|
|
701
|
+
// to determine the Accept header
|
|
702
|
+
let httpHeaderAccepts = [
|
|
703
|
+
'*/*'
|
|
704
|
+
];
|
|
705
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
706
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
707
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
708
|
+
}
|
|
709
|
+
// to determine the Content-Type header
|
|
710
|
+
const consumes = [];
|
|
711
|
+
return this.httpClient.request('get', `${this.basePath}/dpa-engagement/${encodeURIComponent(String(id))}`, {
|
|
712
|
+
withCredentials: this.configuration.withCredentials,
|
|
713
|
+
headers: headers,
|
|
714
|
+
observe: observe,
|
|
715
|
+
reportProgress: reportProgress
|
|
716
|
+
});
|
|
717
|
+
}
|
|
718
|
+
pauseDpaEngagement(id, observe = 'body', reportProgress = false) {
|
|
719
|
+
if (id === null || id === undefined) {
|
|
720
|
+
throw new Error('Required parameter id was null or undefined when calling pauseDpaEngagement.');
|
|
721
|
+
}
|
|
722
|
+
let headers = this.defaultHeaders;
|
|
723
|
+
// to determine the Accept header
|
|
724
|
+
let httpHeaderAccepts = [
|
|
725
|
+
'*/*'
|
|
726
|
+
];
|
|
727
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
728
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
729
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
730
|
+
}
|
|
731
|
+
// to determine the Content-Type header
|
|
732
|
+
const consumes = [];
|
|
733
|
+
return this.httpClient.request('post', `${this.basePath}/dpa-engagement/${encodeURIComponent(String(id))}/pause`, {
|
|
734
|
+
withCredentials: this.configuration.withCredentials,
|
|
735
|
+
headers: headers,
|
|
736
|
+
observe: observe,
|
|
737
|
+
reportProgress: reportProgress
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
publishDpaEngagement(id, observe = 'body', reportProgress = false) {
|
|
741
|
+
if (id === null || id === undefined) {
|
|
742
|
+
throw new Error('Required parameter id was null or undefined when calling publishDpaEngagement.');
|
|
743
|
+
}
|
|
744
|
+
let headers = this.defaultHeaders;
|
|
745
|
+
// to determine the Accept header
|
|
746
|
+
let httpHeaderAccepts = [
|
|
747
|
+
'*/*'
|
|
748
|
+
];
|
|
749
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
750
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
751
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
752
|
+
}
|
|
753
|
+
// to determine the Content-Type header
|
|
754
|
+
const consumes = [];
|
|
755
|
+
return this.httpClient.request('post', `${this.basePath}/dpa-engagement/${encodeURIComponent(String(id))}/publish`, {
|
|
756
|
+
withCredentials: this.configuration.withCredentials,
|
|
757
|
+
headers: headers,
|
|
758
|
+
observe: observe,
|
|
759
|
+
reportProgress: reportProgress
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
searchDpaEngagements(q, observe = 'body', reportProgress = false) {
|
|
763
|
+
if (q === null || q === undefined) {
|
|
764
|
+
throw new Error('Required parameter q was null or undefined when calling searchDpaEngagements.');
|
|
765
|
+
}
|
|
766
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
767
|
+
if (q !== undefined && q !== null) {
|
|
768
|
+
queryParameters = queryParameters.set('q', q);
|
|
769
|
+
}
|
|
770
|
+
let headers = this.defaultHeaders;
|
|
771
|
+
// to determine the Accept header
|
|
772
|
+
let httpHeaderAccepts = [
|
|
773
|
+
'*/*'
|
|
774
|
+
];
|
|
775
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
776
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
777
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
778
|
+
}
|
|
779
|
+
// to determine the Content-Type header
|
|
780
|
+
const consumes = [];
|
|
781
|
+
return this.httpClient.request('get', `${this.basePath}/dpa-engagement/search`, {
|
|
782
|
+
params: queryParameters,
|
|
783
|
+
withCredentials: this.configuration.withCredentials,
|
|
784
|
+
headers: headers,
|
|
785
|
+
observe: observe,
|
|
786
|
+
reportProgress: reportProgress
|
|
787
|
+
});
|
|
788
|
+
}
|
|
789
|
+
updateDailyBudget(body, id, observe = 'body', reportProgress = false) {
|
|
790
|
+
if (body === null || body === undefined) {
|
|
791
|
+
throw new Error('Required parameter body was null or undefined when calling updateDailyBudget.');
|
|
792
|
+
}
|
|
793
|
+
if (id === null || id === undefined) {
|
|
794
|
+
throw new Error('Required parameter id was null or undefined when calling updateDailyBudget.');
|
|
795
|
+
}
|
|
796
|
+
let headers = this.defaultHeaders;
|
|
797
|
+
// to determine the Accept header
|
|
798
|
+
let httpHeaderAccepts = [
|
|
799
|
+
'*/*'
|
|
800
|
+
];
|
|
801
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
802
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
803
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
804
|
+
}
|
|
805
|
+
// to determine the Content-Type header
|
|
806
|
+
const consumes = [
|
|
807
|
+
'application/json'
|
|
808
|
+
];
|
|
809
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
810
|
+
if (httpContentTypeSelected != undefined) {
|
|
811
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
812
|
+
}
|
|
813
|
+
return this.httpClient.request('post', `${this.basePath}/dpa-engagement/${encodeURIComponent(String(id))}/daily-budget`, {
|
|
814
|
+
body: body,
|
|
815
|
+
withCredentials: this.configuration.withCredentials,
|
|
816
|
+
headers: headers,
|
|
817
|
+
observe: observe,
|
|
818
|
+
reportProgress: reportProgress
|
|
819
|
+
});
|
|
820
|
+
}
|
|
821
|
+
updateDpaEngagement(body, id, observe = 'body', reportProgress = false) {
|
|
822
|
+
if (body === null || body === undefined) {
|
|
823
|
+
throw new Error('Required parameter body was null or undefined when calling updateDpaEngagement.');
|
|
824
|
+
}
|
|
825
|
+
if (id === null || id === undefined) {
|
|
826
|
+
throw new Error('Required parameter id was null or undefined when calling updateDpaEngagement.');
|
|
827
|
+
}
|
|
828
|
+
let headers = this.defaultHeaders;
|
|
829
|
+
// to determine the Accept header
|
|
830
|
+
let httpHeaderAccepts = [
|
|
831
|
+
'*/*'
|
|
832
|
+
];
|
|
833
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
834
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
835
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
836
|
+
}
|
|
837
|
+
// to determine the Content-Type header
|
|
838
|
+
const consumes = [
|
|
839
|
+
'application/json'
|
|
840
|
+
];
|
|
841
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
842
|
+
if (httpContentTypeSelected != undefined) {
|
|
843
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
844
|
+
}
|
|
845
|
+
return this.httpClient.request('post', `${this.basePath}/dpa-engagement/${encodeURIComponent(String(id))}`, {
|
|
846
|
+
body: body,
|
|
847
|
+
withCredentials: this.configuration.withCredentials,
|
|
848
|
+
headers: headers,
|
|
849
|
+
observe: observe,
|
|
850
|
+
reportProgress: reportProgress
|
|
851
|
+
});
|
|
852
|
+
}
|
|
853
|
+
}
|
|
854
|
+
DpaEngagementControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaEngagementControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
855
|
+
DpaEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaEngagementControllerService });
|
|
856
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaEngagementControllerService, decorators: [{
|
|
857
|
+
type: Injectable
|
|
858
|
+
}], ctorParameters: function () {
|
|
859
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
860
|
+
type: Optional
|
|
861
|
+
}, {
|
|
862
|
+
type: Inject,
|
|
863
|
+
args: [BASE_PATH]
|
|
864
|
+
}] }, { type: Configuration, decorators: [{
|
|
865
|
+
type: Optional
|
|
866
|
+
}] }];
|
|
867
867
|
} });
|
|
868
868
|
|
|
869
|
-
/**
|
|
870
|
-
*
|
|
871
|
-
*
|
|
872
|
-
*
|
|
873
|
-
*
|
|
874
|
-
*
|
|
875
|
-
*
|
|
876
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
877
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
878
|
-
* Do not edit the class manually.
|
|
879
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
880
|
-
class FacebookEngagementControllerService {
|
|
881
|
-
constructor(httpClient, basePath, configuration) {
|
|
882
|
-
this.httpClient = httpClient;
|
|
883
|
-
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
884
|
-
this.defaultHeaders = new HttpHeaders();
|
|
885
|
-
this.configuration = new Configuration();
|
|
886
|
-
if (basePath) {
|
|
887
|
-
this.basePath = basePath;
|
|
888
|
-
}
|
|
889
|
-
if (configuration) {
|
|
890
|
-
this.configuration = configuration;
|
|
891
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
892
|
-
}
|
|
893
|
-
}
|
|
894
|
-
/**
|
|
895
|
-
* @param consumes string[] mime-types
|
|
896
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
897
|
-
*/
|
|
898
|
-
canConsumeForm(consumes) {
|
|
899
|
-
const form = 'multipart/form-data';
|
|
900
|
-
for (const consume of consumes) {
|
|
901
|
-
if (form === consume) {
|
|
902
|
-
return true;
|
|
903
|
-
}
|
|
904
|
-
}
|
|
905
|
-
return false;
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
if (body === null || body === undefined) {
|
|
909
|
-
throw new Error('Required parameter body was null or undefined when calling
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
const
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
}
|
|
941
|
-
if (
|
|
942
|
-
queryParameters = queryParameters.set('
|
|
943
|
-
}
|
|
944
|
-
if (
|
|
945
|
-
queryParameters = queryParameters.set('
|
|
946
|
-
}
|
|
947
|
-
if (
|
|
948
|
-
queryParameters = queryParameters.set('
|
|
949
|
-
}
|
|
950
|
-
if (
|
|
951
|
-
queryParameters = queryParameters.set('
|
|
952
|
-
}
|
|
953
|
-
if (
|
|
954
|
-
queryParameters = queryParameters.set('
|
|
955
|
-
}
|
|
956
|
-
if (
|
|
957
|
-
queryParameters = queryParameters.set('
|
|
958
|
-
}
|
|
959
|
-
if (
|
|
960
|
-
queryParameters = queryParameters.set('
|
|
961
|
-
}
|
|
962
|
-
if (
|
|
963
|
-
queryParameters = queryParameters.set('
|
|
964
|
-
}
|
|
965
|
-
if (
|
|
966
|
-
queryParameters = queryParameters.set('
|
|
967
|
-
}
|
|
968
|
-
if (
|
|
969
|
-
queryParameters = queryParameters.set('
|
|
970
|
-
}
|
|
971
|
-
if (
|
|
972
|
-
queryParameters = queryParameters.set('
|
|
973
|
-
}
|
|
974
|
-
if (
|
|
975
|
-
queryParameters = queryParameters.set('
|
|
976
|
-
}
|
|
977
|
-
if (
|
|
978
|
-
queryParameters = queryParameters.set('
|
|
979
|
-
}
|
|
980
|
-
if (
|
|
981
|
-
queryParameters = queryParameters.set('
|
|
982
|
-
}
|
|
983
|
-
if (
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
const consumes = [
|
|
1047
|
-
'application/json'
|
|
1048
|
-
];
|
|
1049
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1050
|
-
if (httpContentTypeSelected != undefined) {
|
|
1051
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
1052
|
-
}
|
|
1053
|
-
return this.httpClient.request('post', `${this.basePath}/facebook-engagement/${encodeURIComponent(String(id))}`, {
|
|
1054
|
-
body: body,
|
|
1055
|
-
withCredentials: this.configuration.withCredentials,
|
|
1056
|
-
headers: headers,
|
|
1057
|
-
observe: observe,
|
|
1058
|
-
reportProgress: reportProgress
|
|
1059
|
-
});
|
|
1060
|
-
}
|
|
1061
|
-
}
|
|
1062
|
-
FacebookEngagementControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1063
|
-
FacebookEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService });
|
|
1064
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService, decorators: [{
|
|
1065
|
-
type: Injectable
|
|
1066
|
-
}], ctorParameters: function () {
|
|
1067
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1068
|
-
type: Optional
|
|
1069
|
-
}, {
|
|
1070
|
-
type: Inject,
|
|
1071
|
-
args: [BASE_PATH]
|
|
1072
|
-
}] }, { type: Configuration, decorators: [{
|
|
1073
|
-
type: Optional
|
|
1074
|
-
}] }];
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
*
|
|
872
|
+
*
|
|
873
|
+
*
|
|
874
|
+
*
|
|
875
|
+
*
|
|
876
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
877
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
878
|
+
* Do not edit the class manually.
|
|
879
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
880
|
+
class FacebookEngagementControllerService {
|
|
881
|
+
constructor(httpClient, basePath, configuration) {
|
|
882
|
+
this.httpClient = httpClient;
|
|
883
|
+
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
884
|
+
this.defaultHeaders = new HttpHeaders();
|
|
885
|
+
this.configuration = new Configuration();
|
|
886
|
+
if (basePath) {
|
|
887
|
+
this.basePath = basePath;
|
|
888
|
+
}
|
|
889
|
+
if (configuration) {
|
|
890
|
+
this.configuration = configuration;
|
|
891
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
892
|
+
}
|
|
893
|
+
}
|
|
894
|
+
/**
|
|
895
|
+
* @param consumes string[] mime-types
|
|
896
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
897
|
+
*/
|
|
898
|
+
canConsumeForm(consumes) {
|
|
899
|
+
const form = 'multipart/form-data';
|
|
900
|
+
for (const consume of consumes) {
|
|
901
|
+
if (form === consume) {
|
|
902
|
+
return true;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
return false;
|
|
906
|
+
}
|
|
907
|
+
createOrUpdateFacebookEngagement(body, id, observe = 'body', reportProgress = false) {
|
|
908
|
+
if (body === null || body === undefined) {
|
|
909
|
+
throw new Error('Required parameter body was null or undefined when calling createOrUpdateFacebookEngagement.');
|
|
910
|
+
}
|
|
911
|
+
if (id === null || id === undefined) {
|
|
912
|
+
throw new Error('Required parameter id was null or undefined when calling createOrUpdateFacebookEngagement.');
|
|
913
|
+
}
|
|
914
|
+
let headers = this.defaultHeaders;
|
|
915
|
+
// to determine the Accept header
|
|
916
|
+
let httpHeaderAccepts = [
|
|
917
|
+
'*/*'
|
|
918
|
+
];
|
|
919
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
920
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
921
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
922
|
+
}
|
|
923
|
+
// to determine the Content-Type header
|
|
924
|
+
const consumes = [
|
|
925
|
+
'application/json'
|
|
926
|
+
];
|
|
927
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
928
|
+
if (httpContentTypeSelected != undefined) {
|
|
929
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
930
|
+
}
|
|
931
|
+
return this.httpClient.request('post', `${this.basePath}/facebook-engagement/${encodeURIComponent(String(id))}`, {
|
|
932
|
+
body: body,
|
|
933
|
+
withCredentials: this.configuration.withCredentials,
|
|
934
|
+
headers: headers,
|
|
935
|
+
observe: observe,
|
|
936
|
+
reportProgress: reportProgress
|
|
937
|
+
});
|
|
938
|
+
}
|
|
939
|
+
getAllFacebookEngagements(id, campaignId, facebookAccountId, facebookFanPageId, facebookCatalogId, facebookCatalogType, instagramActorId, facebookPixelId, facebookAppId, facebookProductSetId, tosAccepted, eventSourceGroupId, audienceDsdo, page, size, sort, observe = 'body', reportProgress = false) {
|
|
940
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
941
|
+
if (id !== undefined && id !== null) {
|
|
942
|
+
queryParameters = queryParameters.set('id', id);
|
|
943
|
+
}
|
|
944
|
+
if (campaignId !== undefined && campaignId !== null) {
|
|
945
|
+
queryParameters = queryParameters.set('campaignId', campaignId);
|
|
946
|
+
}
|
|
947
|
+
if (facebookAccountId !== undefined && facebookAccountId !== null) {
|
|
948
|
+
queryParameters = queryParameters.set('facebookAccountId', facebookAccountId);
|
|
949
|
+
}
|
|
950
|
+
if (facebookFanPageId !== undefined && facebookFanPageId !== null) {
|
|
951
|
+
queryParameters = queryParameters.set('facebookFanPageId', facebookFanPageId);
|
|
952
|
+
}
|
|
953
|
+
if (facebookCatalogId !== undefined && facebookCatalogId !== null) {
|
|
954
|
+
queryParameters = queryParameters.set('facebookCatalogId', facebookCatalogId);
|
|
955
|
+
}
|
|
956
|
+
if (facebookCatalogType !== undefined && facebookCatalogType !== null) {
|
|
957
|
+
queryParameters = queryParameters.set('facebookCatalogType', facebookCatalogType);
|
|
958
|
+
}
|
|
959
|
+
if (instagramActorId !== undefined && instagramActorId !== null) {
|
|
960
|
+
queryParameters = queryParameters.set('instagramActorId', instagramActorId);
|
|
961
|
+
}
|
|
962
|
+
if (facebookPixelId !== undefined && facebookPixelId !== null) {
|
|
963
|
+
queryParameters = queryParameters.set('facebookPixelId', facebookPixelId);
|
|
964
|
+
}
|
|
965
|
+
if (facebookAppId !== undefined && facebookAppId !== null) {
|
|
966
|
+
queryParameters = queryParameters.set('facebookAppId', facebookAppId);
|
|
967
|
+
}
|
|
968
|
+
if (facebookProductSetId !== undefined && facebookProductSetId !== null) {
|
|
969
|
+
queryParameters = queryParameters.set('facebookProductSetId', facebookProductSetId);
|
|
970
|
+
}
|
|
971
|
+
if (tosAccepted !== undefined && tosAccepted !== null) {
|
|
972
|
+
queryParameters = queryParameters.set('tosAccepted', tosAccepted);
|
|
973
|
+
}
|
|
974
|
+
if (eventSourceGroupId !== undefined && eventSourceGroupId !== null) {
|
|
975
|
+
queryParameters = queryParameters.set('eventSourceGroupId', eventSourceGroupId);
|
|
976
|
+
}
|
|
977
|
+
if (audienceDsdo !== undefined && audienceDsdo !== null) {
|
|
978
|
+
queryParameters = queryParameters.set('audienceDsdo', audienceDsdo);
|
|
979
|
+
}
|
|
980
|
+
if (page !== undefined && page !== null) {
|
|
981
|
+
queryParameters = queryParameters.set('page', page);
|
|
982
|
+
}
|
|
983
|
+
if (size !== undefined && size !== null) {
|
|
984
|
+
queryParameters = queryParameters.set('size', size);
|
|
985
|
+
}
|
|
986
|
+
if (sort) {
|
|
987
|
+
sort.forEach((element) => {
|
|
988
|
+
queryParameters = queryParameters.append('sort', element);
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
let headers = this.defaultHeaders;
|
|
992
|
+
// to determine the Accept header
|
|
993
|
+
let httpHeaderAccepts = [
|
|
994
|
+
'*/*'
|
|
995
|
+
];
|
|
996
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
997
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
998
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
999
|
+
}
|
|
1000
|
+
// to determine the Content-Type header
|
|
1001
|
+
const consumes = [];
|
|
1002
|
+
return this.httpClient.request('get', `${this.basePath}/facebook-engagement`, {
|
|
1003
|
+
params: queryParameters,
|
|
1004
|
+
withCredentials: this.configuration.withCredentials,
|
|
1005
|
+
headers: headers,
|
|
1006
|
+
observe: observe,
|
|
1007
|
+
reportProgress: reportProgress
|
|
1008
|
+
});
|
|
1009
|
+
}
|
|
1010
|
+
getFacebookEngagement(id, observe = 'body', reportProgress = false) {
|
|
1011
|
+
if (id === null || id === undefined) {
|
|
1012
|
+
throw new Error('Required parameter id was null or undefined when calling getFacebookEngagement.');
|
|
1013
|
+
}
|
|
1014
|
+
let headers = this.defaultHeaders;
|
|
1015
|
+
// to determine the Accept header
|
|
1016
|
+
let httpHeaderAccepts = [
|
|
1017
|
+
'*/*'
|
|
1018
|
+
];
|
|
1019
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1020
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
1021
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1022
|
+
}
|
|
1023
|
+
// to determine the Content-Type header
|
|
1024
|
+
const consumes = [];
|
|
1025
|
+
return this.httpClient.request('get', `${this.basePath}/facebook-engagement/${encodeURIComponent(String(id))}`, {
|
|
1026
|
+
withCredentials: this.configuration.withCredentials,
|
|
1027
|
+
headers: headers,
|
|
1028
|
+
observe: observe,
|
|
1029
|
+
reportProgress: reportProgress
|
|
1030
|
+
});
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1033
|
+
FacebookEngagementControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1034
|
+
FacebookEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService });
|
|
1035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService, decorators: [{
|
|
1036
|
+
type: Injectable
|
|
1037
|
+
}], ctorParameters: function () {
|
|
1038
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1039
|
+
type: Optional
|
|
1040
|
+
}, {
|
|
1041
|
+
type: Inject,
|
|
1042
|
+
args: [BASE_PATH]
|
|
1043
|
+
}] }, { type: Configuration, decorators: [{
|
|
1044
|
+
type: Optional
|
|
1045
|
+
}] }];
|
|
1075
1046
|
} });
|
|
1076
1047
|
|
|
1077
|
-
/**
|
|
1078
|
-
*
|
|
1079
|
-
*
|
|
1080
|
-
*
|
|
1081
|
-
*
|
|
1082
|
-
*
|
|
1083
|
-
*
|
|
1084
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1085
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1086
|
-
* Do not edit the class manually.
|
|
1087
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
1088
|
-
class PackageDetailControllerService {
|
|
1089
|
-
constructor(httpClient, basePath, configuration) {
|
|
1090
|
-
this.httpClient = httpClient;
|
|
1091
|
-
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
1092
|
-
this.defaultHeaders = new HttpHeaders();
|
|
1093
|
-
this.configuration = new Configuration();
|
|
1094
|
-
if (basePath) {
|
|
1095
|
-
this.basePath = basePath;
|
|
1096
|
-
}
|
|
1097
|
-
if (configuration) {
|
|
1098
|
-
this.configuration = configuration;
|
|
1099
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
1100
|
-
}
|
|
1101
|
-
}
|
|
1102
|
-
/**
|
|
1103
|
-
* @param consumes string[] mime-types
|
|
1104
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1105
|
-
*/
|
|
1106
|
-
canConsumeForm(consumes) {
|
|
1107
|
-
const form = 'multipart/form-data';
|
|
1108
|
-
for (const consume of consumes) {
|
|
1109
|
-
if (form === consume) {
|
|
1110
|
-
return true;
|
|
1111
|
-
}
|
|
1112
|
-
}
|
|
1113
|
-
return false;
|
|
1114
|
-
}
|
|
1115
|
-
getAllPackageDetails(id, name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
|
|
1116
|
-
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1117
|
-
if (id !== undefined && id !== null) {
|
|
1118
|
-
queryParameters = queryParameters.set('id', id);
|
|
1119
|
-
}
|
|
1120
|
-
if (name !== undefined && name !== null) {
|
|
1121
|
-
queryParameters = queryParameters.set('name', name);
|
|
1122
|
-
}
|
|
1123
|
-
if (isActive !== undefined && isActive !== null) {
|
|
1124
|
-
queryParameters = queryParameters.set('isActive', isActive);
|
|
1125
|
-
}
|
|
1126
|
-
if (page !== undefined && page !== null) {
|
|
1127
|
-
queryParameters = queryParameters.set('page', page);
|
|
1128
|
-
}
|
|
1129
|
-
if (size !== undefined && size !== null) {
|
|
1130
|
-
queryParameters = queryParameters.set('size', size);
|
|
1131
|
-
}
|
|
1132
|
-
if (sort) {
|
|
1133
|
-
sort.forEach((element) => {
|
|
1134
|
-
queryParameters = queryParameters.append('sort', element);
|
|
1135
|
-
});
|
|
1136
|
-
}
|
|
1137
|
-
let headers = this.defaultHeaders;
|
|
1138
|
-
// to determine the Accept header
|
|
1139
|
-
let httpHeaderAccepts = [
|
|
1140
|
-
'*/*'
|
|
1141
|
-
];
|
|
1142
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1143
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1144
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1145
|
-
}
|
|
1146
|
-
// to determine the Content-Type header
|
|
1147
|
-
const consumes = [];
|
|
1148
|
-
return this.httpClient.request('get', `${this.basePath}/package`, {
|
|
1149
|
-
params: queryParameters,
|
|
1150
|
-
withCredentials: this.configuration.withCredentials,
|
|
1151
|
-
headers: headers,
|
|
1152
|
-
observe: observe,
|
|
1153
|
-
reportProgress: reportProgress
|
|
1154
|
-
});
|
|
1155
|
-
}
|
|
1156
|
-
getPackageDetail(id, observe = 'body', reportProgress = false) {
|
|
1157
|
-
if (id === null || id === undefined) {
|
|
1158
|
-
throw new Error('Required parameter id was null or undefined when calling getPackageDetail.');
|
|
1159
|
-
}
|
|
1160
|
-
let headers = this.defaultHeaders;
|
|
1161
|
-
// to determine the Accept header
|
|
1162
|
-
let httpHeaderAccepts = [
|
|
1163
|
-
'*/*'
|
|
1164
|
-
];
|
|
1165
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1166
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
1167
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1168
|
-
}
|
|
1169
|
-
// to determine the Content-Type header
|
|
1170
|
-
const consumes = [];
|
|
1171
|
-
return this.httpClient.request('get', `${this.basePath}/package/${encodeURIComponent(String(id))}`, {
|
|
1172
|
-
withCredentials: this.configuration.withCredentials,
|
|
1173
|
-
headers: headers,
|
|
1174
|
-
observe: observe,
|
|
1175
|
-
reportProgress: reportProgress
|
|
1176
|
-
});
|
|
1177
|
-
}
|
|
1178
|
-
}
|
|
1179
|
-
PackageDetailControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1180
|
-
PackageDetailControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService });
|
|
1181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService, decorators: [{
|
|
1182
|
-
type: Injectable
|
|
1183
|
-
}], ctorParameters: function () {
|
|
1184
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1185
|
-
type: Optional
|
|
1186
|
-
}, {
|
|
1187
|
-
type: Inject,
|
|
1188
|
-
args: [BASE_PATH]
|
|
1189
|
-
}] }, { type: Configuration, decorators: [{
|
|
1190
|
-
type: Optional
|
|
1191
|
-
}] }];
|
|
1048
|
+
/**
|
|
1049
|
+
*
|
|
1050
|
+
*
|
|
1051
|
+
*
|
|
1052
|
+
*
|
|
1053
|
+
*
|
|
1054
|
+
*
|
|
1055
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1056
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1057
|
+
* Do not edit the class manually.
|
|
1058
|
+
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
1059
|
+
class PackageDetailControllerService {
|
|
1060
|
+
constructor(httpClient, basePath, configuration) {
|
|
1061
|
+
this.httpClient = httpClient;
|
|
1062
|
+
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
1063
|
+
this.defaultHeaders = new HttpHeaders();
|
|
1064
|
+
this.configuration = new Configuration();
|
|
1065
|
+
if (basePath) {
|
|
1066
|
+
this.basePath = basePath;
|
|
1067
|
+
}
|
|
1068
|
+
if (configuration) {
|
|
1069
|
+
this.configuration = configuration;
|
|
1070
|
+
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
1071
|
+
}
|
|
1072
|
+
}
|
|
1073
|
+
/**
|
|
1074
|
+
* @param consumes string[] mime-types
|
|
1075
|
+
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
1076
|
+
*/
|
|
1077
|
+
canConsumeForm(consumes) {
|
|
1078
|
+
const form = 'multipart/form-data';
|
|
1079
|
+
for (const consume of consumes) {
|
|
1080
|
+
if (form === consume) {
|
|
1081
|
+
return true;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
return false;
|
|
1085
|
+
}
|
|
1086
|
+
getAllPackageDetails(id, name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
|
|
1087
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
1088
|
+
if (id !== undefined && id !== null) {
|
|
1089
|
+
queryParameters = queryParameters.set('id', id);
|
|
1090
|
+
}
|
|
1091
|
+
if (name !== undefined && name !== null) {
|
|
1092
|
+
queryParameters = queryParameters.set('name', name);
|
|
1093
|
+
}
|
|
1094
|
+
if (isActive !== undefined && isActive !== null) {
|
|
1095
|
+
queryParameters = queryParameters.set('isActive', isActive);
|
|
1096
|
+
}
|
|
1097
|
+
if (page !== undefined && page !== null) {
|
|
1098
|
+
queryParameters = queryParameters.set('page', page);
|
|
1099
|
+
}
|
|
1100
|
+
if (size !== undefined && size !== null) {
|
|
1101
|
+
queryParameters = queryParameters.set('size', size);
|
|
1102
|
+
}
|
|
1103
|
+
if (sort) {
|
|
1104
|
+
sort.forEach((element) => {
|
|
1105
|
+
queryParameters = queryParameters.append('sort', element);
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
let headers = this.defaultHeaders;
|
|
1109
|
+
// to determine the Accept header
|
|
1110
|
+
let httpHeaderAccepts = [
|
|
1111
|
+
'*/*'
|
|
1112
|
+
];
|
|
1113
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1114
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
1115
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1116
|
+
}
|
|
1117
|
+
// to determine the Content-Type header
|
|
1118
|
+
const consumes = [];
|
|
1119
|
+
return this.httpClient.request('get', `${this.basePath}/package`, {
|
|
1120
|
+
params: queryParameters,
|
|
1121
|
+
withCredentials: this.configuration.withCredentials,
|
|
1122
|
+
headers: headers,
|
|
1123
|
+
observe: observe,
|
|
1124
|
+
reportProgress: reportProgress
|
|
1125
|
+
});
|
|
1126
|
+
}
|
|
1127
|
+
getPackageDetail(id, observe = 'body', reportProgress = false) {
|
|
1128
|
+
if (id === null || id === undefined) {
|
|
1129
|
+
throw new Error('Required parameter id was null or undefined when calling getPackageDetail.');
|
|
1130
|
+
}
|
|
1131
|
+
let headers = this.defaultHeaders;
|
|
1132
|
+
// to determine the Accept header
|
|
1133
|
+
let httpHeaderAccepts = [
|
|
1134
|
+
'*/*'
|
|
1135
|
+
];
|
|
1136
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1137
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
1138
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1139
|
+
}
|
|
1140
|
+
// to determine the Content-Type header
|
|
1141
|
+
const consumes = [];
|
|
1142
|
+
return this.httpClient.request('get', `${this.basePath}/package/${encodeURIComponent(String(id))}`, {
|
|
1143
|
+
withCredentials: this.configuration.withCredentials,
|
|
1144
|
+
headers: headers,
|
|
1145
|
+
observe: observe,
|
|
1146
|
+
reportProgress: reportProgress
|
|
1147
|
+
});
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
PackageDetailControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1151
|
+
PackageDetailControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService });
|
|
1152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService, decorators: [{
|
|
1153
|
+
type: Injectable
|
|
1154
|
+
}], ctorParameters: function () {
|
|
1155
|
+
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1156
|
+
type: Optional
|
|
1157
|
+
}, {
|
|
1158
|
+
type: Inject,
|
|
1159
|
+
args: [BASE_PATH]
|
|
1160
|
+
}] }, { type: Configuration, decorators: [{
|
|
1161
|
+
type: Optional
|
|
1162
|
+
}] }];
|
|
1192
1163
|
} });
|
|
1193
1164
|
|
|
1194
1165
|
const APIS = [BusinessGeoControllerService, CampaignControllerService, CountryControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookEngagementControllerService, PackageDetailControllerService];
|
|
1195
1166
|
|
|
1196
|
-
/**
|
|
1197
|
-
*
|
|
1198
|
-
*
|
|
1199
|
-
*
|
|
1200
|
-
*
|
|
1201
|
-
*
|
|
1202
|
-
*
|
|
1203
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1204
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1205
|
-
* Do not edit the class manually.
|
|
1206
|
-
*/
|
|
1207
|
-
var AdSetDetails;
|
|
1208
|
-
(function (AdSetDetails) {
|
|
1209
|
-
AdSetDetails.TypeEnum = {
|
|
1210
|
-
IB: 'IB',
|
|
1211
|
-
Engage: 'Engage',
|
|
1212
|
-
Default: 'Default'
|
|
1213
|
-
};
|
|
1167
|
+
/**
|
|
1168
|
+
*
|
|
1169
|
+
*
|
|
1170
|
+
*
|
|
1171
|
+
*
|
|
1172
|
+
*
|
|
1173
|
+
*
|
|
1174
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1175
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1176
|
+
* Do not edit the class manually.
|
|
1177
|
+
*/
|
|
1178
|
+
var AdSetDetails;
|
|
1179
|
+
(function (AdSetDetails) {
|
|
1180
|
+
AdSetDetails.TypeEnum = {
|
|
1181
|
+
IB: 'IB',
|
|
1182
|
+
Engage: 'Engage',
|
|
1183
|
+
Default: 'Default'
|
|
1184
|
+
};
|
|
1214
1185
|
})(AdSetDetails || (AdSetDetails = {}));
|
|
1215
1186
|
|
|
1216
|
-
/**
|
|
1217
|
-
*
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1220
|
-
*
|
|
1221
|
-
*
|
|
1222
|
-
*
|
|
1223
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1224
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1225
|
-
* Do not edit the class manually.
|
|
1226
|
-
*/
|
|
1227
|
-
var CampaignResponse;
|
|
1228
|
-
(function (CampaignResponse) {
|
|
1229
|
-
CampaignResponse.StatusEnum = {
|
|
1230
|
-
INACTIVE: 'INACTIVE',
|
|
1231
|
-
PAUSED: 'PAUSED',
|
|
1232
|
-
ACTIVE: 'ACTIVE',
|
|
1233
|
-
SOFTPAUSE: 'SOFTPAUSE'
|
|
1234
|
-
};
|
|
1235
|
-
CampaignResponse.SegDbTypeEnum = {
|
|
1236
|
-
SEGMENTATION: 'SEGMENTATION',
|
|
1237
|
-
COUNT: 'COUNT'
|
|
1238
|
-
};
|
|
1239
|
-
CampaignResponse.CampaignTypeEnum = {
|
|
1240
|
-
BRANDING: 'BRANDING',
|
|
1241
|
-
UA: 'UA',
|
|
1242
|
-
RETARGETING: 'RETARGETING',
|
|
1243
|
-
DSP: 'DSP',
|
|
1244
|
-
DMP: 'DMP'
|
|
1245
|
-
};
|
|
1187
|
+
/**
|
|
1188
|
+
*
|
|
1189
|
+
*
|
|
1190
|
+
*
|
|
1191
|
+
*
|
|
1192
|
+
*
|
|
1193
|
+
*
|
|
1194
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1195
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1196
|
+
* Do not edit the class manually.
|
|
1197
|
+
*/
|
|
1198
|
+
var CampaignResponse;
|
|
1199
|
+
(function (CampaignResponse) {
|
|
1200
|
+
CampaignResponse.StatusEnum = {
|
|
1201
|
+
INACTIVE: 'INACTIVE',
|
|
1202
|
+
PAUSED: 'PAUSED',
|
|
1203
|
+
ACTIVE: 'ACTIVE',
|
|
1204
|
+
SOFTPAUSE: 'SOFTPAUSE'
|
|
1205
|
+
};
|
|
1206
|
+
CampaignResponse.SegDbTypeEnum = {
|
|
1207
|
+
SEGMENTATION: 'SEGMENTATION',
|
|
1208
|
+
COUNT: 'COUNT'
|
|
1209
|
+
};
|
|
1210
|
+
CampaignResponse.CampaignTypeEnum = {
|
|
1211
|
+
BRANDING: 'BRANDING',
|
|
1212
|
+
UA: 'UA',
|
|
1213
|
+
RETARGETING: 'RETARGETING',
|
|
1214
|
+
DSP: 'DSP',
|
|
1215
|
+
DMP: 'DMP'
|
|
1216
|
+
};
|
|
1246
1217
|
})(CampaignResponse || (CampaignResponse = {}));
|
|
1247
1218
|
|
|
1248
|
-
var DpaCampaignResponse;
|
|
1249
|
-
(function (DpaCampaignResponse) {
|
|
1250
|
-
DpaCampaignResponse.StatusEnum = {
|
|
1251
|
-
DRAFT: 'DRAFT',
|
|
1252
|
-
INITIALIZED: 'INITIALIZED',
|
|
1253
|
-
RUNNING: 'RUNNING',
|
|
1254
|
-
UPDATING: 'UPDATING',
|
|
1255
|
-
PAUSED: 'PAUSED'
|
|
1256
|
-
};
|
|
1219
|
+
var DpaCampaignResponse;
|
|
1220
|
+
(function (DpaCampaignResponse) {
|
|
1221
|
+
DpaCampaignResponse.StatusEnum = {
|
|
1222
|
+
DRAFT: 'DRAFT',
|
|
1223
|
+
INITIALIZED: 'INITIALIZED',
|
|
1224
|
+
RUNNING: 'RUNNING',
|
|
1225
|
+
UPDATING: 'UPDATING',
|
|
1226
|
+
PAUSED: 'PAUSED'
|
|
1227
|
+
};
|
|
1257
1228
|
})(DpaCampaignResponse || (DpaCampaignResponse = {}));
|
|
1258
1229
|
|
|
1259
|
-
var DpaEngagementResponse;
|
|
1260
|
-
(function (DpaEngagementResponse) {
|
|
1261
|
-
DpaEngagementResponse.RunByEnum = {
|
|
1262
|
-
CLIENT: 'CLIENT',
|
|
1263
|
-
VIZURY: 'VIZURY'
|
|
1264
|
-
};
|
|
1265
|
-
DpaEngagementResponse.PayoutTypeEnum = {
|
|
1266
|
-
CPM: 'CPM',
|
|
1267
|
-
CPC: 'CPC',
|
|
1268
|
-
CPA: 'CPA',
|
|
1269
|
-
CPS: 'CPS',
|
|
1270
|
-
CPAClientAttributed: 'CPA - Client Attributed',
|
|
1271
|
-
CPSClientAttributed: 'CPS - Client Attributed',
|
|
1272
|
-
MARGIN: 'MARGIN'
|
|
1273
|
-
};
|
|
1274
|
-
DpaEngagementResponse.StatusEnum = {
|
|
1275
|
-
DRAFT: 'DRAFT',
|
|
1276
|
-
INITIALIZED: 'INITIALIZED',
|
|
1277
|
-
RUNNING: 'RUNNING',
|
|
1278
|
-
UPDATING: 'UPDATING',
|
|
1279
|
-
PAUSED: 'PAUSED'
|
|
1280
|
-
};
|
|
1281
|
-
DpaEngagementResponse.TemplateEnum = {
|
|
1282
|
-
None: 'none',
|
|
1283
|
-
TextOnImage: 'text-on-image',
|
|
1284
|
-
Price: 'price',
|
|
1285
|
-
PercentageOff: 'percentage_off',
|
|
1286
|
-
StrikethroughPrice: 'strikethrough_price',
|
|
1287
|
-
ImageOverlay: 'image-overlay'
|
|
1288
|
-
};
|
|
1230
|
+
var DpaEngagementResponse;
|
|
1231
|
+
(function (DpaEngagementResponse) {
|
|
1232
|
+
DpaEngagementResponse.RunByEnum = {
|
|
1233
|
+
CLIENT: 'CLIENT',
|
|
1234
|
+
VIZURY: 'VIZURY'
|
|
1235
|
+
};
|
|
1236
|
+
DpaEngagementResponse.PayoutTypeEnum = {
|
|
1237
|
+
CPM: 'CPM',
|
|
1238
|
+
CPC: 'CPC',
|
|
1239
|
+
CPA: 'CPA',
|
|
1240
|
+
CPS: 'CPS',
|
|
1241
|
+
CPAClientAttributed: 'CPA - Client Attributed',
|
|
1242
|
+
CPSClientAttributed: 'CPS - Client Attributed',
|
|
1243
|
+
MARGIN: 'MARGIN'
|
|
1244
|
+
};
|
|
1245
|
+
DpaEngagementResponse.StatusEnum = {
|
|
1246
|
+
DRAFT: 'DRAFT',
|
|
1247
|
+
INITIALIZED: 'INITIALIZED',
|
|
1248
|
+
RUNNING: 'RUNNING',
|
|
1249
|
+
UPDATING: 'UPDATING',
|
|
1250
|
+
PAUSED: 'PAUSED'
|
|
1251
|
+
};
|
|
1252
|
+
DpaEngagementResponse.TemplateEnum = {
|
|
1253
|
+
None: 'none',
|
|
1254
|
+
TextOnImage: 'text-on-image',
|
|
1255
|
+
Price: 'price',
|
|
1256
|
+
PercentageOff: 'percentage_off',
|
|
1257
|
+
StrikethroughPrice: 'strikethrough_price',
|
|
1258
|
+
ImageOverlay: 'image-overlay'
|
|
1259
|
+
};
|
|
1289
1260
|
})(DpaEngagementResponse || (DpaEngagementResponse = {}));
|
|
1290
1261
|
|
|
1291
|
-
/**
|
|
1292
|
-
*
|
|
1293
|
-
*
|
|
1294
|
-
*
|
|
1295
|
-
*
|
|
1296
|
-
*
|
|
1297
|
-
*
|
|
1298
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1299
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
1300
|
-
* Do not edit the class manually.
|
|
1301
|
-
*/
|
|
1302
|
-
var FacebookEngagementResponse;
|
|
1303
|
-
(function (FacebookEngagementResponse) {
|
|
1304
|
-
FacebookEngagementResponse.FacebookCatalogTypeEnum = {
|
|
1305
|
-
COMMERCE: 'COMMERCE',
|
|
1306
|
-
HOTELS: 'HOTELS',
|
|
1307
|
-
DESTINATIONS: 'DESTINATIONS',
|
|
1308
|
-
FLIGHTS: 'FLIGHTS'
|
|
1309
|
-
};
|
|
1262
|
+
/**
|
|
1263
|
+
*
|
|
1264
|
+
*
|
|
1265
|
+
*
|
|
1266
|
+
*
|
|
1267
|
+
*
|
|
1268
|
+
*
|
|
1269
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
1270
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
1271
|
+
* Do not edit the class manually.
|
|
1272
|
+
*/
|
|
1273
|
+
var FacebookEngagementResponse;
|
|
1274
|
+
(function (FacebookEngagementResponse) {
|
|
1275
|
+
FacebookEngagementResponse.FacebookCatalogTypeEnum = {
|
|
1276
|
+
COMMERCE: 'COMMERCE',
|
|
1277
|
+
HOTELS: 'HOTELS',
|
|
1278
|
+
DESTINATIONS: 'DESTINATIONS',
|
|
1279
|
+
FLIGHTS: 'FLIGHTS'
|
|
1280
|
+
};
|
|
1310
1281
|
})(FacebookEngagementResponse || (FacebookEngagementResponse = {}));
|
|
1311
1282
|
|
|
1312
|
-
class ApiModule {
|
|
1313
|
-
static forRoot(configurationFactory) {
|
|
1314
|
-
return {
|
|
1315
|
-
ngModule: ApiModule,
|
|
1316
|
-
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
1317
|
-
};
|
|
1318
|
-
}
|
|
1319
|
-
constructor(parentModule, http) {
|
|
1320
|
-
if (parentModule) {
|
|
1321
|
-
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
1322
|
-
}
|
|
1323
|
-
if (!http) {
|
|
1324
|
-
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
1325
|
-
'See also https://github.com/angular/angular/issues/20575');
|
|
1326
|
-
}
|
|
1327
|
-
}
|
|
1328
|
-
}
|
|
1329
|
-
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 });
|
|
1330
|
-
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
|
|
1331
|
-
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
|
|
1332
|
-
BusinessGeoControllerService,
|
|
1333
|
-
CampaignControllerService,
|
|
1334
|
-
CountryControllerService,
|
|
1335
|
-
DpaCampaignControllerService,
|
|
1336
|
-
DpaEngagementControllerService,
|
|
1337
|
-
FacebookEngagementControllerService,
|
|
1338
|
-
PackageDetailControllerService
|
|
1339
|
-
] });
|
|
1340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
|
|
1341
|
-
type: NgModule,
|
|
1342
|
-
args: [{
|
|
1343
|
-
imports: [],
|
|
1344
|
-
declarations: [],
|
|
1345
|
-
exports: [],
|
|
1346
|
-
providers: [
|
|
1347
|
-
BusinessGeoControllerService,
|
|
1348
|
-
CampaignControllerService,
|
|
1349
|
-
CountryControllerService,
|
|
1350
|
-
DpaCampaignControllerService,
|
|
1351
|
-
DpaEngagementControllerService,
|
|
1352
|
-
FacebookEngagementControllerService,
|
|
1353
|
-
PackageDetailControllerService
|
|
1354
|
-
]
|
|
1355
|
-
}]
|
|
1356
|
-
}], ctorParameters: function () {
|
|
1357
|
-
return [{ type: ApiModule, decorators: [{
|
|
1358
|
-
type: Optional
|
|
1359
|
-
}, {
|
|
1360
|
-
type: SkipSelf
|
|
1361
|
-
}] }, { type: i1.HttpClient, decorators: [{
|
|
1362
|
-
type: Optional
|
|
1363
|
-
}] }];
|
|
1283
|
+
class ApiModule {
|
|
1284
|
+
static forRoot(configurationFactory) {
|
|
1285
|
+
return {
|
|
1286
|
+
ngModule: ApiModule,
|
|
1287
|
+
providers: [{ provide: Configuration, useFactory: configurationFactory }]
|
|
1288
|
+
};
|
|
1289
|
+
}
|
|
1290
|
+
constructor(parentModule, http) {
|
|
1291
|
+
if (parentModule) {
|
|
1292
|
+
throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
|
|
1293
|
+
}
|
|
1294
|
+
if (!http) {
|
|
1295
|
+
throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
|
|
1296
|
+
'See also https://github.com/angular/angular/issues/20575');
|
|
1297
|
+
}
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
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 });
|
|
1301
|
+
ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
|
|
1302
|
+
ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
|
|
1303
|
+
BusinessGeoControllerService,
|
|
1304
|
+
CampaignControllerService,
|
|
1305
|
+
CountryControllerService,
|
|
1306
|
+
DpaCampaignControllerService,
|
|
1307
|
+
DpaEngagementControllerService,
|
|
1308
|
+
FacebookEngagementControllerService,
|
|
1309
|
+
PackageDetailControllerService
|
|
1310
|
+
] });
|
|
1311
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
|
|
1312
|
+
type: NgModule,
|
|
1313
|
+
args: [{
|
|
1314
|
+
imports: [],
|
|
1315
|
+
declarations: [],
|
|
1316
|
+
exports: [],
|
|
1317
|
+
providers: [
|
|
1318
|
+
BusinessGeoControllerService,
|
|
1319
|
+
CampaignControllerService,
|
|
1320
|
+
CountryControllerService,
|
|
1321
|
+
DpaCampaignControllerService,
|
|
1322
|
+
DpaEngagementControllerService,
|
|
1323
|
+
FacebookEngagementControllerService,
|
|
1324
|
+
PackageDetailControllerService
|
|
1325
|
+
]
|
|
1326
|
+
}]
|
|
1327
|
+
}], ctorParameters: function () {
|
|
1328
|
+
return [{ type: ApiModule, decorators: [{
|
|
1329
|
+
type: Optional
|
|
1330
|
+
}, {
|
|
1331
|
+
type: SkipSelf
|
|
1332
|
+
}] }, { type: i1.HttpClient, decorators: [{
|
|
1333
|
+
type: Optional
|
|
1334
|
+
}] }];
|
|
1364
1335
|
} });
|
|
1365
1336
|
|
|
1366
|
-
/**
|
|
1367
|
-
* Generated bundle index. Do not edit.
|
|
1337
|
+
/**
|
|
1338
|
+
* Generated bundle index. Do not edit.
|
|
1368
1339
|
*/
|
|
1369
1340
|
|
|
1370
1341
|
export { APIS, AdSetDetails, ApiModule, BASE_PATH, BusinessGeoControllerService, COLLECTION_FORMATS, CampaignControllerService, CampaignResponse, Configuration, CountryControllerService, DpaCampaignControllerService, DpaCampaignResponse, DpaEngagementControllerService, DpaEngagementResponse, FacebookEngagementControllerService, FacebookEngagementResponse, PackageDetailControllerService };
|