@revxui/intellibid-client-ts 1.0.1 → 1.0.2

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