@energycap/energycapid-sdk-angular 1.2112.50-develop-20220103-1011 → 1.2112.51-develop-20220103-1710

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 (33) hide show
  1. package/api/api.d.ts +3 -1
  2. package/api/me.service.d.ts +25 -0
  3. package/api/notification.service.d.ts +134 -0
  4. package/bundles/energycap-energycapid-sdk-angular.umd.js +557 -29
  5. package/bundles/energycap-energycapid-sdk-angular.umd.js.map +1 -1
  6. package/bundles/energycap-energycapid-sdk-angular.umd.min.js +2 -2
  7. package/bundles/energycap-energycapid-sdk-angular.umd.min.js.map +1 -1
  8. package/energycap-energycapid-sdk-angular.metadata.json +1 -1
  9. package/esm2015/api/api.js +4 -2
  10. package/esm2015/api/me.service.js +65 -1
  11. package/esm2015/api/notification.service.js +332 -0
  12. package/esm2015/api.module.js +3 -2
  13. package/esm2015/model/models.js +8 -1
  14. package/esm2015/model/notificationBadgeResponse.js +14 -0
  15. package/esm2015/model/notificationCategory.js +14 -0
  16. package/esm2015/model/notificationResponse.js +14 -0
  17. package/esm2015/model/notificationSettingRequest.js +14 -0
  18. package/esm2015/model/notificationType.js +14 -0
  19. package/esm2015/model/notificationUpdateRequest.js +14 -0
  20. package/esm2015/model/updateResult.js +14 -0
  21. package/esm2015/model/userResponse.js +1 -1
  22. package/fesm2015/energycap-energycapid-sdk-angular.js +518 -30
  23. package/fesm2015/energycap-energycapid-sdk-angular.js.map +1 -1
  24. package/model/models.d.ts +7 -0
  25. package/model/notificationBadgeResponse.d.ts +25 -0
  26. package/model/notificationCategory.d.ts +25 -0
  27. package/model/notificationResponse.d.ts +35 -0
  28. package/model/notificationSettingRequest.d.ts +17 -0
  29. package/model/notificationType.d.ts +27 -0
  30. package/model/notificationUpdateRequest.d.ts +21 -0
  31. package/model/updateResult.d.ts +15 -0
  32. package/model/userResponse.d.ts +4 -0
  33. package/package.json +1 -1
@@ -355,7 +355,7 @@
355
355
  return Configuration;
356
356
  }());
357
357
 
358
- var RequestMethod$9 = {
358
+ var RequestMethod$a = {
359
359
  Get: 'get',
360
360
  Post: 'post',
361
361
  Put: 'put',
@@ -474,7 +474,7 @@
474
474
  withCredentials: this.configuration.withCredentials,
475
475
  observe: 'response'
476
476
  };
477
- return this.http.request(RequestMethod$9.Get, path, requestOptions);
477
+ return this.http.request(RequestMethod$a.Get, path, requestOptions);
478
478
  };
479
479
  return ApplicationService;
480
480
  }());
@@ -487,7 +487,7 @@
487
487
  { type: Configuration, decorators: [{ type: core.Optional }] }
488
488
  ]; };
489
489
 
490
- var RequestMethod$8 = {
490
+ var RequestMethod$9 = {
491
491
  Get: 'get',
492
492
  Post: 'post',
493
493
  Put: 'put',
@@ -677,7 +677,7 @@
677
677
  withCredentials: this.configuration.withCredentials,
678
678
  observe: 'response'
679
679
  };
680
- return this.http.request(RequestMethod$8.Get, path, requestOptions);
680
+ return this.http.request(RequestMethod$9.Get, path, requestOptions);
681
681
  };
682
682
  /**
683
683
  * Provides the data needed to redirect the user to the specified application instance
@@ -728,7 +728,7 @@
728
728
  withCredentials: this.configuration.withCredentials,
729
729
  observe: 'response'
730
730
  };
731
- return this.http.request(RequestMethod$8.Get, path, requestOptions);
731
+ return this.http.request(RequestMethod$9.Get, path, requestOptions);
732
732
  };
733
733
  /**
734
734
  * Provides a list of user's who have access to an application instance
@@ -792,7 +792,7 @@
792
792
  withCredentials: this.configuration.withCredentials,
793
793
  observe: 'response'
794
794
  };
795
- return this.http.request(RequestMethod$8.Get, path, requestOptions);
795
+ return this.http.request(RequestMethod$9.Get, path, requestOptions);
796
796
  };
797
797
  /**
798
798
  * Provides a list of all available application instances to which the logged in user has access
@@ -869,7 +869,7 @@
869
869
  withCredentials: this.configuration.withCredentials,
870
870
  observe: 'response'
871
871
  };
872
- return this.http.request(RequestMethod$8.Get, path, requestOptions);
872
+ return this.http.request(RequestMethod$9.Get, path, requestOptions);
873
873
  };
874
874
  return ApplicationInstanceService;
875
875
  }());
@@ -882,7 +882,7 @@
882
882
  { type: Configuration, decorators: [{ type: core.Optional }] }
883
883
  ]; };
884
884
 
885
- var RequestMethod$7 = {
885
+ var RequestMethod$8 = {
886
886
  Get: 'get',
887
887
  Post: 'post',
888
888
  Put: 'put',
@@ -1105,7 +1105,7 @@
1105
1105
  withCredentials: this.configuration.withCredentials,
1106
1106
  observe: 'response'
1107
1107
  };
1108
- return this.http.request(RequestMethod$7.Post, path, requestOptions);
1108
+ return this.http.request(RequestMethod$8.Post, path, requestOptions);
1109
1109
  };
1110
1110
  /**
1111
1111
  * Use this method to determine the login source. If a value is returned, then it is the name of the Federation Provider. If nothing is returned, then the login should occur locally
@@ -1154,7 +1154,7 @@
1154
1154
  withCredentials: this.configuration.withCredentials,
1155
1155
  observe: 'response'
1156
1156
  };
1157
- return this.http.request(RequestMethod$7.Get, path, requestOptions);
1157
+ return this.http.request(RequestMethod$8.Get, path, requestOptions);
1158
1158
  };
1159
1159
  /**
1160
1160
  * Use this method to authenticate a user given an authcode from the federation provider
@@ -1213,7 +1213,7 @@
1213
1213
  withCredentials: this.configuration.withCredentials,
1214
1214
  observe: 'response'
1215
1215
  };
1216
- return this.http.request(RequestMethod$7.Get, path, requestOptions);
1216
+ return this.http.request(RequestMethod$8.Get, path, requestOptions);
1217
1217
  };
1218
1218
  /**
1219
1219
  * Use this method to authenticate a user given their username and password
@@ -1263,7 +1263,7 @@
1263
1263
  withCredentials: this.configuration.withCredentials,
1264
1264
  observe: 'response'
1265
1265
  };
1266
- return this.http.request(RequestMethod$7.Post, path, requestOptions);
1266
+ return this.http.request(RequestMethod$8.Post, path, requestOptions);
1267
1267
  };
1268
1268
  /**
1269
1269
  * Will attempt to reset the user's password based upon the incoming confirmation code and new password The response model will inform of a successful response. If the password is not valid the error message will contain all reasons it does not pass ValidatePassword API returns similar information but in a friendlier response format
@@ -1311,7 +1311,7 @@
1311
1311
  withCredentials: this.configuration.withCredentials,
1312
1312
  observe: 'response'
1313
1313
  };
1314
- return this.http.request(RequestMethod$7.Post, path, requestOptions);
1314
+ return this.http.request(RequestMethod$8.Post, path, requestOptions);
1315
1315
  };
1316
1316
  /**
1317
1317
  * If the user exists, an email will be sent. If the domain is a federated domain, no email will be sent
@@ -1358,7 +1358,7 @@
1358
1358
  withCredentials: this.configuration.withCredentials,
1359
1359
  observe: 'response'
1360
1360
  };
1361
- return this.http.request(RequestMethod$7.Get, path, requestOptions);
1361
+ return this.http.request(RequestMethod$8.Get, path, requestOptions);
1362
1362
  };
1363
1363
  /**
1364
1364
  * Validates a password
@@ -1408,7 +1408,7 @@
1408
1408
  withCredentials: this.configuration.withCredentials,
1409
1409
  observe: 'response'
1410
1410
  };
1411
- return this.http.request(RequestMethod$7.Post, path, requestOptions);
1411
+ return this.http.request(RequestMethod$8.Post, path, requestOptions);
1412
1412
  };
1413
1413
  return AuthService;
1414
1414
  }());
@@ -1421,7 +1421,7 @@
1421
1421
  { type: Configuration, decorators: [{ type: core.Optional }] }
1422
1422
  ]; };
1423
1423
 
1424
- var RequestMethod$6 = {
1424
+ var RequestMethod$7 = {
1425
1425
  Get: 'get',
1426
1426
  Post: 'post',
1427
1427
  Put: 'put',
@@ -1580,7 +1580,7 @@
1580
1580
  withCredentials: this.configuration.withCredentials,
1581
1581
  observe: 'response'
1582
1582
  };
1583
- return this.http.request(RequestMethod$6.Get, path, requestOptions);
1583
+ return this.http.request(RequestMethod$7.Get, path, requestOptions);
1584
1584
  };
1585
1585
  /**
1586
1586
  * Gets the data sources to which the logged in user has access.
@@ -1629,7 +1629,7 @@
1629
1629
  withCredentials: this.configuration.withCredentials,
1630
1630
  observe: 'response'
1631
1631
  };
1632
- return this.http.request(RequestMethod$6.Get, path, requestOptions);
1632
+ return this.http.request(RequestMethod$7.Get, path, requestOptions);
1633
1633
  };
1634
1634
  /**
1635
1635
  * Updates the specified data source. Only the fields with values will be updated. The dataSourceId must exist, and the logged in user must be an admin on the data source
@@ -1685,7 +1685,7 @@
1685
1685
  withCredentials: this.configuration.withCredentials,
1686
1686
  observe: 'response'
1687
1687
  };
1688
- return this.http.request(RequestMethod$6.Put, path, requestOptions);
1688
+ return this.http.request(RequestMethod$7.Put, path, requestOptions);
1689
1689
  };
1690
1690
  return DataSourceService;
1691
1691
  }());
@@ -1698,7 +1698,7 @@
1698
1698
  { type: Configuration, decorators: [{ type: core.Optional }] }
1699
1699
  ]; };
1700
1700
 
1701
- var RequestMethod$5 = {
1701
+ var RequestMethod$6 = {
1702
1702
  Get: 'get',
1703
1703
  Post: 'post',
1704
1704
  Put: 'put',
@@ -1817,7 +1817,7 @@
1817
1817
  withCredentials: this.configuration.withCredentials,
1818
1818
  observe: 'response'
1819
1819
  };
1820
- return this.http.request(RequestMethod$5.Get, path, requestOptions);
1820
+ return this.http.request(RequestMethod$6.Get, path, requestOptions);
1821
1821
  };
1822
1822
  return DomainJoinTypeService;
1823
1823
  }());
@@ -1830,7 +1830,7 @@
1830
1830
  { type: Configuration, decorators: [{ type: core.Optional }] }
1831
1831
  ]; };
1832
1832
 
1833
- var RequestMethod$4 = {
1833
+ var RequestMethod$5 = {
1834
1834
  Get: 'get',
1835
1835
  Post: 'post',
1836
1836
  Put: 'put',
@@ -1954,7 +1954,7 @@
1954
1954
  withCredentials: this.configuration.withCredentials,
1955
1955
  observe: 'response'
1956
1956
  };
1957
- return this.http.request(RequestMethod$4.Get, path, requestOptions);
1957
+ return this.http.request(RequestMethod$5.Get, path, requestOptions);
1958
1958
  };
1959
1959
  return EnvironmentService;
1960
1960
  }());
@@ -1967,7 +1967,7 @@
1967
1967
  { type: Configuration, decorators: [{ type: core.Optional }] }
1968
1968
  ]; };
1969
1969
 
1970
- var RequestMethod$3 = {
1970
+ var RequestMethod$4 = {
1971
1971
  Get: 'get',
1972
1972
  Post: 'post',
1973
1973
  Put: 'put',
@@ -2075,6 +2075,22 @@
2075
2075
  }
2076
2076
  }));
2077
2077
  };
2078
+ /**
2079
+ * Use this method to update the currently authenticated user's notification settings
2080
+ *
2081
+ * @param body The user notification settings to update
2082
+ */
2083
+ MeService.prototype.updateMyNotificationSetting = function (body, extraHttpRequestParams, extraHttpRequestHeaders) {
2084
+ return this.updateMyNotificationSettingWithHttpInfo(body, extraHttpRequestParams, extraHttpRequestHeaders)
2085
+ .pipe(operators.map(function (response) {
2086
+ if (response.status === 204) {
2087
+ return undefined;
2088
+ }
2089
+ else {
2090
+ return response.body;
2091
+ }
2092
+ }));
2093
+ };
2078
2094
  /**
2079
2095
  * Use this method to get information about the currently authenticated user
2080
2096
  *
@@ -2118,7 +2134,7 @@
2118
2134
  withCredentials: this.configuration.withCredentials,
2119
2135
  observe: 'response'
2120
2136
  };
2121
- return this.http.request(RequestMethod$3.Get, path, requestOptions);
2137
+ return this.http.request(RequestMethod$4.Get, path, requestOptions);
2122
2138
  };
2123
2139
  /**
2124
2140
  * Will allow a user to link to a data source that they don't have access to based upon their login name
@@ -2166,7 +2182,7 @@
2166
2182
  withCredentials: this.configuration.withCredentials,
2167
2183
  observe: 'response'
2168
2184
  };
2169
- return this.http.request(RequestMethod$3.Post, path, requestOptions);
2185
+ return this.http.request(RequestMethod$4.Post, path, requestOptions);
2170
2186
  };
2171
2187
  /**
2172
2188
  * Use this method to update the currently authenticated user's information
@@ -2216,7 +2232,57 @@
2216
2232
  withCredentials: this.configuration.withCredentials,
2217
2233
  observe: 'response'
2218
2234
  };
2219
- return this.http.request(RequestMethod$3.Put, path, requestOptions);
2235
+ return this.http.request(RequestMethod$4.Put, path, requestOptions);
2236
+ };
2237
+ /**
2238
+ * Use this method to update the currently authenticated user's notification settings
2239
+ *
2240
+ * @param body The user notification settings to update
2241
+ */
2242
+ MeService.prototype.updateMyNotificationSettingWithHttpInfo = function (body, extraHttpRequestParams, extraHttpRequestHeaders) {
2243
+ var _this = this;
2244
+ var path = this.basePath + '/api/v202108/Me/notificationsetting';
2245
+ var queryParameters;
2246
+ if (extraHttpRequestParams) {
2247
+ if (typeof extraHttpRequestParams.search === 'string') {
2248
+ queryParameters = new http.HttpParams({ fromString: extraHttpRequestParams.search });
2249
+ }
2250
+ else {
2251
+ queryParameters = new http.HttpParams({ fromObject: extraHttpRequestParams.search });
2252
+ }
2253
+ }
2254
+ else {
2255
+ queryParameters = new http.HttpParams();
2256
+ }
2257
+ var headers = new http.HttpHeaders();
2258
+ this.defaultHeaders.keys().forEach(function (key) {
2259
+ headers = headers.set(key, _this.defaultHeaders.getAll(key));
2260
+ });
2261
+ if (extraHttpRequestHeaders) {
2262
+ Object.entries(extraHttpRequestHeaders).forEach(function (_a) {
2263
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
2264
+ headers = headers.set(key, value);
2265
+ });
2266
+ }
2267
+ // to determine the Accept header
2268
+ var produces = [
2269
+ 'application/json'
2270
+ ];
2271
+ if (this.configuration.apiKeys["Authorization"]) {
2272
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2273
+ }
2274
+ var consumes = [
2275
+ 'application/json'
2276
+ ];
2277
+ headers = headers.set('Content-Type', consumes[0]);
2278
+ var requestOptions = {
2279
+ headers: headers,
2280
+ body: body == null ? '' : (consumes[0] == 'application/json' ? JSON.stringify(body) : body),
2281
+ params: queryParameters,
2282
+ withCredentials: this.configuration.withCredentials,
2283
+ observe: 'response'
2284
+ };
2285
+ return this.http.request(RequestMethod$4.Put, path, requestOptions);
2220
2286
  };
2221
2287
  return MeService;
2222
2288
  }());
@@ -2229,6 +2295,341 @@
2229
2295
  { type: Configuration, decorators: [{ type: core.Optional }] }
2230
2296
  ]; };
2231
2297
 
2298
+ var RequestMethod$3 = {
2299
+ Get: 'get',
2300
+ Post: 'post',
2301
+ Put: 'put',
2302
+ Delete: 'delete',
2303
+ Options: 'options',
2304
+ Head: 'head',
2305
+ Patch: 'patch'
2306
+ };
2307
+ var NotificationService = /** @class */ (function () {
2308
+ function NotificationService(http$1, basePath, configuration) {
2309
+ this.http = http$1;
2310
+ this.basePath = 'https://localhost';
2311
+ this.defaultHeaders = new http.HttpHeaders();
2312
+ this.configuration = new Configuration();
2313
+ if (basePath) {
2314
+ this.basePath = basePath;
2315
+ }
2316
+ if (configuration) {
2317
+ this.configuration = configuration;
2318
+ this.basePath = basePath || configuration.basePath || this.basePath;
2319
+ }
2320
+ }
2321
+ /**
2322
+ *
2323
+ * Extends object by coping non-existing properties.
2324
+ * @param objA object to be extended
2325
+ * @param objB source object
2326
+ */
2327
+ NotificationService.prototype.extendObj = function (objA, objB) {
2328
+ for (var key in objB) {
2329
+ if (objB.hasOwnProperty(key)) {
2330
+ objA[key] = objB[key];
2331
+ }
2332
+ }
2333
+ return objA;
2334
+ };
2335
+ /**
2336
+ * @param consumes string[] mime-types
2337
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
2338
+ */
2339
+ NotificationService.prototype.canConsumeForm = function (consumes) {
2340
+ var e_1, _a;
2341
+ var form = 'multipart/form-data';
2342
+ try {
2343
+ for (var consumes_1 = __values(consumes), consumes_1_1 = consumes_1.next(); !consumes_1_1.done; consumes_1_1 = consumes_1.next()) {
2344
+ var consume = consumes_1_1.value;
2345
+ if (form === consume) {
2346
+ return true;
2347
+ }
2348
+ }
2349
+ }
2350
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2351
+ finally {
2352
+ try {
2353
+ if (consumes_1_1 && !consumes_1_1.done && (_a = consumes_1.return)) _a.call(consumes_1);
2354
+ }
2355
+ finally { if (e_1) throw e_1.error; }
2356
+ }
2357
+ return false;
2358
+ };
2359
+ /**
2360
+ * Get the last 250 notifications for the current user
2361
+ *
2362
+ */
2363
+ NotificationService.prototype.getMyNotifications = function (extraHttpRequestParams, extraHttpRequestHeaders) {
2364
+ return this.getMyNotificationsWithHttpInfo(extraHttpRequestParams, extraHttpRequestHeaders)
2365
+ .pipe(operators.map(function (response) {
2366
+ if (response.status === 204) {
2367
+ return undefined;
2368
+ }
2369
+ else {
2370
+ return response.body;
2371
+ }
2372
+ }));
2373
+ };
2374
+ /**
2375
+ * Get a specific notification for the current user
2376
+ *
2377
+ * @param notificationId Id of the notification to get
2378
+ */
2379
+ NotificationService.prototype.getNotification = function (notificationId, extraHttpRequestParams, extraHttpRequestHeaders) {
2380
+ return this.getNotificationWithHttpInfo(notificationId, extraHttpRequestParams, extraHttpRequestHeaders)
2381
+ .pipe(operators.map(function (response) {
2382
+ if (response.status === 204) {
2383
+ return undefined;
2384
+ }
2385
+ else {
2386
+ return response.body;
2387
+ }
2388
+ }));
2389
+ };
2390
+ /**
2391
+ * Get total number of notifications that are unread and unarchived for the current user. Use lastCheckDateTimeUtc to get the number of new notifications since the passed in date and time. By default, only the latest 250 notifications will be taken into account. Use the 'noLimit' query parameter to override this behavior.
2392
+ *
2393
+ * @param lastCheckDateTimeUtc Used when calculating the number of new notifications. Must be a UTC DateTime in the format yyyy-MM-ddTHH:mm:ssZ. If not passed the TotalNotifications and NewNotifications will be equal.
2394
+ * @param noLimit If true, will return the badge totals for all of the user's notifications, not just the 250 most recent ones
2395
+ */
2396
+ NotificationService.prototype.getNotificationBadgeTotals = function (lastCheckDateTimeUtc, noLimit, extraHttpRequestParams, extraHttpRequestHeaders) {
2397
+ return this.getNotificationBadgeTotalsWithHttpInfo(lastCheckDateTimeUtc, noLimit, extraHttpRequestParams, extraHttpRequestHeaders)
2398
+ .pipe(operators.map(function (response) {
2399
+ if (response.status === 204) {
2400
+ return undefined;
2401
+ }
2402
+ else {
2403
+ return response.body;
2404
+ }
2405
+ }));
2406
+ };
2407
+ /**
2408
+ * Update a list of notifications based on the notification ids and action passed in Only notifications for the current user can be updated
2409
+ *
2410
+ * @param body List of notification ids and action to perform
2411
+ */
2412
+ NotificationService.prototype.updateListOfNotifications = function (body, extraHttpRequestParams, extraHttpRequestHeaders) {
2413
+ return this.updateListOfNotificationsWithHttpInfo(body, extraHttpRequestParams, extraHttpRequestHeaders)
2414
+ .pipe(operators.map(function (response) {
2415
+ if (response.status === 204) {
2416
+ return undefined;
2417
+ }
2418
+ else {
2419
+ return response.body;
2420
+ }
2421
+ }));
2422
+ };
2423
+ /**
2424
+ * Get the last 250 notifications for the current user
2425
+ *
2426
+ */
2427
+ NotificationService.prototype.getMyNotificationsWithHttpInfo = function (extraHttpRequestParams, extraHttpRequestHeaders) {
2428
+ var _this = this;
2429
+ var path = this.basePath + '/api/v202111/Notification';
2430
+ var queryParameters;
2431
+ if (extraHttpRequestParams) {
2432
+ if (typeof extraHttpRequestParams.search === 'string') {
2433
+ queryParameters = new http.HttpParams({ fromString: extraHttpRequestParams.search });
2434
+ }
2435
+ else {
2436
+ queryParameters = new http.HttpParams({ fromObject: extraHttpRequestParams.search });
2437
+ }
2438
+ }
2439
+ else {
2440
+ queryParameters = new http.HttpParams();
2441
+ }
2442
+ var headers = new http.HttpHeaders();
2443
+ this.defaultHeaders.keys().forEach(function (key) {
2444
+ headers = headers.set(key, _this.defaultHeaders.getAll(key));
2445
+ });
2446
+ if (extraHttpRequestHeaders) {
2447
+ Object.entries(extraHttpRequestHeaders).forEach(function (_a) {
2448
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
2449
+ headers = headers.set(key, value);
2450
+ });
2451
+ }
2452
+ // to determine the Accept header
2453
+ var produces = [
2454
+ 'application/json'
2455
+ ];
2456
+ if (this.configuration.apiKeys["Authorization"]) {
2457
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2458
+ }
2459
+ var consumes = [];
2460
+ var requestOptions = {
2461
+ headers: headers,
2462
+ params: queryParameters,
2463
+ withCredentials: this.configuration.withCredentials,
2464
+ observe: 'response'
2465
+ };
2466
+ return this.http.request(RequestMethod$3.Get, path, requestOptions);
2467
+ };
2468
+ /**
2469
+ * Get a specific notification for the current user
2470
+ *
2471
+ * @param notificationId Id of the notification to get
2472
+ */
2473
+ NotificationService.prototype.getNotificationWithHttpInfo = function (notificationId, extraHttpRequestParams, extraHttpRequestHeaders) {
2474
+ var _this = this;
2475
+ var path = this.basePath + '/api/v202111/Notification/${notificationId}'
2476
+ .replace('${' + 'notificationId' + '}', String(notificationId));
2477
+ var queryParameters;
2478
+ if (extraHttpRequestParams) {
2479
+ if (typeof extraHttpRequestParams.search === 'string') {
2480
+ queryParameters = new http.HttpParams({ fromString: extraHttpRequestParams.search });
2481
+ }
2482
+ else {
2483
+ queryParameters = new http.HttpParams({ fromObject: extraHttpRequestParams.search });
2484
+ }
2485
+ }
2486
+ else {
2487
+ queryParameters = new http.HttpParams();
2488
+ }
2489
+ var headers = new http.HttpHeaders();
2490
+ this.defaultHeaders.keys().forEach(function (key) {
2491
+ headers = headers.set(key, _this.defaultHeaders.getAll(key));
2492
+ });
2493
+ if (extraHttpRequestHeaders) {
2494
+ Object.entries(extraHttpRequestHeaders).forEach(function (_a) {
2495
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
2496
+ headers = headers.set(key, value);
2497
+ });
2498
+ }
2499
+ // verify required parameter 'notificationId' is not null or undefined
2500
+ if (notificationId === null || notificationId === undefined) {
2501
+ throw new Error('Required parameter notificationId was null or undefined when calling getNotification.');
2502
+ }
2503
+ // to determine the Accept header
2504
+ var produces = [
2505
+ 'application/json'
2506
+ ];
2507
+ if (this.configuration.apiKeys["Authorization"]) {
2508
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2509
+ }
2510
+ var consumes = [];
2511
+ var requestOptions = {
2512
+ headers: headers,
2513
+ params: queryParameters,
2514
+ withCredentials: this.configuration.withCredentials,
2515
+ observe: 'response'
2516
+ };
2517
+ return this.http.request(RequestMethod$3.Get, path, requestOptions);
2518
+ };
2519
+ /**
2520
+ * Get total number of notifications that are unread and unarchived for the current user. Use lastCheckDateTimeUtc to get the number of new notifications since the passed in date and time. By default, only the latest 250 notifications will be taken into account. Use the 'noLimit' query parameter to override this behavior.
2521
+ *
2522
+ * @param lastCheckDateTimeUtc Used when calculating the number of new notifications. Must be a UTC DateTime in the format yyyy-MM-ddTHH:mm:ssZ. If not passed the TotalNotifications and NewNotifications will be equal.
2523
+ * @param noLimit If true, will return the badge totals for all of the user's notifications, not just the 250 most recent ones
2524
+ */
2525
+ NotificationService.prototype.getNotificationBadgeTotalsWithHttpInfo = function (lastCheckDateTimeUtc, noLimit, extraHttpRequestParams, extraHttpRequestHeaders) {
2526
+ var _this = this;
2527
+ var path = this.basePath + '/api/v202111/Notification/badge';
2528
+ var queryParameters;
2529
+ if (extraHttpRequestParams) {
2530
+ if (typeof extraHttpRequestParams.search === 'string') {
2531
+ queryParameters = new http.HttpParams({ fromString: extraHttpRequestParams.search });
2532
+ }
2533
+ else {
2534
+ queryParameters = new http.HttpParams({ fromObject: extraHttpRequestParams.search });
2535
+ }
2536
+ }
2537
+ else {
2538
+ queryParameters = new http.HttpParams();
2539
+ }
2540
+ var headers = new http.HttpHeaders();
2541
+ this.defaultHeaders.keys().forEach(function (key) {
2542
+ headers = headers.set(key, _this.defaultHeaders.getAll(key));
2543
+ });
2544
+ if (extraHttpRequestHeaders) {
2545
+ Object.entries(extraHttpRequestHeaders).forEach(function (_a) {
2546
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
2547
+ headers = headers.set(key, value);
2548
+ });
2549
+ }
2550
+ if (lastCheckDateTimeUtc !== undefined) {
2551
+ queryParameters = queryParameters.set('lastCheckDateTimeUtc', lastCheckDateTimeUtc.toISOString());
2552
+ }
2553
+ if (noLimit !== undefined) {
2554
+ queryParameters = queryParameters.set('noLimit', noLimit);
2555
+ }
2556
+ // to determine the Accept header
2557
+ var produces = [
2558
+ 'application/json'
2559
+ ];
2560
+ if (this.configuration.apiKeys["Authorization"]) {
2561
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2562
+ }
2563
+ var consumes = [];
2564
+ var requestOptions = {
2565
+ headers: headers,
2566
+ params: queryParameters,
2567
+ withCredentials: this.configuration.withCredentials,
2568
+ observe: 'response'
2569
+ };
2570
+ return this.http.request(RequestMethod$3.Get, path, requestOptions);
2571
+ };
2572
+ /**
2573
+ * Update a list of notifications based on the notification ids and action passed in Only notifications for the current user can be updated
2574
+ *
2575
+ * @param body List of notification ids and action to perform
2576
+ */
2577
+ NotificationService.prototype.updateListOfNotificationsWithHttpInfo = function (body, extraHttpRequestParams, extraHttpRequestHeaders) {
2578
+ var _this = this;
2579
+ var path = this.basePath + '/api/v202111/Notification';
2580
+ var queryParameters;
2581
+ if (extraHttpRequestParams) {
2582
+ if (typeof extraHttpRequestParams.search === 'string') {
2583
+ queryParameters = new http.HttpParams({ fromString: extraHttpRequestParams.search });
2584
+ }
2585
+ else {
2586
+ queryParameters = new http.HttpParams({ fromObject: extraHttpRequestParams.search });
2587
+ }
2588
+ }
2589
+ else {
2590
+ queryParameters = new http.HttpParams();
2591
+ }
2592
+ var headers = new http.HttpHeaders();
2593
+ this.defaultHeaders.keys().forEach(function (key) {
2594
+ headers = headers.set(key, _this.defaultHeaders.getAll(key));
2595
+ });
2596
+ if (extraHttpRequestHeaders) {
2597
+ Object.entries(extraHttpRequestHeaders).forEach(function (_a) {
2598
+ var _b = __read(_a, 2), key = _b[0], value = _b[1];
2599
+ headers = headers.set(key, value);
2600
+ });
2601
+ }
2602
+ // to determine the Accept header
2603
+ var produces = [
2604
+ 'application/json'
2605
+ ];
2606
+ if (this.configuration.apiKeys["Authorization"]) {
2607
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2608
+ }
2609
+ var consumes = [
2610
+ 'application/json'
2611
+ ];
2612
+ headers = headers.set('Content-Type', consumes[0]);
2613
+ var requestOptions = {
2614
+ headers: headers,
2615
+ body: body == null ? '' : (consumes[0] == 'application/json' ? JSON.stringify(body) : body),
2616
+ params: queryParameters,
2617
+ withCredentials: this.configuration.withCredentials,
2618
+ observe: 'response'
2619
+ };
2620
+ return this.http.request(RequestMethod$3.Put, path, requestOptions);
2621
+ };
2622
+ return NotificationService;
2623
+ }());
2624
+ NotificationService.decorators = [
2625
+ { type: core.Injectable }
2626
+ ];
2627
+ NotificationService.ctorParameters = function () { return [
2628
+ { type: http.HttpClient },
2629
+ { type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [BASE_PATH,] }] },
2630
+ { type: Configuration, decorators: [{ type: core.Optional }] }
2631
+ ]; };
2632
+
2232
2633
  var RequestMethod$2 = {
2233
2634
  Get: 'get',
2234
2635
  Post: 'post',
@@ -3978,7 +4379,7 @@
3978
4379
  { type: Configuration, decorators: [{ type: core.Optional }] }
3979
4380
  ]; };
3980
4381
 
3981
- var APIS = [ApplicationService, ApplicationInstanceService, AuthService, DataSourceService, DomainJoinTypeService, EnvironmentService, MeService, OrganizationService, OrganizationApplicationService, UserService];
4382
+ var APIS = [ApplicationService, ApplicationInstanceService, AuthService, DataSourceService, DomainJoinTypeService, EnvironmentService, MeService, NotificationService, OrganizationService, OrganizationApplicationService, UserService];
3982
4383
 
3983
4384
  /**
3984
4385
  * EnergyCAP ID SDK
@@ -4405,6 +4806,108 @@
4405
4806
  return LoginSourceResponse;
4406
4807
  }());
4407
4808
 
4809
+ /**
4810
+ * EnergyCAP ID SDK
4811
+ * Document used to generate the EnergyCAP ID SDK
4812
+ *
4813
+ * OpenAPI spec version: 1.2112
4814
+ * Contact: support@energycap.com
4815
+ *
4816
+ * NOTE: This class is auto generated by the swagger code generator program.
4817
+ * https://github.com/swagger-api/swagger-codegen.git
4818
+ * Do not edit the class manually.
4819
+ */
4820
+ var NotificationBadgeResponse = /** @class */ (function () {
4821
+ function NotificationBadgeResponse() {
4822
+ }
4823
+ return NotificationBadgeResponse;
4824
+ }());
4825
+
4826
+ /**
4827
+ * EnergyCAP ID SDK
4828
+ * Document used to generate the EnergyCAP ID SDK
4829
+ *
4830
+ * OpenAPI spec version: 1.2112
4831
+ * Contact: support@energycap.com
4832
+ *
4833
+ * NOTE: This class is auto generated by the swagger code generator program.
4834
+ * https://github.com/swagger-api/swagger-codegen.git
4835
+ * Do not edit the class manually.
4836
+ */
4837
+ var NotificationCategory = /** @class */ (function () {
4838
+ function NotificationCategory() {
4839
+ }
4840
+ return NotificationCategory;
4841
+ }());
4842
+
4843
+ /**
4844
+ * EnergyCAP ID SDK
4845
+ * Document used to generate the EnergyCAP ID SDK
4846
+ *
4847
+ * OpenAPI spec version: 1.2112
4848
+ * Contact: support@energycap.com
4849
+ *
4850
+ * NOTE: This class is auto generated by the swagger code generator program.
4851
+ * https://github.com/swagger-api/swagger-codegen.git
4852
+ * Do not edit the class manually.
4853
+ */
4854
+ var NotificationResponse = /** @class */ (function () {
4855
+ function NotificationResponse() {
4856
+ }
4857
+ return NotificationResponse;
4858
+ }());
4859
+
4860
+ /**
4861
+ * EnergyCAP ID SDK
4862
+ * Document used to generate the EnergyCAP ID SDK
4863
+ *
4864
+ * OpenAPI spec version: 1.2112
4865
+ * Contact: support@energycap.com
4866
+ *
4867
+ * NOTE: This class is auto generated by the swagger code generator program.
4868
+ * https://github.com/swagger-api/swagger-codegen.git
4869
+ * Do not edit the class manually.
4870
+ */
4871
+ var NotificationSettingRequest = /** @class */ (function () {
4872
+ function NotificationSettingRequest() {
4873
+ }
4874
+ return NotificationSettingRequest;
4875
+ }());
4876
+
4877
+ /**
4878
+ * EnergyCAP ID SDK
4879
+ * Document used to generate the EnergyCAP ID SDK
4880
+ *
4881
+ * OpenAPI spec version: 1.2112
4882
+ * Contact: support@energycap.com
4883
+ *
4884
+ * NOTE: This class is auto generated by the swagger code generator program.
4885
+ * https://github.com/swagger-api/swagger-codegen.git
4886
+ * Do not edit the class manually.
4887
+ */
4888
+ var NotificationType = /** @class */ (function () {
4889
+ function NotificationType() {
4890
+ }
4891
+ return NotificationType;
4892
+ }());
4893
+
4894
+ /**
4895
+ * EnergyCAP ID SDK
4896
+ * Document used to generate the EnergyCAP ID SDK
4897
+ *
4898
+ * OpenAPI spec version: 1.2112
4899
+ * Contact: support@energycap.com
4900
+ *
4901
+ * NOTE: This class is auto generated by the swagger code generator program.
4902
+ * https://github.com/swagger-api/swagger-codegen.git
4903
+ * Do not edit the class manually.
4904
+ */
4905
+ var NotificationUpdateRequest = /** @class */ (function () {
4906
+ function NotificationUpdateRequest() {
4907
+ }
4908
+ return NotificationUpdateRequest;
4909
+ }());
4910
+
4408
4911
  /**
4409
4912
  * EnergyCAP ID SDK
4410
4913
  * Document used to generate the EnergyCAP ID SDK
@@ -4614,6 +5117,23 @@
4614
5117
  return UpdateOrganizationDetailsRequest;
4615
5118
  }());
4616
5119
 
5120
+ /**
5121
+ * EnergyCAP ID SDK
5122
+ * Document used to generate the EnergyCAP ID SDK
5123
+ *
5124
+ * OpenAPI spec version: 1.2112
5125
+ * Contact: support@energycap.com
5126
+ *
5127
+ * NOTE: This class is auto generated by the swagger code generator program.
5128
+ * https://github.com/swagger-api/swagger-codegen.git
5129
+ * Do not edit the class manually.
5130
+ */
5131
+ var UpdateResult = /** @class */ (function () {
5132
+ function UpdateResult() {
5133
+ }
5134
+ return UpdateResult;
5135
+ }());
5136
+
4617
5137
  /**
4618
5138
  * EnergyCAP ID SDK
4619
5139
  * Document used to generate the EnergyCAP ID SDK
@@ -4854,7 +5374,7 @@
4854
5374
  imports: [common.CommonModule, http.HttpClientModule],
4855
5375
  declarations: [],
4856
5376
  exports: [],
4857
- providers: [ApplicationService, ApplicationInstanceService, AuthService, DataSourceService, DomainJoinTypeService, EnvironmentService, MeService, OrganizationService, OrganizationApplicationService, UserService]
5377
+ providers: [ApplicationService, ApplicationInstanceService, AuthService, DataSourceService, DomainJoinTypeService, EnvironmentService, MeService, NotificationService, OrganizationService, OrganizationApplicationService, UserService]
4858
5378
  },] }
4859
5379
  ];
4860
5380
 
@@ -4896,6 +5416,13 @@
4896
5416
  exports.LoginResponse = LoginResponse;
4897
5417
  exports.LoginSourceResponse = LoginSourceResponse;
4898
5418
  exports.MeService = MeService;
5419
+ exports.NotificationBadgeResponse = NotificationBadgeResponse;
5420
+ exports.NotificationCategory = NotificationCategory;
5421
+ exports.NotificationResponse = NotificationResponse;
5422
+ exports.NotificationService = NotificationService;
5423
+ exports.NotificationSettingRequest = NotificationSettingRequest;
5424
+ exports.NotificationType = NotificationType;
5425
+ exports.NotificationUpdateRequest = NotificationUpdateRequest;
4899
5426
  exports.OrganizationAccessControlResponse = OrganizationAccessControlResponse;
4900
5427
  exports.OrganizationApplicationResponse = OrganizationApplicationResponse;
4901
5428
  exports.OrganizationApplicationService = OrganizationApplicationService;
@@ -4908,6 +5435,7 @@
4908
5435
  exports.UpdateMeRequest = UpdateMeRequest;
4909
5436
  exports.UpdateOrganizationAccessControlRequest = UpdateOrganizationAccessControlRequest;
4910
5437
  exports.UpdateOrganizationDetailsRequest = UpdateOrganizationDetailsRequest;
5438
+ exports.UpdateResult = UpdateResult;
4911
5439
  exports.UserApplicationInstanceResponse = UserApplicationInstanceResponse;
4912
5440
  exports.UserChild = UserChild;
4913
5441
  exports.UserLoginRequest = UserLoginRequest;