@revxui/intellibid-client-ts 1.0.56 → 1.0.57

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.
@@ -247,6 +247,172 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
247
247
  type: Optional
248
248
  }] }]; } });
249
249
 
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
414
+ }] }]; } });
415
+
250
416
  /**
251
417
  * Intellibid API
252
418
  * API documentation for the Intellibid platform
@@ -704,7 +870,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
704
870
  type: Optional
705
871
  }] }]; } });
706
872
 
707
- const APIS = [AdvertiserControllerService, CampaignControllerService, InsightsControllerService, OsMasterControllerService];
873
+ const APIS = [AdvertiserControllerService, AudienceControllerService, CampaignControllerService, InsightsControllerService, OsMasterControllerService];
708
874
 
709
875
  /**
710
876
  * Intellibid API
@@ -852,6 +1018,81 @@ var CampaignResponse;
852
1018
  * Do not edit the class manually.
853
1019
  */
854
1020
 
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.
1031
+ */
1032
+
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.
1043
+ */
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
+
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.
1064
+ */
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
+
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.
1085
+ */
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
+
855
1096
  /**
856
1097
  * Intellibid API
857
1098
  * API documentation for the Intellibid platform
@@ -928,6 +1169,7 @@ ApiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2
928
1169
  ApiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: ApiModule });
929
1170
  ApiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: ApiModule, providers: [
930
1171
  AdvertiserControllerService,
1172
+ AudienceControllerService,
931
1173
  CampaignControllerService,
932
1174
  InsightsControllerService,
933
1175
  OsMasterControllerService
@@ -940,6 +1182,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
940
1182
  exports: [],
941
1183
  providers: [
942
1184
  AdvertiserControllerService,
1185
+ AudienceControllerService,
943
1186
  CampaignControllerService,
944
1187
  InsightsControllerService,
945
1188
  OsMasterControllerService
@@ -957,5 +1200,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
957
1200
  * Generated bundle index. Do not edit.
958
1201
  */
959
1202
 
960
- export { APIS, AdvertiserControllerService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CampaignChangeLogResponse, CampaignControllerService, CampaignInsightRecord, CampaignRequest, CampaignResponse, Configuration, InsightsControllerService, OsMasterControllerService, ScheduleUpdateRequest };
1203
+ export { APIS, AdvertiserControllerService, ApiModule, AudienceControllerService, BASE_PATH, COLLECTION_FORMATS, CampaignChangeLogResponse, CampaignControllerService, CampaignInsightRecord, CampaignRequest, CampaignResponse, Configuration, CreateBlockedAudienceRequest, CreateDynamicAudienceRequest, CreateStaticAudienceRequest, InsightsControllerService, OsMasterControllerService, ScheduleUpdateRequest };
961
1204
  //# sourceMappingURL=revxui-intellibid-client-ts.mjs.map