@revxui/intellibid-client-ts 1.0.2 → 1.0.3

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