@saritasa/renewaire-frontend-sdk 0.143.1 → 0.144.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
|
@@ -4085,6 +4085,49 @@ class ProjectsApiService extends BaseService {
|
|
|
4085
4085
|
reportProgress: reportProgress,
|
|
4086
4086
|
});
|
|
4087
4087
|
}
|
|
4088
|
+
projectsGetProjectEditMode(requestParameters, observe = "body", reportProgress = false, options) {
|
|
4089
|
+
const projectId = requestParameters?.projectId;
|
|
4090
|
+
if (projectId === null || projectId === undefined) {
|
|
4091
|
+
throw new Error("Required parameter projectId was null or undefined when calling projectsGetProjectEditMode.");
|
|
4092
|
+
}
|
|
4093
|
+
let localVarHeaders = this.defaultHeaders;
|
|
4094
|
+
// authentication (Bearer) required
|
|
4095
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
4096
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
4097
|
+
this.configuration.selectHeaderAccept([
|
|
4098
|
+
"text/plain",
|
|
4099
|
+
"application/json",
|
|
4100
|
+
"text/json",
|
|
4101
|
+
]);
|
|
4102
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
4103
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
4104
|
+
}
|
|
4105
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
4106
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
4107
|
+
let responseType_ = "json";
|
|
4108
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
4109
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
4110
|
+
responseType_ = "text";
|
|
4111
|
+
}
|
|
4112
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
4113
|
+
responseType_ = "json";
|
|
4114
|
+
}
|
|
4115
|
+
else {
|
|
4116
|
+
responseType_ = "blob";
|
|
4117
|
+
}
|
|
4118
|
+
}
|
|
4119
|
+
let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/edit`;
|
|
4120
|
+
const { basePath, withCredentials } = this.configuration;
|
|
4121
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
4122
|
+
context: localVarHttpContext,
|
|
4123
|
+
responseType: responseType_,
|
|
4124
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
4125
|
+
headers: localVarHeaders,
|
|
4126
|
+
observe: observe,
|
|
4127
|
+
transferCache: localVarTransferCache,
|
|
4128
|
+
reportProgress: reportProgress,
|
|
4129
|
+
});
|
|
4130
|
+
}
|
|
4088
4131
|
projectsSearchProjects(requestParameters, observe = "body", reportProgress = false, options) {
|
|
4089
4132
|
const fields = requestParameters?.fields;
|
|
4090
4133
|
if (fields === null || fields === undefined) {
|