@revxui/intellibid-client-ts 1.0.67 → 1.0.70

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 (103) hide show
  1. package/README.md +2 -2
  2. package/api/advertiserController.service.d.ts +137 -124
  3. package/api/api.d.ts +11 -11
  4. package/api/audienceController.service.d.ts +128 -128
  5. package/api/campaignController.service.d.ts +110 -110
  6. package/api/insightsController.service.d.ts +33 -33
  7. package/api/lookupDataController.service.d.ts +58 -58
  8. package/api.module.d.ts +11 -11
  9. package/configuration.d.ts +48 -48
  10. package/encoder.d.ts +10 -10
  11. package/esm2020/api/advertiserController.service.mjs +328 -300
  12. package/esm2020/api/api.mjs +11 -11
  13. package/esm2020/api/audienceController.service.mjs +326 -326
  14. package/esm2020/api/campaignController.service.mjs +296 -296
  15. package/esm2020/api/insightsController.service.mjs +107 -107
  16. package/esm2020/api/lookupDataController.service.mjs +134 -134
  17. package/esm2020/api.module.mjs +56 -56
  18. package/esm2020/configuration.mjs +58 -58
  19. package/esm2020/encoder.mjs +16 -16
  20. package/esm2020/index.mjs +5 -5
  21. package/esm2020/model/adAccountResponse.mjs +25 -25
  22. package/esm2020/model/advertiserMmpConversionEventResponse.mjs +12 -12
  23. package/esm2020/model/advertiserResponse.mjs +12 -12
  24. package/esm2020/model/advertiserSearchResponse.mjs +12 -12
  25. package/esm2020/model/audienceResponse.mjs +16 -16
  26. package/esm2020/model/blockedEventResponse.mjs +12 -12
  27. package/esm2020/model/businessZoneResponse.mjs +12 -12
  28. package/esm2020/model/campaignChangeLogResponse.mjs +23 -23
  29. package/esm2020/model/campaignInsightRecord.mjs +18 -18
  30. package/esm2020/model/campaignInsightsResponse.mjs +1 -1
  31. package/esm2020/model/campaignRequest.mjs +34 -34
  32. package/esm2020/model/campaignResponse.mjs +26 -26
  33. package/esm2020/model/campaignSearchResponse.mjs +12 -12
  34. package/esm2020/model/childAudience.mjs +37 -37
  35. package/esm2020/model/countryResponse.mjs +12 -12
  36. package/esm2020/model/createBlockedLiveAudienceRequest.mjs +21 -21
  37. package/esm2020/model/createBucketizedCustomAudienceRequest.mjs +36 -36
  38. package/esm2020/model/createBucketizedLiveAudienceRequest.mjs +25 -25
  39. package/esm2020/model/createDsCustomQueryAudienceRequest.mjs +32 -32
  40. package/esm2020/model/goalEventOptionDTO.mjs +13 -0
  41. package/esm2020/model/goalResponse.mjs +12 -12
  42. package/esm2020/model/models.mjs +37 -35
  43. package/esm2020/model/oSResponse.mjs +12 -12
  44. package/esm2020/model/pageAdvertiserResponse.mjs +1 -1
  45. package/esm2020/model/pageCampaignChangeLogResponse.mjs +1 -1
  46. package/esm2020/model/pageCampaignResponse.mjs +1 -1
  47. package/esm2020/model/pageableObject.mjs +1 -1
  48. package/esm2020/model/platformResponse.mjs +12 -12
  49. package/esm2020/model/productSetRequest.mjs +21 -21
  50. package/esm2020/model/productSetResponse.mjs +21 -21
  51. package/esm2020/model/scheduleUpdateRequest.mjs +18 -18
  52. package/esm2020/model/scheduledUpdates.mjs +12 -12
  53. package/esm2020/model/sortObject.mjs +12 -12
  54. package/esm2020/model/supportedGoalEventsResponseDTO.mjs +2 -0
  55. package/esm2020/model/updateAudienceNameRequest.mjs +21 -21
  56. package/esm2020/model/updateDsCustomQuerySqlRequest.mjs +21 -21
  57. package/esm2020/model/validateDsQueryRequest.mjs +12 -12
  58. package/esm2020/revxui-intellibid-client-ts.mjs +4 -4
  59. package/esm2020/variables.mjs +8 -8
  60. package/fesm2015/revxui-intellibid-client-ts.mjs +1661 -1633
  61. package/fesm2015/revxui-intellibid-client-ts.mjs.map +1 -1
  62. package/fesm2020/revxui-intellibid-client-ts.mjs +1791 -1751
  63. package/fesm2020/revxui-intellibid-client-ts.mjs.map +1 -1
  64. package/index.d.ts +5 -5
  65. package/model/adAccountResponse.d.ts +32 -32
  66. package/model/advertiserMmpConversionEventResponse.d.ts +15 -15
  67. package/model/advertiserResponse.d.ts +32 -32
  68. package/model/advertiserSearchResponse.d.ts +16 -16
  69. package/model/audienceResponse.d.ts +45 -45
  70. package/model/blockedEventResponse.d.ts +15 -15
  71. package/model/businessZoneResponse.d.ts +17 -17
  72. package/model/campaignChangeLogResponse.d.ts +34 -34
  73. package/model/campaignInsightRecord.d.ts +56 -56
  74. package/model/campaignInsightsResponse.d.ts +16 -16
  75. package/model/campaignRequest.d.ts +55 -54
  76. package/model/campaignResponse.d.ts +75 -75
  77. package/model/campaignSearchResponse.d.ts +15 -15
  78. package/model/childAudience.d.ts +69 -69
  79. package/model/countryResponse.d.ts +18 -18
  80. package/model/createBlockedLiveAudienceRequest.d.ts +27 -27
  81. package/model/createBucketizedCustomAudienceRequest.d.ts +56 -56
  82. package/model/createBucketizedLiveAudienceRequest.d.ts +40 -40
  83. package/model/createDsCustomQueryAudienceRequest.d.ts +48 -48
  84. package/model/goalEventOptionDTO.d.ts +14 -0
  85. package/model/goalResponse.d.ts +15 -15
  86. package/model/models.d.ts +36 -34
  87. package/model/oSResponse.d.ts +15 -15
  88. package/model/pageAdvertiserResponse.d.ts +27 -27
  89. package/model/pageCampaignChangeLogResponse.d.ts +27 -27
  90. package/model/pageCampaignResponse.d.ts +27 -27
  91. package/model/pageableObject.d.ts +20 -20
  92. package/model/platformResponse.d.ts +15 -15
  93. package/model/productSetRequest.d.ts +27 -27
  94. package/model/productSetResponse.d.ts +27 -27
  95. package/model/scheduleUpdateRequest.d.ts +22 -22
  96. package/model/scheduledUpdates.d.ts +15 -15
  97. package/model/sortObject.d.ts +18 -18
  98. package/model/supportedGoalEventsResponseDTO.d.ts +19 -0
  99. package/model/updateAudienceNameRequest.d.ts +26 -26
  100. package/model/updateDsCustomQuerySqlRequest.d.ts +26 -26
  101. package/model/validateDsQueryRequest.d.ts +14 -14
  102. package/package.json +1 -1
  103. package/variables.d.ts +8 -8
@@ -3,1691 +3,1719 @@ 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
- addProductSet(body, id, observe = 'body', reportProgress = false) {
128
- if (body === null || body === undefined) {
129
- throw new Error('Required parameter body was null or undefined when calling addProductSet.');
130
- }
131
- if (id === null || id === undefined) {
132
- throw new Error('Required parameter id was null or undefined when calling addProductSet.');
133
- }
134
- let headers = this.defaultHeaders;
135
- // to determine the Accept header
136
- let httpHeaderAccepts = [
137
- '*/*'
138
- ];
139
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
140
- if (httpHeaderAcceptSelected != undefined) {
141
- headers = headers.set('Accept', httpHeaderAcceptSelected);
142
- }
143
- // to determine the Content-Type header
144
- const consumes = [
145
- 'application/json'
146
- ];
147
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
148
- if (httpContentTypeSelected != undefined) {
149
- headers = headers.set('Content-Type', httpContentTypeSelected);
150
- }
151
- return this.httpClient.request('post', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/product-sets`, {
152
- body: body,
153
- withCredentials: this.configuration.withCredentials,
154
- headers: headers,
155
- observe: observe,
156
- reportProgress: reportProgress
157
- });
158
- }
159
- getAdAccounts(id, observe = 'body', reportProgress = false) {
160
- if (id === null || id === undefined) {
161
- throw new Error('Required parameter id was null or undefined when calling getAdAccounts.');
162
- }
163
- let headers = this.defaultHeaders;
164
- // to determine the Accept header
165
- let httpHeaderAccepts = [
166
- '*/*'
167
- ];
168
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
169
- if (httpHeaderAcceptSelected != undefined) {
170
- headers = headers.set('Accept', httpHeaderAcceptSelected);
171
- }
172
- // to determine the Content-Type header
173
- const consumes = [];
174
- return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/ad-accounts`, {
175
- withCredentials: this.configuration.withCredentials,
176
- headers: headers,
177
- observe: observe,
178
- reportProgress: reportProgress
179
- });
180
- }
181
- getAdvertiser(id, observe = 'body', reportProgress = false) {
182
- if (id === null || id === undefined) {
183
- throw new Error('Required parameter id was null or undefined when calling getAdvertiser.');
184
- }
185
- let headers = this.defaultHeaders;
186
- // to determine the Accept header
187
- let httpHeaderAccepts = [
188
- '*/*'
189
- ];
190
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
191
- if (httpHeaderAcceptSelected != undefined) {
192
- headers = headers.set('Accept', httpHeaderAcceptSelected);
193
- }
194
- // to determine the Content-Type header
195
- const consumes = [];
196
- return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}`, {
197
- withCredentials: this.configuration.withCredentials,
198
- headers: headers,
199
- observe: observe,
200
- reportProgress: reportProgress
201
- });
202
- }
203
- getAllAdvertisers(name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
204
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
205
- if (name !== undefined && name !== null) {
206
- queryParameters = queryParameters.set('name', name);
207
- }
208
- if (isActive !== undefined && isActive !== null) {
209
- queryParameters = queryParameters.set('isActive', isActive);
210
- }
211
- if (page !== undefined && page !== null) {
212
- queryParameters = queryParameters.set('page', page);
213
- }
214
- if (size !== undefined && size !== null) {
215
- queryParameters = queryParameters.set('size', size);
216
- }
217
- if (sort) {
218
- sort.forEach((element) => {
219
- queryParameters = queryParameters.append('sort', element);
220
- });
221
- }
222
- let headers = this.defaultHeaders;
223
- // to determine the Accept header
224
- let httpHeaderAccepts = [
225
- '*/*'
226
- ];
227
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
228
- if (httpHeaderAcceptSelected != undefined) {
229
- headers = headers.set('Accept', httpHeaderAcceptSelected);
230
- }
231
- // to determine the Content-Type header
232
- const consumes = [];
233
- return this.httpClient.request('get', `${this.basePath}/api/advertiser`, {
234
- params: queryParameters,
235
- withCredentials: this.configuration.withCredentials,
236
- headers: headers,
237
- observe: observe,
238
- reportProgress: reportProgress
239
- });
240
- }
241
- getBlockedEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
242
- if (id === null || id === undefined) {
243
- throw new Error('Required parameter id was null or undefined when calling getBlockedEventsByAdvertiser.');
244
- }
245
- let headers = this.defaultHeaders;
246
- // to determine the Accept header
247
- let httpHeaderAccepts = [
248
- '*/*'
249
- ];
250
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
251
- if (httpHeaderAcceptSelected != undefined) {
252
- headers = headers.set('Accept', httpHeaderAcceptSelected);
253
- }
254
- // to determine the Content-Type header
255
- const consumes = [];
256
- return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/blocked-events`, {
257
- withCredentials: this.configuration.withCredentials,
258
- headers: headers,
259
- observe: observe,
260
- reportProgress: reportProgress
261
- });
262
- }
263
- getGoalsByAdvertiser(id, observe = 'body', reportProgress = false) {
264
- if (id === null || id === undefined) {
265
- throw new Error('Required parameter id was null or undefined when calling getGoalsByAdvertiser.');
266
- }
267
- let headers = this.defaultHeaders;
268
- // to determine the Accept header
269
- let httpHeaderAccepts = [
270
- '*/*'
271
- ];
272
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
273
- if (httpHeaderAcceptSelected != undefined) {
274
- headers = headers.set('Accept', httpHeaderAcceptSelected);
275
- }
276
- // to determine the Content-Type header
277
- const consumes = [];
278
- return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/goals`, {
279
- withCredentials: this.configuration.withCredentials,
280
- headers: headers,
281
- observe: observe,
282
- reportProgress: reportProgress
283
- });
284
- }
285
- getMMPConversionEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
286
- if (id === null || id === undefined) {
287
- throw new Error('Required parameter id was null or undefined when calling getMMPConversionEventsByAdvertiser.');
288
- }
289
- let headers = this.defaultHeaders;
290
- // to determine the Accept header
291
- let httpHeaderAccepts = [
292
- '*/*'
293
- ];
294
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
295
- if (httpHeaderAcceptSelected != undefined) {
296
- headers = headers.set('Accept', httpHeaderAcceptSelected);
297
- }
298
- // to determine the Content-Type header
299
- const consumes = [];
300
- return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/mmp-conversion-events`, {
301
- withCredentials: this.configuration.withCredentials,
302
- headers: headers,
303
- observe: observe,
304
- reportProgress: reportProgress
305
- });
306
- }
307
- getProductSets(id, sourcePlatform, adAccountId, observe = 'body', reportProgress = false) {
308
- if (id === null || id === undefined) {
309
- throw new Error('Required parameter id was null or undefined when calling getProductSets.');
310
- }
311
- if (sourcePlatform === null || sourcePlatform === undefined) {
312
- throw new Error('Required parameter sourcePlatform was null or undefined when calling getProductSets.');
313
- }
314
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
315
- if (sourcePlatform !== undefined && sourcePlatform !== null) {
316
- queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
317
- }
318
- if (adAccountId !== undefined && adAccountId !== null) {
319
- queryParameters = queryParameters.set('adAccountId', adAccountId);
320
- }
321
- let headers = this.defaultHeaders;
322
- // to determine the Accept header
323
- let httpHeaderAccepts = [
324
- '*/*'
325
- ];
326
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
327
- if (httpHeaderAcceptSelected != undefined) {
328
- headers = headers.set('Accept', httpHeaderAcceptSelected);
329
- }
330
- // to determine the Content-Type header
331
- const consumes = [];
332
- return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/product-sets`, {
333
- params: queryParameters,
334
- withCredentials: this.configuration.withCredentials,
335
- headers: headers,
336
- observe: observe,
337
- reportProgress: reportProgress
338
- });
339
- }
340
- searchAdvertisers(q, observe = 'body', reportProgress = false) {
341
- if (q === null || q === undefined) {
342
- throw new Error('Required parameter q was null or undefined when calling searchAdvertisers.');
343
- }
344
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
345
- if (q !== undefined && q !== null) {
346
- queryParameters = queryParameters.set('q', q);
347
- }
348
- let headers = this.defaultHeaders;
349
- // to determine the Accept header
350
- let httpHeaderAccepts = [
351
- '*/*'
352
- ];
353
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
354
- if (httpHeaderAcceptSelected != undefined) {
355
- headers = headers.set('Accept', httpHeaderAcceptSelected);
356
- }
357
- // to determine the Content-Type header
358
- const consumes = [];
359
- return this.httpClient.request('get', `${this.basePath}/api/advertiser/search`, {
360
- params: queryParameters,
361
- withCredentials: this.configuration.withCredentials,
362
- headers: headers,
363
- observe: observe,
364
- reportProgress: reportProgress
365
- });
366
- }
367
- }
368
- 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 });
369
- AdvertiserControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService });
370
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService, decorators: [{
371
- type: Injectable
372
- }], ctorParameters: function () {
373
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
374
- type: Optional
375
- }, {
376
- type: Inject,
377
- args: [BASE_PATH]
378
- }] }, { type: Configuration, decorators: [{
379
- type: Optional
380
- }] }];
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
+ addProductSet(body, id, observe = 'body', reportProgress = false) {
128
+ if (body === null || body === undefined) {
129
+ throw new Error('Required parameter body was null or undefined when calling addProductSet.');
130
+ }
131
+ if (id === null || id === undefined) {
132
+ throw new Error('Required parameter id was null or undefined when calling addProductSet.');
133
+ }
134
+ let headers = this.defaultHeaders;
135
+ // to determine the Accept header
136
+ let httpHeaderAccepts = [
137
+ '*/*'
138
+ ];
139
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
140
+ if (httpHeaderAcceptSelected != undefined) {
141
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
142
+ }
143
+ // to determine the Content-Type header
144
+ const consumes = [
145
+ 'application/json'
146
+ ];
147
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
148
+ if (httpContentTypeSelected != undefined) {
149
+ headers = headers.set('Content-Type', httpContentTypeSelected);
150
+ }
151
+ return this.httpClient.request('post', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/product-sets`, {
152
+ body: body,
153
+ withCredentials: this.configuration.withCredentials,
154
+ headers: headers,
155
+ observe: observe,
156
+ reportProgress: reportProgress
157
+ });
158
+ }
159
+ getAdAccounts(id, observe = 'body', reportProgress = false) {
160
+ if (id === null || id === undefined) {
161
+ throw new Error('Required parameter id was null or undefined when calling getAdAccounts.');
162
+ }
163
+ let headers = this.defaultHeaders;
164
+ // to determine the Accept header
165
+ let httpHeaderAccepts = [
166
+ '*/*'
167
+ ];
168
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
169
+ if (httpHeaderAcceptSelected != undefined) {
170
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
171
+ }
172
+ // to determine the Content-Type header
173
+ const consumes = [];
174
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/ad-accounts`, {
175
+ withCredentials: this.configuration.withCredentials,
176
+ headers: headers,
177
+ observe: observe,
178
+ reportProgress: reportProgress
179
+ });
180
+ }
181
+ getAdvertiser(id, observe = 'body', reportProgress = false) {
182
+ if (id === null || id === undefined) {
183
+ throw new Error('Required parameter id was null or undefined when calling getAdvertiser.');
184
+ }
185
+ let headers = this.defaultHeaders;
186
+ // to determine the Accept header
187
+ let httpHeaderAccepts = [
188
+ '*/*'
189
+ ];
190
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
191
+ if (httpHeaderAcceptSelected != undefined) {
192
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
193
+ }
194
+ // to determine the Content-Type header
195
+ const consumes = [];
196
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}`, {
197
+ withCredentials: this.configuration.withCredentials,
198
+ headers: headers,
199
+ observe: observe,
200
+ reportProgress: reportProgress
201
+ });
202
+ }
203
+ getAllAdvertisers(name, isActive, page, size, sort, observe = 'body', reportProgress = false) {
204
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
205
+ if (name !== undefined && name !== null) {
206
+ queryParameters = queryParameters.set('name', name);
207
+ }
208
+ if (isActive !== undefined && isActive !== null) {
209
+ queryParameters = queryParameters.set('isActive', isActive);
210
+ }
211
+ if (page !== undefined && page !== null) {
212
+ queryParameters = queryParameters.set('page', page);
213
+ }
214
+ if (size !== undefined && size !== null) {
215
+ queryParameters = queryParameters.set('size', size);
216
+ }
217
+ if (sort) {
218
+ sort.forEach((element) => {
219
+ queryParameters = queryParameters.append('sort', element);
220
+ });
221
+ }
222
+ let headers = this.defaultHeaders;
223
+ // to determine the Accept header
224
+ let httpHeaderAccepts = [
225
+ '*/*'
226
+ ];
227
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
228
+ if (httpHeaderAcceptSelected != undefined) {
229
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
230
+ }
231
+ // to determine the Content-Type header
232
+ const consumes = [];
233
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser`, {
234
+ params: queryParameters,
235
+ withCredentials: this.configuration.withCredentials,
236
+ headers: headers,
237
+ observe: observe,
238
+ reportProgress: reportProgress
239
+ });
240
+ }
241
+ getBlockedEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
242
+ if (id === null || id === undefined) {
243
+ throw new Error('Required parameter id was null or undefined when calling getBlockedEventsByAdvertiser.');
244
+ }
245
+ let headers = this.defaultHeaders;
246
+ // to determine the Accept header
247
+ let httpHeaderAccepts = [
248
+ '*/*'
249
+ ];
250
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
251
+ if (httpHeaderAcceptSelected != undefined) {
252
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
253
+ }
254
+ // to determine the Content-Type header
255
+ const consumes = [];
256
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/blocked-events`, {
257
+ withCredentials: this.configuration.withCredentials,
258
+ headers: headers,
259
+ observe: observe,
260
+ reportProgress: reportProgress
261
+ });
262
+ }
263
+ getGoalsByAdvertiser(id, observe = 'body', reportProgress = false) {
264
+ if (id === null || id === undefined) {
265
+ throw new Error('Required parameter id was null or undefined when calling getGoalsByAdvertiser.');
266
+ }
267
+ let headers = this.defaultHeaders;
268
+ // to determine the Accept header
269
+ let httpHeaderAccepts = [
270
+ '*/*'
271
+ ];
272
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
273
+ if (httpHeaderAcceptSelected != undefined) {
274
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
275
+ }
276
+ // to determine the Content-Type header
277
+ const consumes = [];
278
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/goals`, {
279
+ withCredentials: this.configuration.withCredentials,
280
+ headers: headers,
281
+ observe: observe,
282
+ reportProgress: reportProgress
283
+ });
284
+ }
285
+ getMMPConversionEventsByAdvertiser(id, observe = 'body', reportProgress = false) {
286
+ if (id === null || id === undefined) {
287
+ throw new Error('Required parameter id was null or undefined when calling getMMPConversionEventsByAdvertiser.');
288
+ }
289
+ let headers = this.defaultHeaders;
290
+ // to determine the Accept header
291
+ let httpHeaderAccepts = [
292
+ '*/*'
293
+ ];
294
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
295
+ if (httpHeaderAcceptSelected != undefined) {
296
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
297
+ }
298
+ // to determine the Content-Type header
299
+ const consumes = [];
300
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/mmp-conversion-events`, {
301
+ withCredentials: this.configuration.withCredentials,
302
+ headers: headers,
303
+ observe: observe,
304
+ reportProgress: reportProgress
305
+ });
306
+ }
307
+ getProductSets(id, sourcePlatform, adAccountId, observe = 'body', reportProgress = false) {
308
+ if (id === null || id === undefined) {
309
+ throw new Error('Required parameter id was null or undefined when calling getProductSets.');
310
+ }
311
+ if (sourcePlatform === null || sourcePlatform === undefined) {
312
+ throw new Error('Required parameter sourcePlatform was null or undefined when calling getProductSets.');
313
+ }
314
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
315
+ if (sourcePlatform !== undefined && sourcePlatform !== null) {
316
+ queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
317
+ }
318
+ if (adAccountId !== undefined && adAccountId !== null) {
319
+ queryParameters = queryParameters.set('adAccountId', adAccountId);
320
+ }
321
+ let headers = this.defaultHeaders;
322
+ // to determine the Accept header
323
+ let httpHeaderAccepts = [
324
+ '*/*'
325
+ ];
326
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
327
+ if (httpHeaderAcceptSelected != undefined) {
328
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
329
+ }
330
+ // to determine the Content-Type header
331
+ const consumes = [];
332
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/${encodeURIComponent(String(id))}/product-sets`, {
333
+ params: queryParameters,
334
+ withCredentials: this.configuration.withCredentials,
335
+ headers: headers,
336
+ observe: observe,
337
+ reportProgress: reportProgress
338
+ });
339
+ }
340
+ getSupportedGoalEvents(advertiserId, platform, adAccountId, observe = 'body', reportProgress = false) {
341
+ if (advertiserId === null || advertiserId === undefined) {
342
+ throw new Error('Required parameter advertiserId was null or undefined when calling getSupportedGoalEvents.');
343
+ }
344
+ if (platform === null || platform === undefined) {
345
+ throw new Error('Required parameter platform was null or undefined when calling getSupportedGoalEvents.');
346
+ }
347
+ if (adAccountId === null || adAccountId === undefined) {
348
+ throw new Error('Required parameter adAccountId was null or undefined when calling getSupportedGoalEvents.');
349
+ }
350
+ let headers = this.defaultHeaders;
351
+ // to determine the Accept header
352
+ let httpHeaderAccepts = [
353
+ '*/*'
354
+ ];
355
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
356
+ if (httpHeaderAcceptSelected != undefined) {
357
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
358
+ }
359
+ // to determine the Content-Type header
360
+ const consumes = [];
361
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/advertisers/${encodeURIComponent(String(advertiserId))}/platforms/${encodeURIComponent(String(platform))}/ad-accounts/${encodeURIComponent(String(adAccountId))}/goal-events`, {
362
+ withCredentials: this.configuration.withCredentials,
363
+ headers: headers,
364
+ observe: observe,
365
+ reportProgress: reportProgress
366
+ });
367
+ }
368
+ searchAdvertisers(q, observe = 'body', reportProgress = false) {
369
+ if (q === null || q === undefined) {
370
+ throw new Error('Required parameter q was null or undefined when calling searchAdvertisers.');
371
+ }
372
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
373
+ if (q !== undefined && q !== null) {
374
+ queryParameters = queryParameters.set('q', q);
375
+ }
376
+ let headers = this.defaultHeaders;
377
+ // to determine the Accept header
378
+ let httpHeaderAccepts = [
379
+ '*/*'
380
+ ];
381
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
382
+ if (httpHeaderAcceptSelected != undefined) {
383
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
384
+ }
385
+ // to determine the Content-Type header
386
+ const consumes = [];
387
+ return this.httpClient.request('get', `${this.basePath}/api/advertiser/search`, {
388
+ params: queryParameters,
389
+ withCredentials: this.configuration.withCredentials,
390
+ headers: headers,
391
+ observe: observe,
392
+ reportProgress: reportProgress
393
+ });
394
+ }
395
+ }
396
+ 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 });
397
+ AdvertiserControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService });
398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdvertiserControllerService, decorators: [{
399
+ type: Injectable
400
+ }], ctorParameters: function () {
401
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
402
+ type: Optional
403
+ }, {
404
+ type: Inject,
405
+ args: [BASE_PATH]
406
+ }] }, { type: Configuration, decorators: [{
407
+ type: Optional
408
+ }] }];
381
409
  } });
382
410
 
383
- /**
384
- * Intellibid API
385
- * API documentation for the Intellibid platform
386
- *
387
- * OpenAPI spec version: 1.0
388
- *
389
- *
390
- * NOTE: This class is auto generated by the swagger code generator program.
391
- * https://github.com/swagger-api/swagger-codegen.git
392
- * Do not edit the class manually.
393
- */ /* tslint:disable:no-unused-variable member-ordering */
394
- class AudienceControllerService {
395
- constructor(httpClient, basePath, configuration) {
396
- this.httpClient = httpClient;
397
- this.basePath = 'http://dev1-intellibid-svc.revx.io';
398
- this.defaultHeaders = new HttpHeaders();
399
- this.configuration = new Configuration();
400
- if (basePath) {
401
- this.basePath = basePath;
402
- }
403
- if (configuration) {
404
- this.configuration = configuration;
405
- this.basePath = basePath || configuration.basePath || this.basePath;
406
- }
407
- }
408
- /**
409
- * @param consumes string[] mime-types
410
- * @return true: consumes contains 'multipart/form-data', false: otherwise
411
- */
412
- canConsumeForm(consumes) {
413
- const form = 'multipart/form-data';
414
- for (const consume of consumes) {
415
- if (form === consume) {
416
- return true;
417
- }
418
- }
419
- return false;
420
- }
421
- createBlockedLiveAudience(body, observe = 'body', reportProgress = false) {
422
- if (body === null || body === undefined) {
423
- throw new Error('Required parameter body was null or undefined when calling createBlockedLiveAudience.');
424
- }
425
- let headers = this.defaultHeaders;
426
- // to determine the Accept header
427
- let httpHeaderAccepts = [
428
- '*/*'
429
- ];
430
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
431
- if (httpHeaderAcceptSelected != undefined) {
432
- headers = headers.set('Accept', httpHeaderAcceptSelected);
433
- }
434
- // to determine the Content-Type header
435
- const consumes = [
436
- 'application/json'
437
- ];
438
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
439
- if (httpContentTypeSelected != undefined) {
440
- headers = headers.set('Content-Type', httpContentTypeSelected);
441
- }
442
- return this.httpClient.request('post', `${this.basePath}/api/audiences/live/blocked`, {
443
- body: body,
444
- withCredentials: this.configuration.withCredentials,
445
- headers: headers,
446
- observe: observe,
447
- reportProgress: reportProgress
448
- });
449
- }
450
- createBucketizedCustom(body, observe = 'body', reportProgress = false) {
451
- if (body === null || body === undefined) {
452
- throw new Error('Required parameter body was null or undefined when calling createBucketizedCustom.');
453
- }
454
- let headers = this.defaultHeaders;
455
- // to determine the Accept header
456
- let httpHeaderAccepts = [
457
- '*/*'
458
- ];
459
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
460
- if (httpHeaderAcceptSelected != undefined) {
461
- headers = headers.set('Accept', httpHeaderAcceptSelected);
462
- }
463
- // to determine the Content-Type header
464
- const consumes = [
465
- 'application/json'
466
- ];
467
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
468
- if (httpContentTypeSelected != undefined) {
469
- headers = headers.set('Content-Type', httpContentTypeSelected);
470
- }
471
- return this.httpClient.request('post', `${this.basePath}/api/audiences/custom/bucketized`, {
472
- body: body,
473
- withCredentials: this.configuration.withCredentials,
474
- headers: headers,
475
- observe: observe,
476
- reportProgress: reportProgress
477
- });
478
- }
479
- createBucketizedLive(body, observe = 'body', reportProgress = false) {
480
- if (body === null || body === undefined) {
481
- throw new Error('Required parameter body was null or undefined when calling createBucketizedLive.');
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/audiences/live/bucketized`, {
501
- body: body,
502
- withCredentials: this.configuration.withCredentials,
503
- headers: headers,
504
- observe: observe,
505
- reportProgress: reportProgress
506
- });
507
- }
508
- createDsCustomQuery(body, observe = 'body', reportProgress = false) {
509
- if (body === null || body === undefined) {
510
- throw new Error('Required parameter body was null or undefined when calling createDsCustomQuery.');
511
- }
512
- let headers = this.defaultHeaders;
513
- // to determine the Accept header
514
- let httpHeaderAccepts = [
515
- '*/*'
516
- ];
517
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
518
- if (httpHeaderAcceptSelected != undefined) {
519
- headers = headers.set('Accept', httpHeaderAcceptSelected);
520
- }
521
- // to determine the Content-Type header
522
- const consumes = [
523
- 'application/json'
524
- ];
525
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
526
- if (httpContentTypeSelected != undefined) {
527
- headers = headers.set('Content-Type', httpContentTypeSelected);
528
- }
529
- return this.httpClient.request('post', `${this.basePath}/api/audiences/custom/ds-query`, {
530
- body: body,
531
- withCredentials: this.configuration.withCredentials,
532
- headers: headers,
533
- observe: observe,
534
- reportProgress: reportProgress
535
- });
536
- }
537
- getAllAudiences(advertiserId, groupType, sourcePlatform, audienceType, audienceSource, observe = 'body', reportProgress = false) {
538
- if (advertiserId === null || advertiserId === undefined) {
539
- throw new Error('Required parameter advertiserId was null or undefined when calling getAllAudiences.');
540
- }
541
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
542
- if (groupType !== undefined && groupType !== null) {
543
- queryParameters = queryParameters.set('groupType', groupType);
544
- }
545
- if (sourcePlatform !== undefined && sourcePlatform !== null) {
546
- queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
547
- }
548
- if (audienceType !== undefined && audienceType !== null) {
549
- queryParameters = queryParameters.set('audienceType', audienceType);
550
- }
551
- if (audienceSource !== undefined && audienceSource !== null) {
552
- queryParameters = queryParameters.set('audienceSource', audienceSource);
553
- }
554
- let headers = this.defaultHeaders;
555
- // to determine the Accept header
556
- let httpHeaderAccepts = [
557
- '*/*'
558
- ];
559
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
560
- if (httpHeaderAcceptSelected != undefined) {
561
- headers = headers.set('Accept', httpHeaderAcceptSelected);
562
- }
563
- // to determine the Content-Type header
564
- const consumes = [];
565
- return this.httpClient.request('get', `${this.basePath}/api/audiences/advertiser/${encodeURIComponent(String(advertiserId))}`, {
566
- params: queryParameters,
567
- withCredentials: this.configuration.withCredentials,
568
- headers: headers,
569
- observe: observe,
570
- reportProgress: reportProgress
571
- });
572
- }
573
- getGroupStatus(groupId, observe = 'body', reportProgress = false) {
574
- if (groupId === null || groupId === undefined) {
575
- throw new Error('Required parameter groupId was null or undefined when calling getGroupStatus.');
576
- }
577
- let headers = this.defaultHeaders;
578
- // to determine the Accept header
579
- let httpHeaderAccepts = [
580
- '*/*'
581
- ];
582
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
583
- if (httpHeaderAcceptSelected != undefined) {
584
- headers = headers.set('Accept', httpHeaderAcceptSelected);
585
- }
586
- // to determine the Content-Type header
587
- const consumes = [];
588
- return this.httpClient.request('get', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}`, {
589
- withCredentials: this.configuration.withCredentials,
590
- headers: headers,
591
- observe: observe,
592
- reportProgress: reportProgress
593
- });
594
- }
595
- updateDsCustomQuerySql(body, groupId, observe = 'body', reportProgress = false) {
596
- if (body === null || body === undefined) {
597
- throw new Error('Required parameter body was null or undefined when calling updateDsCustomQuerySql.');
598
- }
599
- if (groupId === null || groupId === undefined) {
600
- throw new Error('Required parameter groupId was null or undefined when calling updateDsCustomQuerySql.');
601
- }
602
- let headers = this.defaultHeaders;
603
- // to determine the Accept header
604
- let httpHeaderAccepts = [
605
- '*/*'
606
- ];
607
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
608
- if (httpHeaderAcceptSelected != undefined) {
609
- headers = headers.set('Accept', httpHeaderAcceptSelected);
610
- }
611
- // to determine the Content-Type header
612
- const consumes = [
613
- 'application/json'
614
- ];
615
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
616
- if (httpContentTypeSelected != undefined) {
617
- headers = headers.set('Content-Type', httpContentTypeSelected);
618
- }
619
- return this.httpClient.request('post', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}/custom/ds-query/sql`, {
620
- body: body,
621
- withCredentials: this.configuration.withCredentials,
622
- headers: headers,
623
- observe: observe,
624
- reportProgress: reportProgress
625
- });
626
- }
627
- updateName(body, groupId, observe = 'body', reportProgress = false) {
628
- if (body === null || body === undefined) {
629
- throw new Error('Required parameter body was null or undefined when calling updateName.');
630
- }
631
- if (groupId === null || groupId === undefined) {
632
- throw new Error('Required parameter groupId was null or undefined when calling updateName.');
633
- }
634
- let headers = this.defaultHeaders;
635
- // to determine the Accept header
636
- let httpHeaderAccepts = [
637
- '*/*'
638
- ];
639
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
640
- if (httpHeaderAcceptSelected != undefined) {
641
- headers = headers.set('Accept', httpHeaderAcceptSelected);
642
- }
643
- // to determine the Content-Type header
644
- const consumes = [
645
- 'application/json'
646
- ];
647
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
648
- if (httpContentTypeSelected != undefined) {
649
- headers = headers.set('Content-Type', httpContentTypeSelected);
650
- }
651
- return this.httpClient.request('post', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}/name`, {
652
- body: body,
653
- withCredentials: this.configuration.withCredentials,
654
- headers: headers,
655
- observe: observe,
656
- reportProgress: reportProgress
657
- });
658
- }
659
- validateDsQuery(body, observe = 'body', reportProgress = false) {
660
- if (body === null || body === undefined) {
661
- throw new Error('Required parameter body was null or undefined when calling validateDsQuery.');
662
- }
663
- let headers = this.defaultHeaders;
664
- // to determine the Accept header
665
- let httpHeaderAccepts = [
666
- '*/*'
667
- ];
668
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
669
- if (httpHeaderAcceptSelected != undefined) {
670
- headers = headers.set('Accept', httpHeaderAcceptSelected);
671
- }
672
- // to determine the Content-Type header
673
- const consumes = [
674
- 'application/json'
675
- ];
676
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
677
- if (httpContentTypeSelected != undefined) {
678
- headers = headers.set('Content-Type', httpContentTypeSelected);
679
- }
680
- return this.httpClient.request('post', `${this.basePath}/api/audiences/validate-ds-query`, {
681
- body: body,
682
- withCredentials: this.configuration.withCredentials,
683
- headers: headers,
684
- observe: observe,
685
- reportProgress: reportProgress
686
- });
687
- }
688
- }
689
- AudienceControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
690
- AudienceControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService });
691
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService, decorators: [{
692
- type: Injectable
693
- }], ctorParameters: function () {
694
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
695
- type: Optional
696
- }, {
697
- type: Inject,
698
- args: [BASE_PATH]
699
- }] }, { type: Configuration, decorators: [{
700
- type: Optional
701
- }] }];
411
+ /**
412
+ * Intellibid API
413
+ * API documentation for the Intellibid platform
414
+ *
415
+ * OpenAPI spec version: 1.0
416
+ *
417
+ *
418
+ * NOTE: This class is auto generated by the swagger code generator program.
419
+ * https://github.com/swagger-api/swagger-codegen.git
420
+ * Do not edit the class manually.
421
+ */ /* tslint:disable:no-unused-variable member-ordering */
422
+ class AudienceControllerService {
423
+ constructor(httpClient, basePath, configuration) {
424
+ this.httpClient = httpClient;
425
+ this.basePath = 'http://dev1-intellibid-svc.revx.io';
426
+ this.defaultHeaders = new HttpHeaders();
427
+ this.configuration = new Configuration();
428
+ if (basePath) {
429
+ this.basePath = basePath;
430
+ }
431
+ if (configuration) {
432
+ this.configuration = configuration;
433
+ this.basePath = basePath || configuration.basePath || this.basePath;
434
+ }
435
+ }
436
+ /**
437
+ * @param consumes string[] mime-types
438
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
439
+ */
440
+ canConsumeForm(consumes) {
441
+ const form = 'multipart/form-data';
442
+ for (const consume of consumes) {
443
+ if (form === consume) {
444
+ return true;
445
+ }
446
+ }
447
+ return false;
448
+ }
449
+ createBlockedLiveAudience(body, observe = 'body', reportProgress = false) {
450
+ if (body === null || body === undefined) {
451
+ throw new Error('Required parameter body was null or undefined when calling createBlockedLiveAudience.');
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}/api/audiences/live/blocked`, {
471
+ body: body,
472
+ withCredentials: this.configuration.withCredentials,
473
+ headers: headers,
474
+ observe: observe,
475
+ reportProgress: reportProgress
476
+ });
477
+ }
478
+ createBucketizedCustom(body, observe = 'body', reportProgress = false) {
479
+ if (body === null || body === undefined) {
480
+ throw new Error('Required parameter body was null or undefined when calling createBucketizedCustom.');
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
+ 'application/json'
494
+ ];
495
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
496
+ if (httpContentTypeSelected != undefined) {
497
+ headers = headers.set('Content-Type', httpContentTypeSelected);
498
+ }
499
+ return this.httpClient.request('post', `${this.basePath}/api/audiences/custom/bucketized`, {
500
+ body: body,
501
+ withCredentials: this.configuration.withCredentials,
502
+ headers: headers,
503
+ observe: observe,
504
+ reportProgress: reportProgress
505
+ });
506
+ }
507
+ createBucketizedLive(body, observe = 'body', reportProgress = false) {
508
+ if (body === null || body === undefined) {
509
+ throw new Error('Required parameter body was null or undefined when calling createBucketizedLive.');
510
+ }
511
+ let headers = this.defaultHeaders;
512
+ // to determine the Accept header
513
+ let httpHeaderAccepts = [
514
+ '*/*'
515
+ ];
516
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
517
+ if (httpHeaderAcceptSelected != undefined) {
518
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
519
+ }
520
+ // to determine the Content-Type header
521
+ const consumes = [
522
+ 'application/json'
523
+ ];
524
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
525
+ if (httpContentTypeSelected != undefined) {
526
+ headers = headers.set('Content-Type', httpContentTypeSelected);
527
+ }
528
+ return this.httpClient.request('post', `${this.basePath}/api/audiences/live/bucketized`, {
529
+ body: body,
530
+ withCredentials: this.configuration.withCredentials,
531
+ headers: headers,
532
+ observe: observe,
533
+ reportProgress: reportProgress
534
+ });
535
+ }
536
+ createDsCustomQuery(body, observe = 'body', reportProgress = false) {
537
+ if (body === null || body === undefined) {
538
+ throw new Error('Required parameter body was null or undefined when calling createDsCustomQuery.');
539
+ }
540
+ let headers = this.defaultHeaders;
541
+ // to determine the Accept header
542
+ let httpHeaderAccepts = [
543
+ '*/*'
544
+ ];
545
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
546
+ if (httpHeaderAcceptSelected != undefined) {
547
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
548
+ }
549
+ // to determine the Content-Type header
550
+ const consumes = [
551
+ 'application/json'
552
+ ];
553
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
554
+ if (httpContentTypeSelected != undefined) {
555
+ headers = headers.set('Content-Type', httpContentTypeSelected);
556
+ }
557
+ return this.httpClient.request('post', `${this.basePath}/api/audiences/custom/ds-query`, {
558
+ body: body,
559
+ withCredentials: this.configuration.withCredentials,
560
+ headers: headers,
561
+ observe: observe,
562
+ reportProgress: reportProgress
563
+ });
564
+ }
565
+ getAllAudiences(advertiserId, groupType, sourcePlatform, audienceType, audienceSource, observe = 'body', reportProgress = false) {
566
+ if (advertiserId === null || advertiserId === undefined) {
567
+ throw new Error('Required parameter advertiserId was null or undefined when calling getAllAudiences.');
568
+ }
569
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
570
+ if (groupType !== undefined && groupType !== null) {
571
+ queryParameters = queryParameters.set('groupType', groupType);
572
+ }
573
+ if (sourcePlatform !== undefined && sourcePlatform !== null) {
574
+ queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
575
+ }
576
+ if (audienceType !== undefined && audienceType !== null) {
577
+ queryParameters = queryParameters.set('audienceType', audienceType);
578
+ }
579
+ if (audienceSource !== undefined && audienceSource !== null) {
580
+ queryParameters = queryParameters.set('audienceSource', audienceSource);
581
+ }
582
+ let headers = this.defaultHeaders;
583
+ // to determine the Accept header
584
+ let httpHeaderAccepts = [
585
+ '*/*'
586
+ ];
587
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
588
+ if (httpHeaderAcceptSelected != undefined) {
589
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
590
+ }
591
+ // to determine the Content-Type header
592
+ const consumes = [];
593
+ return this.httpClient.request('get', `${this.basePath}/api/audiences/advertiser/${encodeURIComponent(String(advertiserId))}`, {
594
+ params: queryParameters,
595
+ withCredentials: this.configuration.withCredentials,
596
+ headers: headers,
597
+ observe: observe,
598
+ reportProgress: reportProgress
599
+ });
600
+ }
601
+ getGroupStatus(groupId, observe = 'body', reportProgress = false) {
602
+ if (groupId === null || groupId === undefined) {
603
+ throw new Error('Required parameter groupId was null or undefined when calling getGroupStatus.');
604
+ }
605
+ let headers = this.defaultHeaders;
606
+ // to determine the Accept header
607
+ let httpHeaderAccepts = [
608
+ '*/*'
609
+ ];
610
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
611
+ if (httpHeaderAcceptSelected != undefined) {
612
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
613
+ }
614
+ // to determine the Content-Type header
615
+ const consumes = [];
616
+ return this.httpClient.request('get', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}`, {
617
+ withCredentials: this.configuration.withCredentials,
618
+ headers: headers,
619
+ observe: observe,
620
+ reportProgress: reportProgress
621
+ });
622
+ }
623
+ updateDsCustomQuerySql(body, groupId, observe = 'body', reportProgress = false) {
624
+ if (body === null || body === undefined) {
625
+ throw new Error('Required parameter body was null or undefined when calling updateDsCustomQuerySql.');
626
+ }
627
+ if (groupId === null || groupId === undefined) {
628
+ throw new Error('Required parameter groupId was null or undefined when calling updateDsCustomQuerySql.');
629
+ }
630
+ let headers = this.defaultHeaders;
631
+ // to determine the Accept header
632
+ let httpHeaderAccepts = [
633
+ '*/*'
634
+ ];
635
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
636
+ if (httpHeaderAcceptSelected != undefined) {
637
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
638
+ }
639
+ // to determine the Content-Type header
640
+ const consumes = [
641
+ 'application/json'
642
+ ];
643
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
644
+ if (httpContentTypeSelected != undefined) {
645
+ headers = headers.set('Content-Type', httpContentTypeSelected);
646
+ }
647
+ return this.httpClient.request('post', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}/custom/ds-query/sql`, {
648
+ body: body,
649
+ withCredentials: this.configuration.withCredentials,
650
+ headers: headers,
651
+ observe: observe,
652
+ reportProgress: reportProgress
653
+ });
654
+ }
655
+ updateName(body, groupId, observe = 'body', reportProgress = false) {
656
+ if (body === null || body === undefined) {
657
+ throw new Error('Required parameter body was null or undefined when calling updateName.');
658
+ }
659
+ if (groupId === null || groupId === undefined) {
660
+ throw new Error('Required parameter groupId was null or undefined when calling updateName.');
661
+ }
662
+ let headers = this.defaultHeaders;
663
+ // to determine the Accept header
664
+ let httpHeaderAccepts = [
665
+ '*/*'
666
+ ];
667
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
668
+ if (httpHeaderAcceptSelected != undefined) {
669
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
670
+ }
671
+ // to determine the Content-Type header
672
+ const consumes = [
673
+ 'application/json'
674
+ ];
675
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
676
+ if (httpContentTypeSelected != undefined) {
677
+ headers = headers.set('Content-Type', httpContentTypeSelected);
678
+ }
679
+ return this.httpClient.request('post', `${this.basePath}/api/audiences/groups/${encodeURIComponent(String(groupId))}/name`, {
680
+ body: body,
681
+ withCredentials: this.configuration.withCredentials,
682
+ headers: headers,
683
+ observe: observe,
684
+ reportProgress: reportProgress
685
+ });
686
+ }
687
+ validateDsQuery(body, observe = 'body', reportProgress = false) {
688
+ if (body === null || body === undefined) {
689
+ throw new Error('Required parameter body was null or undefined when calling validateDsQuery.');
690
+ }
691
+ let headers = this.defaultHeaders;
692
+ // to determine the Accept header
693
+ let httpHeaderAccepts = [
694
+ '*/*'
695
+ ];
696
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
697
+ if (httpHeaderAcceptSelected != undefined) {
698
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
699
+ }
700
+ // to determine the Content-Type header
701
+ const consumes = [
702
+ 'application/json'
703
+ ];
704
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
705
+ if (httpContentTypeSelected != undefined) {
706
+ headers = headers.set('Content-Type', httpContentTypeSelected);
707
+ }
708
+ return this.httpClient.request('post', `${this.basePath}/api/audiences/validate-ds-query`, {
709
+ body: body,
710
+ withCredentials: this.configuration.withCredentials,
711
+ headers: headers,
712
+ observe: observe,
713
+ reportProgress: reportProgress
714
+ });
715
+ }
716
+ }
717
+ AudienceControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
718
+ AudienceControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService });
719
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AudienceControllerService, decorators: [{
720
+ type: Injectable
721
+ }], ctorParameters: function () {
722
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
723
+ type: Optional
724
+ }, {
725
+ type: Inject,
726
+ args: [BASE_PATH]
727
+ }] }, { type: Configuration, decorators: [{
728
+ type: Optional
729
+ }] }];
702
730
  } });
703
731
 
704
- /**
705
- * Intellibid API
706
- * API documentation for the Intellibid platform
707
- *
708
- * OpenAPI spec version: 1.0
709
- *
710
- *
711
- * NOTE: This class is auto generated by the swagger code generator program.
712
- * https://github.com/swagger-api/swagger-codegen.git
713
- * Do not edit the class manually.
714
- */ /* tslint:disable:no-unused-variable member-ordering */
715
- class CampaignControllerService {
716
- constructor(httpClient, basePath, configuration) {
717
- this.httpClient = httpClient;
718
- this.basePath = 'http://dev1-intellibid-svc.revx.io';
719
- this.defaultHeaders = new HttpHeaders();
720
- this.configuration = new Configuration();
721
- if (basePath) {
722
- this.basePath = basePath;
723
- }
724
- if (configuration) {
725
- this.configuration = configuration;
726
- this.basePath = basePath || configuration.basePath || this.basePath;
727
- }
728
- }
729
- /**
730
- * @param consumes string[] mime-types
731
- * @return true: consumes contains 'multipart/form-data', false: otherwise
732
- */
733
- canConsumeForm(consumes) {
734
- const form = 'multipart/form-data';
735
- for (const consume of consumes) {
736
- if (form === consume) {
737
- return true;
738
- }
739
- }
740
- return false;
741
- }
742
- createCampaign(body, observe = 'body', reportProgress = false) {
743
- if (body === null || body === undefined) {
744
- throw new Error('Required parameter body was null or undefined when calling createCampaign.');
745
- }
746
- let headers = this.defaultHeaders;
747
- // to determine the Accept header
748
- let httpHeaderAccepts = [
749
- '*/*'
750
- ];
751
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
752
- if (httpHeaderAcceptSelected != undefined) {
753
- headers = headers.set('Accept', httpHeaderAcceptSelected);
754
- }
755
- // to determine the Content-Type header
756
- const consumes = [
757
- 'application/json'
758
- ];
759
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
760
- if (httpContentTypeSelected != undefined) {
761
- headers = headers.set('Content-Type', httpContentTypeSelected);
762
- }
763
- return this.httpClient.request('post', `${this.basePath}/api/campaign`, {
764
- body: body,
765
- withCredentials: this.configuration.withCredentials,
766
- headers: headers,
767
- observe: observe,
768
- reportProgress: reportProgress
769
- });
770
- }
771
- getAllCampaigns(id, advertiserId, name, platformCampaignId, payoutType, marketFeedbackEnabled, activeOnPlatform, sourcePlatform, page, size, sort, observe = 'body', reportProgress = false) {
772
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
773
- if (id !== undefined && id !== null) {
774
- queryParameters = queryParameters.set('id', id);
775
- }
776
- if (advertiserId !== undefined && advertiserId !== null) {
777
- queryParameters = queryParameters.set('advertiserId', advertiserId);
778
- }
779
- if (name !== undefined && name !== null) {
780
- queryParameters = queryParameters.set('name', name);
781
- }
782
- if (platformCampaignId !== undefined && platformCampaignId !== null) {
783
- queryParameters = queryParameters.set('platformCampaignId', platformCampaignId);
784
- }
785
- if (payoutType !== undefined && payoutType !== null) {
786
- queryParameters = queryParameters.set('payoutType', payoutType);
787
- }
788
- if (marketFeedbackEnabled !== undefined && marketFeedbackEnabled !== null) {
789
- queryParameters = queryParameters.set('marketFeedbackEnabled', marketFeedbackEnabled);
790
- }
791
- if (activeOnPlatform !== undefined && activeOnPlatform !== null) {
792
- queryParameters = queryParameters.set('activeOnPlatform', activeOnPlatform);
793
- }
794
- if (sourcePlatform !== undefined && sourcePlatform !== null) {
795
- queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
796
- }
797
- if (page !== undefined && page !== null) {
798
- queryParameters = queryParameters.set('page', page);
799
- }
800
- if (size !== undefined && size !== null) {
801
- queryParameters = queryParameters.set('size', size);
802
- }
803
- if (sort) {
804
- sort.forEach((element) => {
805
- queryParameters = queryParameters.append('sort', element);
806
- });
807
- }
808
- let headers = this.defaultHeaders;
809
- // to determine the Accept header
810
- let httpHeaderAccepts = [
811
- '*/*'
812
- ];
813
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
814
- if (httpHeaderAcceptSelected != undefined) {
815
- headers = headers.set('Accept', httpHeaderAcceptSelected);
816
- }
817
- // to determine the Content-Type header
818
- const consumes = [];
819
- return this.httpClient.request('get', `${this.basePath}/api/campaign`, {
820
- params: queryParameters,
821
- withCredentials: this.configuration.withCredentials,
822
- headers: headers,
823
- observe: observe,
824
- reportProgress: reportProgress
825
- });
826
- }
827
- getCampaign(id, observe = 'body', reportProgress = false) {
828
- if (id === null || id === undefined) {
829
- throw new Error('Required parameter id was null or undefined when calling getCampaign.');
830
- }
831
- let headers = this.defaultHeaders;
832
- // to determine the Accept header
833
- let httpHeaderAccepts = [
834
- '*/*'
835
- ];
836
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
837
- if (httpHeaderAcceptSelected != undefined) {
838
- headers = headers.set('Accept', httpHeaderAcceptSelected);
839
- }
840
- // to determine the Content-Type header
841
- const consumes = [];
842
- return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}`, {
843
- withCredentials: this.configuration.withCredentials,
844
- headers: headers,
845
- observe: observe,
846
- reportProgress: reportProgress
847
- });
848
- }
849
- getCampaignLogs(id, page, size, sort, observe = 'body', reportProgress = false) {
850
- if (id === null || id === undefined) {
851
- throw new Error('Required parameter id was null or undefined when calling getCampaignLogs.');
852
- }
853
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
854
- if (page !== undefined && page !== null) {
855
- queryParameters = queryParameters.set('page', page);
856
- }
857
- if (size !== undefined && size !== null) {
858
- queryParameters = queryParameters.set('size', size);
859
- }
860
- if (sort) {
861
- sort.forEach((element) => {
862
- queryParameters = queryParameters.append('sort', element);
863
- });
864
- }
865
- let headers = this.defaultHeaders;
866
- // to determine the Accept header
867
- let httpHeaderAccepts = [
868
- '*/*'
869
- ];
870
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
871
- if (httpHeaderAcceptSelected != undefined) {
872
- headers = headers.set('Accept', httpHeaderAcceptSelected);
873
- }
874
- // to determine the Content-Type header
875
- const consumes = [];
876
- return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/log`, {
877
- params: queryParameters,
878
- withCredentials: this.configuration.withCredentials,
879
- headers: headers,
880
- observe: observe,
881
- reportProgress: reportProgress
882
- });
883
- }
884
- scheduleUpdate(body, id, observe = 'body', reportProgress = false) {
885
- if (body === null || body === undefined) {
886
- throw new Error('Required parameter body was null or undefined when calling scheduleUpdate.');
887
- }
888
- if (id === null || id === undefined) {
889
- throw new Error('Required parameter id was null or undefined when calling scheduleUpdate.');
890
- }
891
- let headers = this.defaultHeaders;
892
- // to determine the Accept header
893
- let httpHeaderAccepts = [
894
- '*/*'
895
- ];
896
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
897
- if (httpHeaderAcceptSelected != undefined) {
898
- headers = headers.set('Accept', httpHeaderAcceptSelected);
899
- }
900
- // to determine the Content-Type header
901
- const consumes = [
902
- 'application/json'
903
- ];
904
- const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
905
- if (httpContentTypeSelected != undefined) {
906
- headers = headers.set('Content-Type', httpContentTypeSelected);
907
- }
908
- return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/schedule-update`, {
909
- body: body,
910
- withCredentials: this.configuration.withCredentials,
911
- headers: headers,
912
- observe: observe,
913
- reportProgress: reportProgress
914
- });
915
- }
916
- searchCampaign(q, sourcePlatform, observe = 'body', reportProgress = false) {
917
- if (q === null || q === undefined) {
918
- throw new Error('Required parameter q was null or undefined when calling searchCampaign.');
919
- }
920
- if (sourcePlatform === null || sourcePlatform === undefined) {
921
- throw new Error('Required parameter sourcePlatform was null or undefined when calling searchCampaign.');
922
- }
923
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
924
- if (q !== undefined && q !== null) {
925
- queryParameters = queryParameters.set('q', q);
926
- }
927
- if (sourcePlatform !== undefined && sourcePlatform !== null) {
928
- queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
929
- }
930
- let headers = this.defaultHeaders;
931
- // to determine the Accept header
932
- let httpHeaderAccepts = [
933
- '*/*'
934
- ];
935
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
936
- if (httpHeaderAcceptSelected != undefined) {
937
- headers = headers.set('Accept', httpHeaderAcceptSelected);
938
- }
939
- // to determine the Content-Type header
940
- const consumes = [];
941
- return this.httpClient.request('get', `${this.basePath}/api/campaign/search`, {
942
- params: queryParameters,
943
- withCredentials: this.configuration.withCredentials,
944
- headers: headers,
945
- observe: observe,
946
- reportProgress: reportProgress
947
- });
948
- }
949
- setStatus(id, active, observe = 'body', reportProgress = false) {
950
- if (id === null || id === undefined) {
951
- throw new Error('Required parameter id was null or undefined when calling setStatus.');
952
- }
953
- if (active === null || active === undefined) {
954
- throw new Error('Required parameter active was null or undefined when calling setStatus.');
955
- }
956
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
957
- if (active !== undefined && active !== null) {
958
- queryParameters = queryParameters.set('active', active);
959
- }
960
- let headers = this.defaultHeaders;
961
- // to determine the Accept header
962
- let httpHeaderAccepts = [
963
- '*/*'
964
- ];
965
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
966
- if (httpHeaderAcceptSelected != undefined) {
967
- headers = headers.set('Accept', httpHeaderAcceptSelected);
968
- }
969
- // to determine the Content-Type header
970
- const consumes = [];
971
- return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/status`, {
972
- params: queryParameters,
973
- withCredentials: this.configuration.withCredentials,
974
- headers: headers,
975
- observe: observe,
976
- reportProgress: reportProgress
977
- });
978
- }
979
- }
980
- 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 });
981
- CampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService });
982
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, decorators: [{
983
- type: Injectable
984
- }], ctorParameters: function () {
985
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
986
- type: Optional
987
- }, {
988
- type: Inject,
989
- args: [BASE_PATH]
990
- }] }, { type: Configuration, decorators: [{
991
- type: Optional
992
- }] }];
732
+ /**
733
+ * Intellibid API
734
+ * API documentation for the Intellibid platform
735
+ *
736
+ * OpenAPI spec version: 1.0
737
+ *
738
+ *
739
+ * NOTE: This class is auto generated by the swagger code generator program.
740
+ * https://github.com/swagger-api/swagger-codegen.git
741
+ * Do not edit the class manually.
742
+ */ /* tslint:disable:no-unused-variable member-ordering */
743
+ class CampaignControllerService {
744
+ constructor(httpClient, basePath, configuration) {
745
+ this.httpClient = httpClient;
746
+ this.basePath = 'http://dev1-intellibid-svc.revx.io';
747
+ this.defaultHeaders = new HttpHeaders();
748
+ this.configuration = new Configuration();
749
+ if (basePath) {
750
+ this.basePath = basePath;
751
+ }
752
+ if (configuration) {
753
+ this.configuration = configuration;
754
+ this.basePath = basePath || configuration.basePath || this.basePath;
755
+ }
756
+ }
757
+ /**
758
+ * @param consumes string[] mime-types
759
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
760
+ */
761
+ canConsumeForm(consumes) {
762
+ const form = 'multipart/form-data';
763
+ for (const consume of consumes) {
764
+ if (form === consume) {
765
+ return true;
766
+ }
767
+ }
768
+ return false;
769
+ }
770
+ createCampaign(body, observe = 'body', reportProgress = false) {
771
+ if (body === null || body === undefined) {
772
+ throw new Error('Required parameter body was null or undefined when calling createCampaign.');
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}/api/campaign`, {
792
+ body: body,
793
+ withCredentials: this.configuration.withCredentials,
794
+ headers: headers,
795
+ observe: observe,
796
+ reportProgress: reportProgress
797
+ });
798
+ }
799
+ getAllCampaigns(id, advertiserId, name, platformCampaignId, payoutType, marketFeedbackEnabled, activeOnPlatform, sourcePlatform, page, size, sort, observe = 'body', reportProgress = false) {
800
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
801
+ if (id !== undefined && id !== null) {
802
+ queryParameters = queryParameters.set('id', id);
803
+ }
804
+ if (advertiserId !== undefined && advertiserId !== null) {
805
+ queryParameters = queryParameters.set('advertiserId', advertiserId);
806
+ }
807
+ if (name !== undefined && name !== null) {
808
+ queryParameters = queryParameters.set('name', name);
809
+ }
810
+ if (platformCampaignId !== undefined && platformCampaignId !== null) {
811
+ queryParameters = queryParameters.set('platformCampaignId', platformCampaignId);
812
+ }
813
+ if (payoutType !== undefined && payoutType !== null) {
814
+ queryParameters = queryParameters.set('payoutType', payoutType);
815
+ }
816
+ if (marketFeedbackEnabled !== undefined && marketFeedbackEnabled !== null) {
817
+ queryParameters = queryParameters.set('marketFeedbackEnabled', marketFeedbackEnabled);
818
+ }
819
+ if (activeOnPlatform !== undefined && activeOnPlatform !== null) {
820
+ queryParameters = queryParameters.set('activeOnPlatform', activeOnPlatform);
821
+ }
822
+ if (sourcePlatform !== undefined && sourcePlatform !== null) {
823
+ queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
824
+ }
825
+ if (page !== undefined && page !== null) {
826
+ queryParameters = queryParameters.set('page', page);
827
+ }
828
+ if (size !== undefined && size !== null) {
829
+ queryParameters = queryParameters.set('size', size);
830
+ }
831
+ if (sort) {
832
+ sort.forEach((element) => {
833
+ queryParameters = queryParameters.append('sort', element);
834
+ });
835
+ }
836
+ let headers = this.defaultHeaders;
837
+ // to determine the Accept header
838
+ let httpHeaderAccepts = [
839
+ '*/*'
840
+ ];
841
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
842
+ if (httpHeaderAcceptSelected != undefined) {
843
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
844
+ }
845
+ // to determine the Content-Type header
846
+ const consumes = [];
847
+ return this.httpClient.request('get', `${this.basePath}/api/campaign`, {
848
+ params: queryParameters,
849
+ withCredentials: this.configuration.withCredentials,
850
+ headers: headers,
851
+ observe: observe,
852
+ reportProgress: reportProgress
853
+ });
854
+ }
855
+ getCampaign(id, observe = 'body', reportProgress = false) {
856
+ if (id === null || id === undefined) {
857
+ throw new Error('Required parameter id was null or undefined when calling getCampaign.');
858
+ }
859
+ let headers = this.defaultHeaders;
860
+ // to determine the Accept header
861
+ let httpHeaderAccepts = [
862
+ '*/*'
863
+ ];
864
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
865
+ if (httpHeaderAcceptSelected != undefined) {
866
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
867
+ }
868
+ // to determine the Content-Type header
869
+ const consumes = [];
870
+ return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}`, {
871
+ withCredentials: this.configuration.withCredentials,
872
+ headers: headers,
873
+ observe: observe,
874
+ reportProgress: reportProgress
875
+ });
876
+ }
877
+ getCampaignLogs(id, page, size, sort, observe = 'body', reportProgress = false) {
878
+ if (id === null || id === undefined) {
879
+ throw new Error('Required parameter id was null or undefined when calling getCampaignLogs.');
880
+ }
881
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
882
+ if (page !== undefined && page !== null) {
883
+ queryParameters = queryParameters.set('page', page);
884
+ }
885
+ if (size !== undefined && size !== null) {
886
+ queryParameters = queryParameters.set('size', size);
887
+ }
888
+ if (sort) {
889
+ sort.forEach((element) => {
890
+ queryParameters = queryParameters.append('sort', element);
891
+ });
892
+ }
893
+ let headers = this.defaultHeaders;
894
+ // to determine the Accept header
895
+ let httpHeaderAccepts = [
896
+ '*/*'
897
+ ];
898
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
899
+ if (httpHeaderAcceptSelected != undefined) {
900
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
901
+ }
902
+ // to determine the Content-Type header
903
+ const consumes = [];
904
+ return this.httpClient.request('get', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/log`, {
905
+ params: queryParameters,
906
+ withCredentials: this.configuration.withCredentials,
907
+ headers: headers,
908
+ observe: observe,
909
+ reportProgress: reportProgress
910
+ });
911
+ }
912
+ scheduleUpdate(body, id, observe = 'body', reportProgress = false) {
913
+ if (body === null || body === undefined) {
914
+ throw new Error('Required parameter body was null or undefined when calling scheduleUpdate.');
915
+ }
916
+ if (id === null || id === undefined) {
917
+ throw new Error('Required parameter id was null or undefined when calling scheduleUpdate.');
918
+ }
919
+ let headers = this.defaultHeaders;
920
+ // to determine the Accept header
921
+ let httpHeaderAccepts = [
922
+ '*/*'
923
+ ];
924
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
925
+ if (httpHeaderAcceptSelected != undefined) {
926
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
927
+ }
928
+ // to determine the Content-Type header
929
+ const consumes = [
930
+ 'application/json'
931
+ ];
932
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
933
+ if (httpContentTypeSelected != undefined) {
934
+ headers = headers.set('Content-Type', httpContentTypeSelected);
935
+ }
936
+ return this.httpClient.request('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/schedule-update`, {
937
+ body: body,
938
+ withCredentials: this.configuration.withCredentials,
939
+ headers: headers,
940
+ observe: observe,
941
+ reportProgress: reportProgress
942
+ });
943
+ }
944
+ searchCampaign(q, sourcePlatform, observe = 'body', reportProgress = false) {
945
+ if (q === null || q === undefined) {
946
+ throw new Error('Required parameter q was null or undefined when calling searchCampaign.');
947
+ }
948
+ if (sourcePlatform === null || sourcePlatform === undefined) {
949
+ throw new Error('Required parameter sourcePlatform was null or undefined when calling searchCampaign.');
950
+ }
951
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
952
+ if (q !== undefined && q !== null) {
953
+ queryParameters = queryParameters.set('q', q);
954
+ }
955
+ if (sourcePlatform !== undefined && sourcePlatform !== null) {
956
+ queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
957
+ }
958
+ let headers = this.defaultHeaders;
959
+ // to determine the Accept header
960
+ let httpHeaderAccepts = [
961
+ '*/*'
962
+ ];
963
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
964
+ if (httpHeaderAcceptSelected != undefined) {
965
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
966
+ }
967
+ // to determine the Content-Type header
968
+ const consumes = [];
969
+ return this.httpClient.request('get', `${this.basePath}/api/campaign/search`, {
970
+ params: queryParameters,
971
+ withCredentials: this.configuration.withCredentials,
972
+ headers: headers,
973
+ observe: observe,
974
+ reportProgress: reportProgress
975
+ });
976
+ }
977
+ setStatus(id, active, observe = 'body', reportProgress = false) {
978
+ if (id === null || id === undefined) {
979
+ throw new Error('Required parameter id was null or undefined when calling setStatus.');
980
+ }
981
+ if (active === null || active === undefined) {
982
+ throw new Error('Required parameter active was null or undefined when calling setStatus.');
983
+ }
984
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
985
+ if (active !== undefined && active !== null) {
986
+ queryParameters = queryParameters.set('active', active);
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('post', `${this.basePath}/api/campaign/${encodeURIComponent(String(id))}/status`, {
1000
+ params: queryParameters,
1001
+ withCredentials: this.configuration.withCredentials,
1002
+ headers: headers,
1003
+ observe: observe,
1004
+ reportProgress: reportProgress
1005
+ });
1006
+ }
1007
+ }
1008
+ 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 });
1009
+ CampaignControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService });
1010
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: CampaignControllerService, decorators: [{
1011
+ type: Injectable
1012
+ }], ctorParameters: function () {
1013
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1014
+ type: Optional
1015
+ }, {
1016
+ type: Inject,
1017
+ args: [BASE_PATH]
1018
+ }] }, { type: Configuration, decorators: [{
1019
+ type: Optional
1020
+ }] }];
993
1021
  } });
994
1022
 
995
- /**
996
- * Intellibid API
997
- * API documentation for the Intellibid platform
998
- *
999
- * OpenAPI spec version: 1.0
1000
- *
1001
- *
1002
- * NOTE: This class is auto generated by the swagger code generator program.
1003
- * https://github.com/swagger-api/swagger-codegen.git
1004
- * Do not edit the class manually.
1005
- */ /* tslint:disable:no-unused-variable member-ordering */
1006
- class InsightsControllerService {
1007
- constructor(httpClient, basePath, configuration) {
1008
- this.httpClient = httpClient;
1009
- this.basePath = 'http://dev1-intellibid-svc.revx.io';
1010
- this.defaultHeaders = new HttpHeaders();
1011
- this.configuration = new Configuration();
1012
- if (basePath) {
1013
- this.basePath = basePath;
1014
- }
1015
- if (configuration) {
1016
- this.configuration = configuration;
1017
- this.basePath = basePath || configuration.basePath || this.basePath;
1018
- }
1019
- }
1020
- /**
1021
- * @param consumes string[] mime-types
1022
- * @return true: consumes contains 'multipart/form-data', false: otherwise
1023
- */
1024
- canConsumeForm(consumes) {
1025
- const form = 'multipart/form-data';
1026
- for (const consume of consumes) {
1027
- if (form === consume) {
1028
- return true;
1029
- }
1030
- }
1031
- return false;
1032
- }
1033
- getCampaignInsights(startDate, endDate, sourcePlatform, interval, requireMmpReport, observe = 'body', reportProgress = false) {
1034
- if (startDate === null || startDate === undefined) {
1035
- throw new Error('Required parameter startDate was null or undefined when calling getCampaignInsights.');
1036
- }
1037
- if (endDate === null || endDate === undefined) {
1038
- throw new Error('Required parameter endDate was null or undefined when calling getCampaignInsights.');
1039
- }
1040
- if (sourcePlatform === null || sourcePlatform === undefined) {
1041
- throw new Error('Required parameter sourcePlatform was null or undefined when calling getCampaignInsights.');
1042
- }
1043
- if (interval === null || interval === undefined) {
1044
- throw new Error('Required parameter interval was null or undefined when calling getCampaignInsights.');
1045
- }
1046
- let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
1047
- if (startDate !== undefined && startDate !== null) {
1048
- queryParameters = queryParameters.set('startDate', startDate);
1049
- }
1050
- if (endDate !== undefined && endDate !== null) {
1051
- queryParameters = queryParameters.set('endDate', endDate);
1052
- }
1053
- if (sourcePlatform !== undefined && sourcePlatform !== null) {
1054
- queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
1055
- }
1056
- if (interval !== undefined && interval !== null) {
1057
- queryParameters = queryParameters.set('interval', interval);
1058
- }
1059
- if (requireMmpReport !== undefined && requireMmpReport !== null) {
1060
- queryParameters = queryParameters.set('requireMmpReport', requireMmpReport);
1061
- }
1062
- let headers = this.defaultHeaders;
1063
- // to determine the Accept header
1064
- let httpHeaderAccepts = [
1065
- '*/*'
1066
- ];
1067
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1068
- if (httpHeaderAcceptSelected != undefined) {
1069
- headers = headers.set('Accept', httpHeaderAcceptSelected);
1070
- }
1071
- // to determine the Content-Type header
1072
- const consumes = [];
1073
- return this.httpClient.request('get', `${this.basePath}/api/campaign-insights`, {
1074
- params: queryParameters,
1075
- withCredentials: this.configuration.withCredentials,
1076
- headers: headers,
1077
- observe: observe,
1078
- reportProgress: reportProgress
1079
- });
1080
- }
1081
- }
1082
- 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 });
1083
- InsightsControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService });
1084
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, decorators: [{
1085
- type: Injectable
1086
- }], ctorParameters: function () {
1087
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1088
- type: Optional
1089
- }, {
1090
- type: Inject,
1091
- args: [BASE_PATH]
1092
- }] }, { type: Configuration, decorators: [{
1093
- type: Optional
1094
- }] }];
1023
+ /**
1024
+ * Intellibid API
1025
+ * API documentation for the Intellibid platform
1026
+ *
1027
+ * OpenAPI spec version: 1.0
1028
+ *
1029
+ *
1030
+ * NOTE: This class is auto generated by the swagger code generator program.
1031
+ * https://github.com/swagger-api/swagger-codegen.git
1032
+ * Do not edit the class manually.
1033
+ */ /* tslint:disable:no-unused-variable member-ordering */
1034
+ class InsightsControllerService {
1035
+ constructor(httpClient, basePath, configuration) {
1036
+ this.httpClient = httpClient;
1037
+ this.basePath = 'http://dev1-intellibid-svc.revx.io';
1038
+ this.defaultHeaders = new HttpHeaders();
1039
+ this.configuration = new Configuration();
1040
+ if (basePath) {
1041
+ this.basePath = basePath;
1042
+ }
1043
+ if (configuration) {
1044
+ this.configuration = configuration;
1045
+ this.basePath = basePath || configuration.basePath || this.basePath;
1046
+ }
1047
+ }
1048
+ /**
1049
+ * @param consumes string[] mime-types
1050
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
1051
+ */
1052
+ canConsumeForm(consumes) {
1053
+ const form = 'multipart/form-data';
1054
+ for (const consume of consumes) {
1055
+ if (form === consume) {
1056
+ return true;
1057
+ }
1058
+ }
1059
+ return false;
1060
+ }
1061
+ getCampaignInsights(startDate, endDate, sourcePlatform, interval, requireMmpReport, observe = 'body', reportProgress = false) {
1062
+ if (startDate === null || startDate === undefined) {
1063
+ throw new Error('Required parameter startDate was null or undefined when calling getCampaignInsights.');
1064
+ }
1065
+ if (endDate === null || endDate === undefined) {
1066
+ throw new Error('Required parameter endDate was null or undefined when calling getCampaignInsights.');
1067
+ }
1068
+ if (sourcePlatform === null || sourcePlatform === undefined) {
1069
+ throw new Error('Required parameter sourcePlatform was null or undefined when calling getCampaignInsights.');
1070
+ }
1071
+ if (interval === null || interval === undefined) {
1072
+ throw new Error('Required parameter interval was null or undefined when calling getCampaignInsights.');
1073
+ }
1074
+ let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
1075
+ if (startDate !== undefined && startDate !== null) {
1076
+ queryParameters = queryParameters.set('startDate', startDate);
1077
+ }
1078
+ if (endDate !== undefined && endDate !== null) {
1079
+ queryParameters = queryParameters.set('endDate', endDate);
1080
+ }
1081
+ if (sourcePlatform !== undefined && sourcePlatform !== null) {
1082
+ queryParameters = queryParameters.set('sourcePlatform', sourcePlatform);
1083
+ }
1084
+ if (interval !== undefined && interval !== null) {
1085
+ queryParameters = queryParameters.set('interval', interval);
1086
+ }
1087
+ if (requireMmpReport !== undefined && requireMmpReport !== null) {
1088
+ queryParameters = queryParameters.set('requireMmpReport', requireMmpReport);
1089
+ }
1090
+ let headers = this.defaultHeaders;
1091
+ // to determine the Accept header
1092
+ let httpHeaderAccepts = [
1093
+ '*/*'
1094
+ ];
1095
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1096
+ if (httpHeaderAcceptSelected != undefined) {
1097
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1098
+ }
1099
+ // to determine the Content-Type header
1100
+ const consumes = [];
1101
+ return this.httpClient.request('get', `${this.basePath}/api/campaign-insights`, {
1102
+ params: queryParameters,
1103
+ withCredentials: this.configuration.withCredentials,
1104
+ headers: headers,
1105
+ observe: observe,
1106
+ reportProgress: reportProgress
1107
+ });
1108
+ }
1109
+ }
1110
+ 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 });
1111
+ InsightsControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService });
1112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: InsightsControllerService, decorators: [{
1113
+ type: Injectable
1114
+ }], ctorParameters: function () {
1115
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1116
+ type: Optional
1117
+ }, {
1118
+ type: Inject,
1119
+ args: [BASE_PATH]
1120
+ }] }, { type: Configuration, decorators: [{
1121
+ type: Optional
1122
+ }] }];
1095
1123
  } });
1096
1124
 
1097
- /**
1098
- * Intellibid API
1099
- * API documentation for the Intellibid platform
1100
- *
1101
- * OpenAPI spec version: 1.0
1102
- *
1103
- *
1104
- * NOTE: This class is auto generated by the swagger code generator program.
1105
- * https://github.com/swagger-api/swagger-codegen.git
1106
- * Do not edit the class manually.
1107
- */ /* tslint:disable:no-unused-variable member-ordering */
1108
- class LookupDataControllerService {
1109
- constructor(httpClient, basePath, configuration) {
1110
- this.httpClient = httpClient;
1111
- this.basePath = 'http://dev1-intellibid-svc.revx.io';
1112
- this.defaultHeaders = new HttpHeaders();
1113
- this.configuration = new Configuration();
1114
- if (basePath) {
1115
- this.basePath = basePath;
1116
- }
1117
- if (configuration) {
1118
- this.configuration = configuration;
1119
- this.basePath = basePath || configuration.basePath || this.basePath;
1120
- }
1121
- }
1122
- /**
1123
- * @param consumes string[] mime-types
1124
- * @return true: consumes contains 'multipart/form-data', false: otherwise
1125
- */
1126
- canConsumeForm(consumes) {
1127
- const form = 'multipart/form-data';
1128
- for (const consume of consumes) {
1129
- if (form === consume) {
1130
- return true;
1131
- }
1132
- }
1133
- return false;
1134
- }
1135
- getAllActiveOS(observe = 'body', reportProgress = false) {
1136
- let headers = this.defaultHeaders;
1137
- // to determine the Accept header
1138
- let httpHeaderAccepts = [
1139
- '*/*'
1140
- ];
1141
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1142
- if (httpHeaderAcceptSelected != undefined) {
1143
- headers = headers.set('Accept', httpHeaderAcceptSelected);
1144
- }
1145
- // to determine the Content-Type header
1146
- const consumes = [];
1147
- return this.httpClient.request('get', `${this.basePath}/api/lookups/os`, {
1148
- withCredentials: this.configuration.withCredentials,
1149
- headers: headers,
1150
- observe: observe,
1151
- reportProgress: reportProgress
1152
- });
1153
- }
1154
- getAllActivePlatforms(observe = 'body', reportProgress = false) {
1155
- let headers = this.defaultHeaders;
1156
- // to determine the Accept header
1157
- let httpHeaderAccepts = [
1158
- '*/*'
1159
- ];
1160
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1161
- if (httpHeaderAcceptSelected != undefined) {
1162
- headers = headers.set('Accept', httpHeaderAcceptSelected);
1163
- }
1164
- // to determine the Content-Type header
1165
- const consumes = [];
1166
- return this.httpClient.request('get', `${this.basePath}/api/lookups/platforms`, {
1167
- withCredentials: this.configuration.withCredentials,
1168
- headers: headers,
1169
- observe: observe,
1170
- reportProgress: reportProgress
1171
- });
1172
- }
1173
- getAllBusinessZones(observe = 'body', reportProgress = false) {
1174
- let headers = this.defaultHeaders;
1175
- // to determine the Accept header
1176
- let httpHeaderAccepts = [
1177
- '*/*'
1178
- ];
1179
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1180
- if (httpHeaderAcceptSelected != undefined) {
1181
- headers = headers.set('Accept', httpHeaderAcceptSelected);
1182
- }
1183
- // to determine the Content-Type header
1184
- const consumes = [];
1185
- return this.httpClient.request('get', `${this.basePath}/api/lookups/business-zones`, {
1186
- withCredentials: this.configuration.withCredentials,
1187
- headers: headers,
1188
- observe: observe,
1189
- reportProgress: reportProgress
1190
- });
1191
- }
1192
- getAllCountries(observe = 'body', reportProgress = false) {
1193
- let headers = this.defaultHeaders;
1194
- // to determine the Accept header
1195
- let httpHeaderAccepts = [
1196
- '*/*'
1197
- ];
1198
- const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1199
- if (httpHeaderAcceptSelected != undefined) {
1200
- headers = headers.set('Accept', httpHeaderAcceptSelected);
1201
- }
1202
- // to determine the Content-Type header
1203
- const consumes = [];
1204
- return this.httpClient.request('get', `${this.basePath}/api/lookups/countries`, {
1205
- withCredentials: this.configuration.withCredentials,
1206
- headers: headers,
1207
- observe: observe,
1208
- reportProgress: reportProgress
1209
- });
1210
- }
1211
- }
1212
- 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 });
1213
- LookupDataControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService });
1214
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService, decorators: [{
1215
- type: Injectable
1216
- }], ctorParameters: function () {
1217
- return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1218
- type: Optional
1219
- }, {
1220
- type: Inject,
1221
- args: [BASE_PATH]
1222
- }] }, { type: Configuration, decorators: [{
1223
- type: Optional
1224
- }] }];
1125
+ /**
1126
+ * Intellibid API
1127
+ * API documentation for the Intellibid platform
1128
+ *
1129
+ * OpenAPI spec version: 1.0
1130
+ *
1131
+ *
1132
+ * NOTE: This class is auto generated by the swagger code generator program.
1133
+ * https://github.com/swagger-api/swagger-codegen.git
1134
+ * Do not edit the class manually.
1135
+ */ /* tslint:disable:no-unused-variable member-ordering */
1136
+ class LookupDataControllerService {
1137
+ constructor(httpClient, basePath, configuration) {
1138
+ this.httpClient = httpClient;
1139
+ this.basePath = 'http://dev1-intellibid-svc.revx.io';
1140
+ this.defaultHeaders = new HttpHeaders();
1141
+ this.configuration = new Configuration();
1142
+ if (basePath) {
1143
+ this.basePath = basePath;
1144
+ }
1145
+ if (configuration) {
1146
+ this.configuration = configuration;
1147
+ this.basePath = basePath || configuration.basePath || this.basePath;
1148
+ }
1149
+ }
1150
+ /**
1151
+ * @param consumes string[] mime-types
1152
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
1153
+ */
1154
+ canConsumeForm(consumes) {
1155
+ const form = 'multipart/form-data';
1156
+ for (const consume of consumes) {
1157
+ if (form === consume) {
1158
+ return true;
1159
+ }
1160
+ }
1161
+ return false;
1162
+ }
1163
+ getAllActiveOS(observe = 'body', reportProgress = false) {
1164
+ let headers = this.defaultHeaders;
1165
+ // to determine the Accept header
1166
+ let httpHeaderAccepts = [
1167
+ '*/*'
1168
+ ];
1169
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1170
+ if (httpHeaderAcceptSelected != undefined) {
1171
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1172
+ }
1173
+ // to determine the Content-Type header
1174
+ const consumes = [];
1175
+ return this.httpClient.request('get', `${this.basePath}/api/lookups/os`, {
1176
+ withCredentials: this.configuration.withCredentials,
1177
+ headers: headers,
1178
+ observe: observe,
1179
+ reportProgress: reportProgress
1180
+ });
1181
+ }
1182
+ getAllActivePlatforms(observe = 'body', reportProgress = false) {
1183
+ let headers = this.defaultHeaders;
1184
+ // to determine the Accept header
1185
+ let httpHeaderAccepts = [
1186
+ '*/*'
1187
+ ];
1188
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1189
+ if (httpHeaderAcceptSelected != undefined) {
1190
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1191
+ }
1192
+ // to determine the Content-Type header
1193
+ const consumes = [];
1194
+ return this.httpClient.request('get', `${this.basePath}/api/lookups/platforms`, {
1195
+ withCredentials: this.configuration.withCredentials,
1196
+ headers: headers,
1197
+ observe: observe,
1198
+ reportProgress: reportProgress
1199
+ });
1200
+ }
1201
+ getAllBusinessZones(observe = 'body', reportProgress = false) {
1202
+ let headers = this.defaultHeaders;
1203
+ // to determine the Accept header
1204
+ let httpHeaderAccepts = [
1205
+ '*/*'
1206
+ ];
1207
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1208
+ if (httpHeaderAcceptSelected != undefined) {
1209
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1210
+ }
1211
+ // to determine the Content-Type header
1212
+ const consumes = [];
1213
+ return this.httpClient.request('get', `${this.basePath}/api/lookups/business-zones`, {
1214
+ withCredentials: this.configuration.withCredentials,
1215
+ headers: headers,
1216
+ observe: observe,
1217
+ reportProgress: reportProgress
1218
+ });
1219
+ }
1220
+ getAllCountries(observe = 'body', reportProgress = false) {
1221
+ let headers = this.defaultHeaders;
1222
+ // to determine the Accept header
1223
+ let httpHeaderAccepts = [
1224
+ '*/*'
1225
+ ];
1226
+ const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1227
+ if (httpHeaderAcceptSelected != undefined) {
1228
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
1229
+ }
1230
+ // to determine the Content-Type header
1231
+ const consumes = [];
1232
+ return this.httpClient.request('get', `${this.basePath}/api/lookups/countries`, {
1233
+ withCredentials: this.configuration.withCredentials,
1234
+ headers: headers,
1235
+ observe: observe,
1236
+ reportProgress: reportProgress
1237
+ });
1238
+ }
1239
+ }
1240
+ 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 });
1241
+ LookupDataControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService });
1242
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: LookupDataControllerService, decorators: [{
1243
+ type: Injectable
1244
+ }], ctorParameters: function () {
1245
+ return [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1246
+ type: Optional
1247
+ }, {
1248
+ type: Inject,
1249
+ args: [BASE_PATH]
1250
+ }] }, { type: Configuration, decorators: [{
1251
+ type: Optional
1252
+ }] }];
1225
1253
  } });
1226
1254
 
1227
1255
  const APIS = [AdvertiserControllerService, AudienceControllerService, CampaignControllerService, InsightsControllerService, LookupDataControllerService];
1228
1256
 
1229
- /**
1230
- * Intellibid API
1231
- * API documentation for the Intellibid platform
1232
- *
1233
- * OpenAPI spec version: 1.0
1234
- *
1235
- *
1236
- * NOTE: This class is auto generated by the swagger code generator program.
1237
- * https://github.com/swagger-api/swagger-codegen.git
1238
- * Do not edit the class manually.
1239
- */
1240
- var AdAccountResponse;
1241
- (function (AdAccountResponse) {
1242
- AdAccountResponse.SourcePlatformEnum = {
1243
- META: 'META',
1244
- TIKTOK: 'TIKTOK',
1245
- SNAPCHAT: 'SNAPCHAT',
1246
- GOOGLE: 'GOOGLE',
1247
- LYADS: 'LYADS'
1248
- };
1249
- AdAccountResponse.AccountTypeEnum = {
1250
- SEARCH: 'SEARCH',
1251
- DISPLAY: 'DISPLAY'
1252
- };
1257
+ /**
1258
+ * Intellibid API
1259
+ * API documentation for the Intellibid platform
1260
+ *
1261
+ * OpenAPI spec version: 1.0
1262
+ *
1263
+ *
1264
+ * NOTE: This class is auto generated by the swagger code generator program.
1265
+ * https://github.com/swagger-api/swagger-codegen.git
1266
+ * Do not edit the class manually.
1267
+ */
1268
+ var AdAccountResponse;
1269
+ (function (AdAccountResponse) {
1270
+ AdAccountResponse.SourcePlatformEnum = {
1271
+ META: 'META',
1272
+ TIKTOK: 'TIKTOK',
1273
+ SNAPCHAT: 'SNAPCHAT',
1274
+ GOOGLE: 'GOOGLE',
1275
+ LYADS: 'LYADS'
1276
+ };
1277
+ AdAccountResponse.AccountTypeEnum = {
1278
+ SEARCH: 'SEARCH',
1279
+ DISPLAY: 'DISPLAY'
1280
+ };
1253
1281
  })(AdAccountResponse || (AdAccountResponse = {}));
1254
1282
 
1255
- var AudienceResponse;
1256
- (function (AudienceResponse) {
1257
- AudienceResponse.GroupTypeEnum = {
1258
- BUCKETIZEDLIVE: 'BUCKETIZED_LIVE',
1259
- BLOCKEDLIVE: 'BLOCKED_LIVE',
1260
- BUCKETIZEDCUSTOM: 'BUCKETIZED_CUSTOM',
1261
- DSCUSTOMQUERY: 'DS_CUSTOM_QUERY'
1262
- };
1263
- AudienceResponse.SyncStatusEnum = {
1264
- IDLE: 'IDLE',
1265
- SYNCING: 'SYNCING',
1266
- PARTIAL: 'PARTIAL',
1267
- FAILED: 'FAILED',
1268
- GAVEUP: 'GAVE_UP'
1269
- };
1283
+ var AudienceResponse;
1284
+ (function (AudienceResponse) {
1285
+ AudienceResponse.GroupTypeEnum = {
1286
+ BUCKETIZEDLIVE: 'BUCKETIZED_LIVE',
1287
+ BLOCKEDLIVE: 'BLOCKED_LIVE',
1288
+ BUCKETIZEDCUSTOM: 'BUCKETIZED_CUSTOM',
1289
+ DSCUSTOMQUERY: 'DS_CUSTOM_QUERY'
1290
+ };
1291
+ AudienceResponse.SyncStatusEnum = {
1292
+ IDLE: 'IDLE',
1293
+ SYNCING: 'SYNCING',
1294
+ PARTIAL: 'PARTIAL',
1295
+ FAILED: 'FAILED',
1296
+ GAVEUP: 'GAVE_UP'
1297
+ };
1270
1298
  })(AudienceResponse || (AudienceResponse = {}));
1271
1299
 
1272
- /**
1273
- * Intellibid API
1274
- * API documentation for the Intellibid platform
1275
- *
1276
- * OpenAPI spec version: 1.0
1277
- *
1278
- *
1279
- * NOTE: This class is auto generated by the swagger code generator program.
1280
- * https://github.com/swagger-api/swagger-codegen.git
1281
- * Do not edit the class manually.
1282
- */
1283
- var CampaignChangeLogResponse;
1284
- (function (CampaignChangeLogResponse) {
1285
- CampaignChangeLogResponse.EntityChangedEnum = {
1286
- STATUS: 'STATUS',
1287
- BUDGET: 'BUDGET',
1288
- PAYOUTVALUE: 'PAYOUT_VALUE'
1289
- };
1290
- CampaignChangeLogResponse.StatusEnum = {
1291
- SUCCESS: 'SUCCESS',
1292
- FAILED: 'FAILED'
1293
- };
1300
+ /**
1301
+ * Intellibid API
1302
+ * API documentation for the Intellibid platform
1303
+ *
1304
+ * OpenAPI spec version: 1.0
1305
+ *
1306
+ *
1307
+ * NOTE: This class is auto generated by the swagger code generator program.
1308
+ * https://github.com/swagger-api/swagger-codegen.git
1309
+ * Do not edit the class manually.
1310
+ */
1311
+ var CampaignChangeLogResponse;
1312
+ (function (CampaignChangeLogResponse) {
1313
+ CampaignChangeLogResponse.EntityChangedEnum = {
1314
+ STATUS: 'STATUS',
1315
+ BUDGET: 'BUDGET',
1316
+ PAYOUTVALUE: 'PAYOUT_VALUE'
1317
+ };
1318
+ CampaignChangeLogResponse.StatusEnum = {
1319
+ SUCCESS: 'SUCCESS',
1320
+ FAILED: 'FAILED'
1321
+ };
1294
1322
  })(CampaignChangeLogResponse || (CampaignChangeLogResponse = {}));
1295
1323
 
1296
- /**
1297
- * Intellibid API
1298
- * API documentation for the Intellibid platform
1299
- *
1300
- * OpenAPI spec version: 1.0
1301
- *
1302
- *
1303
- * NOTE: This class is auto generated by the swagger code generator program.
1304
- * https://github.com/swagger-api/swagger-codegen.git
1305
- * Do not edit the class manually.
1306
- */
1307
- var CampaignInsightRecord;
1308
- (function (CampaignInsightRecord) {
1309
- CampaignInsightRecord.PayoutTypeEnum = {
1310
- DYNAMICMARGIN: 'DYNAMIC_MARGIN',
1311
- PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
1312
- };
1324
+ /**
1325
+ * Intellibid API
1326
+ * API documentation for the Intellibid platform
1327
+ *
1328
+ * OpenAPI spec version: 1.0
1329
+ *
1330
+ *
1331
+ * NOTE: This class is auto generated by the swagger code generator program.
1332
+ * https://github.com/swagger-api/swagger-codegen.git
1333
+ * Do not edit the class manually.
1334
+ */
1335
+ var CampaignInsightRecord;
1336
+ (function (CampaignInsightRecord) {
1337
+ CampaignInsightRecord.PayoutTypeEnum = {
1338
+ DYNAMICMARGIN: 'DYNAMIC_MARGIN',
1339
+ PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
1340
+ };
1313
1341
  })(CampaignInsightRecord || (CampaignInsightRecord = {}));
1314
1342
 
1315
- /**
1316
- * Intellibid API
1317
- * API documentation for the Intellibid platform
1318
- *
1319
- * OpenAPI spec version: 1.0
1320
- *
1321
- *
1322
- * NOTE: This class is auto generated by the swagger code generator program.
1323
- * https://github.com/swagger-api/swagger-codegen.git
1324
- * Do not edit the class manually.
1325
- */
1326
- var CampaignRequest;
1327
- (function (CampaignRequest) {
1328
- CampaignRequest.SourcePlatformEnum = {
1329
- META: 'META',
1330
- TIKTOK: 'TIKTOK',
1331
- SNAPCHAT: 'SNAPCHAT',
1332
- GOOGLE: 'GOOGLE',
1333
- LYADS: 'LYADS'
1334
- };
1335
- CampaignRequest.PayoutTypeEnum = {
1336
- DYNAMICMARGIN: 'DYNAMIC_MARGIN',
1337
- PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
1338
- };
1339
- CampaignRequest.GoalEnum = {
1340
- COSTPERRESULT: 'COST_PER_RESULT',
1341
- ROAS: 'ROAS'
1342
- };
1343
- CampaignRequest.MmpAttributionSettingEnum = {
1344
- CTA: 'CTA',
1345
- CTAANDVTA: 'CTA_AND_VTA'
1346
- };
1343
+ /**
1344
+ * Intellibid API
1345
+ * API documentation for the Intellibid platform
1346
+ *
1347
+ * OpenAPI spec version: 1.0
1348
+ *
1349
+ *
1350
+ * NOTE: This class is auto generated by the swagger code generator program.
1351
+ * https://github.com/swagger-api/swagger-codegen.git
1352
+ * Do not edit the class manually.
1353
+ */
1354
+ var CampaignRequest;
1355
+ (function (CampaignRequest) {
1356
+ CampaignRequest.SourcePlatformEnum = {
1357
+ META: 'META',
1358
+ TIKTOK: 'TIKTOK',
1359
+ SNAPCHAT: 'SNAPCHAT',
1360
+ GOOGLE: 'GOOGLE',
1361
+ LYADS: 'LYADS'
1362
+ };
1363
+ CampaignRequest.PayoutTypeEnum = {
1364
+ DYNAMICMARGIN: 'DYNAMIC_MARGIN',
1365
+ PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
1366
+ };
1367
+ CampaignRequest.GoalEnum = {
1368
+ COSTPERRESULT: 'COST_PER_RESULT',
1369
+ ROAS: 'ROAS'
1370
+ };
1371
+ CampaignRequest.MmpAttributionSettingEnum = {
1372
+ CTA: 'CTA',
1373
+ CTAANDVTA: 'CTA_AND_VTA'
1374
+ };
1347
1375
  })(CampaignRequest || (CampaignRequest = {}));
1348
1376
 
1349
- var CampaignResponse;
1350
- (function (CampaignResponse) {
1351
- CampaignResponse.SourcePlatformEnum = {
1352
- META: 'META',
1353
- TIKTOK: 'TIKTOK',
1354
- SNAPCHAT: 'SNAPCHAT',
1355
- GOOGLE: 'GOOGLE',
1356
- LYADS: 'LYADS'
1357
- };
1358
- CampaignResponse.AccountTypeEnum = {
1359
- SEARCH: 'SEARCH',
1360
- DISPLAY: 'DISPLAY'
1361
- };
1362
- CampaignResponse.PayoutTypeEnum = {
1363
- DYNAMICMARGIN: 'DYNAMIC_MARGIN',
1364
- PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
1365
- };
1366
- CampaignResponse.GoalEnum = {
1367
- COSTPERRESULT: 'COST_PER_RESULT',
1368
- ROAS: 'ROAS'
1369
- };
1370
- CampaignResponse.MmpAttributionSettingEnum = {
1371
- CTA: 'CTA',
1372
- CTAANDVTA: 'CTA_AND_VTA'
1373
- };
1377
+ var CampaignResponse;
1378
+ (function (CampaignResponse) {
1379
+ CampaignResponse.SourcePlatformEnum = {
1380
+ META: 'META',
1381
+ TIKTOK: 'TIKTOK',
1382
+ SNAPCHAT: 'SNAPCHAT',
1383
+ GOOGLE: 'GOOGLE',
1384
+ LYADS: 'LYADS'
1385
+ };
1386
+ CampaignResponse.AccountTypeEnum = {
1387
+ SEARCH: 'SEARCH',
1388
+ DISPLAY: 'DISPLAY'
1389
+ };
1390
+ CampaignResponse.PayoutTypeEnum = {
1391
+ DYNAMICMARGIN: 'DYNAMIC_MARGIN',
1392
+ PAYOUTPERCONVERSION: 'PAYOUT_PER_CONVERSION'
1393
+ };
1394
+ CampaignResponse.GoalEnum = {
1395
+ COSTPERRESULT: 'COST_PER_RESULT',
1396
+ ROAS: 'ROAS'
1397
+ };
1398
+ CampaignResponse.MmpAttributionSettingEnum = {
1399
+ CTA: 'CTA',
1400
+ CTAANDVTA: 'CTA_AND_VTA'
1401
+ };
1374
1402
  })(CampaignResponse || (CampaignResponse = {}));
1375
1403
 
1376
- /**
1377
- * Intellibid API
1378
- * API documentation for the Intellibid platform
1379
- *
1380
- * OpenAPI spec version: 1.0
1381
- *
1382
- *
1383
- * NOTE: This class is auto generated by the swagger code generator program.
1384
- * https://github.com/swagger-api/swagger-codegen.git
1385
- * Do not edit the class manually.
1386
- */
1387
- var ChildAudience;
1388
- (function (ChildAudience) {
1389
- ChildAudience.AudienceTypeEnum = {
1390
- DYNAMIC: 'DYNAMIC',
1391
- CATALOGUE: 'CATALOGUE'
1392
- };
1393
- ChildAudience.AudienceSourceEnum = {
1394
- INTELLIBID: 'INTELLIBID',
1395
- DS: 'DS'
1396
- };
1397
- ChildAudience.UploadModeEnum = {
1398
- API: 'API',
1399
- CSV: 'CSV'
1400
- };
1401
- ChildAudience.UploadFrequencyEnum = {
1402
- ONCE: 'ONCE',
1403
- DAILY: 'DAILY',
1404
- EVERY2D: 'EVERY_2D',
1405
- WEEKLY: 'WEEKLY',
1406
- MONTHLY: 'MONTHLY'
1407
- };
1408
- ChildAudience.BlockingOperatorEnum = {
1409
- GTE: 'GTE',
1410
- EQ: 'EQ'
1411
- };
1404
+ /**
1405
+ * Intellibid API
1406
+ * API documentation for the Intellibid platform
1407
+ *
1408
+ * OpenAPI spec version: 1.0
1409
+ *
1410
+ *
1411
+ * NOTE: This class is auto generated by the swagger code generator program.
1412
+ * https://github.com/swagger-api/swagger-codegen.git
1413
+ * Do not edit the class manually.
1414
+ */
1415
+ var ChildAudience;
1416
+ (function (ChildAudience) {
1417
+ ChildAudience.AudienceTypeEnum = {
1418
+ DYNAMIC: 'DYNAMIC',
1419
+ CATALOGUE: 'CATALOGUE'
1420
+ };
1421
+ ChildAudience.AudienceSourceEnum = {
1422
+ INTELLIBID: 'INTELLIBID',
1423
+ DS: 'DS'
1424
+ };
1425
+ ChildAudience.UploadModeEnum = {
1426
+ API: 'API',
1427
+ CSV: 'CSV'
1428
+ };
1429
+ ChildAudience.UploadFrequencyEnum = {
1430
+ ONCE: 'ONCE',
1431
+ DAILY: 'DAILY',
1432
+ EVERY2D: 'EVERY_2D',
1433
+ WEEKLY: 'WEEKLY',
1434
+ MONTHLY: 'MONTHLY'
1435
+ };
1436
+ ChildAudience.BlockingOperatorEnum = {
1437
+ GTE: 'GTE',
1438
+ EQ: 'EQ'
1439
+ };
1412
1440
  })(ChildAudience || (ChildAudience = {}));
1413
1441
 
1414
- /**
1415
- * Intellibid API
1416
- * API documentation for the Intellibid platform
1417
- *
1418
- * OpenAPI spec version: 1.0
1419
- *
1420
- *
1421
- * NOTE: This class is auto generated by the swagger code generator program.
1422
- * https://github.com/swagger-api/swagger-codegen.git
1423
- * Do not edit the class manually.
1424
- */
1425
- var CreateBlockedLiveAudienceRequest;
1426
- (function (CreateBlockedLiveAudienceRequest) {
1427
- CreateBlockedLiveAudienceRequest.SourcePlatformEnum = {
1428
- META: 'META',
1429
- TIKTOK: 'TIKTOK',
1430
- SNAPCHAT: 'SNAPCHAT',
1431
- GOOGLE: 'GOOGLE',
1432
- LYADS: 'LYADS'
1433
- };
1442
+ /**
1443
+ * Intellibid API
1444
+ * API documentation for the Intellibid platform
1445
+ *
1446
+ * OpenAPI spec version: 1.0
1447
+ *
1448
+ *
1449
+ * NOTE: This class is auto generated by the swagger code generator program.
1450
+ * https://github.com/swagger-api/swagger-codegen.git
1451
+ * Do not edit the class manually.
1452
+ */
1453
+ var CreateBlockedLiveAudienceRequest;
1454
+ (function (CreateBlockedLiveAudienceRequest) {
1455
+ CreateBlockedLiveAudienceRequest.SourcePlatformEnum = {
1456
+ META: 'META',
1457
+ TIKTOK: 'TIKTOK',
1458
+ SNAPCHAT: 'SNAPCHAT',
1459
+ GOOGLE: 'GOOGLE',
1460
+ LYADS: 'LYADS'
1461
+ };
1434
1462
  })(CreateBlockedLiveAudienceRequest || (CreateBlockedLiveAudienceRequest = {}));
1435
1463
 
1436
- /**
1437
- * Intellibid API
1438
- * API documentation for the Intellibid platform
1439
- *
1440
- * OpenAPI spec version: 1.0
1441
- *
1442
- *
1443
- * NOTE: This class is auto generated by the swagger code generator program.
1444
- * https://github.com/swagger-api/swagger-codegen.git
1445
- * Do not edit the class manually.
1446
- */
1447
- var CreateBucketizedCustomAudienceRequest;
1448
- (function (CreateBucketizedCustomAudienceRequest) {
1449
- CreateBucketizedCustomAudienceRequest.SourcePlatformEnum = {
1450
- META: 'META',
1451
- TIKTOK: 'TIKTOK',
1452
- SNAPCHAT: 'SNAPCHAT',
1453
- GOOGLE: 'GOOGLE',
1454
- LYADS: 'LYADS'
1455
- };
1456
- CreateBucketizedCustomAudienceRequest.AudienceSourceEnum = {
1457
- INTELLIBID: 'INTELLIBID',
1458
- DS: 'DS'
1459
- };
1460
- CreateBucketizedCustomAudienceRequest.UploadModeEnum = {
1461
- API: 'API',
1462
- CSV: 'CSV'
1463
- };
1464
- CreateBucketizedCustomAudienceRequest.UploadFrequencyEnum = {
1465
- ONCE: 'ONCE',
1466
- DAILY: 'DAILY',
1467
- EVERY2D: 'EVERY_2D',
1468
- WEEKLY: 'WEEKLY',
1469
- MONTHLY: 'MONTHLY'
1470
- };
1464
+ /**
1465
+ * Intellibid API
1466
+ * API documentation for the Intellibid platform
1467
+ *
1468
+ * OpenAPI spec version: 1.0
1469
+ *
1470
+ *
1471
+ * NOTE: This class is auto generated by the swagger code generator program.
1472
+ * https://github.com/swagger-api/swagger-codegen.git
1473
+ * Do not edit the class manually.
1474
+ */
1475
+ var CreateBucketizedCustomAudienceRequest;
1476
+ (function (CreateBucketizedCustomAudienceRequest) {
1477
+ CreateBucketizedCustomAudienceRequest.SourcePlatformEnum = {
1478
+ META: 'META',
1479
+ TIKTOK: 'TIKTOK',
1480
+ SNAPCHAT: 'SNAPCHAT',
1481
+ GOOGLE: 'GOOGLE',
1482
+ LYADS: 'LYADS'
1483
+ };
1484
+ CreateBucketizedCustomAudienceRequest.AudienceSourceEnum = {
1485
+ INTELLIBID: 'INTELLIBID',
1486
+ DS: 'DS'
1487
+ };
1488
+ CreateBucketizedCustomAudienceRequest.UploadModeEnum = {
1489
+ API: 'API',
1490
+ CSV: 'CSV'
1491
+ };
1492
+ CreateBucketizedCustomAudienceRequest.UploadFrequencyEnum = {
1493
+ ONCE: 'ONCE',
1494
+ DAILY: 'DAILY',
1495
+ EVERY2D: 'EVERY_2D',
1496
+ WEEKLY: 'WEEKLY',
1497
+ MONTHLY: 'MONTHLY'
1498
+ };
1471
1499
  })(CreateBucketizedCustomAudienceRequest || (CreateBucketizedCustomAudienceRequest = {}));
1472
1500
 
1473
- /**
1474
- * Intellibid API
1475
- * API documentation for the Intellibid platform
1476
- *
1477
- * OpenAPI spec version: 1.0
1478
- *
1479
- *
1480
- * NOTE: This class is auto generated by the swagger code generator program.
1481
- * https://github.com/swagger-api/swagger-codegen.git
1482
- * Do not edit the class manually.
1483
- */
1484
- var CreateBucketizedLiveAudienceRequest;
1485
- (function (CreateBucketizedLiveAudienceRequest) {
1486
- CreateBucketizedLiveAudienceRequest.SourcePlatformEnum = {
1487
- META: 'META',
1488
- TIKTOK: 'TIKTOK',
1489
- SNAPCHAT: 'SNAPCHAT',
1490
- GOOGLE: 'GOOGLE',
1491
- LYADS: 'LYADS'
1492
- };
1493
- CreateBucketizedLiveAudienceRequest.AudienceTypeEnum = {
1494
- DYNAMIC: 'DYNAMIC',
1495
- CATALOGUE: 'CATALOGUE'
1496
- };
1501
+ /**
1502
+ * Intellibid API
1503
+ * API documentation for the Intellibid platform
1504
+ *
1505
+ * OpenAPI spec version: 1.0
1506
+ *
1507
+ *
1508
+ * NOTE: This class is auto generated by the swagger code generator program.
1509
+ * https://github.com/swagger-api/swagger-codegen.git
1510
+ * Do not edit the class manually.
1511
+ */
1512
+ var CreateBucketizedLiveAudienceRequest;
1513
+ (function (CreateBucketizedLiveAudienceRequest) {
1514
+ CreateBucketizedLiveAudienceRequest.SourcePlatformEnum = {
1515
+ META: 'META',
1516
+ TIKTOK: 'TIKTOK',
1517
+ SNAPCHAT: 'SNAPCHAT',
1518
+ GOOGLE: 'GOOGLE',
1519
+ LYADS: 'LYADS'
1520
+ };
1521
+ CreateBucketizedLiveAudienceRequest.AudienceTypeEnum = {
1522
+ DYNAMIC: 'DYNAMIC',
1523
+ CATALOGUE: 'CATALOGUE'
1524
+ };
1497
1525
  })(CreateBucketizedLiveAudienceRequest || (CreateBucketizedLiveAudienceRequest = {}));
1498
1526
 
1499
- /**
1500
- * Intellibid API
1501
- * API documentation for the Intellibid platform
1502
- *
1503
- * OpenAPI spec version: 1.0
1504
- *
1505
- *
1506
- * NOTE: This class is auto generated by the swagger code generator program.
1507
- * https://github.com/swagger-api/swagger-codegen.git
1508
- * Do not edit the class manually.
1509
- */
1510
- var CreateDsCustomQueryAudienceRequest;
1511
- (function (CreateDsCustomQueryAudienceRequest) {
1512
- CreateDsCustomQueryAudienceRequest.SourcePlatformEnum = {
1513
- META: 'META',
1514
- TIKTOK: 'TIKTOK',
1515
- SNAPCHAT: 'SNAPCHAT',
1516
- GOOGLE: 'GOOGLE',
1517
- LYADS: 'LYADS'
1518
- };
1519
- CreateDsCustomQueryAudienceRequest.UploadModeEnum = {
1520
- API: 'API',
1521
- CSV: 'CSV'
1522
- };
1523
- CreateDsCustomQueryAudienceRequest.UploadFrequencyEnum = {
1524
- ONCE: 'ONCE',
1525
- DAILY: 'DAILY',
1526
- EVERY2D: 'EVERY_2D',
1527
- WEEKLY: 'WEEKLY',
1528
- MONTHLY: 'MONTHLY'
1529
- };
1527
+ /**
1528
+ * Intellibid API
1529
+ * API documentation for the Intellibid platform
1530
+ *
1531
+ * OpenAPI spec version: 1.0
1532
+ *
1533
+ *
1534
+ * NOTE: This class is auto generated by the swagger code generator program.
1535
+ * https://github.com/swagger-api/swagger-codegen.git
1536
+ * Do not edit the class manually.
1537
+ */
1538
+ var CreateDsCustomQueryAudienceRequest;
1539
+ (function (CreateDsCustomQueryAudienceRequest) {
1540
+ CreateDsCustomQueryAudienceRequest.SourcePlatformEnum = {
1541
+ META: 'META',
1542
+ TIKTOK: 'TIKTOK',
1543
+ SNAPCHAT: 'SNAPCHAT',
1544
+ GOOGLE: 'GOOGLE',
1545
+ LYADS: 'LYADS'
1546
+ };
1547
+ CreateDsCustomQueryAudienceRequest.UploadModeEnum = {
1548
+ API: 'API',
1549
+ CSV: 'CSV'
1550
+ };
1551
+ CreateDsCustomQueryAudienceRequest.UploadFrequencyEnum = {
1552
+ ONCE: 'ONCE',
1553
+ DAILY: 'DAILY',
1554
+ EVERY2D: 'EVERY_2D',
1555
+ WEEKLY: 'WEEKLY',
1556
+ MONTHLY: 'MONTHLY'
1557
+ };
1530
1558
  })(CreateDsCustomQueryAudienceRequest || (CreateDsCustomQueryAudienceRequest = {}));
1531
1559
 
1532
- /**
1533
- * Intellibid API
1534
- * API documentation for the Intellibid platform
1535
- *
1536
- * OpenAPI spec version: 1.0
1537
- *
1538
- *
1539
- * NOTE: This class is auto generated by the swagger code generator program.
1540
- * https://github.com/swagger-api/swagger-codegen.git
1541
- * Do not edit the class manually.
1542
- */
1543
- var ProductSetRequest;
1544
- (function (ProductSetRequest) {
1545
- ProductSetRequest.SourcePlatformEnum = {
1546
- META: 'META',
1547
- TIKTOK: 'TIKTOK',
1548
- SNAPCHAT: 'SNAPCHAT',
1549
- GOOGLE: 'GOOGLE',
1550
- LYADS: 'LYADS'
1551
- };
1560
+ /**
1561
+ * Intellibid API
1562
+ * API documentation for the Intellibid platform
1563
+ *
1564
+ * OpenAPI spec version: 1.0
1565
+ *
1566
+ *
1567
+ * NOTE: This class is auto generated by the swagger code generator program.
1568
+ * https://github.com/swagger-api/swagger-codegen.git
1569
+ * Do not edit the class manually.
1570
+ */
1571
+ var ProductSetRequest;
1572
+ (function (ProductSetRequest) {
1573
+ ProductSetRequest.SourcePlatformEnum = {
1574
+ META: 'META',
1575
+ TIKTOK: 'TIKTOK',
1576
+ SNAPCHAT: 'SNAPCHAT',
1577
+ GOOGLE: 'GOOGLE',
1578
+ LYADS: 'LYADS'
1579
+ };
1552
1580
  })(ProductSetRequest || (ProductSetRequest = {}));
1553
1581
 
1554
- /**
1555
- * Intellibid API
1556
- * API documentation for the Intellibid platform
1557
- *
1558
- * OpenAPI spec version: 1.0
1559
- *
1560
- *
1561
- * NOTE: This class is auto generated by the swagger code generator program.
1562
- * https://github.com/swagger-api/swagger-codegen.git
1563
- * Do not edit the class manually.
1564
- */
1565
- var ProductSetResponse;
1566
- (function (ProductSetResponse) {
1567
- ProductSetResponse.SourcePlatformEnum = {
1568
- META: 'META',
1569
- TIKTOK: 'TIKTOK',
1570
- SNAPCHAT: 'SNAPCHAT',
1571
- GOOGLE: 'GOOGLE',
1572
- LYADS: 'LYADS'
1573
- };
1582
+ /**
1583
+ * Intellibid API
1584
+ * API documentation for the Intellibid platform
1585
+ *
1586
+ * OpenAPI spec version: 1.0
1587
+ *
1588
+ *
1589
+ * NOTE: This class is auto generated by the swagger code generator program.
1590
+ * https://github.com/swagger-api/swagger-codegen.git
1591
+ * Do not edit the class manually.
1592
+ */
1593
+ var ProductSetResponse;
1594
+ (function (ProductSetResponse) {
1595
+ ProductSetResponse.SourcePlatformEnum = {
1596
+ META: 'META',
1597
+ TIKTOK: 'TIKTOK',
1598
+ SNAPCHAT: 'SNAPCHAT',
1599
+ GOOGLE: 'GOOGLE',
1600
+ LYADS: 'LYADS'
1601
+ };
1574
1602
  })(ProductSetResponse || (ProductSetResponse = {}));
1575
1603
 
1576
- /**
1577
- * Intellibid API
1578
- * API documentation for the Intellibid platform
1579
- *
1580
- * OpenAPI spec version: 1.0
1581
- *
1582
- *
1583
- * NOTE: This class is auto generated by the swagger code generator program.
1584
- * https://github.com/swagger-api/swagger-codegen.git
1585
- * Do not edit the class manually.
1586
- */
1587
- var ScheduleUpdateRequest;
1588
- (function (ScheduleUpdateRequest) {
1589
- ScheduleUpdateRequest.RequestTypeEnum = {
1590
- BUDGET: 'BUDGET',
1591
- PAYOUTVALUE: 'PAYOUT_VALUE'
1592
- };
1604
+ /**
1605
+ * Intellibid API
1606
+ * API documentation for the Intellibid platform
1607
+ *
1608
+ * OpenAPI spec version: 1.0
1609
+ *
1610
+ *
1611
+ * NOTE: This class is auto generated by the swagger code generator program.
1612
+ * https://github.com/swagger-api/swagger-codegen.git
1613
+ * Do not edit the class manually.
1614
+ */
1615
+ var ScheduleUpdateRequest;
1616
+ (function (ScheduleUpdateRequest) {
1617
+ ScheduleUpdateRequest.RequestTypeEnum = {
1618
+ BUDGET: 'BUDGET',
1619
+ PAYOUTVALUE: 'PAYOUT_VALUE'
1620
+ };
1593
1621
  })(ScheduleUpdateRequest || (ScheduleUpdateRequest = {}));
1594
1622
 
1595
- /**
1596
- * Intellibid API
1597
- * API documentation for the Intellibid platform
1598
- *
1599
- * OpenAPI spec version: 1.0
1600
- *
1601
- *
1602
- * NOTE: This class is auto generated by the swagger code generator program.
1603
- * https://github.com/swagger-api/swagger-codegen.git
1604
- * Do not edit the class manually.
1605
- */
1606
- var UpdateAudienceNameRequest;
1607
- (function (UpdateAudienceNameRequest) {
1608
- UpdateAudienceNameRequest.SourcePlatformEnum = {
1609
- META: 'META',
1610
- TIKTOK: 'TIKTOK',
1611
- SNAPCHAT: 'SNAPCHAT',
1612
- GOOGLE: 'GOOGLE',
1613
- LYADS: 'LYADS'
1614
- };
1623
+ /**
1624
+ * Intellibid API
1625
+ * API documentation for the Intellibid platform
1626
+ *
1627
+ * OpenAPI spec version: 1.0
1628
+ *
1629
+ *
1630
+ * NOTE: This class is auto generated by the swagger code generator program.
1631
+ * https://github.com/swagger-api/swagger-codegen.git
1632
+ * Do not edit the class manually.
1633
+ */
1634
+ var UpdateAudienceNameRequest;
1635
+ (function (UpdateAudienceNameRequest) {
1636
+ UpdateAudienceNameRequest.SourcePlatformEnum = {
1637
+ META: 'META',
1638
+ TIKTOK: 'TIKTOK',
1639
+ SNAPCHAT: 'SNAPCHAT',
1640
+ GOOGLE: 'GOOGLE',
1641
+ LYADS: 'LYADS'
1642
+ };
1615
1643
  })(UpdateAudienceNameRequest || (UpdateAudienceNameRequest = {}));
1616
1644
 
1617
- /**
1618
- * Intellibid API
1619
- * API documentation for the Intellibid platform
1620
- *
1621
- * OpenAPI spec version: 1.0
1622
- *
1623
- *
1624
- * NOTE: This class is auto generated by the swagger code generator program.
1625
- * https://github.com/swagger-api/swagger-codegen.git
1626
- * Do not edit the class manually.
1627
- */
1628
- var UpdateDsCustomQuerySqlRequest;
1629
- (function (UpdateDsCustomQuerySqlRequest) {
1630
- UpdateDsCustomQuerySqlRequest.SourcePlatformEnum = {
1631
- META: 'META',
1632
- TIKTOK: 'TIKTOK',
1633
- SNAPCHAT: 'SNAPCHAT',
1634
- GOOGLE: 'GOOGLE',
1635
- LYADS: 'LYADS'
1636
- };
1645
+ /**
1646
+ * Intellibid API
1647
+ * API documentation for the Intellibid platform
1648
+ *
1649
+ * OpenAPI spec version: 1.0
1650
+ *
1651
+ *
1652
+ * NOTE: This class is auto generated by the swagger code generator program.
1653
+ * https://github.com/swagger-api/swagger-codegen.git
1654
+ * Do not edit the class manually.
1655
+ */
1656
+ var UpdateDsCustomQuerySqlRequest;
1657
+ (function (UpdateDsCustomQuerySqlRequest) {
1658
+ UpdateDsCustomQuerySqlRequest.SourcePlatformEnum = {
1659
+ META: 'META',
1660
+ TIKTOK: 'TIKTOK',
1661
+ SNAPCHAT: 'SNAPCHAT',
1662
+ GOOGLE: 'GOOGLE',
1663
+ LYADS: 'LYADS'
1664
+ };
1637
1665
  })(UpdateDsCustomQuerySqlRequest || (UpdateDsCustomQuerySqlRequest = {}));
1638
1666
 
1639
- class ApiModule {
1640
- static forRoot(configurationFactory) {
1641
- return {
1642
- ngModule: ApiModule,
1643
- providers: [{ provide: Configuration, useFactory: configurationFactory }]
1644
- };
1645
- }
1646
- constructor(parentModule, http) {
1647
- if (parentModule) {
1648
- throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
1649
- }
1650
- if (!http) {
1651
- throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
1652
- 'See also https://github.com/angular/angular/issues/20575');
1653
- }
1654
- }
1655
- }
1656
- 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 });
1657
- ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
1658
- ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
1659
- AdvertiserControllerService,
1660
- AudienceControllerService,
1661
- CampaignControllerService,
1662
- InsightsControllerService,
1663
- LookupDataControllerService
1664
- ] });
1665
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
1666
- type: NgModule,
1667
- args: [{
1668
- imports: [],
1669
- declarations: [],
1670
- exports: [],
1671
- providers: [
1672
- AdvertiserControllerService,
1673
- AudienceControllerService,
1674
- CampaignControllerService,
1675
- InsightsControllerService,
1676
- LookupDataControllerService
1677
- ]
1678
- }]
1679
- }], ctorParameters: function () {
1680
- return [{ type: ApiModule, decorators: [{
1681
- type: Optional
1682
- }, {
1683
- type: SkipSelf
1684
- }] }, { type: i1.HttpClient, decorators: [{
1685
- type: Optional
1686
- }] }];
1667
+ class ApiModule {
1668
+ static forRoot(configurationFactory) {
1669
+ return {
1670
+ ngModule: ApiModule,
1671
+ providers: [{ provide: Configuration, useFactory: configurationFactory }]
1672
+ };
1673
+ }
1674
+ constructor(parentModule, http) {
1675
+ if (parentModule) {
1676
+ throw new Error('ApiModule is already loaded. Import in your base AppModule only.');
1677
+ }
1678
+ if (!http) {
1679
+ throw new Error('You need to import the HttpClientModule in your AppModule! \n' +
1680
+ 'See also https://github.com/angular/angular/issues/20575');
1681
+ }
1682
+ }
1683
+ }
1684
+ 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 });
1685
+ ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
1686
+ ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
1687
+ AdvertiserControllerService,
1688
+ AudienceControllerService,
1689
+ CampaignControllerService,
1690
+ InsightsControllerService,
1691
+ LookupDataControllerService
1692
+ ] });
1693
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, decorators: [{
1694
+ type: NgModule,
1695
+ args: [{
1696
+ imports: [],
1697
+ declarations: [],
1698
+ exports: [],
1699
+ providers: [
1700
+ AdvertiserControllerService,
1701
+ AudienceControllerService,
1702
+ CampaignControllerService,
1703
+ InsightsControllerService,
1704
+ LookupDataControllerService
1705
+ ]
1706
+ }]
1707
+ }], ctorParameters: function () {
1708
+ return [{ type: ApiModule, decorators: [{
1709
+ type: Optional
1710
+ }, {
1711
+ type: SkipSelf
1712
+ }] }, { type: i1.HttpClient, decorators: [{
1713
+ type: Optional
1714
+ }] }];
1687
1715
  } });
1688
1716
 
1689
- /**
1690
- * Generated bundle index. Do not edit.
1717
+ /**
1718
+ * Generated bundle index. Do not edit.
1691
1719
  */
1692
1720
 
1693
1721
  export { APIS, AdAccountResponse, AdvertiserControllerService, ApiModule, AudienceControllerService, AudienceResponse, BASE_PATH, COLLECTION_FORMATS, CampaignChangeLogResponse, CampaignControllerService, CampaignInsightRecord, CampaignRequest, CampaignResponse, ChildAudience, Configuration, CreateBlockedLiveAudienceRequest, CreateBucketizedCustomAudienceRequest, CreateBucketizedLiveAudienceRequest, CreateDsCustomQueryAudienceRequest, InsightsControllerService, LookupDataControllerService, ProductSetRequest, ProductSetResponse, ScheduleUpdateRequest, UpdateAudienceNameRequest, UpdateDsCustomQuerySqlRequest };