@revxui/intellibid-client-ts 1.0.56 → 1.0.58

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 (75) hide show
  1. package/README.md +2 -2
  2. package/api/advertiserController.service.d.ts +88 -66
  3. package/api/api.d.ts +9 -9
  4. package/api/campaignController.service.d.ts +110 -110
  5. package/api/insightsController.service.d.ts +33 -32
  6. package/api/lookupDataController.service.d.ts +58 -0
  7. package/api.module.d.ts +11 -11
  8. package/configuration.d.ts +48 -48
  9. package/encoder.d.ts +10 -10
  10. package/esm2020/api/advertiserController.service.mjs +213 -169
  11. package/esm2020/api/api.mjs +10 -10
  12. package/esm2020/api/campaignController.service.mjs +296 -296
  13. package/esm2020/api/insightsController.service.mjs +108 -105
  14. package/esm2020/api/lookupDataController.service.mjs +135 -0
  15. package/esm2020/api.module.mjs +54 -54
  16. package/esm2020/configuration.mjs +58 -58
  17. package/esm2020/encoder.mjs +16 -16
  18. package/esm2020/index.mjs +5 -5
  19. package/esm2020/model/advertiserMmpConversionEventResponse.mjs +12 -12
  20. package/esm2020/model/advertiserResponse.mjs +12 -12
  21. package/esm2020/model/advertiserSearchResponse.mjs +12 -12
  22. package/esm2020/model/blockedEventResponse.mjs +13 -0
  23. package/esm2020/model/businessZoneResponse.mjs +13 -0
  24. package/esm2020/model/campaignChangeLogResponse.mjs +23 -23
  25. package/esm2020/model/campaignInsightRecord.mjs +19 -19
  26. package/esm2020/model/campaignInsightsResponse.mjs +1 -1
  27. package/esm2020/model/campaignRequest.mjs +32 -32
  28. package/esm2020/model/campaignResponse.mjs +21 -21
  29. package/esm2020/model/campaignSearchResponse.mjs +12 -12
  30. package/esm2020/model/countryResponse.mjs +13 -0
  31. package/esm2020/model/goalResponse.mjs +13 -0
  32. package/esm2020/model/models.mjs +23 -18
  33. package/esm2020/model/oSResponse.mjs +12 -12
  34. package/esm2020/model/pageAdvertiserResponse.mjs +2 -2
  35. package/esm2020/model/pageCampaignChangeLogResponse.mjs +2 -2
  36. package/esm2020/model/pageCampaignResponse.mjs +2 -2
  37. package/esm2020/model/pageableObject.mjs +2 -2
  38. package/esm2020/model/platformResponse.mjs +13 -0
  39. package/esm2020/model/scheduleUpdateRequest.mjs +18 -18
  40. package/esm2020/model/scheduledUpdates.mjs +12 -12
  41. package/esm2020/model/sortObject.mjs +12 -12
  42. package/esm2020/revxui-intellibid-client-ts.mjs +4 -4
  43. package/esm2020/variables.mjs +8 -8
  44. package/fesm2015/revxui-intellibid-client-ts.mjs +956 -852
  45. package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
  46. package/fesm2020/revxui-intellibid-client-ts.mjs +1074 -910
  47. package/fesm2020/revxui-intellibid-client-ts.mjs.map +1 -1
  48. package/index.d.ts +5 -5
  49. package/model/advertiserMmpConversionEventResponse.d.ts +15 -15
  50. package/model/advertiserResponse.d.ts +30 -30
  51. package/model/advertiserSearchResponse.d.ts +16 -16
  52. package/model/blockedEventResponse.d.ts +15 -0
  53. package/model/businessZoneResponse.d.ts +17 -0
  54. package/model/campaignChangeLogResponse.d.ts +34 -34
  55. package/model/campaignInsightRecord.d.ts +56 -47
  56. package/model/campaignInsightsResponse.d.ts +16 -16
  57. package/model/campaignRequest.d.ts +52 -52
  58. package/model/campaignResponse.d.ts +66 -66
  59. package/model/campaignSearchResponse.d.ts +15 -15
  60. package/model/countryResponse.d.ts +18 -0
  61. package/model/goalResponse.d.ts +17 -0
  62. package/model/models.d.ts +22 -17
  63. package/model/oSResponse.d.ts +15 -15
  64. package/model/pageAdvertiserResponse.d.ts +27 -27
  65. package/model/pageCampaignChangeLogResponse.d.ts +27 -27
  66. package/model/pageCampaignResponse.d.ts +27 -27
  67. package/model/pageableObject.d.ts +20 -20
  68. package/model/platformResponse.d.ts +15 -0
  69. package/model/scheduleUpdateRequest.d.ts +22 -22
  70. package/model/scheduledUpdates.d.ts +15 -15
  71. package/model/sortObject.d.ts +18 -18
  72. package/package.json +1 -1
  73. package/variables.d.ts +8 -8
  74. package/api/osMasterController.service.d.ts +0 -28
  75. package/esm2020/api/osMasterController.service.mjs +0 -78
@@ -3,885 +3,989 @@ import { InjectionToken, Injectable, Optional, Inject, NgModule, SkipSelf } from
3
3
  import * as i1 from '@angular/common/http';
4
4
  import { HttpUrlEncodingCodec, HttpHeaders, HttpParams } from '@angular/common/http';
5
5
 
6
- /**
7
- * CustomHttpUrlEncodingCodec
8
- * Fix plus sign (+) not encoding, so sent as blank space
9
- * See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
10
- */
11
- class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {
12
- encodeKey(k) {
13
- k = super.encodeKey(k);
14
- return k.replace(/\+/gi, '%2B');
15
- }
16
- encodeValue(v) {
17
- v = super.encodeValue(v);
18
- return v.replace(/\+/gi, '%2B');
19
- }
6
+ /**
7
+ * CustomHttpUrlEncodingCodec
8
+ * Fix plus sign (+) not encoding, so sent as blank space
9
+ * See: https://github.com/angular/angular/issues/11058#issuecomment-247367318
10
+ */
11
+ class CustomHttpUrlEncodingCodec extends HttpUrlEncodingCodec {
12
+ encodeKey(k) {
13
+ k = super.encodeKey(k);
14
+ return k.replace(/\+/gi, '%2B');
15
+ }
16
+ encodeValue(v) {
17
+ v = super.encodeValue(v);
18
+ return v.replace(/\+/gi, '%2B');
19
+ }
20
20
  }
21
21
 
22
- const BASE_PATH = new InjectionToken('basePath');
23
- const COLLECTION_FORMATS = {
24
- 'csv': ',',
25
- 'tsv': ' ',
26
- 'ssv': ' ',
27
- 'pipes': '|'
22
+ const BASE_PATH = new InjectionToken('basePath');
23
+ const COLLECTION_FORMATS = {
24
+ 'csv': ',',
25
+ 'tsv': ' ',
26
+ 'ssv': ' ',
27
+ 'pipes': '|'
28
28
  };
29
29
 
30
- class Configuration {
31
- constructor(configurationParameters = {}) {
32
- this.apiKeys = configurationParameters.apiKeys;
33
- this.username = configurationParameters.username;
34
- this.password = configurationParameters.password;
35
- this.accessToken = configurationParameters.accessToken;
36
- this.basePath = configurationParameters.basePath;
37
- this.withCredentials = configurationParameters.withCredentials;
38
- }
39
- /**
40
- * Select the correct content-type to use for a request.
41
- * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
42
- * If no content type is found return the first found type if the contentTypes is not empty
43
- * @param contentTypes - the array of content types that are available for selection
44
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
45
- */
46
- selectHeaderContentType(contentTypes) {
47
- if (contentTypes.length == 0) {
48
- return undefined;
49
- }
50
- let type = contentTypes.find(x => this.isJsonMime(x));
51
- if (type === undefined) {
52
- return contentTypes[0];
53
- }
54
- return type;
55
- }
56
- /**
57
- * Select the correct accept content-type to use for a request.
58
- * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
59
- * If no content type is found return the first found type if the contentTypes is not empty
60
- * @param accepts - the array of content types that are available for selection.
61
- * @returns the selected content-type or <code>undefined</code> if no selection could be made.
62
- */
63
- selectHeaderAccept(accepts) {
64
- if (accepts.length == 0) {
65
- return undefined;
66
- }
67
- let type = accepts.find(x => this.isJsonMime(x));
68
- if (type === undefined) {
69
- return accepts[0];
70
- }
71
- return type;
72
- }
73
- /**
74
- * Check if the given MIME is a JSON MIME.
75
- * JSON MIME examples:
76
- * application/json
77
- * application/json; charset=UTF8
78
- * APPLICATION/JSON
79
- * application/vnd.company+json
80
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
81
- * @return True if the given MIME is JSON, false otherwise.
82
- */
83
- isJsonMime(mime) {
84
- const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
85
- return mime != null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
86
- }
30
+ class Configuration {
31
+ constructor(configurationParameters = {}) {
32
+ this.apiKeys = configurationParameters.apiKeys;
33
+ this.username = configurationParameters.username;
34
+ this.password = configurationParameters.password;
35
+ this.accessToken = configurationParameters.accessToken;
36
+ this.basePath = configurationParameters.basePath;
37
+ this.withCredentials = configurationParameters.withCredentials;
38
+ }
39
+ /**
40
+ * Select the correct content-type to use for a request.
41
+ * Uses {@link Configuration#isJsonMime} to determine the correct content-type.
42
+ * If no content type is found return the first found type if the contentTypes is not empty
43
+ * @param contentTypes - the array of content types that are available for selection
44
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
45
+ */
46
+ selectHeaderContentType(contentTypes) {
47
+ if (contentTypes.length == 0) {
48
+ return undefined;
49
+ }
50
+ let type = contentTypes.find(x => this.isJsonMime(x));
51
+ if (type === undefined) {
52
+ return contentTypes[0];
53
+ }
54
+ return type;
55
+ }
56
+ /**
57
+ * Select the correct accept content-type to use for a request.
58
+ * Uses {@link Configuration#isJsonMime} to determine the correct accept content-type.
59
+ * If no content type is found return the first found type if the contentTypes is not empty
60
+ * @param accepts - the array of content types that are available for selection.
61
+ * @returns the selected content-type or <code>undefined</code> if no selection could be made.
62
+ */
63
+ selectHeaderAccept(accepts) {
64
+ if (accepts.length == 0) {
65
+ return undefined;
66
+ }
67
+ let type = accepts.find(x => this.isJsonMime(x));
68
+ if (type === undefined) {
69
+ return accepts[0];
70
+ }
71
+ return type;
72
+ }
73
+ /**
74
+ * Check if the given MIME is a JSON MIME.
75
+ * JSON MIME examples:
76
+ * application/json
77
+ * application/json; charset=UTF8
78
+ * APPLICATION/JSON
79
+ * application/vnd.company+json
80
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
81
+ * @return True if the given MIME is JSON, false otherwise.
82
+ */
83
+ isJsonMime(mime) {
84
+ const jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
85
+ return mime != null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
86
+ }
87
87
  }
88
88
 
89
- /**
90
- * Intellibid API
91
- * API documentation for the Intellibid platform
92
- *
93
- * OpenAPI spec version: 1.0
94
- *
95
- *
96
- * NOTE: This class is auto generated by the swagger code generator program.
97
- * https://github.com/swagger-api/swagger-codegen.git
98
- * Do not edit the class manually.
99
- */ /* tslint:disable:no-unused-variable member-ordering */
100
- class AdvertiserControllerService {
101
- constructor(httpClient, basePath, configuration) {
102
- this.httpClient = httpClient;
103
- this.basePath = 'http://dev1-intellibid-svc.revx.io';
104
- this.defaultHeaders = new HttpHeaders();
105
- this.configuration = new Configuration();
106
- if (basePath) {
107
- this.basePath = basePath;
108
- }
109
- if (configuration) {
110
- this.configuration = configuration;
111
- this.basePath = basePath || configuration.basePath || this.basePath;
112
- }
113
- }
114
- /**
115
- * @param consumes string[] mime-types
116
- * @return true: consumes contains 'multipart/form-data', false: otherwise
117
- */
118
- canConsumeForm(consumes) {
119
- const form = 'multipart/form-data';
120
- for (const consume of consumes) {
121
- if (form === consume) {
122
- return true;
123
- }
124
- }
125
- return false;
126
- }
127
- getAdvertiser(id, observe = 'body', reportProgress = false) {
128
- if (id === null || id === undefined) {
129
- throw new Error('Required parameter id was null or undefined when calling getAdvertiser.');
130
- }
131
- let headers = this.defaultHeaders;
132
- // to determine the Accept header
133
- let httpHeaderAccepts = [
134
- '*/*'
135
- ];
136
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
137
- if (httpHeaderAcceptSelected != undefined) {
138
- headers = headers.set('Accept', httpHeaderAcceptSelected);
139
- }
140
- // to determine the Content-Type header
141
- const consumes = [];
142
- return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}`, {
143
- withCredentials: this.configuration.withCredentials,
144
- headers: headers,
145
- observe: observe,
146
- reportProgress: reportProgress
147
- });
148
- }
149
- getAllAdvertisers(name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
150
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
151
- if (name !== undefined && name !== null) {
152
- queryParameters = queryParameters.set('name', name);
153
- }
154
- if (isActive !== undefined && isActive !== null) {
155
- queryParameters = queryParameters.set('isActive', isActive);
156
- }
157
- if (page !== undefined && page !== null) {
158
- queryParameters = queryParameters.set('page', page);
159
- }
160
- if (size !== undefined && size !== null) {
161
- queryParameters = queryParameters.set('size', size);
162
- }
163
- if (sort) {
164
- sort.forEach((element) => {
165
- queryParameters = queryParameters.append('sort', element);
166
- });
167
- }
168
- let headers = this.defaultHeaders;
169
- // to determine the Accept header
170
- let httpHeaderAccepts = [
171
- '*/*'
172
- ];
173
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
174
- if (httpHeaderAcceptSelected != undefined) {
175
- headers = headers.set('Accept', httpHeaderAcceptSelected);
176
- }
177
- // to determine the Content-Type header
178
- const consumes = [];
179
- return this.httpClient.request('get', `${this.basePath}/api/advertiser`, {
180
- params: queryParameters,
181
- withCredentials: this.configuration.withCredentials,
182
- headers: headers,
183
- observe: observe,
184
- reportProgress: reportProgress
185
- });
186
- }
187
- getMMPConversionEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
188
- if (id === null || id === undefined) {
189
- throw new Error('Required parameter id was null or undefined when calling getMMPConversionEventsByAdvertiser.');
190
- }
191
- let headers = this.defaultHeaders;
192
- // to determine the Accept header
193
- let httpHeaderAccepts = [
194
- '*/*'
195
- ];
196
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
197
- if (httpHeaderAcceptSelected != undefined) {
198
- headers = headers.set('Accept', httpHeaderAcceptSelected);
199
- }
200
- // to determine the Content-Type header
201
- const consumes = [];
202
- return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/mmp-conversion-events`, {
203
- withCredentials: this.configuration.withCredentials,
204
- headers: headers,
205
- observe: observe,
206
- reportProgress: reportProgress
207
- });
208
- }
209
- searchAdvertisers(q, observe = 'body', reportProgress = false) {
210
- if (q === null || q === undefined) {
211
- throw new Error('Required parameter q was null or undefined when calling searchAdvertisers.');
212
- }
213
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
214
- if (q !== undefined && q !== null) {
215
- queryParameters = queryParameters.set('q', q);
216
- }
217
- let headers = this.defaultHeaders;
218
- // to determine the Accept header
219
- let httpHeaderAccepts = [
220
- '*/*'
221
- ];
222
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
223
- if (httpHeaderAcceptSelected != undefined) {
224
- headers = headers.set('Accept', httpHeaderAcceptSelected);
225
- }
226
- // to determine the Content-Type header
227
- const consumes = [];
228
- return this.httpClient.request('get', `${this.basePath}/api/advertiser/search`, {
229
- params: queryParameters,
230
- withCredentials: this.configuration.withCredentials,
231
- headers: headers,
232
- observe: observe,
233
- reportProgress: reportProgress
234
- });
235
- }
236
- }
237
- AdvertiserControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
238
- AdvertiserControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService });
239
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService, decorators: [{
240
- type: Injectable
241
- }], ctorParameters: function () {
242
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
243
- type: Optional
244
- }, {
245
- type: Inject,
246
- args: [BASE_PATH]
247
- }] }, { type: Configuration, decorators: [{
248
- type: Optional
249
- }] }];
89
+ /**
90
+ * Intellibid API
91
+ * API documentation for the Intellibid platform
92
+ *
93
+ * OpenAPI spec version: 1.0
94
+ *
95
+ *
96
+ * NOTE: This class is auto generated by the swagger code generator program.
97
+ * https://github.com/swagger-api/swagger-codegen.git
98
+ * Do not edit the class manually.
99
+ */ /* tslint:disable:no-unused-variable member-ordering */
100
+ class AdvertiserControllerService {
101
+ constructor(httpClient, basePath, configuration) {
102
+ this.httpClient = httpClient;
103
+ this.basePath = 'http://dev1-intellibid-svc.revx.io';
104
+ this.defaultHeaders = new HttpHeaders();
105
+ this.configuration = new Configuration();
106
+ if (basePath) {
107
+ this.basePath = basePath;
108
+ }
109
+ if (configuration) {
110
+ this.configuration = configuration;
111
+ this.basePath = basePath || configuration.basePath || this.basePath;
112
+ }
113
+ }
114
+ /**
115
+ * @param consumes string[] mime-types
116
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
117
+ */
118
+ canConsumeForm(consumes) {
119
+ const form = 'multipart/form-data';
120
+ for (const consume of consumes) {
121
+ if (form === consume) {
122
+ return true;
123
+ }
124
+ }
125
+ return false;
126
+ }
127
+ getAdvertiser(id, observe = 'body', reportProgress = false) {
128
+ if (id === null || id === undefined) {
129
+ throw new Error('Required parameter id was null or undefined when calling getAdvertiser.');
130
+ }
131
+ let headers = this.defaultHeaders;
132
+ // to determine the Accept header
133
+ let httpHeaderAccepts = [
134
+ '*/*'
135
+ ];
136
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
137
+ if (httpHeaderAcceptSelected != undefined) {
138
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
139
+ }
140
+ // to determine the Content-Type header
141
+ const consumes = [];
142
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}`, {
143
+ withCredentials: this.configuration.withCredentials,
144
+ headers: headers,
145
+ observe: observe,
146
+ reportProgress: reportProgress
147
+ });
148
+ }
149
+ getAllAdvertisers(name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
150
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
151
+ if (name !== undefined && name !== null) {
152
+ queryParameters = queryParameters.set('name', name);
153
+ }
154
+ if (isActive !== undefined && isActive !== null) {
155
+ queryParameters = queryParameters.set('isActive', isActive);
156
+ }
157
+ if (page !== undefined && page !== null) {
158
+ queryParameters = queryParameters.set('page', page);
159
+ }
160
+ if (size !== undefined && size !== null) {
161
+ queryParameters = queryParameters.set('size', size);
162
+ }
163
+ if (sort) {
164
+ sort.forEach((element) => {
165
+ queryParameters = queryParameters.append('sort', element);
166
+ });
167
+ }
168
+ let headers = this.defaultHeaders;
169
+ // to determine the Accept header
170
+ let httpHeaderAccepts = [
171
+ '*/*'
172
+ ];
173
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
174
+ if (httpHeaderAcceptSelected != undefined) {
175
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
176
+ }
177
+ // to determine the Content-Type header
178
+ const consumes = [];
179
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser`, {
180
+ params: queryParameters,
181
+ withCredentials: this.configuration.withCredentials,
182
+ headers: headers,
183
+ observe: observe,
184
+ reportProgress: reportProgress
185
+ });
186
+ }
187
+ getBlockedEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
188
+ if (id === null || id === undefined) {
189
+ throw new Error('Required parameter id was null or undefined when calling getBlockedEventsByAdvertiser.');
190
+ }
191
+ let headers = this.defaultHeaders;
192
+ // to determine the Accept header
193
+ let httpHeaderAccepts = [
194
+ '*/*'
195
+ ];
196
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
197
+ if (httpHeaderAcceptSelected != undefined) {
198
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
199
+ }
200
+ // to determine the Content-Type header
201
+ const consumes = [];
202
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/blocked-events`, {
203
+ withCredentials: this.configuration.withCredentials,
204
+ headers: headers,
205
+ observe: observe,
206
+ reportProgress: reportProgress
207
+ });
208
+ }
209
+ getGoalsByAdvertiser(id, observe = 'body', reportProgress = false) {
210
+ if (id === null || id === undefined) {
211
+ throw new Error('Required parameter id was null or undefined when calling getGoalsByAdvertiser.');
212
+ }
213
+ let headers = this.defaultHeaders;
214
+ // to determine the Accept header
215
+ let httpHeaderAccepts = [
216
+ '*/*'
217
+ ];
218
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
219
+ if (httpHeaderAcceptSelected != undefined) {
220
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
221
+ }
222
+ // to determine the Content-Type header
223
+ const consumes = [];
224
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/goals`, {
225
+ withCredentials: this.configuration.withCredentials,
226
+ headers: headers,
227
+ observe: observe,
228
+ reportProgress: reportProgress
229
+ });
230
+ }
231
+ getMMPConversionEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
232
+ if (id === null || id === undefined) {
233
+ throw new Error('Required parameter id was null or undefined when calling getMMPConversionEventsByAdvertiser.');
234
+ }
235
+ let headers = this.defaultHeaders;
236
+ // to determine the Accept header
237
+ let httpHeaderAccepts = [
238
+ '*/*'
239
+ ];
240
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
241
+ if (httpHeaderAcceptSelected != undefined) {
242
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
243
+ }
244
+ // to determine the Content-Type header
245
+ const consumes = [];
246
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/mmp-conversion-events`, {
247
+ withCredentials: this.configuration.withCredentials,
248
+ headers: headers,
249
+ observe: observe,
250
+ reportProgress: reportProgress
251
+ });
252
+ }
253
+ searchAdvertisers(q, observe = 'body', reportProgress = false) {
254
+ if (q === null || q === undefined) {
255
+ throw new Error('Required parameter q was null or undefined when calling searchAdvertisers.');
256
+ }
257
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
258
+ if (q !== undefined && q !== null) {
259
+ queryParameters = queryParameters.set('q', q);
260
+ }
261
+ let headers = this.defaultHeaders;
262
+ // to determine the Accept header
263
+ let httpHeaderAccepts = [
264
+ '*/*'
265
+ ];
266
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
267
+ if (httpHeaderAcceptSelected != undefined) {
268
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
269
+ }
270
+ // to determine the Content-Type header
271
+ const consumes = [];
272
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/search`, {
273
+ params: queryParameters,
274
+ withCredentials: this.configuration.withCredentials,
275
+ headers: headers,
276
+ observe: observe,
277
+ reportProgress: reportProgress
278
+ });
279
+ }
280
+ }
281
+ AdvertiserControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
282
+ AdvertiserControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService });
283
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService, decorators: [{
284
+ type: Injectable
285
+ }], ctorParameters: function () {
286
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
287
+ type: Optional
288
+ }, {
289
+ type: Inject,
290
+ args: [BASE_PATH]
291
+ }] }, { type: Configuration, decorators: [{
292
+ type: Optional
293
+ }] }];
250
294
  } });
251
295
 
252
- /**
253
- * Intellibid API
254
- * API documentation for the Intellibid platform
255
- *
256
- * OpenAPI spec version: 1.0
257
- *
258
- *
259
- * NOTE: This class is auto generated by the swagger code generator program.
260
- * https://github.com/swagger-api/swagger-codegen.git
261
- * Do not edit the class manually.
262
- */ /* tslint:disable:no-unused-variable member-ordering */
263
- class CampaignControllerService {
264
- constructor(httpClient, basePath, configuration) {
265
- this.httpClient = httpClient;
266
- this.basePath = 'http://dev1-intellibid-svc.revx.io';
267
- this.defaultHeaders = new HttpHeaders();
268
- this.configuration = new Configuration();
269
- if (basePath) {
270
- this.basePath = basePath;
271
- }
272
- if (configuration) {
273
- this.configuration = configuration;
274
- this.basePath = basePath || configuration.basePath || this.basePath;
275
- }
276
- }
277
- /**
278
- * @param consumes string[] mime-types
279
- * @return true: consumes contains 'multipart/form-data', false: otherwise
280
- */
281
- canConsumeForm(consumes) {
282
- const form = 'multipart/form-data';
283
- for (const consume of consumes) {
284
- if (form === consume) {
285
- return true;
286
- }
287
- }
288
- return false;
289
- }
290
- createCampaign(body, observe = 'body', reportProgress = false) {
291
- if (body === null || body === undefined) {
292
- throw new Error('Required parameter body was null or undefined when calling createCampaign.');
293
- }
294
- let headers = this.defaultHeaders;
295
- // to determine the Accept header
296
- let httpHeaderAccepts = [
297
- '*/*'
298
- ];
299
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
300
- if (httpHeaderAcceptSelected != undefined) {
301
- headers = headers.set('Accept', httpHeaderAcceptSelected);
302
- }
303
- // to determine the Content-Type header
304
- const consumes = [
305
- 'application/json'
306
- ];
307
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
308
- if (httpContentTypeSelected != undefined) {
309
- headers = headers.set('Content-Type', httpContentTypeSelected);
310
- }
311
- return this.httpClient.request('post', `${this.basePath}/api/campaign`, {
312
- body: body,
313
- withCredentials: this.configuration.withCredentials,
314
- headers: headers,
315
- observe: observe,
316
- reportProgress: reportProgress
317
- });
318
- }
319
- getAllCampaigns(id, advertiserId, name, platformCampaignId, payoutType, marketFeedbackEnabled, activeOnPlatform, sourcePlatform, page, size, sort, observe = 'body', reportProgress = false) {
320
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
321
- if (id !== undefined && id !== null) {
322
- queryParameters = queryParameters.set('id', id);
323
- }
324
- if (advertiserId !== undefined && advertiserId !== null) {
325
- queryParameters = queryParameters.set('advertiserId', advertiserId);
326
- }
327
- if (name !== undefined && name !== null) {
328
- queryParameters = queryParameters.set('name', name);
329
- }
330
- if (platformCampaignId !== undefined && platformCampaignId !== null) {
331
- queryParameters = queryParameters.set('platformCampaignId', platformCampaignId);
332
- }
333
- if (payoutType !== undefined && payoutType !== null) {
334
- queryParameters = queryParameters.set('payoutType', payoutType);
335
- }
336
- if (marketFeedbackEnabled !== undefined && marketFeedbackEnabled !== null) {
337
- queryParameters = queryParameters.set('marketFeedbackEnabled', marketFeedbackEnabled);
338
- }
339
- if (activeOnPlatform !== undefined && activeOnPlatform !== null) {
340
- queryParameters = queryParameters.set('activeOnPlatform', activeOnPlatform);
341
- }
342
- if (sourcePlatform !== undefined && sourcePlatform !== null) {
343
- queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
344
- }
345
- if (page !== undefined && page !== null) {
346
- queryParameters = queryParameters.set('page', page);
347
- }
348
- if (size !== undefined && size !== null) {
349
- queryParameters = queryParameters.set('size', size);
350
- }
351
- if (sort) {
352
- sort.forEach((element) => {
353
- queryParameters = queryParameters.append('sort', element);
354
- });
355
- }
356
- let headers = this.defaultHeaders;
357
- // to determine the Accept header
358
- let httpHeaderAccepts = [
359
- '*/*'
360
- ];
361
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
362
- if (httpHeaderAcceptSelected != undefined) {
363
- headers = headers.set('Accept', httpHeaderAcceptSelected);
364
- }
365
- // to determine the Content-Type header
366
- const consumes = [];
367
- return this.httpClient.request('get', `${this.basePath}/api/campaign`, {
368
- params: queryParameters,
369
- withCredentials: this.configuration.withCredentials,
370
- headers: headers,
371
- observe: observe,
372
- reportProgress: reportProgress
373
- });
374
- }
375
- getCampaign(id, observe = 'body', reportProgress = false) {
376
- if (id === null || id === undefined) {
377
- throw new Error('Required parameter id was null or undefined when calling getCampaign.');
378
- }
379
- let headers = this.defaultHeaders;
380
- // to determine the Accept header
381
- let httpHeaderAccepts = [
382
- '*/*'
383
- ];
384
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
385
- if (httpHeaderAcceptSelected != undefined) {
386
- headers = headers.set('Accept', httpHeaderAcceptSelected);
387
- }
388
- // to determine the Content-Type header
389
- const consumes = [];
390
- return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}`, {
391
- withCredentials: this.configuration.withCredentials,
392
- headers: headers,
393
- observe: observe,
394
- reportProgress: reportProgress
395
- });
396
- }
397
- getCampaignLogs(id, page, size, sort, observe = 'body', reportProgress = false) {
398
- if (id === null || id === undefined) {
399
- throw new Error('Required parameter id was null or undefined when calling getCampaignLogs.');
400
- }
401
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
402
- if (page !== undefined && page !== null) {
403
- queryParameters = queryParameters.set('page', page);
404
- }
405
- if (size !== undefined && size !== null) {
406
- queryParameters = queryParameters.set('size', size);
407
- }
408
- if (sort) {
409
- sort.forEach((element) => {
410
- queryParameters = queryParameters.append('sort', element);
411
- });
412
- }
413
- let headers = this.defaultHeaders;
414
- // to determine the Accept header
415
- let httpHeaderAccepts = [
416
- '*/*'
417
- ];
418
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
419
- if (httpHeaderAcceptSelected != undefined) {
420
- headers = headers.set('Accept', httpHeaderAcceptSelected);
421
- }
422
- // to determine the Content-Type header
423
- const consumes = [];
424
- return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/log`, {
425
- params: queryParameters,
426
- withCredentials: this.configuration.withCredentials,
427
- headers: headers,
428
- observe: observe,
429
- reportProgress: reportProgress
430
- });
431
- }
432
- scheduleUpdate(body, id, observe = 'body', reportProgress = false) {
433
- if (body === null || body === undefined) {
434
- throw new Error('Required parameter body was null or undefined when calling scheduleUpdate.');
435
- }
436
- if (id === null || id === undefined) {
437
- throw new Error('Required parameter id was null or undefined when calling scheduleUpdate.');
438
- }
439
- let headers = this.defaultHeaders;
440
- // to determine the Accept header
441
- let httpHeaderAccepts = [
442
- '*/*'
443
- ];
444
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
445
- if (httpHeaderAcceptSelected != undefined) {
446
- headers = headers.set('Accept', httpHeaderAcceptSelected);
447
- }
448
- // to determine the Content-Type header
449
- const consumes = [
450
- 'application/json'
451
- ];
452
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
453
- if (httpContentTypeSelected != undefined) {
454
- headers = headers.set('Content-Type', httpContentTypeSelected);
455
- }
456
- return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/schedule-update`, {
457
- body: body,
458
- withCredentials: this.configuration.withCredentials,
459
- headers: headers,
460
- observe: observe,
461
- reportProgress: reportProgress
462
- });
463
- }
464
- searchCampaign(q, sourcePlatform, observe = 'body', reportProgress = false) {
465
- if (q === null || q === undefined) {
466
- throw new Error('Required parameter q was null or undefined when calling searchCampaign.');
467
- }
468
- if (sourcePlatform === null || sourcePlatform === undefined) {
469
- throw new Error('Required parameter sourcePlatform was null or undefined when calling searchCampaign.');
470
- }
471
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
472
- if (q !== undefined && q !== null) {
473
- queryParameters = queryParameters.set('q', q);
474
- }
475
- if (sourcePlatform !== undefined && sourcePlatform !== null) {
476
- queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
477
- }
478
- let headers = this.defaultHeaders;
479
- // to determine the Accept header
480
- let httpHeaderAccepts = [
481
- '*/*'
482
- ];
483
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
484
- if (httpHeaderAcceptSelected != undefined) {
485
- headers = headers.set('Accept', httpHeaderAcceptSelected);
486
- }
487
- // to determine the Content-Type header
488
- const consumes = [];
489
- return this.httpClient.request('get', `${this.basePath}/api/campaign/search`, {
490
- params: queryParameters,
491
- withCredentials: this.configuration.withCredentials,
492
- headers: headers,
493
- observe: observe,
494
- reportProgress: reportProgress
495
- });
496
- }
497
- setStatus(id, active, observe = 'body', reportProgress = false) {
498
- if (id === null || id === undefined) {
499
- throw new Error('Required parameter id was null or undefined when calling setStatus.');
500
- }
501
- if (active === null || active === undefined) {
502
- throw new Error('Required parameter active was null or undefined when calling setStatus.');
503
- }
504
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
505
- if (active !== undefined && active !== null) {
506
- queryParameters = queryParameters.set('active', active);
507
- }
508
- let headers = this.defaultHeaders;
509
- // to determine the Accept header
510
- let httpHeaderAccepts = [
511
- '*/*'
512
- ];
513
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
514
- if (httpHeaderAcceptSelected != undefined) {
515
- headers = headers.set('Accept', httpHeaderAcceptSelected);
516
- }
517
- // to determine the Content-Type header
518
- const consumes = [];
519
- return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/status`, {
520
- params: queryParameters,
521
- withCredentials: this.configuration.withCredentials,
522
- headers: headers,
523
- observe: observe,
524
- reportProgress: reportProgress
525
- });
526
- }
527
- }
528
- 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 });
529
- CampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService });
530
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, decorators: [{
531
- type: Injectable
532
- }], ctorParameters: function () {
533
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
534
- type: Optional
535
- }, {
536
- type: Inject,
537
- args: [BASE_PATH]
538
- }] }, { type: Configuration, decorators: [{
539
- type: Optional
540
- }] }];
296
+ /**
297
+ * Intellibid API
298
+ * API documentation for the Intellibid platform
299
+ *
300
+ * OpenAPI spec version: 1.0
301
+ *
302
+ *
303
+ * NOTE: This class is auto generated by the swagger code generator program.
304
+ * https://github.com/swagger-api/swagger-codegen.git
305
+ * Do not edit the class manually.
306
+ */ /* tslint:disable:no-unused-variable member-ordering */
307
+ class CampaignControllerService {
308
+ constructor(httpClient, basePath, configuration) {
309
+ this.httpClient = httpClient;
310
+ this.basePath = 'http://dev1-intellibid-svc.revx.io';
311
+ this.defaultHeaders = new HttpHeaders();
312
+ this.configuration = new Configuration();
313
+ if (basePath) {
314
+ this.basePath = basePath;
315
+ }
316
+ if (configuration) {
317
+ this.configuration = configuration;
318
+ this.basePath = basePath || configuration.basePath || this.basePath;
319
+ }
320
+ }
321
+ /**
322
+ * @param consumes string[] mime-types
323
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
324
+ */
325
+ canConsumeForm(consumes) {
326
+ const form = 'multipart/form-data';
327
+ for (const consume of consumes) {
328
+ if (form === consume) {
329
+ return true;
330
+ }
331
+ }
332
+ return false;
333
+ }
334
+ createCampaign(body, observe = 'body', reportProgress = false) {
335
+ if (body === null || body === undefined) {
336
+ throw new Error('Required parameter body was null or undefined when calling createCampaign.');
337
+ }
338
+ let headers = this.defaultHeaders;
339
+ // to determine the Accept header
340
+ let httpHeaderAccepts = [
341
+ '*/*'
342
+ ];
343
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
344
+ if (httpHeaderAcceptSelected != undefined) {
345
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
346
+ }
347
+ // to determine the Content-Type header
348
+ const consumes = [
349
+ 'application/json'
350
+ ];
351
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
352
+ if (httpContentTypeSelected != undefined) {
353
+ headers = headers.set('Content-Type', httpContentTypeSelected);
354
+ }
355
+ return this.httpClient.request('post', `${this.basePath}/api/campaign`, {
356
+ body: body,
357
+ withCredentials: this.configuration.withCredentials,
358
+ headers: headers,
359
+ observe: observe,
360
+ reportProgress: reportProgress
361
+ });
362
+ }
363
+ getAllCampaigns(id, advertiserId, name, platformCampaignId, payoutType, marketFeedbackEnabled, activeOnPlatform, sourcePlatform, page, size, sort, observe = 'body', reportProgress = false) {
364
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
365
+ if (id !== undefined && id !== null) {
366
+ queryParameters = queryParameters.set('id', id);
367
+ }
368
+ if (advertiserId !== undefined && advertiserId !== null) {
369
+ queryParameters = queryParameters.set('advertiserId', advertiserId);
370
+ }
371
+ if (name !== undefined && name !== null) {
372
+ queryParameters = queryParameters.set('name', name);
373
+ }
374
+ if (platformCampaignId !== undefined && platformCampaignId !== null) {
375
+ queryParameters = queryParameters.set('platformCampaignId', platformCampaignId);
376
+ }
377
+ if (payoutType !== undefined && payoutType !== null) {
378
+ queryParameters = queryParameters.set('payoutType', payoutType);
379
+ }
380
+ if (marketFeedbackEnabled !== undefined && marketFeedbackEnabled !== null) {
381
+ queryParameters = queryParameters.set('marketFeedbackEnabled', marketFeedbackEnabled);
382
+ }
383
+ if (activeOnPlatform !== undefined && activeOnPlatform !== null) {
384
+ queryParameters = queryParameters.set('activeOnPlatform', activeOnPlatform);
385
+ }
386
+ if (sourcePlatform !== undefined && sourcePlatform !== null) {
387
+ queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
388
+ }
389
+ if (page !== undefined && page !== null) {
390
+ queryParameters = queryParameters.set('page', page);
391
+ }
392
+ if (size !== undefined && size !== null) {
393
+ queryParameters = queryParameters.set('size', size);
394
+ }
395
+ if (sort) {
396
+ sort.forEach((element) => {
397
+ queryParameters = queryParameters.append('sort', element);
398
+ });
399
+ }
400
+ let headers = this.defaultHeaders;
401
+ // to determine the Accept header
402
+ let httpHeaderAccepts = [
403
+ '*/*'
404
+ ];
405
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
406
+ if (httpHeaderAcceptSelected != undefined) {
407
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
408
+ }
409
+ // to determine the Content-Type header
410
+ const consumes = [];
411
+ return this.httpClient.request('get', `${this.basePath}/api/campaign`, {
412
+ params: queryParameters,
413
+ withCredentials: this.configuration.withCredentials,
414
+ headers: headers,
415
+ observe: observe,
416
+ reportProgress: reportProgress
417
+ });
418
+ }
419
+ getCampaign(id, observe = 'body', reportProgress = false) {
420
+ if (id === null || id === undefined) {
421
+ throw new Error('Required parameter id was null or undefined when calling getCampaign.');
422
+ }
423
+ let headers = this.defaultHeaders;
424
+ // to determine the Accept header
425
+ let httpHeaderAccepts = [
426
+ '*/*'
427
+ ];
428
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
429
+ if (httpHeaderAcceptSelected != undefined) {
430
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
431
+ }
432
+ // to determine the Content-Type header
433
+ const consumes = [];
434
+ return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}`, {
435
+ withCredentials: this.configuration.withCredentials,
436
+ headers: headers,
437
+ observe: observe,
438
+ reportProgress: reportProgress
439
+ });
440
+ }
441
+ getCampaignLogs(id, page, size, sort, observe = 'body', reportProgress = false) {
442
+ if (id === null || id === undefined) {
443
+ throw new Error('Required parameter id was null or undefined when calling getCampaignLogs.');
444
+ }
445
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
446
+ if (page !== undefined && page !== null) {
447
+ queryParameters = queryParameters.set('page', page);
448
+ }
449
+ if (size !== undefined && size !== null) {
450
+ queryParameters = queryParameters.set('size', size);
451
+ }
452
+ if (sort) {
453
+ sort.forEach((element) => {
454
+ queryParameters = queryParameters.append('sort', element);
455
+ });
456
+ }
457
+ let headers = this.defaultHeaders;
458
+ // to determine the Accept header
459
+ let httpHeaderAccepts = [
460
+ '*/*'
461
+ ];
462
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
463
+ if (httpHeaderAcceptSelected != undefined) {
464
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
465
+ }
466
+ // to determine the Content-Type header
467
+ const consumes = [];
468
+ return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/log`, {
469
+ params: queryParameters,
470
+ withCredentials: this.configuration.withCredentials,
471
+ headers: headers,
472
+ observe: observe,
473
+ reportProgress: reportProgress
474
+ });
475
+ }
476
+ scheduleUpdate(body, id, observe = 'body', reportProgress = false) {
477
+ if (body === null || body === undefined) {
478
+ throw new Error('Required parameter body was null or undefined when calling scheduleUpdate.');
479
+ }
480
+ if (id === null || id === undefined) {
481
+ throw new Error('Required parameter id was null or undefined when calling scheduleUpdate.');
482
+ }
483
+ let headers = this.defaultHeaders;
484
+ // to determine the Accept header
485
+ let httpHeaderAccepts = [
486
+ '*/*'
487
+ ];
488
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
489
+ if (httpHeaderAcceptSelected != undefined) {
490
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
491
+ }
492
+ // to determine the Content-Type header
493
+ const consumes = [
494
+ 'application/json'
495
+ ];
496
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
497
+ if (httpContentTypeSelected != undefined) {
498
+ headers = headers.set('Content-Type', httpContentTypeSelected);
499
+ }
500
+ return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/schedule-update`, {
501
+ body: body,
502
+ withCredentials: this.configuration.withCredentials,
503
+ headers: headers,
504
+ observe: observe,
505
+ reportProgress: reportProgress
506
+ });
507
+ }
508
+ searchCampaign(q, sourcePlatform, observe = 'body', reportProgress = false) {
509
+ if (q === null || q === undefined) {
510
+ throw new Error('Required parameter q was null or undefined when calling searchCampaign.');
511
+ }
512
+ if (sourcePlatform === null || sourcePlatform === undefined) {
513
+ throw new Error('Required parameter sourcePlatform was null or undefined when calling searchCampaign.');
514
+ }
515
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
516
+ if (q !== undefined && q !== null) {
517
+ queryParameters = queryParameters.set('q', q);
518
+ }
519
+ if (sourcePlatform !== undefined && sourcePlatform !== null) {
520
+ queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
521
+ }
522
+ let headers = this.defaultHeaders;
523
+ // to determine the Accept header
524
+ let httpHeaderAccepts = [
525
+ '*/*'
526
+ ];
527
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
528
+ if (httpHeaderAcceptSelected != undefined) {
529
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
530
+ }
531
+ // to determine the Content-Type header
532
+ const consumes = [];
533
+ return this.httpClient.request('get', `${this.basePath}/api/campaign/search`, {
534
+ params: queryParameters,
535
+ withCredentials: this.configuration.withCredentials,
536
+ headers: headers,
537
+ observe: observe,
538
+ reportProgress: reportProgress
539
+ });
540
+ }
541
+ setStatus(id, active, observe = 'body', reportProgress = false) {
542
+ if (id === null || id === undefined) {
543
+ throw new Error('Required parameter id was null or undefined when calling setStatus.');
544
+ }
545
+ if (active === null || active === undefined) {
546
+ throw new Error('Required parameter active was null or undefined when calling setStatus.');
547
+ }
548
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
549
+ if (active !== undefined && active !== null) {
550
+ queryParameters = queryParameters.set('active', active);
551
+ }
552
+ let headers = this.defaultHeaders;
553
+ // to determine the Accept header
554
+ let httpHeaderAccepts = [
555
+ '*/*'
556
+ ];
557
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
558
+ if (httpHeaderAcceptSelected != undefined) {
559
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
560
+ }
561
+ // to determine the Content-Type header
562
+ const consumes = [];
563
+ return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/status`, {
564
+ params: queryParameters,
565
+ withCredentials: this.configuration.withCredentials,
566
+ headers: headers,
567
+ observe: observe,
568
+ reportProgress: reportProgress
569
+ });
570
+ }
571
+ }
572
+ 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 });
573
+ CampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService });
574
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, decorators: [{
575
+ type: Injectable
576
+ }], ctorParameters: function () {
577
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
578
+ type: Optional
579
+ }, {
580
+ type: Inject,
581
+ args: [BASE_PATH]
582
+ }] }, { type: Configuration, decorators: [{
583
+ type: Optional
584
+ }] }];
541
585
  } });
542
586
 
543
- /**
544
- * Intellibid API
545
- * API documentation for the Intellibid platform
546
- *
547
- * OpenAPI spec version: 1.0
548
- *
549
- *
550
- * NOTE: This class is auto generated by the swagger code generator program.
551
- * https://github.com/swagger-api/swagger-codegen.git
552
- * Do not edit the class manually.
553
- */ /* tslint:disable:no-unused-variable member-ordering */
554
- class InsightsControllerService {
555
- constructor(httpClient, basePath, configuration) {
556
- this.httpClient = httpClient;
557
- this.basePath = 'http://dev1-intellibid-svc.revx.io';
558
- this.defaultHeaders = new HttpHeaders();
559
- this.configuration = new Configuration();
560
- if (basePath) {
561
- this.basePath = basePath;
562
- }
563
- if (configuration) {
564
- this.configuration = configuration;
565
- this.basePath = basePath || configuration.basePath || this.basePath;
566
- }
567
- }
568
- /**
569
- * @param consumes string[] mime-types
570
- * @return true: consumes contains 'multipart/form-data', false: otherwise
571
- */
572
- canConsumeForm(consumes) {
573
- const form = 'multipart/form-data';
574
- for (const consume of consumes) {
575
- if (form === consume) {
576
- return true;
577
- }
578
- }
579
- return false;
580
- }
581
- getCampaignInsights(startDate, endDate, sourcePlatform, interval, observe = 'body', reportProgress = false) {
582
- if (startDate === null || startDate === undefined) {
583
- throw new Error('Required parameter startDate was null or undefined when calling getCampaignInsights.');
584
- }
585
- if (endDate === null || endDate === undefined) {
586
- throw new Error('Required parameter endDate was null or undefined when calling getCampaignInsights.');
587
- }
588
- if (sourcePlatform === null || sourcePlatform === undefined) {
589
- throw new Error('Required parameter sourcePlatform was null or undefined when calling getCampaignInsights.');
590
- }
591
- if (interval === null || interval === undefined) {
592
- throw new Error('Required parameter interval was null or undefined when calling getCampaignInsights.');
593
- }
594
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
595
- if (startDate !== undefined && startDate !== null) {
596
- queryParameters = queryParameters.set('startDate', startDate);
597
- }
598
- if (endDate !== undefined && endDate !== null) {
599
- queryParameters = queryParameters.set('endDate', endDate);
600
- }
601
- if (sourcePlatform !== undefined && sourcePlatform !== null) {
602
- queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
603
- }
604
- if (interval !== undefined && interval !== null) {
605
- queryParameters = queryParameters.set('interval', interval);
606
- }
607
- let headers = this.defaultHeaders;
608
- // to determine the Accept header
609
- let httpHeaderAccepts = [
610
- '*/*'
611
- ];
612
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
613
- if (httpHeaderAcceptSelected != undefined) {
614
- headers = headers.set('Accept', httpHeaderAcceptSelected);
615
- }
616
- // to determine the Content-Type header
617
- const consumes = [];
618
- return this.httpClient.request('get', `${this.basePath}/api/campaign-insights`, {
619
- params: queryParameters,
620
- withCredentials: this.configuration.withCredentials,
621
- headers: headers,
622
- observe: observe,
623
- reportProgress: reportProgress
624
- });
625
- }
626
- }
627
- InsightsControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
628
- InsightsControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService });
629
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, decorators: [{
630
- type: Injectable
631
- }], ctorParameters: function () {
632
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
633
- type: Optional
634
- }, {
635
- type: Inject,
636
- args: [BASE_PATH]
637
- }] }, { type: Configuration, decorators: [{
638
- type: Optional
639
- }] }];
587
+ /**
588
+ * Intellibid API
589
+ * API documentation for the Intellibid platform
590
+ *
591
+ * OpenAPI spec version: 1.0
592
+ *
593
+ *
594
+ * NOTE: This class is auto generated by the swagger code generator program.
595
+ * https://github.com/swagger-api/swagger-codegen.git
596
+ * Do not edit the class manually.
597
+ */ /* tslint:disable:no-unused-variable member-ordering */
598
+ class InsightsControllerService {
599
+ constructor(httpClient, basePath, configuration) {
600
+ this.httpClient = httpClient;
601
+ this.basePath = 'http://dev1-intellibid-svc.revx.io';
602
+ this.defaultHeaders = new HttpHeaders();
603
+ this.configuration = new Configuration();
604
+ if (basePath) {
605
+ this.basePath = basePath;
606
+ }
607
+ if (configuration) {
608
+ this.configuration = configuration;
609
+ this.basePath = basePath || configuration.basePath || this.basePath;
610
+ }
611
+ }
612
+ /**
613
+ * @param consumes string[] mime-types
614
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
615
+ */
616
+ canConsumeForm(consumes) {
617
+ const form = 'multipart/form-data';
618
+ for (const consume of consumes) {
619
+ if (form === consume) {
620
+ return true;
621
+ }
622
+ }
623
+ return false;
624
+ }
625
+ getCampaignInsights(startDate, endDate, sourcePlatform, interval, requireMmpReport, observe = 'body', reportProgress = false) {
626
+ if (startDate === null || startDate === undefined) {
627
+ throw new Error('Required parameter startDate was null or undefined when calling getCampaignInsights.');
628
+ }
629
+ if (endDate === null || endDate === undefined) {
630
+ throw new Error('Required parameter endDate was null or undefined when calling getCampaignInsights.');
631
+ }
632
+ if (sourcePlatform === null || sourcePlatform === undefined) {
633
+ throw new Error('Required parameter sourcePlatform was null or undefined when calling getCampaignInsights.');
634
+ }
635
+ if (interval === null || interval === undefined) {
636
+ throw new Error('Required parameter interval was null or undefined when calling getCampaignInsights.');
637
+ }
638
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
639
+ if (startDate !== undefined && startDate !== null) {
640
+ queryParameters = queryParameters.set('startDate', startDate);
641
+ }
642
+ if (endDate !== undefined && endDate !== null) {
643
+ queryParameters = queryParameters.set('endDate', endDate);
644
+ }
645
+ if (sourcePlatform !== undefined && sourcePlatform !== null) {
646
+ queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
647
+ }
648
+ if (interval !== undefined && interval !== null) {
649
+ queryParameters = queryParameters.set('interval', interval);
650
+ }
651
+ if (requireMmpReport !== undefined && requireMmpReport !== null) {
652
+ queryParameters = queryParameters.set('requireMmpReport', requireMmpReport);
653
+ }
654
+ let headers = this.defaultHeaders;
655
+ // to determine the Accept header
656
+ let httpHeaderAccepts = [
657
+ '*/*'
658
+ ];
659
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
660
+ if (httpHeaderAcceptSelected != undefined) {
661
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
662
+ }
663
+ // to determine the Content-Type header
664
+ const consumes = [];
665
+ return this.httpClient.request('get', `${this.basePath}/api/campaign-insights`, {
666
+ params: queryParameters,
667
+ withCredentials: this.configuration.withCredentials,
668
+ headers: headers,
669
+ observe: observe,
670
+ reportProgress: reportProgress
671
+ });
672
+ }
673
+ }
674
+ InsightsControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
675
+ InsightsControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService });
676
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, decorators: [{
677
+ type: Injectable
678
+ }], ctorParameters: function () {
679
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
680
+ type: Optional
681
+ }, {
682
+ type: Inject,
683
+ args: [BASE_PATH]
684
+ }] }, { type: Configuration, decorators: [{
685
+ type: Optional
686
+ }] }];
640
687
  } });
641
688
 
642
- /**
643
- * Intellibid API
644
- * API documentation for the Intellibid platform
645
- *
646
- * OpenAPI spec version: 1.0
647
- *
648
- *
649
- * NOTE: This class is auto generated by the swagger code generator program.
650
- * https://github.com/swagger-api/swagger-codegen.git
651
- * Do not edit the class manually.
652
- */ /* tslint:disable:no-unused-variable member-ordering */
653
- class OsMasterControllerService {
654
- constructor(httpClient, basePath, configuration) {
655
- this.httpClient = httpClient;
656
- this.basePath = 'http://dev1-intellibid-svc.revx.io';
657
- this.defaultHeaders = new HttpHeaders();
658
- this.configuration = new Configuration();
659
- if (basePath) {
660
- this.basePath = basePath;
661
- }
662
- if (configuration) {
663
- this.configuration = configuration;
664
- this.basePath = basePath || configuration.basePath || this.basePath;
665
- }
666
- }
667
- /**
668
- * @param consumes string[] mime-types
669
- * @return true: consumes contains 'multipart/form-data', false: otherwise
670
- */
671
- canConsumeForm(consumes) {
672
- const form = 'multipart/form-data';
673
- for (const consume of consumes) {
674
- if (form === consume) {
675
- return true;
676
- }
677
- }
678
- return false;
679
- }
680
- getAllActiveOS(observe = 'body', reportProgress = false) {
681
- let headers = this.defaultHeaders;
682
- // to determine the Accept header
683
- let httpHeaderAccepts = [
684
- '*/*'
685
- ];
686
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
687
- if (httpHeaderAcceptSelected != undefined) {
688
- headers = headers.set('Accept', httpHeaderAcceptSelected);
689
- }
690
- // to determine the Content-Type header
691
- const consumes = [];
692
- return this.httpClient.request('get', `${this.basePath}/api/os`, {
693
- withCredentials: this.configuration.withCredentials,
694
- headers: headers,
695
- observe: observe,
696
- reportProgress: reportProgress
697
- });
698
- }
699
- }
700
- OsMasterControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OsMasterControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
701
- OsMasterControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OsMasterControllerService });
702
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: OsMasterControllerService, decorators: [{
703
- type: Injectable
704
- }], ctorParameters: function () {
705
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
706
- type: Optional
707
- }, {
708
- type: Inject,
709
- args: [BASE_PATH]
710
- }] }, { type: Configuration, decorators: [{
711
- type: Optional
712
- }] }];
689
+ /**
690
+ * Intellibid API
691
+ * API documentation for the Intellibid platform
692
+ *
693
+ * OpenAPI spec version: 1.0
694
+ *
695
+ *
696
+ * NOTE: This class is auto generated by the swagger code generator program.
697
+ * https://github.com/swagger-api/swagger-codegen.git
698
+ * Do not edit the class manually.
699
+ */ /* tslint:disable:no-unused-variable member-ordering */
700
+ class LookupDataControllerService {
701
+ constructor(httpClient, basePath, configuration) {
702
+ this.httpClient = httpClient;
703
+ this.basePath = 'http://dev1-intellibid-svc.revx.io';
704
+ this.defaultHeaders = new HttpHeaders();
705
+ this.configuration = new Configuration();
706
+ if (basePath) {
707
+ this.basePath = basePath;
708
+ }
709
+ if (configuration) {
710
+ this.configuration = configuration;
711
+ this.basePath = basePath || configuration.basePath || this.basePath;
712
+ }
713
+ }
714
+ /**
715
+ * @param consumes string[] mime-types
716
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
717
+ */
718
+ canConsumeForm(consumes) {
719
+ const form = 'multipart/form-data';
720
+ for (const consume of consumes) {
721
+ if (form === consume) {
722
+ return true;
723
+ }
724
+ }
725
+ return false;
726
+ }
727
+ getAllActiveOS(observe = 'body', reportProgress = false) {
728
+ let headers = this.defaultHeaders;
729
+ // to determine the Accept header
730
+ let httpHeaderAccepts = [
731
+ '*/*'
732
+ ];
733
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
734
+ if (httpHeaderAcceptSelected != undefined) {
735
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
736
+ }
737
+ // to determine the Content-Type header
738
+ const consumes = [];
739
+ return this.httpClient.request('get', `${this.basePath}/api/lookups/os`, {
740
+ withCredentials: this.configuration.withCredentials,
741
+ headers: headers,
742
+ observe: observe,
743
+ reportProgress: reportProgress
744
+ });
745
+ }
746
+ getAllActivePlatforms(observe = 'body', reportProgress = false) {
747
+ let headers = this.defaultHeaders;
748
+ // to determine the Accept header
749
+ let httpHeaderAccepts = [
750
+ '*/*'
751
+ ];
752
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
753
+ if (httpHeaderAcceptSelected != undefined) {
754
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
755
+ }
756
+ // to determine the Content-Type header
757
+ const consumes = [];
758
+ return this.httpClient.request('get', `${this.basePath}/api/lookups/platforms`, {
759
+ withCredentials: this.configuration.withCredentials,
760
+ headers: headers,
761
+ observe: observe,
762
+ reportProgress: reportProgress
763
+ });
764
+ }
765
+ getAllBusinessZones(observe = 'body', reportProgress = false) {
766
+ let headers = this.defaultHeaders;
767
+ // to determine the Accept header
768
+ let httpHeaderAccepts = [
769
+ '*/*'
770
+ ];
771
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
772
+ if (httpHeaderAcceptSelected != undefined) {
773
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
774
+ }
775
+ // to determine the Content-Type header
776
+ const consumes = [];
777
+ return this.httpClient.request('get', `${this.basePath}/api/lookups/business-zones`, {
778
+ withCredentials: this.configuration.withCredentials,
779
+ headers: headers,
780
+ observe: observe,
781
+ reportProgress: reportProgress
782
+ });
783
+ }
784
+ getAllCountries(observe = 'body', reportProgress = false) {
785
+ let headers = this.defaultHeaders;
786
+ // to determine the Accept header
787
+ let httpHeaderAccepts = [
788
+ '*/*'
789
+ ];
790
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
791
+ if (httpHeaderAcceptSelected != undefined) {
792
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
793
+ }
794
+ // to determine the Content-Type header
795
+ const consumes = [];
796
+ return this.httpClient.request('get', `${this.basePath}/api/lookups/countries`, {
797
+ withCredentials: this.configuration.withCredentials,
798
+ headers: headers,
799
+ observe: observe,
800
+ reportProgress: reportProgress
801
+ });
802
+ }
803
+ }
804
+ LookupDataControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
805
+ LookupDataControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService });
806
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService, decorators: [{
807
+ type: Injectable
808
+ }], ctorParameters: function () {
809
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
810
+ type: Optional
811
+ }, {
812
+ type: Inject,
813
+ args: [BASE_PATH]
814
+ }] }, { type: Configuration, decorators: [{
815
+ type: Optional
816
+ }] }];
713
817
  } });
714
818
 
715
- const APIS = [AdvertiserControllerService, CampaignControllerService, InsightsControllerService, OsMasterControllerService];
819
+ const APIS = [AdvertiserControllerService, CampaignControllerService, InsightsControllerService, LookupDataControllerService];
716
820
 
717
- /**
718
- * Intellibid API
719
- * API documentation for the Intellibid platform
720
- *
721
- * OpenAPI spec version: 1.0
722
- *
723
- *
724
- * NOTE: This class is auto generated by the swagger code generator program.
725
- * https://github.com/swagger-api/swagger-codegen.git
726
- * Do not edit the class manually.
727
- */
728
- var CampaignChangeLogResponse;
729
- (function (CampaignChangeLogResponse) {
730
- CampaignChangeLogResponse.EntityChangedEnum = {
731
- STATUS: 'STATUS',
732
- BUDGET: 'BUDGET',
733
- PAYOUTVALUE: 'PAYOUT_VALUE'
734
- };
735
- CampaignChangeLogResponse.StatusEnum = {
736
- SUCCESS: 'SUCCESS',
737
- FAILED: 'FAILED'
738
- };
821
+ /**
822
+ * Intellibid API
823
+ * API documentation for the Intellibid platform
824
+ *
825
+ * OpenAPI spec version: 1.0
826
+ *
827
+ *
828
+ * NOTE: This class is auto generated by the swagger code generator program.
829
+ * https://github.com/swagger-api/swagger-codegen.git
830
+ * Do not edit the class manually.
831
+ */
832
+ var CampaignChangeLogResponse;
833
+ (function (CampaignChangeLogResponse) {
834
+ CampaignChangeLogResponse.EntityChangedEnum = {
835
+ STATUS: 'STATUS',
836
+ BUDGET: 'BUDGET',
837
+ PAYOUTVALUE: 'PAYOUT_VALUE'
838
+ };
839
+ CampaignChangeLogResponse.StatusEnum = {
840
+ SUCCESS: 'SUCCESS',
841
+ FAILED: 'FAILED'
842
+ };
739
843
  })(CampaignChangeLogResponse || (CampaignChangeLogResponse = {}));
740
844
 
741
- /**
742
- * Intellibid API
743
- * API documentation for the Intellibid platform
744
- *
745
- * OpenAPI spec version: 1.0
746
- *
747
- *
748
- * NOTE: This class is auto generated by the swagger code generator program.
749
- * https://github.com/swagger-api/swagger-codegen.git
750
- * Do not edit the class manually.
751
- */
752
- var CampaignInsightRecord;
753
- (function (CampaignInsightRecord) {
754
- CampaignInsightRecord.PayoutTypeEnum = {
755
- DYNAMICMARGIN: 'DYNAMIC_MARGIN',
756
- PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
757
- };
845
+ /**
846
+ * Intellibid API
847
+ * API documentation for the Intellibid platform
848
+ *
849
+ * OpenAPI spec version: 1.0
850
+ *
851
+ *
852
+ * NOTE: This class is auto generated by the swagger code generator program.
853
+ * https://github.com/swagger-api/swagger-codegen.git
854
+ * Do not edit the class manually.
855
+ */
856
+ var CampaignInsightRecord;
857
+ (function (CampaignInsightRecord) {
858
+ CampaignInsightRecord.PayoutTypeEnum = {
859
+ DYNAMICMARGIN: 'DYNAMIC_MARGIN',
860
+ PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
861
+ };
758
862
  })(CampaignInsightRecord || (CampaignInsightRecord = {}));
759
863
 
760
- /**
761
- * Intellibid API
762
- * API documentation for the Intellibid platform
763
- *
764
- * OpenAPI spec version: 1.0
765
- *
766
- *
767
- * NOTE: This class is auto generated by the swagger code generator program.
768
- * https://github.com/swagger-api/swagger-codegen.git
769
- * Do not edit the class manually.
770
- */
771
- var CampaignRequest;
772
- (function (CampaignRequest) {
773
- CampaignRequest.SourcePlatformEnum = {
774
- META: 'META',
775
- TIKTOK: 'TIKTOK',
776
- GOOGLE: 'GOOGLE',
777
- SNAPCHAT: 'SNAPCHAT'
778
- };
779
- CampaignRequest.PayoutTypeEnum = {
780
- DYNAMICMARGIN: 'DYNAMIC_MARGIN',
781
- PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
782
- };
783
- CampaignRequest.GoalEnum = {
784
- COSTPERRESULT: 'COST_PER_RESULT',
785
- ROAS: 'ROAS'
786
- };
787
- CampaignRequest.MmpAttributionSettingEnum = {
788
- CTA: 'CTA',
789
- CTAANDVTA: 'CTA_AND_VTA'
790
- };
864
+ /**
865
+ * Intellibid API
866
+ * API documentation for the Intellibid platform
867
+ *
868
+ * OpenAPI spec version: 1.0
869
+ *
870
+ *
871
+ * NOTE: This class is auto generated by the swagger code generator program.
872
+ * https://github.com/swagger-api/swagger-codegen.git
873
+ * Do not edit the class manually.
874
+ */
875
+ var CampaignRequest;
876
+ (function (CampaignRequest) {
877
+ CampaignRequest.SourcePlatformEnum = {
878
+ META: 'META',
879
+ TIKTOK: 'TIKTOK',
880
+ GOOGLE: 'GOOGLE',
881
+ SNAPCHAT: 'SNAPCHAT'
882
+ };
883
+ CampaignRequest.PayoutTypeEnum = {
884
+ DYNAMICMARGIN: 'DYNAMIC_MARGIN',
885
+ PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
886
+ };
887
+ CampaignRequest.GoalEnum = {
888
+ COSTPERRESULT: 'COST_PER_RESULT',
889
+ ROAS: 'ROAS'
890
+ };
891
+ CampaignRequest.MmpAttributionSettingEnum = {
892
+ CTA: 'CTA',
893
+ CTAANDVTA: 'CTA_AND_VTA'
894
+ };
791
895
  })(CampaignRequest || (CampaignRequest = {}));
792
896
 
793
- var CampaignResponse;
794
- (function (CampaignResponse) {
795
- CampaignResponse.SourcePlatformEnum = {
796
- META: 'META',
797
- TIKTOK: 'TIKTOK',
798
- GOOGLE: 'GOOGLE',
799
- SNAPCHAT: 'SNAPCHAT'
800
- };
801
- CampaignResponse.PayoutTypeEnum = {
802
- DYNAMICMARGIN: 'DYNAMIC_MARGIN',
803
- PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
804
- };
805
- CampaignResponse.GoalEnum = {
806
- COSTPERRESULT: 'COST_PER_RESULT',
807
- ROAS: 'ROAS'
808
- };
809
- CampaignResponse.MmpAttributionSettingEnum = {
810
- CTA: 'CTA',
811
- CTAANDVTA: 'CTA_AND_VTA'
812
- };
897
+ var CampaignResponse;
898
+ (function (CampaignResponse) {
899
+ CampaignResponse.SourcePlatformEnum = {
900
+ META: 'META',
901
+ TIKTOK: 'TIKTOK',
902
+ GOOGLE: 'GOOGLE',
903
+ SNAPCHAT: 'SNAPCHAT'
904
+ };
905
+ CampaignResponse.PayoutTypeEnum = {
906
+ DYNAMICMARGIN: 'DYNAMIC_MARGIN',
907
+ PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
908
+ };
909
+ CampaignResponse.GoalEnum = {
910
+ COSTPERRESULT: 'COST_PER_RESULT',
911
+ ROAS: 'ROAS'
912
+ };
913
+ CampaignResponse.MmpAttributionSettingEnum = {
914
+ CTA: 'CTA',
915
+ CTAANDVTA: 'CTA_AND_VTA'
916
+ };
813
917
  })(CampaignResponse || (CampaignResponse = {}));
814
918
 
815
- /**
816
- * Intellibid API
817
- * API documentation for the Intellibid platform
818
- *
819
- * OpenAPI spec version: 1.0
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
- */
826
- var ScheduleUpdateRequest;
827
- (function (ScheduleUpdateRequest) {
828
- ScheduleUpdateRequest.RequestTypeEnum = {
829
- BUDGET: 'BUDGET',
830
- PAYOUTVALUE: 'PAYOUT_VALUE'
831
- };
919
+ /**
920
+ * Intellibid API
921
+ * API documentation for the Intellibid platform
922
+ *
923
+ * OpenAPI spec version: 1.0
924
+ *
925
+ *
926
+ * NOTE: This class is auto generated by the swagger code generator program.
927
+ * https://github.com/swagger-api/swagger-codegen.git
928
+ * Do not edit the class manually.
929
+ */
930
+ var ScheduleUpdateRequest;
931
+ (function (ScheduleUpdateRequest) {
932
+ ScheduleUpdateRequest.RequestTypeEnum = {
933
+ BUDGET: 'BUDGET',
934
+ PAYOUTVALUE: 'PAYOUT_VALUE'
935
+ };
832
936
  })(ScheduleUpdateRequest || (ScheduleUpdateRequest = {}));
833
937
 
834
- class ApiModule {
835
- static forRoot(configurationFactory) {
836
- return {
837
- ngModule: ApiModule,
838
- providers: [{ provide: Configuration, useFactory: configurationFactory }]
839
- };
840
- }
841
- constructor(parentModule, http) {
842
- if (parentModule) {
843
- throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
844
- }
845
- if (!http) {
846
- throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
847
- 'See also https://github.com/angular/angular/issues/20575');
848
- }
849
- }
850
- }
851
- 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 });
852
- ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
853
- ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
854
- AdvertiserControllerService,
855
- CampaignControllerService,
856
- InsightsControllerService,
857
- OsMasterControllerService
858
- ] });
859
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
860
- type: NgModule,
861
- args: [{
862
- imports: [],
863
- declarations: [],
864
- exports: [],
865
- providers: [
866
- AdvertiserControllerService,
867
- CampaignControllerService,
868
- InsightsControllerService,
869
- OsMasterControllerService
870
- ]
871
- }]
872
- }], ctorParameters: function () {
873
- return [{ type: ApiModule, decorators: [{
874
- type: Optional
875
- }, {
876
- type: SkipSelf
877
- }] }, { type: i1.HttpClient, decorators: [{
878
- type: Optional
879
- }] }];
938
+ class ApiModule {
939
+ static forRoot(configurationFactory) {
940
+ return {
941
+ ngModule: ApiModule,
942
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
943
+ };
944
+ }
945
+ constructor(parentModule, http) {
946
+ if (parentModule) {
947
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
948
+ }
949
+ if (!http) {
950
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
951
+ 'See also https://github.com/angular/angular/issues/20575');
952
+ }
953
+ }
954
+ }
955
+ 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 });
956
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
957
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
958
+ AdvertiserControllerService,
959
+ CampaignControllerService,
960
+ InsightsControllerService,
961
+ LookupDataControllerService
962
+ ] });
963
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
964
+ type: NgModule,
965
+ args: [{
966
+ imports: [],
967
+ declarations: [],
968
+ exports: [],
969
+ providers: [
970
+ AdvertiserControllerService,
971
+ CampaignControllerService,
972
+ InsightsControllerService,
973
+ LookupDataControllerService
974
+ ]
975
+ }]
976
+ }], ctorParameters: function () {
977
+ return [{ type: ApiModule, decorators: [{
978
+ type: Optional
979
+ }, {
980
+ type: SkipSelf
981
+ }] }, { type: i1.HttpClient, decorators: [{
982
+ type: Optional
983
+ }] }];
880
984
  } });
881
985
 
882
- /**
883
- * Generated bundle index. Do not edit.
986
+ /**
987
+ * Generated bundle index. Do not edit.
884
988
  */
885
989
 
886
- export { APIS, AdvertiserControllerService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CampaignChangeLogResponse, CampaignControllerService, CampaignInsightRecord, CampaignRequest, CampaignResponse, Configuration, InsightsControllerService, OsMasterControllerService, ScheduleUpdateRequest };
990
+ export { APIS, AdvertiserControllerService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CampaignChangeLogResponse, CampaignControllerService, CampaignInsightRecord, CampaignRequest, CampaignResponse, Configuration, InsightsControllerService, LookupDataControllerService, ScheduleUpdateRequest };
887
991
  //# sourceMappingURL=revxui-intellibid-client-ts.mjs.map