@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
@@ -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',
@@ -351,7 +351,7 @@ class ApplicationInstanceService {
351
351
  withCredentials: this.configuration.withCredentials,
352
352
  observe: 'response'
353
353
  };
354
- return this.http.request(RequestMethod$8.Get, path, requestOptions);
354
+ return this.http.request(RequestMethod$9.Get, path, requestOptions);
355
355
  }
356
356
  /**
357
357
  * Provides the data needed to redirect the user to the specified application instance
@@ -400,7 +400,7 @@ class ApplicationInstanceService {
400
400
  withCredentials: this.configuration.withCredentials,
401
401
  observe: 'response'
402
402
  };
403
- return this.http.request(RequestMethod$8.Get, path, requestOptions);
403
+ return this.http.request(RequestMethod$9.Get, path, requestOptions);
404
404
  }
405
405
  /**
406
406
  * Provides a list of user's who have access to an application instance
@@ -462,7 +462,7 @@ class ApplicationInstanceService {
462
462
  withCredentials: this.configuration.withCredentials,
463
463
  observe: 'response'
464
464
  };
465
- return this.http.request(RequestMethod$8.Get, path, requestOptions);
465
+ return this.http.request(RequestMethod$9.Get, path, requestOptions);
466
466
  }
467
467
  /**
468
468
  * Provides a list of all available application instances to which the logged in user has access
@@ -537,7 +537,7 @@ class ApplicationInstanceService {
537
537
  withCredentials: this.configuration.withCredentials,
538
538
  observe: 'response'
539
539
  };
540
- return this.http.request(RequestMethod$8.Get, path, requestOptions);
540
+ return this.http.request(RequestMethod$9.Get, path, requestOptions);
541
541
  }
542
542
  }
543
543
  ApplicationInstanceService.decorators = [
@@ -560,7 +560,7 @@ ApplicationInstanceService.ctorParameters = () => [
560
560
  * https://github.com/swagger-api/swagger-codegen.git
561
561
  * Do not edit the class manually.
562
562
  */
563
- const RequestMethod$7 = {
563
+ const RequestMethod$8 = {
564
564
  Get: 'get',
565
565
  Post: 'post',
566
566
  Put: 'put',
@@ -770,7 +770,7 @@ class AuthService {
770
770
  withCredentials: this.configuration.withCredentials,
771
771
  observe: 'response'
772
772
  };
773
- return this.http.request(RequestMethod$7.Post, path, requestOptions);
773
+ return this.http.request(RequestMethod$8.Post, path, requestOptions);
774
774
  }
775
775
  /**
776
776
  * 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 +817,7 @@ class AuthService {
817
817
  withCredentials: this.configuration.withCredentials,
818
818
  observe: 'response'
819
819
  };
820
- return this.http.request(RequestMethod$7.Get, path, requestOptions);
820
+ return this.http.request(RequestMethod$8.Get, path, requestOptions);
821
821
  }
822
822
  /**
823
823
  * Use this method to authenticate a user given an authcode from the federation provider
@@ -874,7 +874,7 @@ class AuthService {
874
874
  withCredentials: this.configuration.withCredentials,
875
875
  observe: 'response'
876
876
  };
877
- return this.http.request(RequestMethod$7.Get, path, requestOptions);
877
+ return this.http.request(RequestMethod$8.Get, path, requestOptions);
878
878
  }
879
879
  /**
880
880
  * Use this method to authenticate a user given their username and password
@@ -922,7 +922,7 @@ class AuthService {
922
922
  withCredentials: this.configuration.withCredentials,
923
923
  observe: 'response'
924
924
  };
925
- return this.http.request(RequestMethod$7.Post, path, requestOptions);
925
+ return this.http.request(RequestMethod$8.Post, path, requestOptions);
926
926
  }
927
927
  /**
928
928
  * 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 +968,7 @@ class AuthService {
968
968
  withCredentials: this.configuration.withCredentials,
969
969
  observe: 'response'
970
970
  };
971
- return this.http.request(RequestMethod$7.Post, path, requestOptions);
971
+ return this.http.request(RequestMethod$8.Post, path, requestOptions);
972
972
  }
973
973
  /**
974
974
  * If the user exists, an email will be sent. If the domain is a federated domain, no email will be sent
@@ -1013,7 +1013,7 @@ class AuthService {
1013
1013
  withCredentials: this.configuration.withCredentials,
1014
1014
  observe: 'response'
1015
1015
  };
1016
- return this.http.request(RequestMethod$7.Get, path, requestOptions);
1016
+ return this.http.request(RequestMethod$8.Get, path, requestOptions);
1017
1017
  }
1018
1018
  /**
1019
1019
  * Validates a password
@@ -1061,7 +1061,7 @@ class AuthService {
1061
1061
  withCredentials: this.configuration.withCredentials,
1062
1062
  observe: 'response'
1063
1063
  };
1064
- return this.http.request(RequestMethod$7.Post, path, requestOptions);
1064
+ return this.http.request(RequestMethod$8.Post, path, requestOptions);
1065
1065
  }
1066
1066
  }
1067
1067
  AuthService.decorators = [
@@ -1084,7 +1084,7 @@ AuthService.ctorParameters = () => [
1084
1084
  * https://github.com/swagger-api/swagger-codegen.git
1085
1085
  * Do not edit the class manually.
1086
1086
  */
1087
- const RequestMethod$6 = {
1087
+ const RequestMethod$7 = {
1088
1088
  Get: 'get',
1089
1089
  Post: 'post',
1090
1090
  Put: 'put',
@@ -1230,7 +1230,7 @@ class DataSourceService {
1230
1230
  withCredentials: this.configuration.withCredentials,
1231
1231
  observe: 'response'
1232
1232
  };
1233
- return this.http.request(RequestMethod$6.Get, path, requestOptions);
1233
+ return this.http.request(RequestMethod$7.Get, path, requestOptions);
1234
1234
  }
1235
1235
  /**
1236
1236
  * Gets the data sources to which the logged in user has access.
@@ -1277,7 +1277,7 @@ class DataSourceService {
1277
1277
  withCredentials: this.configuration.withCredentials,
1278
1278
  observe: 'response'
1279
1279
  };
1280
- return this.http.request(RequestMethod$6.Get, path, requestOptions);
1280
+ return this.http.request(RequestMethod$7.Get, path, requestOptions);
1281
1281
  }
1282
1282
  /**
1283
1283
  * 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 +1331,7 @@ class DataSourceService {
1331
1331
  withCredentials: this.configuration.withCredentials,
1332
1332
  observe: 'response'
1333
1333
  };
1334
- return this.http.request(RequestMethod$6.Put, path, requestOptions);
1334
+ return this.http.request(RequestMethod$7.Put, path, requestOptions);
1335
1335
  }
1336
1336
  }
1337
1337
  DataSourceService.decorators = [
@@ -1354,7 +1354,7 @@ DataSourceService.ctorParameters = () => [
1354
1354
  * https://github.com/swagger-api/swagger-codegen.git
1355
1355
  * Do not edit the class manually.
1356
1356
  */
1357
- const RequestMethod$5 = {
1357
+ const RequestMethod$6 = {
1358
1358
  Get: 'get',
1359
1359
  Post: 'post',
1360
1360
  Put: 'put',
@@ -1460,7 +1460,7 @@ class DomainJoinTypeService {
1460
1460
  withCredentials: this.configuration.withCredentials,
1461
1461
  observe: 'response'
1462
1462
  };
1463
- return this.http.request(RequestMethod$5.Get, path, requestOptions);
1463
+ return this.http.request(RequestMethod$6.Get, path, requestOptions);
1464
1464
  }
1465
1465
  }
1466
1466
  DomainJoinTypeService.decorators = [
@@ -1483,7 +1483,7 @@ DomainJoinTypeService.ctorParameters = () => [
1483
1483
  * https://github.com/swagger-api/swagger-codegen.git
1484
1484
  * Do not edit the class manually.
1485
1485
  */
1486
- const RequestMethod$4 = {
1486
+ const RequestMethod$5 = {
1487
1487
  Get: 'get',
1488
1488
  Post: 'post',
1489
1489
  Put: 'put',
@@ -1594,7 +1594,7 @@ class EnvironmentService {
1594
1594
  withCredentials: this.configuration.withCredentials,
1595
1595
  observe: 'response'
1596
1596
  };
1597
- return this.http.request(RequestMethod$4.Get, path, requestOptions);
1597
+ return this.http.request(RequestMethod$5.Get, path, requestOptions);
1598
1598
  }
1599
1599
  }
1600
1600
  EnvironmentService.decorators = [
@@ -1617,7 +1617,7 @@ EnvironmentService.ctorParameters = () => [
1617
1617
  * https://github.com/swagger-api/swagger-codegen.git
1618
1618
  * Do not edit the class manually.
1619
1619
  */
1620
- const RequestMethod$3 = {
1620
+ const RequestMethod$4 = {
1621
1621
  Get: 'get',
1622
1622
  Post: 'post',
1623
1623
  Put: 'put',
@@ -1714,6 +1714,22 @@ class MeService {
1714
1714
  }
1715
1715
  }));
1716
1716
  }
1717
+ /**
1718
+ * Use this method to update the currently authenticated user's notification settings
1719
+ *
1720
+ * @param body The user notification settings to update
1721
+ */
1722
+ updateMyNotificationSetting(body, extraHttpRequestParams, extraHttpRequestHeaders) {
1723
+ return this.updateMyNotificationSettingWithHttpInfo(body, extraHttpRequestParams, extraHttpRequestHeaders)
1724
+ .pipe(map((response) => {
1725
+ if (response.status === 204) {
1726
+ return undefined;
1727
+ }
1728
+ else {
1729
+ return response.body;
1730
+ }
1731
+ }));
1732
+ }
1717
1733
  /**
1718
1734
  * Use this method to get information about the currently authenticated user
1719
1735
  *
@@ -1755,7 +1771,7 @@ class MeService {
1755
1771
  withCredentials: this.configuration.withCredentials,
1756
1772
  observe: 'response'
1757
1773
  };
1758
- return this.http.request(RequestMethod$3.Get, path, requestOptions);
1774
+ return this.http.request(RequestMethod$4.Get, path, requestOptions);
1759
1775
  }
1760
1776
  /**
1761
1777
  * Will allow a user to link to a data source that they don't have access to based upon their login name
@@ -1801,7 +1817,7 @@ class MeService {
1801
1817
  withCredentials: this.configuration.withCredentials,
1802
1818
  observe: 'response'
1803
1819
  };
1804
- return this.http.request(RequestMethod$3.Post, path, requestOptions);
1820
+ return this.http.request(RequestMethod$4.Post, path, requestOptions);
1805
1821
  }
1806
1822
  /**
1807
1823
  * Use this method to update the currently authenticated user's information
@@ -1849,7 +1865,55 @@ class MeService {
1849
1865
  withCredentials: this.configuration.withCredentials,
1850
1866
  observe: 'response'
1851
1867
  };
1852
- return this.http.request(RequestMethod$3.Put, path, requestOptions);
1868
+ return this.http.request(RequestMethod$4.Put, path, requestOptions);
1869
+ }
1870
+ /**
1871
+ * Use this method to update the currently authenticated user's notification settings
1872
+ *
1873
+ * @param body The user notification settings to update
1874
+ */
1875
+ updateMyNotificationSettingWithHttpInfo(body, extraHttpRequestParams, extraHttpRequestHeaders) {
1876
+ const path = this.basePath + '/api/v202108/Me/notificationsetting';
1877
+ let queryParameters;
1878
+ if (extraHttpRequestParams) {
1879
+ if (typeof extraHttpRequestParams.search === 'string') {
1880
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
1881
+ }
1882
+ else {
1883
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
1884
+ }
1885
+ }
1886
+ else {
1887
+ queryParameters = new HttpParams();
1888
+ }
1889
+ let headers = new HttpHeaders();
1890
+ this.defaultHeaders.keys().forEach(key => {
1891
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
1892
+ });
1893
+ if (extraHttpRequestHeaders) {
1894
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
1895
+ headers = headers.set(key, value);
1896
+ });
1897
+ }
1898
+ // to determine the Accept header
1899
+ let produces = [
1900
+ 'application/json'
1901
+ ];
1902
+ if (this.configuration.apiKeys["Authorization"]) {
1903
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
1904
+ }
1905
+ const consumes = [
1906
+ 'application/json'
1907
+ ];
1908
+ headers = headers.set('Content-Type', consumes[0]);
1909
+ let requestOptions = {
1910
+ headers: headers,
1911
+ body: body == null ? '' : (consumes[0] == 'application/json' ? JSON.stringify(body) : body),
1912
+ params: queryParameters,
1913
+ withCredentials: this.configuration.withCredentials,
1914
+ observe: 'response'
1915
+ };
1916
+ return this.http.request(RequestMethod$4.Put, path, requestOptions);
1853
1917
  }
1854
1918
  }
1855
1919
  MeService.decorators = [
@@ -1861,6 +1925,332 @@ MeService.ctorParameters = () => [
1861
1925
  { type: Configuration, decorators: [{ type: Optional }] }
1862
1926
  ];
1863
1927
 
1928
+ /**
1929
+ * EnergyCAP ID SDK
1930
+ * Document used to generate the EnergyCAP ID SDK
1931
+ *
1932
+ * OpenAPI spec version: 1.2112
1933
+ * Contact: support@energycap.com
1934
+ *
1935
+ * NOTE: This class is auto generated by the swagger code generator program.
1936
+ * https://github.com/swagger-api/swagger-codegen.git
1937
+ * Do not edit the class manually.
1938
+ */
1939
+ const RequestMethod$3 = {
1940
+ Get: 'get',
1941
+ Post: 'post',
1942
+ Put: 'put',
1943
+ Delete: 'delete',
1944
+ Options: 'options',
1945
+ Head: 'head',
1946
+ Patch: 'patch'
1947
+ };
1948
+ class NotificationService {
1949
+ constructor(http, basePath, configuration) {
1950
+ this.http = http;
1951
+ this.basePath = 'https://localhost';
1952
+ this.defaultHeaders = new HttpHeaders();
1953
+ this.configuration = new Configuration();
1954
+ if (basePath) {
1955
+ this.basePath = basePath;
1956
+ }
1957
+ if (configuration) {
1958
+ this.configuration = configuration;
1959
+ this.basePath = basePath || configuration.basePath || this.basePath;
1960
+ }
1961
+ }
1962
+ /**
1963
+ *
1964
+ * Extends object by coping non-existing properties.
1965
+ * @param objA object to be extended
1966
+ * @param objB source object
1967
+ */
1968
+ extendObj(objA, objB) {
1969
+ for (let key in objB) {
1970
+ if (objB.hasOwnProperty(key)) {
1971
+ objA[key] = objB[key];
1972
+ }
1973
+ }
1974
+ return objA;
1975
+ }
1976
+ /**
1977
+ * @param consumes string[] mime-types
1978
+ * @return true: consumes contains 'multipart/form-data', false: otherwise
1979
+ */
1980
+ canConsumeForm(consumes) {
1981
+ const form = 'multipart/form-data';
1982
+ for (let consume of consumes) {
1983
+ if (form === consume) {
1984
+ return true;
1985
+ }
1986
+ }
1987
+ return false;
1988
+ }
1989
+ /**
1990
+ * Get the last 250 notifications for the current user
1991
+ *
1992
+ */
1993
+ getMyNotifications(extraHttpRequestParams, extraHttpRequestHeaders) {
1994
+ return this.getMyNotificationsWithHttpInfo(extraHttpRequestParams, extraHttpRequestHeaders)
1995
+ .pipe(map((response) => {
1996
+ if (response.status === 204) {
1997
+ return undefined;
1998
+ }
1999
+ else {
2000
+ return response.body;
2001
+ }
2002
+ }));
2003
+ }
2004
+ /**
2005
+ * Get a specific notification for the current user
2006
+ *
2007
+ * @param notificationId Id of the notification to get
2008
+ */
2009
+ getNotification(notificationId, extraHttpRequestParams, extraHttpRequestHeaders) {
2010
+ return this.getNotificationWithHttpInfo(notificationId, extraHttpRequestParams, extraHttpRequestHeaders)
2011
+ .pipe(map((response) => {
2012
+ if (response.status === 204) {
2013
+ return undefined;
2014
+ }
2015
+ else {
2016
+ return response.body;
2017
+ }
2018
+ }));
2019
+ }
2020
+ /**
2021
+ * 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.
2022
+ *
2023
+ * @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.
2024
+ * @param noLimit If true, will return the badge totals for all of the user's notifications, not just the 250 most recent ones
2025
+ */
2026
+ getNotificationBadgeTotals(lastCheckDateTimeUtc, noLimit, extraHttpRequestParams, extraHttpRequestHeaders) {
2027
+ return this.getNotificationBadgeTotalsWithHttpInfo(lastCheckDateTimeUtc, noLimit, extraHttpRequestParams, extraHttpRequestHeaders)
2028
+ .pipe(map((response) => {
2029
+ if (response.status === 204) {
2030
+ return undefined;
2031
+ }
2032
+ else {
2033
+ return response.body;
2034
+ }
2035
+ }));
2036
+ }
2037
+ /**
2038
+ * Update a list of notifications based on the notification ids and action passed in Only notifications for the current user can be updated
2039
+ *
2040
+ * @param body List of notification ids and action to perform
2041
+ */
2042
+ updateListOfNotifications(body, extraHttpRequestParams, extraHttpRequestHeaders) {
2043
+ return this.updateListOfNotificationsWithHttpInfo(body, extraHttpRequestParams, extraHttpRequestHeaders)
2044
+ .pipe(map((response) => {
2045
+ if (response.status === 204) {
2046
+ return undefined;
2047
+ }
2048
+ else {
2049
+ return response.body;
2050
+ }
2051
+ }));
2052
+ }
2053
+ /**
2054
+ * Get the last 250 notifications for the current user
2055
+ *
2056
+ */
2057
+ getMyNotificationsWithHttpInfo(extraHttpRequestParams, extraHttpRequestHeaders) {
2058
+ const path = this.basePath + '/api/v202111/Notification';
2059
+ let queryParameters;
2060
+ if (extraHttpRequestParams) {
2061
+ if (typeof extraHttpRequestParams.search === 'string') {
2062
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
2063
+ }
2064
+ else {
2065
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
2066
+ }
2067
+ }
2068
+ else {
2069
+ queryParameters = new HttpParams();
2070
+ }
2071
+ let headers = new HttpHeaders();
2072
+ this.defaultHeaders.keys().forEach(key => {
2073
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
2074
+ });
2075
+ if (extraHttpRequestHeaders) {
2076
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
2077
+ headers = headers.set(key, value);
2078
+ });
2079
+ }
2080
+ // to determine the Accept header
2081
+ let produces = [
2082
+ 'application/json'
2083
+ ];
2084
+ if (this.configuration.apiKeys["Authorization"]) {
2085
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2086
+ }
2087
+ const consumes = [];
2088
+ let requestOptions = {
2089
+ headers: headers,
2090
+ params: queryParameters,
2091
+ withCredentials: this.configuration.withCredentials,
2092
+ observe: 'response'
2093
+ };
2094
+ return this.http.request(RequestMethod$3.Get, path, requestOptions);
2095
+ }
2096
+ /**
2097
+ * Get a specific notification for the current user
2098
+ *
2099
+ * @param notificationId Id of the notification to get
2100
+ */
2101
+ getNotificationWithHttpInfo(notificationId, extraHttpRequestParams, extraHttpRequestHeaders) {
2102
+ const path = this.basePath + '/api/v202111/Notification/${notificationId}'
2103
+ .replace('${' + 'notificationId' + '}', String(notificationId));
2104
+ let queryParameters;
2105
+ if (extraHttpRequestParams) {
2106
+ if (typeof extraHttpRequestParams.search === 'string') {
2107
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
2108
+ }
2109
+ else {
2110
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
2111
+ }
2112
+ }
2113
+ else {
2114
+ queryParameters = new HttpParams();
2115
+ }
2116
+ let headers = new HttpHeaders();
2117
+ this.defaultHeaders.keys().forEach(key => {
2118
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
2119
+ });
2120
+ if (extraHttpRequestHeaders) {
2121
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
2122
+ headers = headers.set(key, value);
2123
+ });
2124
+ }
2125
+ // verify required parameter 'notificationId' is not null or undefined
2126
+ if (notificationId === null || notificationId === undefined) {
2127
+ throw new Error('Required parameter notificationId was null or undefined when calling getNotification.');
2128
+ }
2129
+ // to determine the Accept header
2130
+ let produces = [
2131
+ 'application/json'
2132
+ ];
2133
+ if (this.configuration.apiKeys["Authorization"]) {
2134
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2135
+ }
2136
+ const consumes = [];
2137
+ let requestOptions = {
2138
+ headers: headers,
2139
+ params: queryParameters,
2140
+ withCredentials: this.configuration.withCredentials,
2141
+ observe: 'response'
2142
+ };
2143
+ return this.http.request(RequestMethod$3.Get, path, requestOptions);
2144
+ }
2145
+ /**
2146
+ * 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.
2147
+ *
2148
+ * @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.
2149
+ * @param noLimit If true, will return the badge totals for all of the user's notifications, not just the 250 most recent ones
2150
+ */
2151
+ getNotificationBadgeTotalsWithHttpInfo(lastCheckDateTimeUtc, noLimit, extraHttpRequestParams, extraHttpRequestHeaders) {
2152
+ const path = this.basePath + '/api/v202111/Notification/badge';
2153
+ let queryParameters;
2154
+ if (extraHttpRequestParams) {
2155
+ if (typeof extraHttpRequestParams.search === 'string') {
2156
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
2157
+ }
2158
+ else {
2159
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
2160
+ }
2161
+ }
2162
+ else {
2163
+ queryParameters = new HttpParams();
2164
+ }
2165
+ let headers = new HttpHeaders();
2166
+ this.defaultHeaders.keys().forEach(key => {
2167
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
2168
+ });
2169
+ if (extraHttpRequestHeaders) {
2170
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
2171
+ headers = headers.set(key, value);
2172
+ });
2173
+ }
2174
+ if (lastCheckDateTimeUtc !== undefined) {
2175
+ queryParameters = queryParameters.set('lastCheckDateTimeUtc', lastCheckDateTimeUtc.toISOString());
2176
+ }
2177
+ if (noLimit !== undefined) {
2178
+ queryParameters = queryParameters.set('noLimit', noLimit);
2179
+ }
2180
+ // to determine the Accept header
2181
+ let produces = [
2182
+ 'application/json'
2183
+ ];
2184
+ if (this.configuration.apiKeys["Authorization"]) {
2185
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2186
+ }
2187
+ const consumes = [];
2188
+ let requestOptions = {
2189
+ headers: headers,
2190
+ params: queryParameters,
2191
+ withCredentials: this.configuration.withCredentials,
2192
+ observe: 'response'
2193
+ };
2194
+ return this.http.request(RequestMethod$3.Get, path, requestOptions);
2195
+ }
2196
+ /**
2197
+ * Update a list of notifications based on the notification ids and action passed in Only notifications for the current user can be updated
2198
+ *
2199
+ * @param body List of notification ids and action to perform
2200
+ */
2201
+ updateListOfNotificationsWithHttpInfo(body, extraHttpRequestParams, extraHttpRequestHeaders) {
2202
+ const path = this.basePath + '/api/v202111/Notification';
2203
+ let queryParameters;
2204
+ if (extraHttpRequestParams) {
2205
+ if (typeof extraHttpRequestParams.search === 'string') {
2206
+ queryParameters = new HttpParams({ fromString: extraHttpRequestParams.search });
2207
+ }
2208
+ else {
2209
+ queryParameters = new HttpParams({ fromObject: extraHttpRequestParams.search });
2210
+ }
2211
+ }
2212
+ else {
2213
+ queryParameters = new HttpParams();
2214
+ }
2215
+ let headers = new HttpHeaders();
2216
+ this.defaultHeaders.keys().forEach(key => {
2217
+ headers = headers.set(key, this.defaultHeaders.getAll(key));
2218
+ });
2219
+ if (extraHttpRequestHeaders) {
2220
+ Object.entries(extraHttpRequestHeaders).forEach(([key, value]) => {
2221
+ headers = headers.set(key, value);
2222
+ });
2223
+ }
2224
+ // to determine the Accept header
2225
+ let produces = [
2226
+ 'application/json'
2227
+ ];
2228
+ if (this.configuration.apiKeys["Authorization"]) {
2229
+ headers = headers.set('Authorization', this.configuration.apiKeys["Authorization"]);
2230
+ }
2231
+ const consumes = [
2232
+ 'application/json'
2233
+ ];
2234
+ headers = headers.set('Content-Type', consumes[0]);
2235
+ let requestOptions = {
2236
+ headers: headers,
2237
+ body: body == null ? '' : (consumes[0] == 'application/json' ? JSON.stringify(body) : body),
2238
+ params: queryParameters,
2239
+ withCredentials: this.configuration.withCredentials,
2240
+ observe: 'response'
2241
+ };
2242
+ return this.http.request(RequestMethod$3.Put, path, requestOptions);
2243
+ }
2244
+ }
2245
+ NotificationService.decorators = [
2246
+ { type: Injectable }
2247
+ ];
2248
+ NotificationService.ctorParameters = () => [
2249
+ { type: HttpClient },
2250
+ { type: String, decorators: [{ type: Optional }, { type: Inject, args: [BASE_PATH,] }] },
2251
+ { type: Configuration, decorators: [{ type: Optional }] }
2252
+ ];
2253
+
1864
2254
  /**
1865
2255
  * EnergyCAP ID SDK
1866
2256
  * Document used to generate the EnergyCAP ID SDK
@@ -3563,7 +3953,7 @@ UserService.ctorParameters = () => [
3563
3953
  { type: Configuration, decorators: [{ type: Optional }] }
3564
3954
  ];
3565
3955
 
3566
- const APIS = [ApplicationService, ApplicationInstanceService, AuthService, DataSourceService, DomainJoinTypeService, EnvironmentService, MeService, OrganizationService, OrganizationApplicationService, UserService];
3956
+ const APIS = [ApplicationService, ApplicationInstanceService, AuthService, DataSourceService, DomainJoinTypeService, EnvironmentService, MeService, NotificationService, OrganizationService, OrganizationApplicationService, UserService];
3567
3957
 
3568
3958
  /**
3569
3959
  * EnergyCAP ID SDK
@@ -3924,6 +4314,90 @@ class LoginResponse {
3924
4314
  class LoginSourceResponse {
3925
4315
  }
3926
4316
 
4317
+ /**
4318
+ * EnergyCAP ID SDK
4319
+ * Document used to generate the EnergyCAP ID SDK
4320
+ *
4321
+ * OpenAPI spec version: 1.2112
4322
+ * Contact: support@energycap.com
4323
+ *
4324
+ * NOTE: This class is auto generated by the swagger code generator program.
4325
+ * https://github.com/swagger-api/swagger-codegen.git
4326
+ * Do not edit the class manually.
4327
+ */
4328
+ class NotificationBadgeResponse {
4329
+ }
4330
+
4331
+ /**
4332
+ * EnergyCAP ID SDK
4333
+ * Document used to generate the EnergyCAP ID SDK
4334
+ *
4335
+ * OpenAPI spec version: 1.2112
4336
+ * Contact: support@energycap.com
4337
+ *
4338
+ * NOTE: This class is auto generated by the swagger code generator program.
4339
+ * https://github.com/swagger-api/swagger-codegen.git
4340
+ * Do not edit the class manually.
4341
+ */
4342
+ class NotificationCategory {
4343
+ }
4344
+
4345
+ /**
4346
+ * EnergyCAP ID SDK
4347
+ * Document used to generate the EnergyCAP ID SDK
4348
+ *
4349
+ * OpenAPI spec version: 1.2112
4350
+ * Contact: support@energycap.com
4351
+ *
4352
+ * NOTE: This class is auto generated by the swagger code generator program.
4353
+ * https://github.com/swagger-api/swagger-codegen.git
4354
+ * Do not edit the class manually.
4355
+ */
4356
+ class NotificationResponse {
4357
+ }
4358
+
4359
+ /**
4360
+ * EnergyCAP ID SDK
4361
+ * Document used to generate the EnergyCAP ID SDK
4362
+ *
4363
+ * OpenAPI spec version: 1.2112
4364
+ * Contact: support@energycap.com
4365
+ *
4366
+ * NOTE: This class is auto generated by the swagger code generator program.
4367
+ * https://github.com/swagger-api/swagger-codegen.git
4368
+ * Do not edit the class manually.
4369
+ */
4370
+ class NotificationSettingRequest {
4371
+ }
4372
+
4373
+ /**
4374
+ * EnergyCAP ID SDK
4375
+ * Document used to generate the EnergyCAP ID SDK
4376
+ *
4377
+ * OpenAPI spec version: 1.2112
4378
+ * Contact: support@energycap.com
4379
+ *
4380
+ * NOTE: This class is auto generated by the swagger code generator program.
4381
+ * https://github.com/swagger-api/swagger-codegen.git
4382
+ * Do not edit the class manually.
4383
+ */
4384
+ class NotificationType {
4385
+ }
4386
+
4387
+ /**
4388
+ * EnergyCAP ID SDK
4389
+ * Document used to generate the EnergyCAP ID SDK
4390
+ *
4391
+ * OpenAPI spec version: 1.2112
4392
+ * Contact: support@energycap.com
4393
+ *
4394
+ * NOTE: This class is auto generated by the swagger code generator program.
4395
+ * https://github.com/swagger-api/swagger-codegen.git
4396
+ * Do not edit the class manually.
4397
+ */
4398
+ class NotificationUpdateRequest {
4399
+ }
4400
+
3927
4401
  /**
3928
4402
  * EnergyCAP ID SDK
3929
4403
  * Document used to generate the EnergyCAP ID SDK
@@ -4103,6 +4577,20 @@ class UpdateOrganizationAccessControlRequest {
4103
4577
  class UpdateOrganizationDetailsRequest {
4104
4578
  }
4105
4579
 
4580
+ /**
4581
+ * EnergyCAP ID SDK
4582
+ * Document used to generate the EnergyCAP ID SDK
4583
+ *
4584
+ * OpenAPI spec version: 1.2112
4585
+ * Contact: support@energycap.com
4586
+ *
4587
+ * NOTE: This class is auto generated by the swagger code generator program.
4588
+ * https://github.com/swagger-api/swagger-codegen.git
4589
+ * Do not edit the class manually.
4590
+ */
4591
+ class UpdateResult {
4592
+ }
4593
+
4106
4594
  /**
4107
4595
  * EnergyCAP ID SDK
4108
4596
  * Document used to generate the EnergyCAP ID SDK
@@ -4313,7 +4801,7 @@ EnergyCapSdkModule.decorators = [
4313
4801
  imports: [CommonModule, HttpClientModule],
4314
4802
  declarations: [],
4315
4803
  exports: [],
4316
- providers: [ApplicationService, ApplicationInstanceService, AuthService, DataSourceService, DomainJoinTypeService, EnvironmentService, MeService, OrganizationService, OrganizationApplicationService, UserService]
4804
+ providers: [ApplicationService, ApplicationInstanceService, AuthService, DataSourceService, DomainJoinTypeService, EnvironmentService, MeService, NotificationService, OrganizationService, OrganizationApplicationService, UserService]
4317
4805
  },] }
4318
4806
  ];
4319
4807
 
@@ -4321,5 +4809,5 @@ EnergyCapSdkModule.decorators = [
4321
4809
  * Generated bundle index. Do not edit.
4322
4810
  */
4323
4811
 
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 };
4812
+ 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
4813
  //# sourceMappingURL=energycap-energycapid-sdk-angular.js.map