@revxui/intellibid-client-ts 1.0.4 → 1.0.5

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 (85) 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 +67 -67
  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 +184 -184
  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 +12 -11
  34. package/esm2020/model/dpaEngagementRequest.mjs +1 -1
  35. package/esm2020/model/dpaEngagementResponse.mjs +33 -32
  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 +2 -2
  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 +1301 -1299
  54. package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
  55. package/fesm2020/revxui-intellibid-client-ts.mjs +1395 -1393
  56. package/fesm2020/revxui-intellibid-client-ts.mjs.map +1 -1
  57. package/index.d.ts +5 -5
  58. package/model/adSetDetails.d.ts +28 -28
  59. package/model/audienceDetails.d.ts +22 -22
  60. package/model/businessGeoResponse.d.ts +15 -15
  61. package/model/campaignResponse.d.ts +117 -117
  62. package/model/countryResponse.d.ts +16 -16
  63. package/model/createCampaignRequest.d.ts +16 -16
  64. package/model/creativeDetails.d.ts +21 -21
  65. package/model/dpaCampaignRequest.d.ts +17 -17
  66. package/model/dpaCampaignResponse.d.ts +36 -35
  67. package/model/dpaEngagementRequest.d.ts +30 -30
  68. package/model/dpaEngagementResponse.d.ts +92 -90
  69. package/model/entitySearchResponse.d.ts +15 -15
  70. package/model/exclusionRule.d.ts +15 -15
  71. package/model/facebookDetails.d.ts +27 -27
  72. package/model/facebookEngagementRequest.d.ts +23 -23
  73. package/model/facebookEngagementResponse.d.ts +38 -38
  74. package/model/imageOverlaySpecDetails.d.ts +20 -20
  75. package/model/models.d.ts +25 -25
  76. package/model/packageDetailResponse.d.ts +16 -16
  77. package/model/pageCampaignResponse.d.ts +27 -27
  78. package/model/pageDpaEngagementResponse.d.ts +27 -27
  79. package/model/pageFacebookEngagementResponse.d.ts +27 -27
  80. package/model/pagePackageDetailResponse.d.ts +27 -27
  81. package/model/pageableObject.d.ts +20 -20
  82. package/model/sortObject.d.ts +18 -18
  83. package/model/updateDailyBudgetRequest.d.ts +14 -14
  84. package/package.json +1 -1
  85. package/variables.d.ts +8 -8
@@ -3,1455 +3,1457 @@ 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
- createOrUpdateFacebookEngagement(body, id, observe = 'body', reportProgress = false) {
898
- if (body === null || body === undefined) {
899
- throw new Error('Required parameter body was null or undefined when calling createOrUpdateFacebookEngagement.');
900
- }
901
- if (id === null || id === undefined) {
902
- throw new Error('Required parameter id was null or undefined when calling createOrUpdateFacebookEngagement.');
903
- }
904
- let headers = this.defaultHeaders;
905
- // to determine the Accept header
906
- let httpHeaderAccepts = [
907
- '*/*'
908
- ];
909
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
910
- if (httpHeaderAcceptSelected != undefined) {
911
- headers = headers.set('Accept', httpHeaderAcceptSelected);
912
- }
913
- // to determine the Content-Type header
914
- const consumes = [
915
- 'application/json'
916
- ];
917
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
918
- if (httpContentTypeSelected != undefined) {
919
- headers = headers.set('Content-Type', httpContentTypeSelected);
920
- }
921
- return this.httpClient.request('post', `${this.basePath}/facebook-engagement/${encodeURIComponent(String(id))}`, {
922
- body: body,
923
- withCredentials: this.configuration.withCredentials,
924
- headers: headers,
925
- observe: observe,
926
- reportProgress: reportProgress
927
- });
928
- }
929
- getAllFacebookEngagements(id, campaignId, facebookAccountId, facebookFanPageId, facebookCatalogId, facebookCatalogType, instagramActorId, facebookPixelId, facebookAppId, facebookProductSetId, tosAccepted, eventSourceGroupId, audienceDsdo, page, size, sort, observe = 'body', reportProgress = false) {
930
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
931
- if (id !== undefined && id !== null) {
932
- queryParameters = queryParameters.set('id', id);
933
- }
934
- if (campaignId !== undefined && campaignId !== null) {
935
- queryParameters = queryParameters.set('campaignId', campaignId);
936
- }
937
- if (facebookAccountId !== undefined && facebookAccountId !== null) {
938
- queryParameters = queryParameters.set('facebookAccountId', facebookAccountId);
939
- }
940
- if (facebookFanPageId !== undefined && facebookFanPageId !== null) {
941
- queryParameters = queryParameters.set('facebookFanPageId', facebookFanPageId);
942
- }
943
- if (facebookCatalogId !== undefined && facebookCatalogId !== null) {
944
- queryParameters = queryParameters.set('facebookCatalogId', facebookCatalogId);
945
- }
946
- if (facebookCatalogType !== undefined && facebookCatalogType !== null) {
947
- queryParameters = queryParameters.set('facebookCatalogType', facebookCatalogType);
948
- }
949
- if (instagramActorId !== undefined && instagramActorId !== null) {
950
- queryParameters = queryParameters.set('instagramActorId', instagramActorId);
951
- }
952
- if (facebookPixelId !== undefined && facebookPixelId !== null) {
953
- queryParameters = queryParameters.set('facebookPixelId', facebookPixelId);
954
- }
955
- if (facebookAppId !== undefined && facebookAppId !== null) {
956
- queryParameters = queryParameters.set('facebookAppId', facebookAppId);
957
- }
958
- if (facebookProductSetId !== undefined && facebookProductSetId !== null) {
959
- queryParameters = queryParameters.set('facebookProductSetId', facebookProductSetId);
960
- }
961
- if (tosAccepted !== undefined && tosAccepted !== null) {
962
- queryParameters = queryParameters.set('tosAccepted', tosAccepted);
963
- }
964
- if (eventSourceGroupId !== undefined && eventSourceGroupId !== null) {
965
- queryParameters = queryParameters.set('eventSourceGroupId', eventSourceGroupId);
966
- }
967
- if (audienceDsdo !== undefined && audienceDsdo !== null) {
968
- queryParameters = queryParameters.set('audienceDsdo', audienceDsdo);
969
- }
970
- if (page !== undefined && page !== null) {
971
- queryParameters = queryParameters.set('page', page);
972
- }
973
- if (size !== undefined && size !== null) {
974
- queryParameters = queryParameters.set('size', size);
975
- }
976
- if (sort) {
977
- sort.forEach((element) => {
978
- queryParameters = queryParameters.append('sort', element);
979
- });
980
- }
981
- let headers = this.defaultHeaders;
982
- // to determine the Accept header
983
- let httpHeaderAccepts = [
984
- '*/*'
985
- ];
986
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
987
- if (httpHeaderAcceptSelected != undefined) {
988
- headers = headers.set('Accept', httpHeaderAcceptSelected);
989
- }
990
- // to determine the Content-Type header
991
- const consumes = [];
992
- return this.httpClient.request('get', `${this.basePath}/facebook-engagement`, {
993
- params: queryParameters,
994
- withCredentials: this.configuration.withCredentials,
995
- headers: headers,
996
- observe: observe,
997
- reportProgress: reportProgress
998
- });
999
- }
1000
- getFacebookEngagement(id, observe = 'body', reportProgress = false) {
1001
- if (id === null || id === undefined) {
1002
- throw new Error('Required parameter id was null or undefined when calling getFacebookEngagement.');
1003
- }
1004
- let headers = this.defaultHeaders;
1005
- // to determine the Accept header
1006
- let httpHeaderAccepts = [
1007
- '*/*'
1008
- ];
1009
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1010
- if (httpHeaderAcceptSelected != undefined) {
1011
- headers = headers.set('Accept', httpHeaderAcceptSelected);
1012
- }
1013
- // to determine the Content-Type header
1014
- const consumes = [];
1015
- return this.httpClient.request('get', `${this.basePath}/facebook-engagement/${encodeURIComponent(String(id))}`, {
1016
- withCredentials: this.configuration.withCredentials,
1017
- headers: headers,
1018
- observe: observe,
1019
- reportProgress: reportProgress
1020
- });
1021
- }
1022
- }
1023
- 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 });
1024
- FacebookEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService });
1025
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService, decorators: [{
1026
- type: Injectable
1027
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1028
- type: Optional
1029
- }, {
1030
- type: Inject,
1031
- args: [BASE_PATH]
1032
- }] }, { type: Configuration, decorators: [{
1033
- 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
+ createOrUpdateFacebookEngagement(body, id, observe = 'body', reportProgress = false) {
898
+ if (body === null || body === undefined) {
899
+ throw new Error('Required parameter body was null or undefined when calling createOrUpdateFacebookEngagement.');
900
+ }
901
+ if (id === null || id === undefined) {
902
+ throw new Error('Required parameter id was null or undefined when calling createOrUpdateFacebookEngagement.');
903
+ }
904
+ let headers = this.defaultHeaders;
905
+ // to determine the Accept header
906
+ let httpHeaderAccepts = [
907
+ '*/*'
908
+ ];
909
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
910
+ if (httpHeaderAcceptSelected != undefined) {
911
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
912
+ }
913
+ // to determine the Content-Type header
914
+ const consumes = [
915
+ 'application/json'
916
+ ];
917
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
918
+ if (httpContentTypeSelected != undefined) {
919
+ headers = headers.set('Content-Type', httpContentTypeSelected);
920
+ }
921
+ return this.httpClient.request('post', `${this.basePath}/facebook-engagement/${encodeURIComponent(String(id))}`, {
922
+ body: body,
923
+ withCredentials: this.configuration.withCredentials,
924
+ headers: headers,
925
+ observe: observe,
926
+ reportProgress: reportProgress
927
+ });
928
+ }
929
+ getAllFacebookEngagements(id, campaignId, facebookAccountId, facebookFanPageId, facebookCatalogId, facebookCatalogType, instagramActorId, facebookPixelId, facebookAppId, facebookProductSetId, tosAccepted, eventSourceGroupId, audienceDsdo, page, size, sort, observe = 'body', reportProgress = false) {
930
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
931
+ if (id !== undefined && id !== null) {
932
+ queryParameters = queryParameters.set('id', id);
933
+ }
934
+ if (campaignId !== undefined && campaignId !== null) {
935
+ queryParameters = queryParameters.set('campaignId', campaignId);
936
+ }
937
+ if (facebookAccountId !== undefined && facebookAccountId !== null) {
938
+ queryParameters = queryParameters.set('facebookAccountId', facebookAccountId);
939
+ }
940
+ if (facebookFanPageId !== undefined && facebookFanPageId !== null) {
941
+ queryParameters = queryParameters.set('facebookFanPageId', facebookFanPageId);
942
+ }
943
+ if (facebookCatalogId !== undefined && facebookCatalogId !== null) {
944
+ queryParameters = queryParameters.set('facebookCatalogId', facebookCatalogId);
945
+ }
946
+ if (facebookCatalogType !== undefined && facebookCatalogType !== null) {
947
+ queryParameters = queryParameters.set('facebookCatalogType', facebookCatalogType);
948
+ }
949
+ if (instagramActorId !== undefined && instagramActorId !== null) {
950
+ queryParameters = queryParameters.set('instagramActorId', instagramActorId);
951
+ }
952
+ if (facebookPixelId !== undefined && facebookPixelId !== null) {
953
+ queryParameters = queryParameters.set('facebookPixelId', facebookPixelId);
954
+ }
955
+ if (facebookAppId !== undefined && facebookAppId !== null) {
956
+ queryParameters = queryParameters.set('facebookAppId', facebookAppId);
957
+ }
958
+ if (facebookProductSetId !== undefined && facebookProductSetId !== null) {
959
+ queryParameters = queryParameters.set('facebookProductSetId', facebookProductSetId);
960
+ }
961
+ if (tosAccepted !== undefined && tosAccepted !== null) {
962
+ queryParameters = queryParameters.set('tosAccepted', tosAccepted);
963
+ }
964
+ if (eventSourceGroupId !== undefined && eventSourceGroupId !== null) {
965
+ queryParameters = queryParameters.set('eventSourceGroupId', eventSourceGroupId);
966
+ }
967
+ if (audienceDsdo !== undefined && audienceDsdo !== null) {
968
+ queryParameters = queryParameters.set('audienceDsdo', audienceDsdo);
969
+ }
970
+ if (page !== undefined && page !== null) {
971
+ queryParameters = queryParameters.set('page', page);
972
+ }
973
+ if (size !== undefined && size !== null) {
974
+ queryParameters = queryParameters.set('size', size);
975
+ }
976
+ if (sort) {
977
+ sort.forEach((element) => {
978
+ queryParameters = queryParameters.append('sort', element);
979
+ });
980
+ }
981
+ let headers = this.defaultHeaders;
982
+ // to determine the Accept header
983
+ let httpHeaderAccepts = [
984
+ '*/*'
985
+ ];
986
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
987
+ if (httpHeaderAcceptSelected != undefined) {
988
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
989
+ }
990
+ // to determine the Content-Type header
991
+ const consumes = [];
992
+ return this.httpClient.request('get', `${this.basePath}/facebook-engagement`, {
993
+ params: queryParameters,
994
+ withCredentials: this.configuration.withCredentials,
995
+ headers: headers,
996
+ observe: observe,
997
+ reportProgress: reportProgress
998
+ });
999
+ }
1000
+ getFacebookEngagement(id, observe = 'body', reportProgress = false) {
1001
+ if (id === null || id === undefined) {
1002
+ throw new Error('Required parameter id was null or undefined when calling getFacebookEngagement.');
1003
+ }
1004
+ let headers = this.defaultHeaders;
1005
+ // to determine the Accept header
1006
+ let httpHeaderAccepts = [
1007
+ '*/*'
1008
+ ];
1009
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1010
+ if (httpHeaderAcceptSelected != undefined) {
1011
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1012
+ }
1013
+ // to determine the Content-Type header
1014
+ const consumes = [];
1015
+ return this.httpClient.request('get', `${this.basePath}/facebook-engagement/${encodeURIComponent(String(id))}`, {
1016
+ withCredentials: this.configuration.withCredentials,
1017
+ headers: headers,
1018
+ observe: observe,
1019
+ reportProgress: reportProgress
1020
+ });
1021
+ }
1022
+ }
1023
+ 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 });
1024
+ FacebookEngagementControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService });
1025
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: FacebookEngagementControllerService, decorators: [{
1026
+ type: Injectable
1027
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1028
+ type: Optional
1029
+ }, {
1030
+ type: Inject,
1031
+ args: [BASE_PATH]
1032
+ }] }, { type: Configuration, decorators: [{
1033
+ type: Optional
1034
1034
  }] }]; } });
1035
1035
 
1036
- /**
1037
- *
1038
- *
1039
- *
1040
- *
1041
- *
1042
- *
1043
- * NOTE: This class is auto generated by the swagger code generator program.
1044
- * https://github.com/swagger-api/swagger-codegen.git
1045
- * Do not edit the class manually.
1046
- */ /* tslint:disable:no-unused-variable member-ordering */
1047
- class PackageDetailControllerService {
1048
- constructor(httpClient, basePath, configuration) {
1049
- this.httpClient = httpClient;
1050
- this.basePath = 'http://intellibid-api.atomex.net:8081/api';
1051
- this.defaultHeaders = new HttpHeaders();
1052
- this.configuration = new Configuration();
1053
- if (basePath) {
1054
- this.basePath = basePath;
1055
- }
1056
- if (configuration) {
1057
- this.configuration = configuration;
1058
- this.basePath = basePath || configuration.basePath || this.basePath;
1059
- }
1060
- }
1061
- /**
1062
- * @param consumes string[] mime-types
1063
- * @return true: consumes contains 'multipart/form-data', false: otherwise
1064
- */
1065
- canConsumeForm(consumes) {
1066
- const form = 'multipart/form-data';
1067
- for (const consume of consumes) {
1068
- if (form === consume) {
1069
- return true;
1070
- }
1071
- }
1072
- return false;
1073
- }
1074
- getAllPackageDetails(id, name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
1075
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
1076
- if (id !== undefined && id !== null) {
1077
- queryParameters = queryParameters.set('id', id);
1078
- }
1079
- if (name !== undefined && name !== null) {
1080
- queryParameters = queryParameters.set('name', name);
1081
- }
1082
- if (isActive !== undefined && isActive !== null) {
1083
- queryParameters = queryParameters.set('isActive', isActive);
1084
- }
1085
- if (page !== undefined && page !== null) {
1086
- queryParameters = queryParameters.set('page', page);
1087
- }
1088
- if (size !== undefined && size !== null) {
1089
- queryParameters = queryParameters.set('size', size);
1090
- }
1091
- if (sort) {
1092
- sort.forEach((element) => {
1093
- queryParameters = queryParameters.append('sort', element);
1094
- });
1095
- }
1096
- let headers = this.defaultHeaders;
1097
- // to determine the Accept header
1098
- let httpHeaderAccepts = [
1099
- '*/*'
1100
- ];
1101
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1102
- if (httpHeaderAcceptSelected != undefined) {
1103
- headers = headers.set('Accept', httpHeaderAcceptSelected);
1104
- }
1105
- // to determine the Content-Type header
1106
- const consumes = [];
1107
- return this.httpClient.request('get', `${this.basePath}/package`, {
1108
- params: queryParameters,
1109
- withCredentials: this.configuration.withCredentials,
1110
- headers: headers,
1111
- observe: observe,
1112
- reportProgress: reportProgress
1113
- });
1114
- }
1115
- getPackageDetail(id, observe = 'body', reportProgress = false) {
1116
- if (id === null || id === undefined) {
1117
- throw new Error('Required parameter id was null or undefined when calling getPackageDetail.');
1118
- }
1119
- let headers = this.defaultHeaders;
1120
- // to determine the Accept header
1121
- let httpHeaderAccepts = [
1122
- '*/*'
1123
- ];
1124
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1125
- if (httpHeaderAcceptSelected != undefined) {
1126
- headers = headers.set('Accept', httpHeaderAcceptSelected);
1127
- }
1128
- // to determine the Content-Type header
1129
- const consumes = [];
1130
- return this.httpClient.request('get', `${this.basePath}/package/${encodeURIComponent(String(id))}`, {
1131
- withCredentials: this.configuration.withCredentials,
1132
- headers: headers,
1133
- observe: observe,
1134
- reportProgress: reportProgress
1135
- });
1136
- }
1137
- }
1138
- 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 });
1139
- PackageDetailControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService });
1140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService, decorators: [{
1141
- type: Injectable
1142
- }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1143
- type: Optional
1144
- }, {
1145
- type: Inject,
1146
- args: [BASE_PATH]
1147
- }] }, { type: Configuration, decorators: [{
1148
- type: Optional
1036
+ /**
1037
+ *
1038
+ *
1039
+ *
1040
+ *
1041
+ *
1042
+ *
1043
+ * NOTE: This class is auto generated by the swagger code generator program.
1044
+ * https://github.com/swagger-api/swagger-codegen.git
1045
+ * Do not edit the class manually.
1046
+ */ /* tslint:disable:no-unused-variable member-ordering */
1047
+ class PackageDetailControllerService {
1048
+ constructor(httpClient, basePath, configuration) {
1049
+ this.httpClient = httpClient;
1050
+ this.basePath = 'http://intellibid-api.atomex.net:8081/api';
1051
+ this.defaultHeaders = new HttpHeaders();
1052
+ this.configuration = new Configuration();
1053
+ if (basePath) {
1054
+ this.basePath = basePath;
1055
+ }
1056
+ if (configuration) {
1057
+ this.configuration = configuration;
1058
+ this.basePath = basePath || configuration.basePath || this.basePath;
1059
+ }
1060
+ }
1061
+ /**
1062
+ * @param consumes string[] mime-types
1063
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
1064
+ */
1065
+ canConsumeForm(consumes) {
1066
+ const form = 'multipart/form-data';
1067
+ for (const consume of consumes) {
1068
+ if (form === consume) {
1069
+ return true;
1070
+ }
1071
+ }
1072
+ return false;
1073
+ }
1074
+ getAllPackageDetails(id, name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
1075
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
1076
+ if (id !== undefined && id !== null) {
1077
+ queryParameters = queryParameters.set('id', id);
1078
+ }
1079
+ if (name !== undefined && name !== null) {
1080
+ queryParameters = queryParameters.set('name', name);
1081
+ }
1082
+ if (isActive !== undefined && isActive !== null) {
1083
+ queryParameters = queryParameters.set('isActive', isActive);
1084
+ }
1085
+ if (page !== undefined && page !== null) {
1086
+ queryParameters = queryParameters.set('page', page);
1087
+ }
1088
+ if (size !== undefined && size !== null) {
1089
+ queryParameters = queryParameters.set('size', size);
1090
+ }
1091
+ if (sort) {
1092
+ sort.forEach((element) => {
1093
+ queryParameters = queryParameters.append('sort', element);
1094
+ });
1095
+ }
1096
+ let headers = this.defaultHeaders;
1097
+ // to determine the Accept header
1098
+ let httpHeaderAccepts = [
1099
+ '*/*'
1100
+ ];
1101
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1102
+ if (httpHeaderAcceptSelected != undefined) {
1103
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1104
+ }
1105
+ // to determine the Content-Type header
1106
+ const consumes = [];
1107
+ return this.httpClient.request('get', `${this.basePath}/package`, {
1108
+ params: queryParameters,
1109
+ withCredentials: this.configuration.withCredentials,
1110
+ headers: headers,
1111
+ observe: observe,
1112
+ reportProgress: reportProgress
1113
+ });
1114
+ }
1115
+ getPackageDetail(id, observe = 'body', reportProgress = false) {
1116
+ if (id === null || id === undefined) {
1117
+ throw new Error('Required parameter id was null or undefined when calling getPackageDetail.');
1118
+ }
1119
+ let headers = this.defaultHeaders;
1120
+ // to determine the Accept header
1121
+ let httpHeaderAccepts = [
1122
+ '*/*'
1123
+ ];
1124
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1125
+ if (httpHeaderAcceptSelected != undefined) {
1126
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1127
+ }
1128
+ // to determine the Content-Type header
1129
+ const consumes = [];
1130
+ return this.httpClient.request('get', `${this.basePath}/package/${encodeURIComponent(String(id))}`, {
1131
+ withCredentials: this.configuration.withCredentials,
1132
+ headers: headers,
1133
+ observe: observe,
1134
+ reportProgress: reportProgress
1135
+ });
1136
+ }
1137
+ }
1138
+ 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 });
1139
+ PackageDetailControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService });
1140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: PackageDetailControllerService, decorators: [{
1141
+ type: Injectable
1142
+ }], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1143
+ type: Optional
1144
+ }, {
1145
+ type: Inject,
1146
+ args: [BASE_PATH]
1147
+ }] }, { type: Configuration, decorators: [{
1148
+ type: Optional
1149
1149
  }] }]; } });
1150
1150
 
1151
1151
  const APIS = [BusinessGeoControllerService, CampaignControllerService, CountryControllerService, DpaCampaignControllerService, DpaEngagementControllerService, FacebookEngagementControllerService, PackageDetailControllerService];
1152
1152
 
1153
- /**
1154
- *
1155
- *
1156
- *
1157
- *
1158
- *
1159
- *
1160
- * NOTE: This class is auto generated by the swagger code generator program.
1161
- * https://github.com/swagger-api/swagger-codegen.git
1162
- * Do not edit the class manually.
1163
- */
1164
- var AdSetDetails;
1165
- (function (AdSetDetails) {
1166
- AdSetDetails.TypeEnum = {
1167
- IB: 'IB',
1168
- Engage: 'Engage',
1169
- Default: 'Default'
1170
- };
1153
+ /**
1154
+ *
1155
+ *
1156
+ *
1157
+ *
1158
+ *
1159
+ *
1160
+ * NOTE: This class is auto generated by the swagger code generator program.
1161
+ * https://github.com/swagger-api/swagger-codegen.git
1162
+ * Do not edit the class manually.
1163
+ */
1164
+ var AdSetDetails;
1165
+ (function (AdSetDetails) {
1166
+ AdSetDetails.TypeEnum = {
1167
+ IB: 'IB',
1168
+ Engage: 'Engage',
1169
+ Default: 'Default'
1170
+ };
1171
1171
  })(AdSetDetails || (AdSetDetails = {}));
1172
1172
 
1173
- /**
1174
- *
1175
- *
1176
- *
1177
- *
1178
- *
1179
- *
1180
- * NOTE: This class is auto generated by the swagger code generator program.
1181
- * https://github.com/swagger-api/swagger-codegen.git
1182
- * Do not edit the class manually.
1173
+ /**
1174
+ *
1175
+ *
1176
+ *
1177
+ *
1178
+ *
1179
+ *
1180
+ * NOTE: This class is auto generated by the swagger code generator program.
1181
+ * https://github.com/swagger-api/swagger-codegen.git
1182
+ * Do not edit the class manually.
1183
1183
  */
1184
1184
 
1185
- /**
1186
- *
1187
- *
1188
- *
1189
- *
1190
- *
1191
- *
1192
- * NOTE: This class is auto generated by the swagger code generator program.
1193
- * https://github.com/swagger-api/swagger-codegen.git
1194
- * Do not edit the class manually.
1185
+ /**
1186
+ *
1187
+ *
1188
+ *
1189
+ *
1190
+ *
1191
+ *
1192
+ * NOTE: This class is auto generated by the swagger code generator program.
1193
+ * https://github.com/swagger-api/swagger-codegen.git
1194
+ * Do not edit the class manually.
1195
1195
  */
1196
1196
 
1197
- /**
1198
- *
1199
- *
1200
- *
1201
- *
1202
- *
1203
- *
1204
- * NOTE: This class is auto generated by the swagger code generator program.
1205
- * https://github.com/swagger-api/swagger-codegen.git
1206
- * Do not edit the class manually.
1207
- */
1208
- var CampaignResponse;
1209
- (function (CampaignResponse) {
1210
- CampaignResponse.StatusEnum = {
1211
- INACTIVE: 'INACTIVE',
1212
- PAUSED: 'PAUSED',
1213
- ACTIVE: 'ACTIVE',
1214
- SOFTPAUSE: 'SOFTPAUSE'
1215
- };
1216
- CampaignResponse.SegDbTypeEnum = {
1217
- SEGMENTATION: 'SEGMENTATION',
1218
- COUNT: 'COUNT'
1219
- };
1220
- CampaignResponse.CampaignTypeEnum = {
1221
- BRANDING: 'BRANDING',
1222
- UA: 'UA',
1223
- RETARGETING: 'RETARGETING',
1224
- DSP: 'DSP',
1225
- DMP: 'DMP'
1226
- };
1197
+ /**
1198
+ *
1199
+ *
1200
+ *
1201
+ *
1202
+ *
1203
+ *
1204
+ * NOTE: This class is auto generated by the swagger code generator program.
1205
+ * https://github.com/swagger-api/swagger-codegen.git
1206
+ * Do not edit the class manually.
1207
+ */
1208
+ var CampaignResponse;
1209
+ (function (CampaignResponse) {
1210
+ CampaignResponse.StatusEnum = {
1211
+ INACTIVE: 'INACTIVE',
1212
+ PAUSED: 'PAUSED',
1213
+ ACTIVE: 'ACTIVE',
1214
+ SOFTPAUSE: 'SOFTPAUSE'
1215
+ };
1216
+ CampaignResponse.SegDbTypeEnum = {
1217
+ SEGMENTATION: 'SEGMENTATION',
1218
+ COUNT: 'COUNT'
1219
+ };
1220
+ CampaignResponse.CampaignTypeEnum = {
1221
+ BRANDING: 'BRANDING',
1222
+ UA: 'UA',
1223
+ RETARGETING: 'RETARGETING',
1224
+ DSP: 'DSP',
1225
+ DMP: 'DMP'
1226
+ };
1227
1227
  })(CampaignResponse || (CampaignResponse = {}));
1228
1228
 
1229
- /**
1230
- *
1231
- *
1232
- *
1233
- *
1234
- *
1235
- *
1236
- * NOTE: This class is auto generated by the swagger code generator program.
1237
- * https://github.com/swagger-api/swagger-codegen.git
1238
- * Do not edit the class manually.
1229
+ /**
1230
+ *
1231
+ *
1232
+ *
1233
+ *
1234
+ *
1235
+ *
1236
+ * NOTE: This class is auto generated by the swagger code generator program.
1237
+ * https://github.com/swagger-api/swagger-codegen.git
1238
+ * Do not edit the class manually.
1239
1239
  */
1240
1240
 
1241
- /**
1242
- *
1243
- *
1244
- *
1245
- *
1246
- *
1247
- *
1248
- * NOTE: This class is auto generated by the swagger code generator program.
1249
- * https://github.com/swagger-api/swagger-codegen.git
1250
- * Do not edit the class manually.
1241
+ /**
1242
+ *
1243
+ *
1244
+ *
1245
+ *
1246
+ *
1247
+ *
1248
+ * NOTE: This class is auto generated by the swagger code generator program.
1249
+ * https://github.com/swagger-api/swagger-codegen.git
1250
+ * Do not edit the class manually.
1251
1251
  */
1252
1252
 
1253
- var DpaCampaignResponse;
1254
- (function (DpaCampaignResponse) {
1255
- DpaCampaignResponse.StatusEnum = {
1256
- DRAFT: 'DRAFT',
1257
- INITIALIZED: 'INITIALIZED',
1258
- RUNNING: 'RUNNING',
1259
- UPDATING: 'UPDATING',
1260
- PAUSED: 'PAUSED'
1261
- };
1253
+ var DpaCampaignResponse;
1254
+ (function (DpaCampaignResponse) {
1255
+ DpaCampaignResponse.StatusEnum = {
1256
+ DRAFT: 'DRAFT',
1257
+ INITIALIZED: 'INITIALIZED',
1258
+ RUNNING: 'RUNNING',
1259
+ UPDATING: 'UPDATING',
1260
+ PAUSED: 'PAUSED',
1261
+ FAILED: 'FAILED'
1262
+ };
1262
1263
  })(DpaCampaignResponse || (DpaCampaignResponse = {}));
1263
1264
 
1264
- var DpaEngagementResponse;
1265
- (function (DpaEngagementResponse) {
1266
- DpaEngagementResponse.RunByEnum = {
1267
- CLIENT: 'CLIENT',
1268
- VIZURY: 'VIZURY'
1269
- };
1270
- DpaEngagementResponse.PayoutTypeEnum = {
1271
- CPM: 'CPM',
1272
- CPC: 'CPC',
1273
- CPA: 'CPA',
1274
- CPS: 'CPS',
1275
- CPAClientAttributed: 'CPA - Client Attributed',
1276
- CPSClientAttributed: 'CPS - Client Attributed',
1277
- MARGIN: 'MARGIN'
1278
- };
1279
- DpaEngagementResponse.StatusEnum = {
1280
- DRAFT: 'DRAFT',
1281
- INITIALIZED: 'INITIALIZED',
1282
- RUNNING: 'RUNNING',
1283
- UPDATING: 'UPDATING',
1284
- PAUSED: 'PAUSED'
1285
- };
1286
- DpaEngagementResponse.TemplateEnum = {
1287
- None: 'none',
1288
- TextOnImage: 'text-on-image',
1289
- Price: 'price',
1290
- PercentageOff: 'percentage_off',
1291
- StrikethroughPrice: 'strikethrough_price',
1292
- ImageOverlay: 'image-overlay'
1293
- };
1265
+ var DpaEngagementResponse;
1266
+ (function (DpaEngagementResponse) {
1267
+ DpaEngagementResponse.RunByEnum = {
1268
+ CLIENT: 'CLIENT',
1269
+ VIZURY: 'VIZURY'
1270
+ };
1271
+ DpaEngagementResponse.PayoutTypeEnum = {
1272
+ CPM: 'CPM',
1273
+ CPC: 'CPC',
1274
+ CPA: 'CPA',
1275
+ CPS: 'CPS',
1276
+ CPAClientAttributed: 'CPA - Client Attributed',
1277
+ CPSClientAttributed: 'CPS - Client Attributed',
1278
+ MARGIN: 'MARGIN'
1279
+ };
1280
+ DpaEngagementResponse.StatusEnum = {
1281
+ DRAFT: 'DRAFT',
1282
+ INITIALIZED: 'INITIALIZED',
1283
+ RUNNING: 'RUNNING',
1284
+ UPDATING: 'UPDATING',
1285
+ PAUSED: 'PAUSED',
1286
+ FAILED: 'FAILED'
1287
+ };
1288
+ DpaEngagementResponse.TemplateEnum = {
1289
+ None: 'none',
1290
+ TextOnImage: 'text-on-image',
1291
+ Price: 'price',
1292
+ PercentageOff: 'percentage_off',
1293
+ StrikethroughPrice: 'strikethrough_price',
1294
+ ImageOverlay: 'image-overlay'
1295
+ };
1294
1296
  })(DpaEngagementResponse || (DpaEngagementResponse = {}));
1295
1297
 
1296
- /**
1297
- *
1298
- *
1299
- *
1300
- *
1301
- *
1302
- *
1303
- * NOTE: This class is auto generated by the swagger code generator program.
1304
- * https://github.com/swagger-api/swagger-codegen.git
1305
- * Do not edit the class manually.
1298
+ /**
1299
+ *
1300
+ *
1301
+ *
1302
+ *
1303
+ *
1304
+ *
1305
+ * NOTE: This class is auto generated by the swagger code generator program.
1306
+ * https://github.com/swagger-api/swagger-codegen.git
1307
+ * Do not edit the class manually.
1306
1308
  */
1307
1309
 
1308
- /**
1309
- *
1310
- *
1311
- *
1312
- *
1313
- *
1314
- *
1315
- * NOTE: This class is auto generated by the swagger code generator program.
1316
- * https://github.com/swagger-api/swagger-codegen.git
1317
- * Do not edit the class manually.
1310
+ /**
1311
+ *
1312
+ *
1313
+ *
1314
+ *
1315
+ *
1316
+ *
1317
+ * NOTE: This class is auto generated by the swagger code generator program.
1318
+ * https://github.com/swagger-api/swagger-codegen.git
1319
+ * Do not edit the class manually.
1318
1320
  */
1319
1321
 
1320
- /**
1321
- *
1322
- *
1323
- *
1324
- *
1325
- *
1326
- *
1327
- * NOTE: This class is auto generated by the swagger code generator program.
1328
- * https://github.com/swagger-api/swagger-codegen.git
1329
- * Do not edit the class manually.
1322
+ /**
1323
+ *
1324
+ *
1325
+ *
1326
+ *
1327
+ *
1328
+ *
1329
+ * NOTE: This class is auto generated by the swagger code generator program.
1330
+ * https://github.com/swagger-api/swagger-codegen.git
1331
+ * Do not edit the class manually.
1330
1332
  */
1331
1333
 
1332
- /**
1333
- *
1334
- *
1335
- *
1336
- *
1337
- *
1338
- *
1339
- * NOTE: This class is auto generated by the swagger code generator program.
1340
- * https://github.com/swagger-api/swagger-codegen.git
1341
- * Do not edit the class manually.
1342
- */
1343
- var FacebookEngagementResponse;
1344
- (function (FacebookEngagementResponse) {
1345
- FacebookEngagementResponse.FacebookCatalogTypeEnum = {
1346
- COMMERCE: 'COMMERCE',
1347
- HOTELS: 'HOTELS',
1348
- DESTINATIONS: 'DESTINATIONS',
1349
- FLIGHTS: 'FLIGHTS'
1350
- };
1334
+ /**
1335
+ *
1336
+ *
1337
+ *
1338
+ *
1339
+ *
1340
+ *
1341
+ * NOTE: This class is auto generated by the swagger code generator program.
1342
+ * https://github.com/swagger-api/swagger-codegen.git
1343
+ * Do not edit the class manually.
1344
+ */
1345
+ var FacebookEngagementResponse;
1346
+ (function (FacebookEngagementResponse) {
1347
+ FacebookEngagementResponse.FacebookCatalogTypeEnum = {
1348
+ COMMERCE: 'COMMERCE',
1349
+ HOTELS: 'HOTELS',
1350
+ DESTINATIONS: 'DESTINATIONS',
1351
+ FLIGHTS: 'FLIGHTS'
1352
+ };
1351
1353
  })(FacebookEngagementResponse || (FacebookEngagementResponse = {}));
1352
1354
 
1353
- /**
1354
- *
1355
- *
1356
- *
1357
- *
1358
- *
1359
- *
1360
- * NOTE: This class is auto generated by the swagger code generator program.
1361
- * https://github.com/swagger-api/swagger-codegen.git
1362
- * Do not edit the class manually.
1355
+ /**
1356
+ *
1357
+ *
1358
+ *
1359
+ *
1360
+ *
1361
+ *
1362
+ * NOTE: This class is auto generated by the swagger code generator program.
1363
+ * https://github.com/swagger-api/swagger-codegen.git
1364
+ * Do not edit the class manually.
1363
1365
  */
1364
1366
 
1365
- /**
1366
- *
1367
- *
1368
- *
1369
- *
1370
- *
1371
- *
1372
- * NOTE: This class is auto generated by the swagger code generator program.
1373
- * https://github.com/swagger-api/swagger-codegen.git
1374
- * Do not edit the class manually.
1367
+ /**
1368
+ *
1369
+ *
1370
+ *
1371
+ *
1372
+ *
1373
+ *
1374
+ * NOTE: This class is auto generated by the swagger code generator program.
1375
+ * https://github.com/swagger-api/swagger-codegen.git
1376
+ * Do not edit the class manually.
1375
1377
  */
1376
1378
 
1377
- /**
1378
- *
1379
- *
1380
- *
1381
- *
1382
- *
1383
- *
1384
- * NOTE: This class is auto generated by the swagger code generator program.
1385
- * https://github.com/swagger-api/swagger-codegen.git
1386
- * Do not edit the class manually.
1379
+ /**
1380
+ *
1381
+ *
1382
+ *
1383
+ *
1384
+ *
1385
+ *
1386
+ * NOTE: This class is auto generated by the swagger code generator program.
1387
+ * https://github.com/swagger-api/swagger-codegen.git
1388
+ * Do not edit the class manually.
1387
1389
  */
1388
1390
 
1389
- /**
1390
- *
1391
- *
1392
- *
1393
- *
1394
- *
1395
- *
1396
- * NOTE: This class is auto generated by the swagger code generator program.
1397
- * https://github.com/swagger-api/swagger-codegen.git
1398
- * Do not edit the class manually.
1391
+ /**
1392
+ *
1393
+ *
1394
+ *
1395
+ *
1396
+ *
1397
+ *
1398
+ * NOTE: This class is auto generated by the swagger code generator program.
1399
+ * https://github.com/swagger-api/swagger-codegen.git
1400
+ * Do not edit the class manually.
1399
1401
  */
1400
1402
 
1401
- class ApiModule {
1402
- static forRoot(configurationFactory) {
1403
- return {
1404
- ngModule: ApiModule,
1405
- providers: [{ provide: Configuration, useFactory: configurationFactory }]
1406
- };
1407
- }
1408
- constructor(parentModule, http) {
1409
- if (parentModule) {
1410
- throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
1411
- }
1412
- if (!http) {
1413
- throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
1414
- 'See also https://github.com/angular/angular/issues/20575');
1415
- }
1416
- }
1417
- }
1418
- 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 });
1419
- ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
1420
- ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
1421
- BusinessGeoControllerService,
1422
- CampaignControllerService,
1423
- CountryControllerService,
1424
- DpaCampaignControllerService,
1425
- DpaEngagementControllerService,
1426
- FacebookEngagementControllerService,
1427
- PackageDetailControllerService
1428
- ] });
1429
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
1430
- type: NgModule,
1431
- args: [{
1432
- imports: [],
1433
- declarations: [],
1434
- exports: [],
1435
- providers: [
1436
- BusinessGeoControllerService,
1437
- CampaignControllerService,
1438
- CountryControllerService,
1439
- DpaCampaignControllerService,
1440
- DpaEngagementControllerService,
1441
- FacebookEngagementControllerService,
1442
- PackageDetailControllerService
1443
- ]
1444
- }]
1445
- }], ctorParameters: function () { return [{ type: ApiModule, decorators: [{
1446
- type: Optional
1447
- }, {
1448
- type: SkipSelf
1449
- }] }, { type: i1.HttpClient, decorators: [{
1450
- type: Optional
1403
+ class ApiModule {
1404
+ static forRoot(configurationFactory) {
1405
+ return {
1406
+ ngModule: ApiModule,
1407
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
1408
+ };
1409
+ }
1410
+ constructor(parentModule, http) {
1411
+ if (parentModule) {
1412
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
1413
+ }
1414
+ if (!http) {
1415
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
1416
+ 'See also https://github.com/angular/angular/issues/20575');
1417
+ }
1418
+ }
1419
+ }
1420
+ 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 });
1421
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
1422
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
1423
+ BusinessGeoControllerService,
1424
+ CampaignControllerService,
1425
+ CountryControllerService,
1426
+ DpaCampaignControllerService,
1427
+ DpaEngagementControllerService,
1428
+ FacebookEngagementControllerService,
1429
+ PackageDetailControllerService
1430
+ ] });
1431
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
1432
+ type: NgModule,
1433
+ args: [{
1434
+ imports: [],
1435
+ declarations: [],
1436
+ exports: [],
1437
+ providers: [
1438
+ BusinessGeoControllerService,
1439
+ CampaignControllerService,
1440
+ CountryControllerService,
1441
+ DpaCampaignControllerService,
1442
+ DpaEngagementControllerService,
1443
+ FacebookEngagementControllerService,
1444
+ PackageDetailControllerService
1445
+ ]
1446
+ }]
1447
+ }], ctorParameters: function () { return [{ type: ApiModule, decorators: [{
1448
+ type: Optional
1449
+ }, {
1450
+ type: SkipSelf
1451
+ }] }, { type: i1.HttpClient, decorators: [{
1452
+ type: Optional
1451
1453
  }] }]; } });
1452
1454
 
1453
- /**
1454
- * Generated bundle index. Do not edit.
1455
+ /**
1456
+ * Generated bundle index. Do not edit.
1455
1457
  */
1456
1458
 
1457
1459
  export { APIS, AdSetDetails, ApiModule, BASE_PATH, BusinessGeoControllerService, COLLECTION_FORMATS, CampaignControllerService, CampaignResponse, Configuration, CountryControllerService, DpaCampaignControllerService, DpaCampaignResponse, DpaEngagementControllerService, DpaEngagementResponse, FacebookEngagementControllerService, FacebookEngagementResponse, PackageDetailControllerService };