@saritasa/renewaire-frontend-sdk 0.415.0 → 0.416.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
|
@@ -7115,6 +7115,62 @@ class ProjectLinesApiService extends BaseService {
|
|
|
7115
7115
|
reportProgress: reportProgress,
|
|
7116
7116
|
});
|
|
7117
7117
|
}
|
|
7118
|
+
projectLinesGetValidations(requestParameters, observe = "body", reportProgress = false, options) {
|
|
7119
|
+
const projectRevisionId = requestParameters?.projectRevisionId;
|
|
7120
|
+
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
7121
|
+
throw new Error("Required parameter projectRevisionId was null or undefined when calling projectLinesGetValidations.");
|
|
7122
|
+
}
|
|
7123
|
+
const batchSaveLineDto = requestParameters?.batchSaveLineDto;
|
|
7124
|
+
let localVarHeaders = this.defaultHeaders;
|
|
7125
|
+
// authentication (Bearer) required
|
|
7126
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
7127
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
7128
|
+
this.configuration.selectHeaderAccept([
|
|
7129
|
+
"text/plain",
|
|
7130
|
+
"application/json",
|
|
7131
|
+
"text/json",
|
|
7132
|
+
]);
|
|
7133
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
7134
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
7135
|
+
}
|
|
7136
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
7137
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
7138
|
+
// to determine the Content-Type header
|
|
7139
|
+
const consumes = [
|
|
7140
|
+
"application/json-patch+json",
|
|
7141
|
+
"application/json",
|
|
7142
|
+
"text/json",
|
|
7143
|
+
"application/*+json",
|
|
7144
|
+
];
|
|
7145
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
7146
|
+
if (httpContentTypeSelected !== undefined) {
|
|
7147
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
7148
|
+
}
|
|
7149
|
+
let responseType_ = "json";
|
|
7150
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
7151
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
7152
|
+
responseType_ = "text";
|
|
7153
|
+
}
|
|
7154
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
7155
|
+
responseType_ = "json";
|
|
7156
|
+
}
|
|
7157
|
+
else {
|
|
7158
|
+
responseType_ = "blob";
|
|
7159
|
+
}
|
|
7160
|
+
}
|
|
7161
|
+
let localVarPath = `/api/project-lines/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/get-validations`;
|
|
7162
|
+
const { basePath, withCredentials } = this.configuration;
|
|
7163
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
7164
|
+
context: localVarHttpContext,
|
|
7165
|
+
body: batchSaveLineDto,
|
|
7166
|
+
responseType: responseType_,
|
|
7167
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
7168
|
+
headers: localVarHeaders,
|
|
7169
|
+
observe: observe,
|
|
7170
|
+
transferCache: localVarTransferCache,
|
|
7171
|
+
reportProgress: reportProgress,
|
|
7172
|
+
});
|
|
7173
|
+
}
|
|
7118
7174
|
projectLinesQueryCoil(requestParameters, observe = "body", reportProgress = false, options) {
|
|
7119
7175
|
const queryCoilDto = requestParameters?.queryCoilDto;
|
|
7120
7176
|
let localVarHeaders = this.defaultHeaders;
|