@revxui/intellibid-client-ts 1.0.57 → 1.0.59

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