@saritasa/renewaire-frontend-sdk 0.74.0 → 0.75.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
|
@@ -524,6 +524,96 @@ class AuthApiService extends BaseService {
|
|
|
524
524
|
reportProgress: reportProgress,
|
|
525
525
|
});
|
|
526
526
|
}
|
|
527
|
+
authResetUserTokenPermissions(observe = "body", reportProgress = false, options) {
|
|
528
|
+
let localVarHeaders = this.defaultHeaders;
|
|
529
|
+
// authentication (Bearer) required
|
|
530
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
531
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
532
|
+
this.configuration.selectHeaderAccept([
|
|
533
|
+
"text/plain",
|
|
534
|
+
"application/json",
|
|
535
|
+
"text/json",
|
|
536
|
+
]);
|
|
537
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
538
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
539
|
+
}
|
|
540
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
541
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
542
|
+
let responseType_ = "json";
|
|
543
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
544
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
545
|
+
responseType_ = "text";
|
|
546
|
+
}
|
|
547
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
548
|
+
responseType_ = "json";
|
|
549
|
+
}
|
|
550
|
+
else {
|
|
551
|
+
responseType_ = "blob";
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
let localVarPath = `/api/auth/reset-permissions`;
|
|
555
|
+
const { basePath, withCredentials } = this.configuration;
|
|
556
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
557
|
+
context: localVarHttpContext,
|
|
558
|
+
responseType: responseType_,
|
|
559
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
560
|
+
headers: localVarHeaders,
|
|
561
|
+
observe: observe,
|
|
562
|
+
transferCache: localVarTransferCache,
|
|
563
|
+
reportProgress: reportProgress,
|
|
564
|
+
});
|
|
565
|
+
}
|
|
566
|
+
authUpdateUserTokenPermissions(requestParameters, observe = "body", reportProgress = false, options) {
|
|
567
|
+
const updateUserTokenPermissionsCommand = requestParameters?.updateUserTokenPermissionsCommand;
|
|
568
|
+
let localVarHeaders = this.defaultHeaders;
|
|
569
|
+
// authentication (Bearer) required
|
|
570
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
571
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
572
|
+
this.configuration.selectHeaderAccept([
|
|
573
|
+
"text/plain",
|
|
574
|
+
"application/json",
|
|
575
|
+
"text/json",
|
|
576
|
+
]);
|
|
577
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
578
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
579
|
+
}
|
|
580
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
581
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
582
|
+
// to determine the Content-Type header
|
|
583
|
+
const consumes = [
|
|
584
|
+
"application/json",
|
|
585
|
+
"text/json",
|
|
586
|
+
"application/*+json",
|
|
587
|
+
];
|
|
588
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
589
|
+
if (httpContentTypeSelected !== undefined) {
|
|
590
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
591
|
+
}
|
|
592
|
+
let responseType_ = "json";
|
|
593
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
594
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
595
|
+
responseType_ = "text";
|
|
596
|
+
}
|
|
597
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
598
|
+
responseType_ = "json";
|
|
599
|
+
}
|
|
600
|
+
else {
|
|
601
|
+
responseType_ = "blob";
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
let localVarPath = `/api/auth/update-permissions`;
|
|
605
|
+
const { basePath, withCredentials } = this.configuration;
|
|
606
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
607
|
+
context: localVarHttpContext,
|
|
608
|
+
body: updateUserTokenPermissionsCommand,
|
|
609
|
+
responseType: responseType_,
|
|
610
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
611
|
+
headers: localVarHeaders,
|
|
612
|
+
observe: observe,
|
|
613
|
+
transferCache: localVarTransferCache,
|
|
614
|
+
reportProgress: reportProgress,
|
|
615
|
+
});
|
|
616
|
+
}
|
|
527
617
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AuthApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
528
618
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.2", ngImport: i0, type: AuthApiService, providedIn: "root" });
|
|
529
619
|
}
|
|
@@ -7846,6 +7936,16 @@ var UnitSystem;
|
|
|
7846
7936
|
UnitSystem["Metric"] = "Metric";
|
|
7847
7937
|
})(UnitSystem || (UnitSystem = {}));
|
|
7848
7938
|
|
|
7939
|
+
/**
|
|
7940
|
+
* RenewAire CORES API
|
|
7941
|
+
*
|
|
7942
|
+
* Contact: renewaire@saritasa.com
|
|
7943
|
+
*
|
|
7944
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7945
|
+
* https://openapi-generator.tech
|
|
7946
|
+
* Do not edit the class manually.
|
|
7947
|
+
*/
|
|
7948
|
+
|
|
7849
7949
|
/**
|
|
7850
7950
|
* RenewAire CORES API
|
|
7851
7951
|
*
|