@revxui/api-clients-ts 0.10.179 → 0.10.180

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 (31) hide show
  1. package/README.md +2 -2
  2. package/api/api.d.ts +3 -1
  3. package/api/notificationsController.service.d.ts +77 -0
  4. package/bundles/revxui-api-clients-ts.umd.js +221 -1
  5. package/bundles/revxui-api-clients-ts.umd.js.map +1 -1
  6. package/bundles/revxui-api-clients-ts.umd.min.js +1 -1
  7. package/bundles/revxui-api-clients-ts.umd.min.js.map +1 -1
  8. package/esm2015/api/api.js +4 -2
  9. package/esm2015/api/notificationsController.service.js +187 -0
  10. package/esm2015/api.module.js +3 -1
  11. package/esm2015/model/apiResponseObjectResponseMessage.js +1 -0
  12. package/esm2015/model/models.js +2 -1
  13. package/esm2015/model/notificationListResponseNotificationResponse.js +1 -0
  14. package/esm2015/model/notificationResponse.js +19 -0
  15. package/esm5/api/api.js +4 -2
  16. package/esm5/api/notificationsController.service.js +207 -0
  17. package/esm5/api.module.js +3 -1
  18. package/esm5/model/apiResponseObjectResponseMessage.js +1 -0
  19. package/esm5/model/models.js +2 -1
  20. package/esm5/model/notificationListResponseNotificationResponse.js +1 -0
  21. package/esm5/model/notificationResponse.js +19 -0
  22. package/fesm2015/revxui-api-clients-ts.js +201 -2
  23. package/fesm2015/revxui-api-clients-ts.js.map +1 -1
  24. package/fesm5/revxui-api-clients-ts.js +221 -2
  25. package/fesm5/revxui-api-clients-ts.js.map +1 -1
  26. package/model/apiResponseObjectResponseMessage.d.ts +17 -0
  27. package/model/models.d.ts +3 -0
  28. package/model/notificationListResponseNotificationResponse.d.ts +17 -0
  29. package/model/notificationResponse.d.ts +31 -0
  30. package/package.json +1 -1
  31. package/revxui-api-clients-ts.metadata.json +1 -1
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @revxui/api-clients-ts@0.10.179
1
+ ## @revxui/api-clients-ts@0.10.180
2
2
 
3
3
  ### Building
4
4
 
@@ -19,7 +19,7 @@ Navigate to the folder of your consuming project and run one of next commands.
19
19
  _published:_
20
20
 
21
21
  ```
22
- npm install @revxui/api-clients-ts@0.10.179 --save
22
+ npm install @revxui/api-clients-ts@0.10.180 --save
23
23
  ```
24
24
 
25
25
  _without publishing (not recommended):_
package/api/api.d.ts CHANGED
@@ -32,6 +32,8 @@ export * from './creativeTemplatesController.service';
32
32
  import { CreativeTemplatesControllerService } from './creativeTemplatesController.service';
33
33
  export * from './dashboardController.service';
34
34
  import { DashboardControllerService } from './dashboardController.service';
35
+ export * from './notificationsController.service';
36
+ import { NotificationsControllerService } from './notificationsController.service';
35
37
  export * from './pixelController.service';
36
38
  import { PixelControllerService } from './pixelController.service';
37
39
  export * from './reportingController.service';
@@ -44,4 +46,4 @@ export * from './uILoggerController.service';
44
46
  import { UILoggerControllerService } from './uILoggerController.service';
45
47
  export * from './userPreferenceController.service';
46
48
  import { UserPreferenceControllerService } from './userPreferenceController.service';
47
- export declare const APIS: (typeof AdminControllerService | typeof AdvertiserControllerService | typeof AppSettingsControllerService | typeof AppsFlyerAudienceControllerService | typeof AudienceControllerService | typeof AuditControllerService | typeof BulkStrategyControllerService | typeof CSSThemeController_Service | typeof CampaignControllerService | typeof CatalogControllerService | typeof ClickDestinationControllerService | typeof CreativeControllerService | typeof CreativeSetsControllerService | typeof CreativeTemplateThemesControllerService | typeof CreativeTemplateVariablesControllerService | typeof CreativeTemplatesControllerService | typeof DashboardControllerService | typeof PixelControllerService | typeof ReportingControllerService | typeof SliceXControllerService | typeof StrategyControllerService | typeof UILoggerControllerService | typeof UserPreferenceControllerService)[];
49
+ export declare const APIS: (typeof AdminControllerService | typeof AdvertiserControllerService | typeof AppSettingsControllerService | typeof AppsFlyerAudienceControllerService | typeof AudienceControllerService | typeof AuditControllerService | typeof BulkStrategyControllerService | typeof CSSThemeController_Service | typeof CampaignControllerService | typeof CatalogControllerService | typeof ClickDestinationControllerService | typeof CreativeControllerService | typeof CreativeSetsControllerService | typeof CreativeTemplateThemesControllerService | typeof CreativeTemplateVariablesControllerService | typeof CreativeTemplatesControllerService | typeof DashboardControllerService | typeof NotificationsControllerService | typeof PixelControllerService | typeof ReportingControllerService | typeof SliceXControllerService | typeof StrategyControllerService | typeof UILoggerControllerService | typeof UserPreferenceControllerService)[];
@@ -0,0 +1,77 @@
1
+ /**
2
+ * Api Documentation
3
+ * Api Documentation
4
+ *
5
+ * OpenAPI spec version: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by the swagger code generator program.
9
+ * https://github.com/swagger-api/swagger-codegen.git
10
+ * Do not edit the class manually.
11
+ */
12
+ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent } from '@angular/common/http';
13
+ import { Observable } from 'rxjs';
14
+ import { ApiResponseObjectMaplongResponseMessage } from '../model/apiResponseObjectMaplongResponseMessage';
15
+ import { ApiResponseObjectResponseMessage } from '../model/apiResponseObjectResponseMessage';
16
+ import { NotificationListResponseNotificationResponse } from '../model/notificationListResponseNotificationResponse';
17
+ import { Configuration } from '../configuration';
18
+ export declare class NotificationsControllerService {
19
+ protected httpClient: HttpClient;
20
+ protected basePath: string;
21
+ defaultHeaders: HttpHeaders;
22
+ configuration: Configuration;
23
+ constructor(httpClient: HttpClient, basePath: string, configuration: Configuration);
24
+ /**
25
+ * @param consumes string[] mime-types
26
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
27
+ */
28
+ private canConsumeForm;
29
+ /**
30
+ * Api to Get Notifications for a user
31
+ *
32
+ * @param pageNumber pageNumber
33
+ * @param pageSize pageSize
34
+ * @param reqId request id
35
+ * @param token Auth Token
36
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
37
+ * @param reportProgress flag to report request and response progress.
38
+ */
39
+ getNotificationUsingGET(pageNumber?: number, pageSize?: number, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<NotificationListResponseNotificationResponse>;
40
+ getNotificationUsingGET(pageNumber?: number, pageSize?: number, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<NotificationListResponseNotificationResponse>>;
41
+ getNotificationUsingGET(pageNumber?: number, pageSize?: number, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<NotificationListResponseNotificationResponse>>;
42
+ /**
43
+ * Api to mark all notifications seen
44
+ *
45
+ * @param reqId request id
46
+ * @param token Auth Token
47
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
48
+ * @param reportProgress flag to report request and response progress.
49
+ */
50
+ markAllSeenUsingPOST(reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectResponseMessage>;
51
+ markAllSeenUsingPOST(reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectResponseMessage>>;
52
+ markAllSeenUsingPOST(reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectResponseMessage>>;
53
+ /**
54
+ * Api to mark notifications seen
55
+ *
56
+ * @param commaSeparatedIds commaSeparatedIds
57
+ * @param reqId request id
58
+ * @param token Auth Token
59
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
60
+ * @param reportProgress flag to report request and response progress.
61
+ */
62
+ markSeenUsingPOST(commaSeparatedIds: string, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectMaplongResponseMessage>;
63
+ markSeenUsingPOST(commaSeparatedIds: string, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectMaplongResponseMessage>>;
64
+ markSeenUsingPOST(commaSeparatedIds: string, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectMaplongResponseMessage>>;
65
+ /**
66
+ * Api to resolve a notification
67
+ *
68
+ * @param id id
69
+ * @param reqId request id
70
+ * @param token Auth Token
71
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
72
+ * @param reportProgress flag to report request and response progress.
73
+ */
74
+ resolveNotificationUsingPOST(id: number, reqId?: string, token?: string, observe?: 'body', reportProgress?: boolean): Observable<ApiResponseObjectResponseMessage>;
75
+ resolveNotificationUsingPOST(id: number, reqId?: string, token?: string, observe?: 'response', reportProgress?: boolean): Observable<HttpResponse<ApiResponseObjectResponseMessage>>;
76
+ resolveNotificationUsingPOST(id: number, reqId?: string, token?: string, observe?: 'events', reportProgress?: boolean): Observable<HttpEvent<ApiResponseObjectResponseMessage>>;
77
+ }
@@ -5207,6 +5207,205 @@
5207
5207
  return DashboardControllerService;
5208
5208
  }());
5209
5209
 
5210
+ /**
5211
+ * Api Documentation
5212
+ * Api Documentation
5213
+ *
5214
+ * OpenAPI spec version: 1.0
5215
+ *
5216
+ *
5217
+ * NOTE: This class is auto generated by the swagger code generator program.
5218
+ * https://github.com/swagger-api/swagger-codegen.git
5219
+ * Do not edit the class manually.
5220
+ */
5221
+ var NotificationsControllerService = /** @class */ (function () {
5222
+ function NotificationsControllerService(httpClient, basePath, configuration) {
5223
+ this.httpClient = httpClient;
5224
+ this.basePath = 'https://apiv2stage2.atomex.net';
5225
+ this.defaultHeaders = new http.HttpHeaders();
5226
+ this.configuration = new Configuration();
5227
+ if (basePath) {
5228
+ this.basePath = basePath;
5229
+ }
5230
+ if (configuration) {
5231
+ this.configuration = configuration;
5232
+ this.basePath = basePath || configuration.basePath || this.basePath;
5233
+ }
5234
+ }
5235
+ /**
5236
+ * @param consumes string[] mime-types
5237
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
5238
+ */
5239
+ NotificationsControllerService.prototype.canConsumeForm = function (consumes) {
5240
+ var e_1, _a;
5241
+ var form = 'multipart/form-data';
5242
+ try {
5243
+ for (var consumes_1 = __values(consumes), consumes_1_1 = consumes_1.next(); !consumes_1_1.done; consumes_1_1 = consumes_1.next()) {
5244
+ var consume = consumes_1_1.value;
5245
+ if (form === consume) {
5246
+ return true;
5247
+ }
5248
+ }
5249
+ }
5250
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
5251
+ finally {
5252
+ try {
5253
+ if (consumes_1_1 && !consumes_1_1.done && (_a = consumes_1.return)) _a.call(consumes_1);
5254
+ }
5255
+ finally { if (e_1) throw e_1.error; }
5256
+ }
5257
+ return false;
5258
+ };
5259
+ NotificationsControllerService.prototype.getNotificationUsingGET = function (pageNumber, pageSize, reqId, token, observe, reportProgress) {
5260
+ if (observe === void 0) { observe = 'body'; }
5261
+ if (reportProgress === void 0) { reportProgress = false; }
5262
+ var queryParameters = new http.HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
5263
+ if (pageNumber !== undefined && pageNumber !== null) {
5264
+ queryParameters = queryParameters.set('pageNumber', pageNumber);
5265
+ }
5266
+ if (pageSize !== undefined && pageSize !== null) {
5267
+ queryParameters = queryParameters.set('pageSize', pageSize);
5268
+ }
5269
+ var headers = this.defaultHeaders;
5270
+ if (reqId !== undefined && reqId !== null) {
5271
+ headers = headers.set('reqId', String(reqId));
5272
+ }
5273
+ if (token !== undefined && token !== null) {
5274
+ headers = headers.set('token', String(token));
5275
+ }
5276
+ // to determine the Accept header
5277
+ var httpHeaderAccepts = [
5278
+ 'application/json'
5279
+ ];
5280
+ var httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
5281
+ if (httpHeaderAcceptSelected != undefined) {
5282
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
5283
+ }
5284
+ // to determine the Content-Type header
5285
+ var consumes = [];
5286
+ return this.httpClient.get(this.basePath + "/v2/api/notifications", {
5287
+ params: queryParameters,
5288
+ withCredentials: this.configuration.withCredentials,
5289
+ headers: headers,
5290
+ observe: observe,
5291
+ reportProgress: reportProgress
5292
+ });
5293
+ };
5294
+ NotificationsControllerService.prototype.markAllSeenUsingPOST = function (reqId, token, observe, reportProgress) {
5295
+ if (observe === void 0) { observe = 'body'; }
5296
+ if (reportProgress === void 0) { reportProgress = false; }
5297
+ var headers = this.defaultHeaders;
5298
+ if (reqId !== undefined && reqId !== null) {
5299
+ headers = headers.set('reqId', String(reqId));
5300
+ }
5301
+ if (token !== undefined && token !== null) {
5302
+ headers = headers.set('token', String(token));
5303
+ }
5304
+ // to determine the Accept header
5305
+ var httpHeaderAccepts = [
5306
+ 'application/json'
5307
+ ];
5308
+ var httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
5309
+ if (httpHeaderAcceptSelected != undefined) {
5310
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
5311
+ }
5312
+ // to determine the Content-Type header
5313
+ var consumes = [
5314
+ 'application/json'
5315
+ ];
5316
+ return this.httpClient.post(this.basePath + "/v2/api/notifications/v2/api/notifications/seenAll", null, {
5317
+ withCredentials: this.configuration.withCredentials,
5318
+ headers: headers,
5319
+ observe: observe,
5320
+ reportProgress: reportProgress
5321
+ });
5322
+ };
5323
+ NotificationsControllerService.prototype.markSeenUsingPOST = function (commaSeparatedIds, reqId, token, observe, reportProgress) {
5324
+ if (observe === void 0) { observe = 'body'; }
5325
+ if (reportProgress === void 0) { reportProgress = false; }
5326
+ if (commaSeparatedIds === null || commaSeparatedIds === undefined) {
5327
+ throw new Error('Required parameter commaSeparatedIds was null or undefined when calling markSeenUsingPOST.');
5328
+ }
5329
+ var queryParameters = new http.HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
5330
+ if (commaSeparatedIds !== undefined && commaSeparatedIds !== null) {
5331
+ queryParameters = queryParameters.set('commaSeparatedIds', commaSeparatedIds);
5332
+ }
5333
+ var headers = this.defaultHeaders;
5334
+ if (reqId !== undefined && reqId !== null) {
5335
+ headers = headers.set('reqId', String(reqId));
5336
+ }
5337
+ if (token !== undefined && token !== null) {
5338
+ headers = headers.set('token', String(token));
5339
+ }
5340
+ // to determine the Accept header
5341
+ var httpHeaderAccepts = [
5342
+ 'application/json'
5343
+ ];
5344
+ var httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
5345
+ if (httpHeaderAcceptSelected != undefined) {
5346
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
5347
+ }
5348
+ // to determine the Content-Type header
5349
+ var consumes = [
5350
+ 'application/json'
5351
+ ];
5352
+ return this.httpClient.post(this.basePath + "/v2/api/notifications/v2/api/notifications/seen/" + encodeURIComponent(String(commaSeparatedIds)), null, {
5353
+ params: queryParameters,
5354
+ withCredentials: this.configuration.withCredentials,
5355
+ headers: headers,
5356
+ observe: observe,
5357
+ reportProgress: reportProgress
5358
+ });
5359
+ };
5360
+ NotificationsControllerService.prototype.resolveNotificationUsingPOST = function (id, reqId, token, observe, reportProgress) {
5361
+ if (observe === void 0) { observe = 'body'; }
5362
+ if (reportProgress === void 0) { reportProgress = false; }
5363
+ if (id === null || id === undefined) {
5364
+ throw new Error('Required parameter id was null or undefined when calling resolveNotificationUsingPOST.');
5365
+ }
5366
+ var queryParameters = new http.HttpParams({ encoder: new CustomHttpUrlEncodingCodec() });
5367
+ if (id !== undefined && id !== null) {
5368
+ queryParameters = queryParameters.set('id', id);
5369
+ }
5370
+ var headers = this.defaultHeaders;
5371
+ if (reqId !== undefined && reqId !== null) {
5372
+ headers = headers.set('reqId', String(reqId));
5373
+ }
5374
+ if (token !== undefined && token !== null) {
5375
+ headers = headers.set('token', String(token));
5376
+ }
5377
+ // to determine the Accept header
5378
+ var httpHeaderAccepts = [
5379
+ 'application/json'
5380
+ ];
5381
+ var httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
5382
+ if (httpHeaderAcceptSelected != undefined) {
5383
+ headers = headers.set('Accept', httpHeaderAcceptSelected);
5384
+ }
5385
+ // to determine the Content-Type header
5386
+ var consumes = [
5387
+ 'application/json'
5388
+ ];
5389
+ return this.httpClient.post(this.basePath + "/v2/api/notifications/v2/api/notifications/resolve/" + encodeURIComponent(String(id)), null, {
5390
+ params: queryParameters,
5391
+ withCredentials: this.configuration.withCredentials,
5392
+ headers: headers,
5393
+ observe: observe,
5394
+ reportProgress: reportProgress
5395
+ });
5396
+ };
5397
+ NotificationsControllerService.ctorParameters = function () { return [
5398
+ { type: http.HttpClient },
5399
+ { type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [BASE_PATH,] }] },
5400
+ { type: Configuration, decorators: [{ type: core.Optional }] }
5401
+ ]; };
5402
+ NotificationsControllerService = __decorate([
5403
+ core.Injectable(),
5404
+ __param(1, core.Optional()), __param(1, core.Inject(BASE_PATH)), __param(2, core.Optional())
5405
+ ], NotificationsControllerService);
5406
+ return NotificationsControllerService;
5407
+ }());
5408
+
5210
5409
  /**
5211
5410
  * Api Documentation
5212
5411
  * Api Documentation
@@ -6685,7 +6884,7 @@
6685
6884
  return UserPreferenceControllerService;
6686
6885
  }());
6687
6886
 
6688
- var APIS = [AdminControllerService, AdvertiserControllerService, AppSettingsControllerService, AppsFlyerAudienceControllerService, AudienceControllerService, AuditControllerService, BulkStrategyControllerService, CSSThemeController_Service, CampaignControllerService, CatalogControllerService, ClickDestinationControllerService, CreativeControllerService, CreativeSetsControllerService, CreativeTemplateThemesControllerService, CreativeTemplateVariablesControllerService, CreativeTemplatesControllerService, DashboardControllerService, PixelControllerService, ReportingControllerService, SliceXControllerService, StrategyControllerService, UILoggerControllerService, UserPreferenceControllerService];
6887
+ var APIS = [AdminControllerService, AdvertiserControllerService, AppSettingsControllerService, AppsFlyerAudienceControllerService, AudienceControllerService, AuditControllerService, BulkStrategyControllerService, CSSThemeController_Service, CampaignControllerService, CatalogControllerService, ClickDestinationControllerService, CreativeControllerService, CreativeSetsControllerService, CreativeTemplateThemesControllerService, CreativeTemplateVariablesControllerService, CreativeTemplatesControllerService, DashboardControllerService, NotificationsControllerService, PixelControllerService, ReportingControllerService, SliceXControllerService, StrategyControllerService, UILoggerControllerService, UserPreferenceControllerService];
6689
6888
 
6690
6889
 
6691
6890
  (function (ActivityLogsStrategyBulkUpdateDTO) {
@@ -7117,6 +7316,25 @@
7117
7316
  };
7118
7317
  })(exports.MetaRuleDto || (exports.MetaRuleDto = {}));
7119
7318
 
7319
+ /**
7320
+ * Api Documentation
7321
+ * Api Documentation
7322
+ *
7323
+ * OpenAPI spec version: 1.0
7324
+ *
7325
+ *
7326
+ * NOTE: This class is auto generated by the swagger code generator program.
7327
+ * https://github.com/swagger-api/swagger-codegen.git
7328
+ * Do not edit the class manually.
7329
+ */
7330
+
7331
+ (function (NotificationResponse) {
7332
+ NotificationResponse.TypeEnum = {
7333
+ STATIC: 'STATIC',
7334
+ ACTIONABLE: 'ACTIONABLE'
7335
+ };
7336
+ })(exports.NotificationResponse || (exports.NotificationResponse = {}));
7337
+
7120
7338
  /**
7121
7339
  * Api Documentation
7122
7340
  * Api Documentation
@@ -7494,6 +7712,7 @@
7494
7712
  CreativeTemplateVariablesControllerService,
7495
7713
  CreativeTemplatesControllerService,
7496
7714
  DashboardControllerService,
7715
+ NotificationsControllerService,
7497
7716
  PixelControllerService,
7498
7717
  ReportingControllerService,
7499
7718
  SliceXControllerService,
@@ -7530,6 +7749,7 @@
7530
7749
  exports.CreativeTemplateVariablesControllerService = CreativeTemplateVariablesControllerService;
7531
7750
  exports.CreativeTemplatesControllerService = CreativeTemplatesControllerService;
7532
7751
  exports.DashboardControllerService = DashboardControllerService;
7752
+ exports.NotificationsControllerService = NotificationsControllerService;
7533
7753
  exports.PixelControllerService = PixelControllerService;
7534
7754
  exports.ReportingControllerService = ReportingControllerService;
7535
7755
  exports.SliceXControllerService = SliceXControllerService;