@saritasa/renewaire-frontend-sdk 0.25.0 → 0.27.0

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.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
- # @@saritasa/renewaire-frontend-sdk@0.25.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.27.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.25.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.27.0 --save
5
5
  ```
@@ -455,6 +455,38 @@ class AuthApiService extends BaseService {
455
455
  reportProgress: reportProgress,
456
456
  });
457
457
  }
458
+ authLogout(observe = "body", reportProgress = false, options) {
459
+ let localVarHeaders = this.defaultHeaders;
460
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
461
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
462
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
463
+ }
464
+ const localVarHttpContext = options?.context ?? new HttpContext();
465
+ const localVarTransferCache = options?.transferCache ?? true;
466
+ let responseType_ = "json";
467
+ if (localVarHttpHeaderAcceptSelected) {
468
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
469
+ responseType_ = "text";
470
+ }
471
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
472
+ responseType_ = "json";
473
+ }
474
+ else {
475
+ responseType_ = "blob";
476
+ }
477
+ }
478
+ let localVarPath = `/api/auth/logout`;
479
+ const { basePath, withCredentials } = this.configuration;
480
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
481
+ context: localVarHttpContext,
482
+ responseType: responseType_,
483
+ ...(withCredentials ? { withCredentials } : {}),
484
+ headers: localVarHeaders,
485
+ observe: observe,
486
+ transferCache: localVarTransferCache,
487
+ reportProgress: reportProgress,
488
+ });
489
+ }
458
490
  authRefreshToken(observe = "body", reportProgress = false, options) {
459
491
  let localVarHeaders = this.defaultHeaders;
460
492
  const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??