@saritasa/renewaire-frontend-sdk 0.163.0 → 0.164.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
|
@@ -2041,6 +2041,57 @@ class MaterialsApiService extends BaseService {
|
|
|
2041
2041
|
reportProgress: reportProgress,
|
|
2042
2042
|
});
|
|
2043
2043
|
}
|
|
2044
|
+
materialsUpdateMaterialLayer(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2045
|
+
const materialLayerId = requestParameters?.materialLayerId;
|
|
2046
|
+
if (materialLayerId === null || materialLayerId === undefined) {
|
|
2047
|
+
throw new Error("Required parameter materialLayerId was null or undefined when calling materialsUpdateMaterialLayer.");
|
|
2048
|
+
}
|
|
2049
|
+
const saveMaterialLayerDto = requestParameters?.saveMaterialLayerDto;
|
|
2050
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2051
|
+
// authentication (Bearer) required
|
|
2052
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2053
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2054
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2055
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2056
|
+
}
|
|
2057
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2058
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2059
|
+
// to determine the Content-Type header
|
|
2060
|
+
const consumes = [
|
|
2061
|
+
"application/json-patch+json",
|
|
2062
|
+
"application/json",
|
|
2063
|
+
"text/json",
|
|
2064
|
+
"application/*+json",
|
|
2065
|
+
];
|
|
2066
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
2067
|
+
if (httpContentTypeSelected !== undefined) {
|
|
2068
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
2069
|
+
}
|
|
2070
|
+
let responseType_ = "json";
|
|
2071
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2072
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2073
|
+
responseType_ = "text";
|
|
2074
|
+
}
|
|
2075
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2076
|
+
responseType_ = "json";
|
|
2077
|
+
}
|
|
2078
|
+
else {
|
|
2079
|
+
responseType_ = "blob";
|
|
2080
|
+
}
|
|
2081
|
+
}
|
|
2082
|
+
let localVarPath = `/api/materials/${this.configuration.encodeParam({ name: "materialLayerId", value: materialLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
|
|
2083
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2084
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
2085
|
+
context: localVarHttpContext,
|
|
2086
|
+
body: saveMaterialLayerDto,
|
|
2087
|
+
responseType: responseType_,
|
|
2088
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2089
|
+
headers: localVarHeaders,
|
|
2090
|
+
observe: observe,
|
|
2091
|
+
transferCache: localVarTransferCache,
|
|
2092
|
+
reportProgress: reportProgress,
|
|
2093
|
+
});
|
|
2094
|
+
}
|
|
2044
2095
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: MaterialsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2045
2096
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.13", ngImport: i0, type: MaterialsApiService, providedIn: "root" });
|
|
2046
2097
|
}
|
|
@@ -10674,6 +10725,26 @@ var RegistrationStatus;
|
|
|
10674
10725
|
* Do not edit the class manually.
|
|
10675
10726
|
*/
|
|
10676
10727
|
|
|
10728
|
+
/**
|
|
10729
|
+
* RenewAire CORES API
|
|
10730
|
+
*
|
|
10731
|
+
* Contact: renewaire@saritasa.com
|
|
10732
|
+
*
|
|
10733
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10734
|
+
* https://openapi-generator.tech
|
|
10735
|
+
* Do not edit the class manually.
|
|
10736
|
+
*/
|
|
10737
|
+
|
|
10738
|
+
/**
|
|
10739
|
+
* RenewAire CORES API
|
|
10740
|
+
*
|
|
10741
|
+
* Contact: renewaire@saritasa.com
|
|
10742
|
+
*
|
|
10743
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10744
|
+
* https://openapi-generator.tech
|
|
10745
|
+
* Do not edit the class manually.
|
|
10746
|
+
*/
|
|
10747
|
+
|
|
10677
10748
|
/**
|
|
10678
10749
|
* RenewAire CORES API
|
|
10679
10750
|
*
|