diff --git a/package-lock.json b/package-lock.json index 24eb689787..9aba2f59d3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ev-dashboard", - "version": "2.7.6", + "version": "2.7.7", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "ev-dashboard", - "version": "2.7.6", + "version": "2.7.7", "license": "Apache-2.0", "dependencies": { "@angular/animations": "^14.1.1", diff --git a/package.json b/package.json index dcc89519e2..9b60e06dff 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "ev-dashboard", "description": "Dashboard for monitoring the EV Charging Infrastructure", "homepage": "https://github.com/sap-labs-france/ev-dashboard", - "version": "2.7.6", + "version": "2.7.7", "engines": { "node": "^16.15.x", "npm": "^8.11.x" diff --git a/src/app/release-notes/release-notes.component.ts b/src/app/release-notes/release-notes.component.ts index 4d8259d51c..32166e8a24 100644 --- a/src/app/release-notes/release-notes.component.ts +++ b/src/app/release-notes/release-notes.component.ts @@ -23,6 +23,20 @@ export class ReleaseNotesComponent { } public buildReleaseNotes() { this.releaseNotes = [ + { + version: '2.7.7', + date: new Date('2023-04-04'), + componentChanges: [ + { + name: 'Dashboard', + changes: [ + 'Rate Limiter - new settings to prevent DDOS', + 'Monitoring - new metrics on notifications', + 'Smart Charging - fix - targetStateOfCharge can be null' + ], + }, + ], + }, { version: '2.7.6', date: new Date('2023-03-28'), diff --git a/src/app/services/central-server.service.ts b/src/app/services/central-server.service.ts index d294470f03..1f31715cad 100644 --- a/src/app/services/central-server.service.ts +++ b/src/app/services/central-server.service.ts @@ -1697,18 +1697,15 @@ export class CentralServerService { } public forceSynchronizeUserForBilling(userID: string): Observable { - this.checkInit(); - // Execute the REST service - return this.httpClient.post(`${this.centralRestServerServiceSecuredURL}/${ServerAction.BILLING_FORCE_SYNCHRONIZE_USER}`, - { id: userID }, - { - headers: this.buildHttpHeaders(), - }) - .pipe( - catchError(this.handleHttpError), - ); + const url = this.buildRestEndpointUrl(RESTServerRoute.REST_BILLING_USER_SYNCHRONIZE, { id: userID }); + return this.httpClient.patch(url, {}, { + headers: this.buildHttpHeaders(), + }).pipe( + catchError(this.handleHttpError), + ); } + public getBillingTaxes(): Observable { this.checkInit(); // Execute the REST service diff --git a/src/app/types/Server.ts b/src/app/types/Server.ts index 5f4898b104..0d5e4e4d8c 100644 --- a/src/app/types/Server.ts +++ b/src/app/types/Server.ts @@ -2,6 +2,9 @@ export enum ServerAction { UNKNOWN_ACTION = 'Unknown', + RATE_LIMITER = 'RateLimiter', + SHIELD ='Shield', + SAP_CONCUR_REQUEST = 'SapConcurRequest', RECAPTCHA_REQUEST = 'RecaptchaRequest', GREENCOM_REQUEST = 'GreencomRequest', @@ -359,6 +362,7 @@ export enum ServerAction { TENANTS = 'Tenants', TENANT = 'Tenant', TENANT_UPDATE = 'TenantUpdate', + TENANT_UPDATE_DATA = 'TenantUpdateData', TENANT_DELETE = 'TenantDelete', TENANT_LOGO = 'TenantLogo', @@ -692,6 +696,7 @@ export enum RESTServerRoute { REST_BILLING_SETTING = 'billing-setting', // GET and PUT REST_BILLING_CHECK = 'billing/check', + REST_BILLING_USER_SYNCHRONIZE = 'billing/users/:id/synchronize', REST_BILLING_CLEAR_TEST_DATA = 'billing/clearTestData', REST_BILLING_TAXES = 'billing/taxes',