@revxui/intellibid-client-ts 1.0.0 → 1.0.2
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 -13
- package/api/businessGeoController.service.d.ts +28 -28
- package/api/campaignController.service.d.ts +67 -56
- package/api/countryController.service.d.ts +28 -28
- package/api/dpaCampaignController.service.d.ts +52 -52
- package/api/dpaEngagementController.service.d.ts +126 -83
- package/api/facebookEngagementController.service.d.ts +77 -0
- 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 +16 -14
- package/esm2020/api/businessGeoController.service.mjs +77 -77
- package/esm2020/api/campaignController.service.mjs +179 -152
- package/esm2020/api/countryController.service.mjs +77 -77
- package/esm2020/api/dpaCampaignController.service.mjs +145 -145
- package/esm2020/api/dpaEngagementController.service.mjs +327 -224
- package/esm2020/api/facebookEngagementController.service.mjs +214 -0
- package/esm2020/api/packageDetailController.service.mjs +122 -122
- package/esm2020/api.module.mjs +63 -60
- 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 +11 -11
- package/esm2020/model/dpaEngagementRequest.mjs +1 -1
- package/esm2020/model/dpaEngagementResponse.mjs +32 -32
- package/esm2020/model/entitySearchResponse.mjs +13 -0
- package/esm2020/model/exclusionRule.mjs +12 -12
- package/esm2020/model/facebookDetails.mjs +2 -2
- package/esm2020/model/facebookEngagementRequest.mjs +13 -0
- package/esm2020/model/facebookEngagementResponse.mjs +21 -0
- package/esm2020/model/imageOverlaySpecDetails.mjs +12 -12
- package/esm2020/model/models.mjs +26 -21
- 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 +2 -0
- package/esm2020/model/pagePackageDetailResponse.mjs +1 -1
- package/esm2020/model/pageableObject.mjs +2 -2
- package/esm2020/model/sortObject.mjs +12 -12
- package/esm2020/model/updateDailyBudgetRequest.mjs +13 -0
- package/esm2020/revxui-intellibid-client-ts.mjs +4 -4
- package/esm2020/variables.mjs +8 -8
- package/fesm2015/revxui-intellibid-client-ts.mjs +1334 -973
- package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
- package/fesm2020/revxui-intellibid-client-ts.mjs +1434 -1039
- 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 +29 -29
- package/model/dpaEngagementResponse.d.ts +90 -90
- package/model/entitySearchResponse.d.ts +15 -0
- package/model/exclusionRule.d.ts +15 -15
- package/model/facebookDetails.d.ts +27 -27
- package/model/facebookEngagementRequest.d.ts +24 -0
- package/model/facebookEngagementResponse.d.ts +39 -0
- package/model/imageOverlaySpecDetails.d.ts +20 -20
- package/model/models.d.ts +25 -20
- 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 -0
- 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 -0
- package/package.json +1 -1
- package/variables.d.ts +8 -8
|
@@ -3,1008 +3,1369 @@ 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
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
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
|
+
}] }];
|
|
306
333
|
} });
|
|
307
334
|
|
|
308
|
-
/**
|
|
309
|
-
*
|
|
310
|
-
*
|
|
311
|
-
*
|
|
312
|
-
*
|
|
313
|
-
*
|
|
314
|
-
*
|
|
315
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
316
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
317
|
-
* Do not edit the class manually.
|
|
318
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
319
|
-
class CountryControllerService {
|
|
320
|
-
constructor(httpClient, basePath, configuration) {
|
|
321
|
-
this.httpClient = httpClient;
|
|
322
|
-
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
323
|
-
this.defaultHeaders = new HttpHeaders();
|
|
324
|
-
this.configuration = new Configuration();
|
|
325
|
-
if (basePath) {
|
|
326
|
-
this.basePath = basePath;
|
|
327
|
-
}
|
|
328
|
-
if (configuration) {
|
|
329
|
-
this.configuration = configuration;
|
|
330
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
* @param consumes string[] mime-types
|
|
335
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
336
|
-
*/
|
|
337
|
-
canConsumeForm(consumes) {
|
|
338
|
-
const form = 'multipart/form-data';
|
|
339
|
-
for (const consume of consumes) {
|
|
340
|
-
if (form === consume) {
|
|
341
|
-
return true;
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
return false;
|
|
345
|
-
}
|
|
346
|
-
getAllCountries(observe = 'body', reportProgress = false) {
|
|
347
|
-
let headers = this.defaultHeaders;
|
|
348
|
-
// to determine the Accept header
|
|
349
|
-
let httpHeaderAccepts = [
|
|
350
|
-
'*/*'
|
|
351
|
-
];
|
|
352
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
353
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
354
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
355
|
-
}
|
|
356
|
-
// to determine the Content-Type header
|
|
357
|
-
const consumes = [];
|
|
358
|
-
return this.httpClient.request('get', `${this.basePath}/country`, {
|
|
359
|
-
withCredentials: this.configuration.withCredentials,
|
|
360
|
-
headers: headers,
|
|
361
|
-
observe: observe,
|
|
362
|
-
reportProgress: reportProgress
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
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 });
|
|
367
|
-
CountryControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CountryControllerService });
|
|
368
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CountryControllerService, decorators: [{
|
|
369
|
-
type: Injectable
|
|
370
|
-
}], ctorParameters: function () {
|
|
371
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
372
|
-
type: Optional
|
|
373
|
-
}, {
|
|
374
|
-
type: Inject,
|
|
375
|
-
args: [BASE_PATH]
|
|
376
|
-
}] }, { type: Configuration, decorators: [{
|
|
377
|
-
type: Optional
|
|
378
|
-
}] }];
|
|
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
|
+
}] }];
|
|
379
406
|
} });
|
|
380
407
|
|
|
381
|
-
/**
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
*
|
|
385
|
-
*
|
|
386
|
-
*
|
|
387
|
-
*
|
|
388
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
389
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
390
|
-
* Do not edit the class manually.
|
|
391
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
392
|
-
class DpaCampaignControllerService {
|
|
393
|
-
constructor(httpClient, basePath, configuration) {
|
|
394
|
-
this.httpClient = httpClient;
|
|
395
|
-
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
396
|
-
this.defaultHeaders = new HttpHeaders();
|
|
397
|
-
this.configuration = new Configuration();
|
|
398
|
-
if (basePath) {
|
|
399
|
-
this.basePath = basePath;
|
|
400
|
-
}
|
|
401
|
-
if (configuration) {
|
|
402
|
-
this.configuration = configuration;
|
|
403
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
/**
|
|
407
|
-
* @param consumes string[] mime-types
|
|
408
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
409
|
-
*/
|
|
410
|
-
canConsumeForm(consumes) {
|
|
411
|
-
const form = 'multipart/form-data';
|
|
412
|
-
for (const consume of consumes) {
|
|
413
|
-
if (form === consume) {
|
|
414
|
-
return true;
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
return false;
|
|
418
|
-
}
|
|
419
|
-
|
|
420
|
-
if (body === null || body === undefined) {
|
|
421
|
-
throw new Error('Required parameter body was null or undefined when calling
|
|
422
|
-
}
|
|
423
|
-
if (id === null || id === undefined) {
|
|
424
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
425
|
-
}
|
|
426
|
-
let headers = this.defaultHeaders;
|
|
427
|
-
// to determine the Accept header
|
|
428
|
-
let httpHeaderAccepts = [
|
|
429
|
-
'*/*'
|
|
430
|
-
];
|
|
431
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
432
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
433
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
434
|
-
}
|
|
435
|
-
// to determine the Content-Type header
|
|
436
|
-
const consumes = [
|
|
437
|
-
'application/json'
|
|
438
|
-
];
|
|
439
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
440
|
-
if (httpContentTypeSelected != undefined) {
|
|
441
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
442
|
-
}
|
|
443
|
-
return this.httpClient.request('post', `${this.basePath}/dpa-campaign/${encodeURIComponent(String(id))}`, {
|
|
444
|
-
body: body,
|
|
445
|
-
withCredentials: this.configuration.withCredentials,
|
|
446
|
-
headers: headers,
|
|
447
|
-
observe: observe,
|
|
448
|
-
reportProgress: reportProgress
|
|
449
|
-
});
|
|
450
|
-
}
|
|
451
|
-
getDpaCampaign(id, observe = 'body', reportProgress = false) {
|
|
452
|
-
if (id === null || id === undefined) {
|
|
453
|
-
throw new Error('Required parameter id was null or undefined when calling getDpaCampaign.');
|
|
454
|
-
}
|
|
455
|
-
let headers = this.defaultHeaders;
|
|
456
|
-
// to determine the Accept header
|
|
457
|
-
let httpHeaderAccepts = [
|
|
458
|
-
'*/*'
|
|
459
|
-
];
|
|
460
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
461
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
462
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
463
|
-
}
|
|
464
|
-
// to determine the Content-Type header
|
|
465
|
-
const consumes = [];
|
|
466
|
-
return this.httpClient.request('get', `${this.basePath}/dpa-campaign/${encodeURIComponent(String(id))}`, {
|
|
467
|
-
withCredentials: this.configuration.withCredentials,
|
|
468
|
-
headers: headers,
|
|
469
|
-
observe: observe,
|
|
470
|
-
reportProgress: reportProgress
|
|
471
|
-
});
|
|
472
|
-
}
|
|
473
|
-
updateDpaCampaign(body, id, observe = 'body', reportProgress = false) {
|
|
474
|
-
if (body === null || body === undefined) {
|
|
475
|
-
throw new Error('Required parameter body was null or undefined when calling updateDpaCampaign.');
|
|
476
|
-
}
|
|
477
|
-
if (id === null || id === undefined) {
|
|
478
|
-
throw new Error('Required parameter id was null or undefined when calling updateDpaCampaign.');
|
|
479
|
-
}
|
|
480
|
-
let headers = this.defaultHeaders;
|
|
481
|
-
// to determine the Accept header
|
|
482
|
-
let httpHeaderAccepts = [
|
|
483
|
-
'*/*'
|
|
484
|
-
];
|
|
485
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
486
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
487
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
488
|
-
}
|
|
489
|
-
// to determine the Content-Type header
|
|
490
|
-
const consumes = [
|
|
491
|
-
'application/json'
|
|
492
|
-
];
|
|
493
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
494
|
-
if (httpContentTypeSelected != undefined) {
|
|
495
|
-
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
496
|
-
}
|
|
497
|
-
return this.httpClient.request('put', `${this.basePath}/dpa-campaign/${encodeURIComponent(String(id))}`, {
|
|
498
|
-
body: body,
|
|
499
|
-
withCredentials: this.configuration.withCredentials,
|
|
500
|
-
headers: headers,
|
|
501
|
-
observe: observe,
|
|
502
|
-
reportProgress: reportProgress
|
|
503
|
-
});
|
|
504
|
-
}
|
|
505
|
-
}
|
|
506
|
-
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 });
|
|
507
|
-
DpaCampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaCampaignControllerService });
|
|
508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: DpaCampaignControllerService, decorators: [{
|
|
509
|
-
type: Injectable
|
|
510
|
-
}], ctorParameters: function () {
|
|
511
|
-
return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
512
|
-
type: Optional
|
|
513
|
-
}, {
|
|
514
|
-
type: Inject,
|
|
515
|
-
args: [BASE_PATH]
|
|
516
|
-
}] }, { type: Configuration, decorators: [{
|
|
517
|
-
type: Optional
|
|
518
|
-
}] }];
|
|
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
|
+
}] }];
|
|
519
546
|
} });
|
|
520
547
|
|
|
521
|
-
/**
|
|
522
|
-
*
|
|
523
|
-
*
|
|
524
|
-
*
|
|
525
|
-
*
|
|
526
|
-
*
|
|
527
|
-
*
|
|
528
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
529
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
530
|
-
* Do not edit the class manually.
|
|
531
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
532
|
-
class DpaEngagementControllerService {
|
|
533
|
-
constructor(httpClient, basePath, configuration) {
|
|
534
|
-
this.httpClient = httpClient;
|
|
535
|
-
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
536
|
-
this.defaultHeaders = new HttpHeaders();
|
|
537
|
-
this.configuration = new Configuration();
|
|
538
|
-
if (basePath) {
|
|
539
|
-
this.basePath = basePath;
|
|
540
|
-
}
|
|
541
|
-
if (configuration) {
|
|
542
|
-
this.configuration = configuration;
|
|
543
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
/**
|
|
547
|
-
* @param consumes string[] mime-types
|
|
548
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
549
|
-
*/
|
|
550
|
-
canConsumeForm(consumes) {
|
|
551
|
-
const form = 'multipart/form-data';
|
|
552
|
-
for (const consume of consumes) {
|
|
553
|
-
if (form === consume) {
|
|
554
|
-
return true;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
return false;
|
|
558
|
-
}
|
|
559
|
-
|
|
560
|
-
if (
|
|
561
|
-
throw new Error('Required parameter
|
|
562
|
-
}
|
|
563
|
-
let headers = this.defaultHeaders;
|
|
564
|
-
// to determine the Accept header
|
|
565
|
-
let httpHeaderAccepts = [
|
|
566
|
-
'*/*'
|
|
567
|
-
];
|
|
568
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
569
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
570
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
571
|
-
}
|
|
572
|
-
// to determine the Content-Type header
|
|
573
|
-
const consumes = [
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
if (
|
|
600
|
-
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
'
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
withCredentials: this.configuration.withCredentials,
|
|
664
|
-
headers: headers,
|
|
665
|
-
observe: observe,
|
|
666
|
-
reportProgress: reportProgress
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
|
|
670
|
-
if (id === null || id === undefined) {
|
|
671
|
-
throw new Error('Required parameter id was null or undefined when calling
|
|
672
|
-
}
|
|
673
|
-
let headers = this.defaultHeaders;
|
|
674
|
-
// to determine the Accept header
|
|
675
|
-
let httpHeaderAccepts = [
|
|
676
|
-
'*/*'
|
|
677
|
-
];
|
|
678
|
-
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
679
|
-
if (httpHeaderAcceptSelected != undefined) {
|
|
680
|
-
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
681
|
-
}
|
|
682
|
-
// to determine the Content-Type header
|
|
683
|
-
const consumes = [];
|
|
684
|
-
return this.httpClient.request('
|
|
685
|
-
withCredentials: this.configuration.withCredentials,
|
|
686
|
-
headers: headers,
|
|
687
|
-
observe: observe,
|
|
688
|
-
reportProgress: reportProgress
|
|
689
|
-
});
|
|
690
|
-
}
|
|
691
|
-
|
|
692
|
-
if (
|
|
693
|
-
throw new Error('Required parameter
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
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
|
+
}] }];
|
|
737
867
|
} });
|
|
738
868
|
|
|
739
|
-
/**
|
|
740
|
-
*
|
|
741
|
-
*
|
|
742
|
-
*
|
|
743
|
-
*
|
|
744
|
-
*
|
|
745
|
-
*
|
|
746
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
747
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
748
|
-
* Do not edit the class manually.
|
|
749
|
-
*/ /* tslint:disable:no-unused-variable member-ordering */
|
|
750
|
-
class
|
|
751
|
-
constructor(httpClient, basePath, configuration) {
|
|
752
|
-
this.httpClient = httpClient;
|
|
753
|
-
this.basePath = 'http://intellibid-api.atomex.net:8081/api';
|
|
754
|
-
this.defaultHeaders = new HttpHeaders();
|
|
755
|
-
this.configuration = new Configuration();
|
|
756
|
-
if (basePath) {
|
|
757
|
-
this.basePath = basePath;
|
|
758
|
-
}
|
|
759
|
-
if (configuration) {
|
|
760
|
-
this.configuration = configuration;
|
|
761
|
-
this.basePath = basePath || configuration.basePath || this.basePath;
|
|
762
|
-
}
|
|
763
|
-
}
|
|
764
|
-
/**
|
|
765
|
-
* @param consumes string[] mime-types
|
|
766
|
-
* @return true: consumes contains 'multipart/form-data', false: otherwise
|
|
767
|
-
*/
|
|
768
|
-
canConsumeForm(consumes) {
|
|
769
|
-
const form = 'multipart/form-data';
|
|
770
|
-
for (const consume of consumes) {
|
|
771
|
-
if (form === consume) {
|
|
772
|
-
return true;
|
|
773
|
-
}
|
|
774
|
-
}
|
|
775
|
-
return false;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
}
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
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
|
+
createFacebookEngagement(body, observe = 'body', reportProgress = false) {
|
|
908
|
+
if (body === null || body === undefined) {
|
|
909
|
+
throw new Error('Required parameter body was null or undefined when calling createFacebookEngagement.');
|
|
910
|
+
}
|
|
911
|
+
let headers = this.defaultHeaders;
|
|
912
|
+
// to determine the Accept header
|
|
913
|
+
let httpHeaderAccepts = [
|
|
914
|
+
'*/*'
|
|
915
|
+
];
|
|
916
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
917
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
918
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
919
|
+
}
|
|
920
|
+
// to determine the Content-Type header
|
|
921
|
+
const consumes = [
|
|
922
|
+
'application/json'
|
|
923
|
+
];
|
|
924
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
925
|
+
if (httpContentTypeSelected != undefined) {
|
|
926
|
+
headers = headers.set('Content-Type', httpContentTypeSelected);
|
|
927
|
+
}
|
|
928
|
+
return this.httpClient.request('post', `${this.basePath}/facebook-engagement`, {
|
|
929
|
+
body: body,
|
|
930
|
+
withCredentials: this.configuration.withCredentials,
|
|
931
|
+
headers: headers,
|
|
932
|
+
observe: observe,
|
|
933
|
+
reportProgress: reportProgress
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
getAllFacebookEngagements(id, campaignId, facebookAccountId, facebookFanPageId, facebookCatalogId, facebookCatalogType, instagramActorId, facebookPixelId, facebookAppId, facebookProductSetId, tosAccepted, eventSourceGroupId, audienceDsdo, page, size, sort, observe = 'body', reportProgress = false) {
|
|
937
|
+
let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
|
|
938
|
+
if (id !== undefined && id !== null) {
|
|
939
|
+
queryParameters = queryParameters.set('id', id);
|
|
940
|
+
}
|
|
941
|
+
if (campaignId !== undefined && campaignId !== null) {
|
|
942
|
+
queryParameters = queryParameters.set('campaignId', campaignId);
|
|
943
|
+
}
|
|
944
|
+
if (facebookAccountId !== undefined && facebookAccountId !== null) {
|
|
945
|
+
queryParameters = queryParameters.set('facebookAccountId', facebookAccountId);
|
|
946
|
+
}
|
|
947
|
+
if (facebookFanPageId !== undefined && facebookFanPageId !== null) {
|
|
948
|
+
queryParameters = queryParameters.set('facebookFanPageId', facebookFanPageId);
|
|
949
|
+
}
|
|
950
|
+
if (facebookCatalogId !== undefined && facebookCatalogId !== null) {
|
|
951
|
+
queryParameters = queryParameters.set('facebookCatalogId', facebookCatalogId);
|
|
952
|
+
}
|
|
953
|
+
if (facebookCatalogType !== undefined && facebookCatalogType !== null) {
|
|
954
|
+
queryParameters = queryParameters.set('facebookCatalogType', facebookCatalogType);
|
|
955
|
+
}
|
|
956
|
+
if (instagramActorId !== undefined && instagramActorId !== null) {
|
|
957
|
+
queryParameters = queryParameters.set('instagramActorId', instagramActorId);
|
|
958
|
+
}
|
|
959
|
+
if (facebookPixelId !== undefined && facebookPixelId !== null) {
|
|
960
|
+
queryParameters = queryParameters.set('facebookPixelId', facebookPixelId);
|
|
961
|
+
}
|
|
962
|
+
if (facebookAppId !== undefined && facebookAppId !== null) {
|
|
963
|
+
queryParameters = queryParameters.set('facebookAppId', facebookAppId);
|
|
964
|
+
}
|
|
965
|
+
if (facebookProductSetId !== undefined && facebookProductSetId !== null) {
|
|
966
|
+
queryParameters = queryParameters.set('facebookProductSetId', facebookProductSetId);
|
|
967
|
+
}
|
|
968
|
+
if (tosAccepted !== undefined && tosAccepted !== null) {
|
|
969
|
+
queryParameters = queryParameters.set('tosAccepted', tosAccepted);
|
|
970
|
+
}
|
|
971
|
+
if (eventSourceGroupId !== undefined && eventSourceGroupId !== null) {
|
|
972
|
+
queryParameters = queryParameters.set('eventSourceGroupId', eventSourceGroupId);
|
|
973
|
+
}
|
|
974
|
+
if (audienceDsdo !== undefined && audienceDsdo !== null) {
|
|
975
|
+
queryParameters = queryParameters.set('audienceDsdo', audienceDsdo);
|
|
976
|
+
}
|
|
977
|
+
if (page !== undefined && page !== null) {
|
|
978
|
+
queryParameters = queryParameters.set('page', page);
|
|
979
|
+
}
|
|
980
|
+
if (size !== undefined && size !== null) {
|
|
981
|
+
queryParameters = queryParameters.set('size', size);
|
|
982
|
+
}
|
|
983
|
+
if (sort) {
|
|
984
|
+
sort.forEach((element) => {
|
|
985
|
+
queryParameters = queryParameters.append('sort', element);
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
let headers = this.defaultHeaders;
|
|
989
|
+
// to determine the Accept header
|
|
990
|
+
let httpHeaderAccepts = [
|
|
991
|
+
'*/*'
|
|
992
|
+
];
|
|
993
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
994
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
995
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
996
|
+
}
|
|
997
|
+
// to determine the Content-Type header
|
|
998
|
+
const consumes = [];
|
|
999
|
+
return this.httpClient.request('get', `${this.basePath}/facebook-engagement`, {
|
|
1000
|
+
params: queryParameters,
|
|
1001
|
+
withCredentials: this.configuration.withCredentials,
|
|
1002
|
+
headers: headers,
|
|
1003
|
+
observe: observe,
|
|
1004
|
+
reportProgress: reportProgress
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
1007
|
+
getFacebookEngagement(id, observe = 'body', reportProgress = false) {
|
|
1008
|
+
if (id === null || id === undefined) {
|
|
1009
|
+
throw new Error('Required parameter id was null or undefined when calling getFacebookEngagement.');
|
|
1010
|
+
}
|
|
1011
|
+
let headers = this.defaultHeaders;
|
|
1012
|
+
// to determine the Accept header
|
|
1013
|
+
let httpHeaderAccepts = [
|
|
1014
|
+
'*/*'
|
|
1015
|
+
];
|
|
1016
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1017
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
1018
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1019
|
+
}
|
|
1020
|
+
// to determine the Content-Type header
|
|
1021
|
+
const consumes = [];
|
|
1022
|
+
return this.httpClient.request('get', `${this.basePath}/facebook-engagement/${encodeURIComponent(String(id))}`, {
|
|
1023
|
+
withCredentials: this.configuration.withCredentials,
|
|
1024
|
+
headers: headers,
|
|
1025
|
+
observe: observe,
|
|
1026
|
+
reportProgress: reportProgress
|
|
1027
|
+
});
|
|
1028
|
+
}
|
|
1029
|
+
updateFacebookEngagement(body, id, observe = 'body', reportProgress = false) {
|
|
1030
|
+
if (body === null || body === undefined) {
|
|
1031
|
+
throw new Error('Required parameter body was null or undefined when calling updateFacebookEngagement.');
|
|
1032
|
+
}
|
|
1033
|
+
if (id === null || id === undefined) {
|
|
1034
|
+
throw new Error('Required parameter id was null or undefined when calling updateFacebookEngagement.');
|
|
1035
|
+
}
|
|
1036
|
+
let headers = this.defaultHeaders;
|
|
1037
|
+
// to determine the Accept header
|
|
1038
|
+
let httpHeaderAccepts = [
|
|
1039
|
+
'*/*'
|
|
1040
|
+
];
|
|
1041
|
+
const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1042
|
+
if (httpHeaderAcceptSelected != undefined) {
|
|
1043
|
+
headers = headers.set('Accept', httpHeaderAcceptSelected);
|
|
1044
|
+
}
|
|
1045
|
+
// to determine the Content-Type header
|
|
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
|
+
}] }];
|
|
854
1075
|
} });
|
|
855
1076
|
|
|
856
|
-
|
|
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
|
+
}] }];
|
|
1192
|
+
} });
|
|
857
1193
|
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
*
|
|
862
|
-
*
|
|
863
|
-
*
|
|
864
|
-
*
|
|
865
|
-
*
|
|
866
|
-
*
|
|
867
|
-
*
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
1194
|
+
const APIS = [BusinessGeoControllerService, CampaignControllerService, CountryControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookEngagementControllerService, PackageDetailControllerService];
|
|
1195
|
+
|
|
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
|
+
};
|
|
876
1214
|
})(AdSetDetails || (AdSetDetails = {}));
|
|
877
1215
|
|
|
878
|
-
/**
|
|
879
|
-
*
|
|
880
|
-
*
|
|
881
|
-
*
|
|
882
|
-
*
|
|
883
|
-
*
|
|
884
|
-
*
|
|
885
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
886
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
887
|
-
* Do not edit the class manually.
|
|
888
|
-
*/
|
|
889
|
-
var CampaignResponse;
|
|
890
|
-
(function (CampaignResponse) {
|
|
891
|
-
CampaignResponse.StatusEnum = {
|
|
892
|
-
INACTIVE: 'INACTIVE',
|
|
893
|
-
PAUSED: 'PAUSED',
|
|
894
|
-
ACTIVE: 'ACTIVE',
|
|
895
|
-
SOFTPAUSE: 'SOFTPAUSE'
|
|
896
|
-
};
|
|
897
|
-
CampaignResponse.SegDbTypeEnum = {
|
|
898
|
-
SEGMENTATION: 'SEGMENTATION',
|
|
899
|
-
COUNT: 'COUNT'
|
|
900
|
-
};
|
|
901
|
-
CampaignResponse.CampaignTypeEnum = {
|
|
902
|
-
BRANDING: 'BRANDING',
|
|
903
|
-
UA: 'UA',
|
|
904
|
-
RETARGETING: 'RETARGETING',
|
|
905
|
-
DSP: 'DSP',
|
|
906
|
-
DMP: 'DMP'
|
|
907
|
-
};
|
|
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
|
+
};
|
|
908
1246
|
})(CampaignResponse || (CampaignResponse = {}));
|
|
909
1247
|
|
|
910
|
-
var DpaCampaignResponse;
|
|
911
|
-
(function (DpaCampaignResponse) {
|
|
912
|
-
DpaCampaignResponse.StatusEnum = {
|
|
913
|
-
|
|
914
|
-
INITIALIZED: 'INITIALIZED',
|
|
915
|
-
RUNNING: 'RUNNING',
|
|
916
|
-
UPDATING: 'UPDATING',
|
|
917
|
-
PAUSED: 'PAUSED'
|
|
918
|
-
};
|
|
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
|
+
};
|
|
919
1257
|
})(DpaCampaignResponse || (DpaCampaignResponse = {}));
|
|
920
1258
|
|
|
921
|
-
var DpaEngagementResponse;
|
|
922
|
-
(function (DpaEngagementResponse) {
|
|
923
|
-
DpaEngagementResponse.RunByEnum = {
|
|
924
|
-
CLIENT: 'CLIENT',
|
|
925
|
-
VIZURY: 'VIZURY'
|
|
926
|
-
};
|
|
927
|
-
DpaEngagementResponse.PayoutTypeEnum = {
|
|
928
|
-
CPM: 'CPM',
|
|
929
|
-
CPC: 'CPC',
|
|
930
|
-
CPA: 'CPA',
|
|
931
|
-
CPS: 'CPS',
|
|
932
|
-
CPAClientAttributed: 'CPA - Client Attributed',
|
|
933
|
-
CPSClientAttributed: 'CPS - Client Attributed',
|
|
934
|
-
MARGIN: 'MARGIN'
|
|
935
|
-
};
|
|
936
|
-
DpaEngagementResponse.StatusEnum = {
|
|
937
|
-
|
|
938
|
-
INITIALIZED: 'INITIALIZED',
|
|
939
|
-
RUNNING: 'RUNNING',
|
|
940
|
-
UPDATING: 'UPDATING',
|
|
941
|
-
PAUSED: 'PAUSED'
|
|
942
|
-
};
|
|
943
|
-
DpaEngagementResponse.TemplateEnum = {
|
|
944
|
-
None: 'none',
|
|
945
|
-
TextOnImage: 'text-on-image',
|
|
946
|
-
Price: 'price',
|
|
947
|
-
PercentageOff: 'percentage_off',
|
|
948
|
-
StrikethroughPrice: 'strikethrough_price',
|
|
949
|
-
ImageOverlay: 'image-overlay'
|
|
950
|
-
};
|
|
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
|
+
};
|
|
951
1289
|
})(DpaEngagementResponse || (DpaEngagementResponse = {}));
|
|
952
1290
|
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
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
|
+
};
|
|
1310
|
+
})(FacebookEngagementResponse || (FacebookEngagementResponse = {}));
|
|
1311
|
+
|
|
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
|
+
}] }];
|
|
1003
1364
|
} });
|
|
1004
1365
|
|
|
1005
|
-
/**
|
|
1006
|
-
* Generated bundle index. Do not edit.
|
|
1366
|
+
/**
|
|
1367
|
+
* Generated bundle index. Do not edit.
|
|
1007
1368
|
*/
|
|
1008
1369
|
|
|
1009
|
-
export { APIS, AdSetDetails, ApiModule, BASE_PATH, BusinessGeoControllerService, COLLECTION_FORMATS, CampaignControllerService, CampaignResponse, Configuration, CountryControllerService, DpaCampaignControllerService, DpaCampaignResponse, DpaEngagementControllerService, DpaEngagementResponse, PackageDetailControllerService };
|
|
1370
|
+
export { APIS, AdSetDetails, ApiModule, BASE_PATH, BusinessGeoControllerService, COLLECTION_FORMATS, CampaignControllerService, CampaignResponse, Configuration, CountryControllerService, DpaCampaignControllerService, DpaCampaignResponse, DpaEngagementControllerService, DpaEngagementResponse, FacebookEngagementControllerService, FacebookEngagementResponse, PackageDetailControllerService };
|
|
1010
1371
|
//# sourceMappingURL=revxui-intellibid-client-ts.mjs.map
|