@energycap/energycapid-sdk-angular 1.2112.49-develop-20211222-1650 → 1.2112.53-ECAPID-356-ApplicationInstance-Get-API-20220106-1621

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 (35) hide show
  1. package/api/api.d.ts +3 -1
  2. package/api/applicationInstance.service.d.ts +2 -8
  3. package/api/me.service.d.ts +25 -0
  4. package/api/notification.service.d.ts +134 -0
  5. package/bundles/energycap-energycapid-sdk-angular.umd.js +560 -47
  6. package/bundles/energycap-energycapid-sdk-angular.umd.js.map +1 -1
  7. package/bundles/energycap-energycapid-sdk-angular.umd.min.js +2 -2
  8. package/bundles/energycap-energycapid-sdk-angular.umd.min.js.map +1 -1
  9. package/energycap-energycapid-sdk-angular.metadata.json +1 -1
  10. package/esm2015/api/api.js +4 -2
  11. package/esm2015/api/applicationInstance.service.js +4 -19
  12. package/esm2015/api/me.service.js +65 -1
  13. package/esm2015/api/notification.service.js +332 -0
  14. package/esm2015/api.module.js +3 -2
  15. package/esm2015/model/models.js +8 -1
  16. package/esm2015/model/notificationBadgeResponse.js +14 -0
  17. package/esm2015/model/notificationCategory.js +14 -0
  18. package/esm2015/model/notificationResponse.js +14 -0
  19. package/esm2015/model/notificationSettingRequest.js +14 -0
  20. package/esm2015/model/notificationType.js +14 -0
  21. package/esm2015/model/notificationUpdateRequest.js +14 -0
  22. package/esm2015/model/updateResult.js +14 -0
  23. package/esm2015/model/userResponse.js +1 -1
  24. package/fesm2015/energycap-energycapid-sdk-angular.js +521 -48
  25. package/fesm2015/energycap-energycapid-sdk-angular.js.map +1 -1
  26. package/model/models.d.ts +7 -0
  27. package/model/notificationBadgeResponse.d.ts +25 -0
  28. package/model/notificationCategory.d.ts +25 -0
  29. package/model/notificationResponse.d.ts +35 -0
  30. package/model/notificationSettingRequest.d.ts +17 -0
  31. package/model/notificationType.d.ts +27 -0
  32. package/model/notificationUpdateRequest.d.ts +21 -0
  33. package/model/updateResult.d.ts +15 -0
  34. package/model/userResponse.d.ts +4 -0
  35. package/package.json +1 -1
@@ -45,7 +45,7 @@ class Configuration {
45
45
  * https://github.com/swagger-api/swagger-codegen.git
46
46
  * Do not edit the class manually.
47
47
  */
48
- const RequestMethod$9 = {
48
+ const RequestMethod$a = {
49
49
  Get: 'get',
50
50
  Post: 'post',
51
51
  Put: 'put',
@@ -151,7 +151,7 @@ class ApplicationService {
151
151
  withCredentials: this.configuration.withCredentials,
152
152
  observe: 'response'
153
153
  };
154
- return this.http.request(RequestMethod$9.Get, path, requestOptions);
154
+ return this.http.request(RequestMethod$a.Get, path, requestOptions);
155
155
  }
156
156
  }
157
157
  ApplicationService.decorators = [
@@ -174,7 +174,7 @@ ApplicationService.ctorParameters = () => [
174
174
  * https://github.com/swagger-api/swagger-codegen.git
175
175
  * Do not edit the class manually.
176
176
  */
177
- const RequestMethod$8 = {
177
+ const RequestMethod$9 = {
178
178
  Get: 'get',
179
179
  Post: 'post',
180
180
  Put: 'put',
@@ -279,17 +279,14 @@ class ApplicationInstanceService {
279
279
  /**
280
280
  * Provides a list of all available application instances to which the logged in user has access
281
281
  *
282
- * @param organizationName Filter by an exact name of an organization
283
- * @param dataSourceName Filter by an exact name of a data source
284
- * @param targetHost Filter by a host name containing an alias
285
282
  * @param onlyAdmin Defaults to false. If false, returns all application instances to which the current user has access. If set to true will only return results where the logged in user has admin access
286
283
  * @param orderBy
287
284
  * @param filter
288
285
  * @param pageSize The number of elements to return in a page (defaults to 250 elements)
289
286
  * @param pageNumber The current page number
290
287
  */
291
- getApplicationInstances(organizationName, dataSourceName, targetHost, onlyAdmin, orderBy, filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
292
- return this.getApplicationInstancesWithHttpInfo(organizationName, dataSourceName, targetHost, onlyAdmin, orderBy, filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
288
+ getApplicationInstances(onlyAdmin, orderBy, filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
289
+ return this.getApplicationInstancesWithHttpInfo(onlyAdmin, orderBy, filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders)
293
290
  .pipe(map((response) => {
294
291
  if (response.status === 204) {
295
292
  return undefined;
@@ -351,7 +348,7 @@ class ApplicationInstanceService {
351
348
  withCredentials: this.configuration.withCredentials,
352
349
  observe: 'response'
353
350
  };
354
- return this.http.request(RequestMethod$8.Get, path, requestOptions);
351
+ return this.http.request(RequestMethod$9.Get, path, requestOptions);
355
352
  }
356
353
  /**
357
354
  * Provides the data needed to redirect the user to the specified application instance
@@ -400,7 +397,7 @@ class ApplicationInstanceService {
400
397
  withCredentials: this.configuration.withCredentials,
401
398
  observe: 'response'
402
399
  };
403
- return this.http.request(RequestMethod$8.Get, path, requestOptions);
400
+ return this.http.request(RequestMethod$9.Get, path, requestOptions);
404
401
  }
405
402
  /**
406
403
  * Provides a list of user's who have access to an application instance
@@ -462,21 +459,18 @@ class ApplicationInstanceService {
462
459
  withCredentials: this.configuration.withCredentials,
463
460
  observe: 'response'
464
461
  };
465
- return this.http.request(RequestMethod$8.Get, path, requestOptions);
462
+ return this.http.request(RequestMethod$9.Get, path, requestOptions);
466
463
  }
467
464
  /**
468
465
  * Provides a list of all available application instances to which the logged in user has access
469
466
  *
470
- * @param organizationName Filter by an exact name of an organization
471
- * @param dataSourceName Filter by an exact name of a data source
472
- * @param targetHost Filter by a host name containing an alias
473
467
  * @param onlyAdmin Defaults to false. If false, returns all application instances to which the current user has access. If set to true will only return results where the logged in user has admin access
474
468
  * @param orderBy
475
469
  * @param filter
476
470
  * @param pageSize The number of elements to return in a page (defaults to 250 elements)
477
471
  * @param pageNumber The current page number
478
472
  */
479
- getApplicationInstancesWithHttpInfo(organizationName, dataSourceName, targetHost, onlyAdmin, orderBy, filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
473
+ getApplicationInstancesWithHttpInfo(onlyAdmin, orderBy, filter, pageSize, pageNumber, extraHttpRequestParams, extraHttpRequestHeaders) {
480
474
  const path = this.basePath + '/api/v202108/ApplicationInstance';
481
475
  let queryParameters;
482
476
  if (extraHttpRequestParams) {
@@ -499,15 +493,6 @@ class ApplicationInstanceService {
499
493
  headers = headers.set(key, value);
500
494
  });
501
495
  }
502
- if (organizationName !== undefined) {
503
- queryParameters = queryParameters.set('organizationName', organizationName);
504
- }
505
- if (dataSourceName !== undefined) {
506
- queryParameters = queryParameters.set('dataSourceName', dataSourceName);
507
- }
508
- if (targetHost !== undefined) {
509
- queryParameters = queryParameters.set('targetHost', targetHost);
510
- }
511
496
  if (onlyAdmin !== undefined) {
512
497
  queryParameters = queryParameters.set('onlyAdmin', onlyAdmin);
513
498
  }
@@ -537,7 +522,7 @@ class ApplicationInstanceService {
537
522
  withCredentials: this.configuration.withCredentials,
538
523
  observe: 'response'
539
524
  };
540
- return this.http.request(RequestMethod$8.Get, path, requestOptions);
525
+ return this.http.request(RequestMethod$9.Get, path, requestOptions);
541
526
  }
542
527
  }
543
528
  ApplicationInstanceService.decorators = [
@@ -560,7 +545,7 @@ ApplicationInstanceService.ctorParameters = () => [
560
545
  * https://github.com/swagger-api/swagger-codegen.git
561
546
  * Do not edit the class manually.
562
547
  */
563
- const RequestMethod$7 = {
548
+ const RequestMethod$8 = {
564
549
  Get: 'get',
565
550
  Post: 'post',
566
551
  Put: 'put',
@@ -770,7 +755,7 @@ class AuthService {
770
755
  withCredentials: this.configuration.withCredentials,
771
756
  observe: 'response'
772
757
  };
773
- return this.http.request(RequestMethod$7.Post, path, requestOptions);
758
+ return this.http.request(RequestMethod$8.Post, path, requestOptions);
774
759
  }
775
760
  /**
776
761
  * 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
@@ -817,7 +802,7 @@ class AuthService {
817
802
  withCredentials: this.configuration.withCredentials,
818
803
  observe: 'response'
819
804
  };
820
- return this.http.request(RequestMethod$7.Get, path, requestOptions);
805
+ return this.http.request(RequestMethod$8.Get, path, requestOptions);
821
806
  }
822
807
  /**
823
808
  * Use this method to authenticate a user given an authcode from the federation provider
@@ -874,7 +859,7 @@ class AuthService {
874
859
  withCredentials: this.configuration.withCredentials,
875
860
  observe: 'response'
876
861
  };
877
- return this.http.request(RequestMethod$7.Get, path, requestOptions);
862
+ return this.http.request(RequestMethod$8.Get, path, requestOptions);
878
863
  }
879
864
  /**
880
865
  * Use this method to authenticate a user given their username and password
@@ -922,7 +907,7 @@ class AuthService {
922
907
  withCredentials: this.configuration.withCredentials,
923
908
  observe: 'response'
924
909
  };
925
- return this.http.request(RequestMethod$7.Post, path, requestOptions);
910
+ return this.http.request(RequestMethod$8.Post, path, requestOptions);
926
911
  }
927
912
  /**
928
913
  * 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
@@ -968,7 +953,7 @@ class AuthService {
968
953
  withCredentials: this.configuration.withCredentials,
969
954
  observe: 'response'
970
955
  };
971
- return this.http.request(RequestMethod$7.Post, path, requestOptions);
956
+ return this.http.request(RequestMethod$8.Post, path, requestOptions);
972
957
  }
973
958
  /**
974
959
  * If the user exists, an email will be sent. If the domain is a federated domain, no email will be sent
@@ -1013,7 +998,7 @@ class AuthService {
1013
998
  withCredentials: this.configuration.withCredentials,
1014
999
  observe: 'response'
1015
1000
  };
1016
- return this.http.request(RequestMethod$7.Get, path, requestOptions);
1001
+ return this.http.request(RequestMethod$8.Get, path, requestOptions);
1017
1002
  }
1018
1003
  /**
1019
1004
  * Validates a password
@@ -1061,7 +1046,7 @@ class AuthService {
1061
1046
  withCredentials: this.configuration.withCredentials,
1062
1047
  observe: 'response'
1063
1048
  };
1064
- return this.http.request(RequestMethod$7.Post, path, requestOptions);
1049
+ return this.http.request(RequestMethod$8.Post, path, requestOptions);
1065
1050
  }
1066
1051
  }
1067
1052
  AuthService.decorators = [
@@ -1084,7 +1069,7 @@ AuthService.ctorParameters = () => [
1084
1069
  * https://github.com/swagger-api/swagger-codegen.git
1085
1070
  * Do not edit the class manually.
1086
1071
  */
1087
- const RequestMethod$6 = {
1072
+ const RequestMethod$7 = {
1088
1073
  Get: 'get',
1089
1074
  Post: 'post',
1090
1075
  Put: 'put',
@@ -1230,7 +1215,7 @@ class DataSourceService {
1230
1215
  withCredentials: this.configuration.withCredentials,
1231
1216
  observe: 'response'
1232
1217
  };
1233
- return this.http.request(RequestMethod$6.Get, path, requestOptions);
1218
+ return this.http.request(RequestMethod$7.Get, path, requestOptions);
1234
1219
  }
1235
1220
  /**
1236
1221
  * Gets the data sources to which the logged in user has access.
@@ -1277,7 +1262,7 @@ class DataSourceService {
1277
1262
  withCredentials: this.configuration.withCredentials,
1278
1263
  observe: 'response'
1279
1264
  };
1280
- return this.http.request(RequestMethod$6.Get, path, requestOptions);
1265
+ return this.http.request(RequestMethod$7.Get, path, requestOptions);
1281
1266
  }
1282
1267
  /**
1283
1268
  * 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
@@ -1331,7 +1316,7 @@ class DataSourceService {
1331
1316
  withCredentials: this.configuration.withCredentials,
1332
1317
  observe: 'response'
1333
1318
  };
1334
- return this.http.request(RequestMethod$6.Put, path, requestOptions);
1319
+ return this.http.request(RequestMethod$7.Put, path, requestOptions);
1335
1320
  }
1336
1321
  }
1337
1322
  DataSourceService.decorators = [
@@ -1354,7 +1339,7 @@ DataSourceService.ctorParameters = () => [
1354
1339
  * https://github.com/swagger-api/swagger-codegen.git
1355
1340
  * Do not edit the class manually.
1356
1341
  */
1357
- const RequestMethod$5 = {
1342
+ const RequestMethod$6 = {
1358
1343
  Get: 'get',
1359
1344
  Post: 'post',
1360
1345
  Put: 'put',
@@ -1460,7 +1445,7 @@ class DomainJoinTypeService {
1460
1445
  withCredentials: this.configuration.withCredentials,
1461
1446
  observe: 'response'
1462
1447
  };
1463
- return this.http.request(RequestMethod$5.Get, path, requestOptions);
1448
+ return this.http.request(RequestMethod$6.Get, path, requestOptions);
1464
1449
  }
1465
1450
  }
1466
1451
  DomainJoinTypeService.decorators = [
@@ -1483,7 +1468,7 @@ DomainJoinTypeService.ctorParameters = () => [
1483
1468
  * https://github.com/swagger-api/swagger-codegen.git
1484
1469
  * Do not edit the class manually.
1485
1470
  */
1486
- const RequestMethod$4 = {
1471
+ const RequestMethod$5 = {
1487
1472
  Get: 'get',
1488
1473
  Post: 'post',
1489
1474
  Put: 'put',
@@ -1594,7 +1579,7 @@ class EnvironmentService {
1594
1579
  withCredentials: this.configuration.withCredentials,
1595
1580
  observe: 'response'
1596
1581
  };
1597
- return this.http.request(RequestMethod$4.Get, path, requestOptions);
1582
+ return this.http.request(RequestMethod$5.Get, path, requestOptions);
1598
1583
  }
1599
1584
  }
1600
1585
  EnvironmentService.decorators = [
@@ -1617,7 +1602,7 @@ EnvironmentService.ctorParameters = () => [
1617
1602
  * https://github.com/swagger-api/swagger-codegen.git
1618
1603
  * Do not edit the class manually.
1619
1604
  */
1620
- const RequestMethod$3 = {
1605
+ const RequestMethod$4 = {
1621
1606
  Get: 'get',
1622
1607
  Post: 'post',
1623
1608
  Put: 'put',
@@ -1714,6 +1699,22 @@ class MeService {
1714
1699
  }
1715
1700
  }));
1716
1701
  }
1702
+ /**
1703
+ * Use this method to update the currently authenticated user's notification settings
1704
+ *
1705
+ * @param body The user notification settings to update
1706
+ */
1707
+ updateMyNotificationSetting(body, extraHttpRequestParams, extraHttpRequestHeaders) {
1708
+ return this.updateMyNotificationSettingWithHttpInfo(body, extraHttpRequestParams, extraHttpRequestHeaders)
1709
+ .pipe(map((response) => {
1710
+ if (response.status === 204) {
1711
+ return undefined;
1712
+ }
1713
+ else {
1714
+ return response.body;
1715
+ }
1716
+ }));
1717
+ }
1717
1718
  /**
1718
1719
  * Use this method to get information about the currently authenticated user
1719
1720
  *
@@ -1755,7 +1756,7 @@ class MeService {
1755
1756
  withCredentials: this.configuration.withCredentials,
1756
1757
  observe: 'response'
1757
1758
  };
1758
- return this.http.request(RequestMethod$3.Get, path, requestOptions);
1759
+ return this.http.request(RequestMethod$4.Get, path, requestOptions);
1759
1760
  }
1760
1761
  /**
1761
1762
  * Will allow a user to link to a data source that they don't have access to based upon their login name
@@ -1801,7 +1802,7 @@ class MeService {
1801
1802
  withCredentials: this.configuration.withCredentials,
1802
1803
  observe: 'response'
1803
1804
  };
1804
- return this.http.request(RequestMethod$3.Post, path, requestOptions);
1805
+ return this.http.request(RequestMethod$4.Post, path, requestOptions);
1805
1806
  }
1806
1807
  /**
1807
1808
  * Use this method to update the currently authenticated user's information
@@ -1849,7 +1850,55 @@ class MeService {
1849
1850
  withCredentials: this.configuration.withCredentials,
1850
1851
  observe: 'response'
1851
1852
  };
1852
- return this.http.request(RequestMethod$3.Put, path, requestOptions);
1853
+ return this.http.request(RequestMethod$4.Put, path, requestOptions);
1854
+ }
1855
+ /**
1856
+ * Use this method to update the currently authenticated user's notification settings
1857
+ *
1858
+ * @param body The user notification settings to update
1859
+ */
1860
+ updateMyNotificationSettingWithHttpInfo(body, extraHttpRequestParams, extraHttpRequestHeaders) {
1861
+ const path = this.basePath + '/api/v202108/Me/notificationsetting';
1862
+ let queryParameters;
1863
+ if (extraHttpRequestParams) {
1864
+ if (typeof extraHttpRequestParams.search === 'string') {
1865
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
1866
+ }
1867
+ else {
1868
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
1869
+ }
1870
+ }
1871
+ else {
1872
+ queryParameters = new HttpParams();
1873
+ }
1874
+ let headers = new HttpHeaders();
1875
+ this.defaultHeaders.keys().forEach(key => {
1876
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
1877
+ });
1878
+ if (extraHttpRequestHeaders) {
1879
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
1880
+ headers = headers.set(key, value);
1881
+ });
1882
+ }
1883
+ // to determine the Accept header
1884
+ let produces = [
1885
+ 'application/json'
1886
+ ];
1887
+ if (this.configuration.apiKeys["Authorization"]) {
1888
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
1889
+ }
1890
+ const consumes = [
1891
+ 'application/json'
1892
+ ];
1893
+ headers = headers.set('Content-Type', consumes[0]);
1894
+ let requestOptions = {
1895
+ headers: headers,
1896
+ body: body == null ? '' : (consumes[0] == 'application/json' ? JSON.stringify(body) : body),
1897
+ params: queryParameters,
1898
+ withCredentials: this.configuration.withCredentials,
1899
+ observe: 'response'
1900
+ };
1901
+ return this.http.request(RequestMethod$4.Put, path, requestOptions);
1853
1902
  }
1854
1903
  }
1855
1904
  MeService.decorators = [
@@ -1861,6 +1910,332 @@ MeService.ctorParameters = () => [
1861
1910
  { type: Configuration, decorators: [{ type: Optional }] }
1862
1911
  ];
1863
1912
 
1913
+ /**
1914
+ * EnergyCAP ID SDK
1915
+ * Document used to generate the EnergyCAP ID SDK
1916
+ *
1917
+ * OpenAPI spec version: 1.2112
1918
+ * Contact: support@energycap.com
1919
+ *
1920
+ * NOTE: This class is auto generated by the swagger code generator program.
1921
+ * https://github.com/swagger-api/swagger-codegen.git
1922
+ * Do not edit the class manually.
1923
+ */
1924
+ const RequestMethod$3 = {
1925
+ Get: 'get',
1926
+ Post: 'post',
1927
+ Put: 'put',
1928
+ Delete: 'delete',
1929
+ Options: 'options',
1930
+ Head: 'head',
1931
+ Patch: 'patch'
1932
+ };
1933
+ class NotificationService {
1934
+ constructor(http, basePath, configuration) {
1935
+ this.http = http;
1936
+ this.basePath = 'https://localhost';
1937
+ this.defaultHeaders = new HttpHeaders();
1938
+ this.configuration = new Configuration();
1939
+ if (basePath) {
1940
+ this.basePath = basePath;
1941
+ }
1942
+ if (configuration) {
1943
+ this.configuration = configuration;
1944
+ this.basePath = basePath || configuration.basePath || this.basePath;
1945
+ }
1946
+ }
1947
+ /**
1948
+ *
1949
+ * Extends object by coping non-existing properties.
1950
+ * @param objA object to be extended
1951
+ * @param objB source object
1952
+ */
1953
+ extendObj(objA, objB) {
1954
+ for (let key in objB) {
1955
+ if (objB.hasOwnProperty(key)) {
1956
+ objA[key] = objB[key];
1957
+ }
1958
+ }
1959
+ return objA;
1960
+ }
1961
+ /**
1962
+ * @param consumes string[] mime-types
1963
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
1964
+ */
1965
+ canConsumeForm(consumes) {
1966
+ const form = 'multipart/form-data';
1967
+ for (let consume of consumes) {
1968
+ if (form === consume) {
1969
+ return true;
1970
+ }
1971
+ }
1972
+ return false;
1973
+ }
1974
+ /**
1975
+ * Get the last 250 notifications for the current user
1976
+ *
1977
+ */
1978
+ getMyNotifications(extraHttpRequestParams, extraHttpRequestHeaders) {
1979
+ return this.getMyNotificationsWithHttpInfo(extraHttpRequestParams, extraHttpRequestHeaders)
1980
+ .pipe(map((response) => {
1981
+ if (response.status === 204) {
1982
+ return undefined;
1983
+ }
1984
+ else {
1985
+ return response.body;
1986
+ }
1987
+ }));
1988
+ }
1989
+ /**
1990
+ * Get a specific notification for the current user
1991
+ *
1992
+ * @param notificationId Id of the notification to get
1993
+ */
1994
+ getNotification(notificationId, extraHttpRequestParams, extraHttpRequestHeaders) {
1995
+ return this.getNotificationWithHttpInfo(notificationId, extraHttpRequestParams, extraHttpRequestHeaders)
1996
+ .pipe(map((response) => {
1997
+ if (response.status === 204) {
1998
+ return undefined;
1999
+ }
2000
+ else {
2001
+ return response.body;
2002
+ }
2003
+ }));
2004
+ }
2005
+ /**
2006
+ * 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.
2007
+ *
2008
+ * @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.
2009
+ * @param noLimit If true, will return the badge totals for all of the user's notifications, not just the 250 most recent ones
2010
+ */
2011
+ getNotificationBadgeTotals(lastCheckDateTimeUtc, noLimit, extraHttpRequestParams, extraHttpRequestHeaders) {
2012
+ return this.getNotificationBadgeTotalsWithHttpInfo(lastCheckDateTimeUtc, noLimit, extraHttpRequestParams, extraHttpRequestHeaders)
2013
+ .pipe(map((response) => {
2014
+ if (response.status === 204) {
2015
+ return undefined;
2016
+ }
2017
+ else {
2018
+ return response.body;
2019
+ }
2020
+ }));
2021
+ }
2022
+ /**
2023
+ * Update a list of notifications based on the notification ids and action passed in Only notifications for the current user can be updated
2024
+ *
2025
+ * @param body List of notification ids and action to perform
2026
+ */
2027
+ updateListOfNotifications(body, extraHttpRequestParams, extraHttpRequestHeaders) {
2028
+ return this.updateListOfNotificationsWithHttpInfo(body, extraHttpRequestParams, extraHttpRequestHeaders)
2029
+ .pipe(map((response) => {
2030
+ if (response.status === 204) {
2031
+ return undefined;
2032
+ }
2033
+ else {
2034
+ return response.body;
2035
+ }
2036
+ }));
2037
+ }
2038
+ /**
2039
+ * Get the last 250 notifications for the current user
2040
+ *
2041
+ */
2042
+ getMyNotificationsWithHttpInfo(extraHttpRequestParams, extraHttpRequestHeaders) {
2043
+ const path = this.basePath + '/api/v202111/Notification';
2044
+ let queryParameters;
2045
+ if (extraHttpRequestParams) {
2046
+ if (typeof extraHttpRequestParams.search === 'string') {
2047
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
2048
+ }
2049
+ else {
2050
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
2051
+ }
2052
+ }
2053
+ else {
2054
+ queryParameters = new HttpParams();
2055
+ }
2056
+ let headers = new HttpHeaders();
2057
+ this.defaultHeaders.keys().forEach(key => {
2058
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
2059
+ });
2060
+ if (extraHttpRequestHeaders) {
2061
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
2062
+ headers = headers.set(key, value);
2063
+ });
2064
+ }
2065
+ // to determine the Accept header
2066
+ let produces = [
2067
+ 'application/json'
2068
+ ];
2069
+ if (this.configuration.apiKeys["Authorization"]) {
2070
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2071
+ }
2072
+ const consumes = [];
2073
+ let requestOptions = {
2074
+ headers: headers,
2075
+ params: queryParameters,
2076
+ withCredentials: this.configuration.withCredentials,
2077
+ observe: 'response'
2078
+ };
2079
+ return this.http.request(RequestMethod$3.Get, path, requestOptions);
2080
+ }
2081
+ /**
2082
+ * Get a specific notification for the current user
2083
+ *
2084
+ * @param notificationId Id of the notification to get
2085
+ */
2086
+ getNotificationWithHttpInfo(notificationId, extraHttpRequestParams, extraHttpRequestHeaders) {
2087
+ const path = this.basePath + '/api/v202111/Notification/${notificationId}'
2088
+ .replace('${' + 'notificationId' + '}', String(notificationId));
2089
+ let queryParameters;
2090
+ if (extraHttpRequestParams) {
2091
+ if (typeof extraHttpRequestParams.search === 'string') {
2092
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
2093
+ }
2094
+ else {
2095
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
2096
+ }
2097
+ }
2098
+ else {
2099
+ queryParameters = new HttpParams();
2100
+ }
2101
+ let headers = new HttpHeaders();
2102
+ this.defaultHeaders.keys().forEach(key => {
2103
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
2104
+ });
2105
+ if (extraHttpRequestHeaders) {
2106
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
2107
+ headers = headers.set(key, value);
2108
+ });
2109
+ }
2110
+ // verify required parameter 'notificationId' is not null or undefined
2111
+ if (notificationId === null || notificationId === undefined) {
2112
+ throw new Error('Required parameter notificationId was null or undefined when calling getNotification.');
2113
+ }
2114
+ // to determine the Accept header
2115
+ let produces = [
2116
+ 'application/json'
2117
+ ];
2118
+ if (this.configuration.apiKeys["Authorization"]) {
2119
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2120
+ }
2121
+ const consumes = [];
2122
+ let requestOptions = {
2123
+ headers: headers,
2124
+ params: queryParameters,
2125
+ withCredentials: this.configuration.withCredentials,
2126
+ observe: 'response'
2127
+ };
2128
+ return this.http.request(RequestMethod$3.Get, path, requestOptions);
2129
+ }
2130
+ /**
2131
+ * 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.
2132
+ *
2133
+ * @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.
2134
+ * @param noLimit If true, will return the badge totals for all of the user's notifications, not just the 250 most recent ones
2135
+ */
2136
+ getNotificationBadgeTotalsWithHttpInfo(lastCheckDateTimeUtc, noLimit, extraHttpRequestParams, extraHttpRequestHeaders) {
2137
+ const path = this.basePath + '/api/v202111/Notification/badge';
2138
+ let queryParameters;
2139
+ if (extraHttpRequestParams) {
2140
+ if (typeof extraHttpRequestParams.search === 'string') {
2141
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
2142
+ }
2143
+ else {
2144
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
2145
+ }
2146
+ }
2147
+ else {
2148
+ queryParameters = new HttpParams();
2149
+ }
2150
+ let headers = new HttpHeaders();
2151
+ this.defaultHeaders.keys().forEach(key => {
2152
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
2153
+ });
2154
+ if (extraHttpRequestHeaders) {
2155
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
2156
+ headers = headers.set(key, value);
2157
+ });
2158
+ }
2159
+ if (lastCheckDateTimeUtc !== undefined) {
2160
+ queryParameters = queryParameters.set('lastCheckDateTimeUtc', lastCheckDateTimeUtc.toISOString());
2161
+ }
2162
+ if (noLimit !== undefined) {
2163
+ queryParameters = queryParameters.set('noLimit', noLimit);
2164
+ }
2165
+ // to determine the Accept header
2166
+ let produces = [
2167
+ 'application/json'
2168
+ ];
2169
+ if (this.configuration.apiKeys["Authorization"]) {
2170
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2171
+ }
2172
+ const consumes = [];
2173
+ let requestOptions = {
2174
+ headers: headers,
2175
+ params: queryParameters,
2176
+ withCredentials: this.configuration.withCredentials,
2177
+ observe: 'response'
2178
+ };
2179
+ return this.http.request(RequestMethod$3.Get, path, requestOptions);
2180
+ }
2181
+ /**
2182
+ * Update a list of notifications based on the notification ids and action passed in Only notifications for the current user can be updated
2183
+ *
2184
+ * @param body List of notification ids and action to perform
2185
+ */
2186
+ updateListOfNotificationsWithHttpInfo(body, extraHttpRequestParams, extraHttpRequestHeaders) {
2187
+ const path = this.basePath + '/api/v202111/Notification';
2188
+ let queryParameters;
2189
+ if (extraHttpRequestParams) {
2190
+ if (typeof extraHttpRequestParams.search === 'string') {
2191
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
2192
+ }
2193
+ else {
2194
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
2195
+ }
2196
+ }
2197
+ else {
2198
+ queryParameters = new HttpParams();
2199
+ }
2200
+ let headers = new HttpHeaders();
2201
+ this.defaultHeaders.keys().forEach(key => {
2202
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
2203
+ });
2204
+ if (extraHttpRequestHeaders) {
2205
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
2206
+ headers = headers.set(key, value);
2207
+ });
2208
+ }
2209
+ // to determine the Accept header
2210
+ let produces = [
2211
+ 'application/json'
2212
+ ];
2213
+ if (this.configuration.apiKeys["Authorization"]) {
2214
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2215
+ }
2216
+ const consumes = [
2217
+ 'application/json'
2218
+ ];
2219
+ headers = headers.set('Content-Type', consumes[0]);
2220
+ let requestOptions = {
2221
+ headers: headers,
2222
+ body: body == null ? '' : (consumes[0] == 'application/json' ? JSON.stringify(body) : body),
2223
+ params: queryParameters,
2224
+ withCredentials: this.configuration.withCredentials,
2225
+ observe: 'response'
2226
+ };
2227
+ return this.http.request(RequestMethod$3.Put, path, requestOptions);
2228
+ }
2229
+ }
2230
+ NotificationService.decorators = [
2231
+ { type: Injectable }
2232
+ ];
2233
+ NotificationService.ctorParameters = () => [
2234
+ { type: HttpClient },
2235
+ { type: String, decorators: [{ type: Optional }, { type: Inject, args: [BASE_PATH,] }] },
2236
+ { type: Configuration, decorators: [{ type: Optional }] }
2237
+ ];
2238
+
1864
2239
  /**
1865
2240
  * EnergyCAP ID SDK
1866
2241
  * Document used to generate the EnergyCAP ID SDK
@@ -3563,7 +3938,7 @@ UserService.ctorParameters = () => [
3563
3938
  { type: Configuration, decorators: [{ type: Optional }] }
3564
3939
  ];
3565
3940
 
3566
- const APIS = [ApplicationService, ApplicationInstanceService, AuthService, DataSourceService, DomainJoinTypeService, EnvironmentService, MeService, OrganizationService, OrganizationApplicationService, UserService];
3941
+ const APIS = [ApplicationService, ApplicationInstanceService, AuthService, DataSourceService, DomainJoinTypeService, EnvironmentService, MeService, NotificationService, OrganizationService, OrganizationApplicationService, UserService];
3567
3942
 
3568
3943
  /**
3569
3944
  * EnergyCAP ID SDK
@@ -3924,6 +4299,90 @@ class LoginResponse {
3924
4299
  class LoginSourceResponse {
3925
4300
  }
3926
4301
 
4302
+ /**
4303
+ * EnergyCAP ID SDK
4304
+ * Document used to generate the EnergyCAP ID SDK
4305
+ *
4306
+ * OpenAPI spec version: 1.2112
4307
+ * Contact: support@energycap.com
4308
+ *
4309
+ * NOTE: This class is auto generated by the swagger code generator program.
4310
+ * https://github.com/swagger-api/swagger-codegen.git
4311
+ * Do not edit the class manually.
4312
+ */
4313
+ class NotificationBadgeResponse {
4314
+ }
4315
+
4316
+ /**
4317
+ * EnergyCAP ID SDK
4318
+ * Document used to generate the EnergyCAP ID SDK
4319
+ *
4320
+ * OpenAPI spec version: 1.2112
4321
+ * Contact: support@energycap.com
4322
+ *
4323
+ * NOTE: This class is auto generated by the swagger code generator program.
4324
+ * https://github.com/swagger-api/swagger-codegen.git
4325
+ * Do not edit the class manually.
4326
+ */
4327
+ class NotificationCategory {
4328
+ }
4329
+
4330
+ /**
4331
+ * EnergyCAP ID SDK
4332
+ * Document used to generate the EnergyCAP ID SDK
4333
+ *
4334
+ * OpenAPI spec version: 1.2112
4335
+ * Contact: support@energycap.com
4336
+ *
4337
+ * NOTE: This class is auto generated by the swagger code generator program.
4338
+ * https://github.com/swagger-api/swagger-codegen.git
4339
+ * Do not edit the class manually.
4340
+ */
4341
+ class NotificationResponse {
4342
+ }
4343
+
4344
+ /**
4345
+ * EnergyCAP ID SDK
4346
+ * Document used to generate the EnergyCAP ID SDK
4347
+ *
4348
+ * OpenAPI spec version: 1.2112
4349
+ * Contact: support@energycap.com
4350
+ *
4351
+ * NOTE: This class is auto generated by the swagger code generator program.
4352
+ * https://github.com/swagger-api/swagger-codegen.git
4353
+ * Do not edit the class manually.
4354
+ */
4355
+ class NotificationSettingRequest {
4356
+ }
4357
+
4358
+ /**
4359
+ * EnergyCAP ID SDK
4360
+ * Document used to generate the EnergyCAP ID SDK
4361
+ *
4362
+ * OpenAPI spec version: 1.2112
4363
+ * Contact: support@energycap.com
4364
+ *
4365
+ * NOTE: This class is auto generated by the swagger code generator program.
4366
+ * https://github.com/swagger-api/swagger-codegen.git
4367
+ * Do not edit the class manually.
4368
+ */
4369
+ class NotificationType {
4370
+ }
4371
+
4372
+ /**
4373
+ * EnergyCAP ID SDK
4374
+ * Document used to generate the EnergyCAP ID SDK
4375
+ *
4376
+ * OpenAPI spec version: 1.2112
4377
+ * Contact: support@energycap.com
4378
+ *
4379
+ * NOTE: This class is auto generated by the swagger code generator program.
4380
+ * https://github.com/swagger-api/swagger-codegen.git
4381
+ * Do not edit the class manually.
4382
+ */
4383
+ class NotificationUpdateRequest {
4384
+ }
4385
+
3927
4386
  /**
3928
4387
  * EnergyCAP ID SDK
3929
4388
  * Document used to generate the EnergyCAP ID SDK
@@ -4103,6 +4562,20 @@ class UpdateOrganizationAccessControlRequest {
4103
4562
  class UpdateOrganizationDetailsRequest {
4104
4563
  }
4105
4564
 
4565
+ /**
4566
+ * EnergyCAP ID SDK
4567
+ * Document used to generate the EnergyCAP ID SDK
4568
+ *
4569
+ * OpenAPI spec version: 1.2112
4570
+ * Contact: support@energycap.com
4571
+ *
4572
+ * NOTE: This class is auto generated by the swagger code generator program.
4573
+ * https://github.com/swagger-api/swagger-codegen.git
4574
+ * Do not edit the class manually.
4575
+ */
4576
+ class UpdateResult {
4577
+ }
4578
+
4106
4579
  /**
4107
4580
  * EnergyCAP ID SDK
4108
4581
  * Document used to generate the EnergyCAP ID SDK
@@ -4313,7 +4786,7 @@ EnergyCapSdkModule.decorators = [
4313
4786
  imports: [CommonModule, HttpClientModule],
4314
4787
  declarations: [],
4315
4788
  exports: [],
4316
- providers: [ApplicationService, ApplicationInstanceService, AuthService, DataSourceService, DomainJoinTypeService, EnvironmentService, MeService, OrganizationService, OrganizationApplicationService, UserService]
4789
+ providers: [ApplicationService, ApplicationInstanceService, AuthService, DataSourceService, DomainJoinTypeService, EnvironmentService, MeService, NotificationService, OrganizationService, OrganizationApplicationService, UserService]
4317
4790
  },] }
4318
4791
  ];
4319
4792
 
@@ -4321,5 +4794,5 @@ EnergyCapSdkModule.decorators = [
4321
4794
  * Generated bundle index. Do not edit.
4322
4795
  */
4323
4796
 
4324
- export { APIFilter, APIOrderBy, APIS, AllUserPermissionsResponse, ApplicationInstanceDetailResponse, ApplicationInstanceRedirectResponse, ApplicationInstanceResponse, ApplicationInstanceService, ApplicationInstanceUserResponse, ApplicationResponse, ApplicationService, AuthService, BASE_PATH, COLLECTION_FORMATS, ChangePasswordRequest, Configuration, CreateOrganizationRequest, DataSourceResponse, DataSourceService, DataSourceUpdateRequest, DomainAccessControlResponse, DomainJoinTypeResponse, DomainJoinTypeService, EnergyCapSdkModule, EntityPermission, EnvironmentResponse, EnvironmentService, HierarchicalOrganizations, HierarchicalOrganizations2, InviteUserRequest, LinkDataSourceRequest, LoginResponse, LoginSourceResponse, MeService, OrganizationAccessControlResponse, OrganizationApplicationResponse, OrganizationApplicationService, OrganizationDetailResponse, OrganizationResponse, OrganizationService, OrganizationUserResponse, ResetPasswordRequest, RoleEnum, SelfCreateUserRequest, UpdateMeRequest, UpdateOrganizationAccessControlRequest, UpdateOrganizationDetailsRequest, UserApplicationInstanceResponse, UserAuthResultEnum, UserChild, UserLoginRequest, UserOrganizationResponse, UserPermissionRequest, UserPermissionResponse, UserResponse, UserService, UserStatusEnum, ValidatePasswordRequest, ValidatePasswordResponse };
4797
+ export { APIFilter, APIOrderBy, APIS, AllUserPermissionsResponse, ApplicationInstanceDetailResponse, ApplicationInstanceRedirectResponse, ApplicationInstanceResponse, ApplicationInstanceService, ApplicationInstanceUserResponse, ApplicationResponse, ApplicationService, AuthService, BASE_PATH, COLLECTION_FORMATS, ChangePasswordRequest, Configuration, CreateOrganizationRequest, DataSourceResponse, DataSourceService, DataSourceUpdateRequest, DomainAccessControlResponse, DomainJoinTypeResponse, DomainJoinTypeService, EnergyCapSdkModule, EntityPermission, EnvironmentResponse, EnvironmentService, HierarchicalOrganizations, HierarchicalOrganizations2, InviteUserRequest, LinkDataSourceRequest, LoginResponse, LoginSourceResponse, MeService, NotificationBadgeResponse, NotificationCategory, NotificationResponse, NotificationService, NotificationSettingRequest, NotificationType, NotificationUpdateRequest, OrganizationAccessControlResponse, OrganizationApplicationResponse, OrganizationApplicationService, OrganizationDetailResponse, OrganizationResponse, OrganizationService, OrganizationUserResponse, ResetPasswordRequest, RoleEnum, SelfCreateUserRequest, UpdateMeRequest, UpdateOrganizationAccessControlRequest, UpdateOrganizationDetailsRequest, UpdateResult, UserApplicationInstanceResponse, UserAuthResultEnum, UserChild, UserLoginRequest, UserOrganizationResponse, UserPermissionRequest, UserPermissionResponse, UserResponse, UserService, UserStatusEnum, ValidatePasswordRequest, ValidatePasswordResponse };
4325
4798
  //# sourceMappingURL=energycap-energycapid-sdk-angular.js.map