@saritasa/renewaire-frontend-sdk 0.149.0 → 0.150.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
|
@@ -3329,7 +3329,67 @@ class ProjectRevisionsApiService extends BaseService {
|
|
|
3329
3329
|
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
3330
3330
|
throw new Error("Required parameter projectRevisionId was null or undefined when calling projectRevisionsUpdateRevision.");
|
|
3331
3331
|
}
|
|
3332
|
-
const
|
|
3332
|
+
const isEndEditMode = requestParameters?.isEndEditMode;
|
|
3333
|
+
const updateProjectRevisionDto = requestParameters?.updateProjectRevisionDto;
|
|
3334
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
3335
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isEndEditMode, "isEndEditMode");
|
|
3336
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3337
|
+
// authentication (Bearer) required
|
|
3338
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
3339
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
3340
|
+
this.configuration.selectHeaderAccept([
|
|
3341
|
+
"text/plain",
|
|
3342
|
+
"application/json",
|
|
3343
|
+
"text/json",
|
|
3344
|
+
]);
|
|
3345
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3346
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
3347
|
+
}
|
|
3348
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3349
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3350
|
+
// to determine the Content-Type header
|
|
3351
|
+
const consumes = [
|
|
3352
|
+
"application/json-patch+json",
|
|
3353
|
+
"application/json",
|
|
3354
|
+
"text/json",
|
|
3355
|
+
"application/*+json",
|
|
3356
|
+
];
|
|
3357
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
3358
|
+
if (httpContentTypeSelected !== undefined) {
|
|
3359
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
3360
|
+
}
|
|
3361
|
+
let responseType_ = "json";
|
|
3362
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3363
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
3364
|
+
responseType_ = "text";
|
|
3365
|
+
}
|
|
3366
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3367
|
+
responseType_ = "json";
|
|
3368
|
+
}
|
|
3369
|
+
else {
|
|
3370
|
+
responseType_ = "blob";
|
|
3371
|
+
}
|
|
3372
|
+
}
|
|
3373
|
+
let localVarPath = `/api/project-revisions/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
|
|
3374
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3375
|
+
return this.httpClient.request("patch", `${basePath}${localVarPath}`, {
|
|
3376
|
+
context: localVarHttpContext,
|
|
3377
|
+
body: updateProjectRevisionDto,
|
|
3378
|
+
params: localVarQueryParameters,
|
|
3379
|
+
responseType: responseType_,
|
|
3380
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3381
|
+
headers: localVarHeaders,
|
|
3382
|
+
observe: observe,
|
|
3383
|
+
transferCache: localVarTransferCache,
|
|
3384
|
+
reportProgress: reportProgress,
|
|
3385
|
+
});
|
|
3386
|
+
}
|
|
3387
|
+
projectRevisionsUpdateRevisionMetadata(requestParameters, observe = "body", reportProgress = false, options) {
|
|
3388
|
+
const projectRevisionId = requestParameters?.projectRevisionId;
|
|
3389
|
+
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
3390
|
+
throw new Error("Required parameter projectRevisionId was null or undefined when calling projectRevisionsUpdateRevisionMetadata.");
|
|
3391
|
+
}
|
|
3392
|
+
const saveProjectRevisionMetadataDto = requestParameters?.saveProjectRevisionMetadataDto;
|
|
3333
3393
|
let localVarHeaders = this.defaultHeaders;
|
|
3334
3394
|
// authentication (Bearer) required
|
|
3335
3395
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -3366,7 +3426,7 @@ class ProjectRevisionsApiService extends BaseService {
|
|
|
3366
3426
|
const { basePath, withCredentials } = this.configuration;
|
|
3367
3427
|
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
3368
3428
|
context: localVarHttpContext,
|
|
3369
|
-
body:
|
|
3429
|
+
body: saveProjectRevisionMetadataDto,
|
|
3370
3430
|
responseType: responseType_,
|
|
3371
3431
|
...(withCredentials ? { withCredentials } : {}),
|
|
3372
3432
|
headers: localVarHeaders,
|
|
@@ -4377,66 +4437,6 @@ class ProjectsApiService extends BaseService {
|
|
|
4377
4437
|
reportProgress: reportProgress,
|
|
4378
4438
|
});
|
|
4379
4439
|
}
|
|
4380
|
-
projectsUpdateProject(requestParameters, observe = "body", reportProgress = false, options) {
|
|
4381
|
-
const projectId = requestParameters?.projectId;
|
|
4382
|
-
if (projectId === null || projectId === undefined) {
|
|
4383
|
-
throw new Error("Required parameter projectId was null or undefined when calling projectsUpdateProject.");
|
|
4384
|
-
}
|
|
4385
|
-
const isEndEditMode = requestParameters?.isEndEditMode;
|
|
4386
|
-
const updateProjectDto = requestParameters?.updateProjectDto;
|
|
4387
|
-
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
4388
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isEndEditMode, "isEndEditMode");
|
|
4389
|
-
let localVarHeaders = this.defaultHeaders;
|
|
4390
|
-
// authentication (Bearer) required
|
|
4391
|
-
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
4392
|
-
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
4393
|
-
this.configuration.selectHeaderAccept([
|
|
4394
|
-
"text/plain",
|
|
4395
|
-
"application/json",
|
|
4396
|
-
"text/json",
|
|
4397
|
-
]);
|
|
4398
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
4399
|
-
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
4400
|
-
}
|
|
4401
|
-
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
4402
|
-
const localVarTransferCache = options?.transferCache ?? true;
|
|
4403
|
-
// to determine the Content-Type header
|
|
4404
|
-
const consumes = [
|
|
4405
|
-
"application/json-patch+json",
|
|
4406
|
-
"application/json",
|
|
4407
|
-
"text/json",
|
|
4408
|
-
"application/*+json",
|
|
4409
|
-
];
|
|
4410
|
-
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
4411
|
-
if (httpContentTypeSelected !== undefined) {
|
|
4412
|
-
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
4413
|
-
}
|
|
4414
|
-
let responseType_ = "json";
|
|
4415
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
4416
|
-
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
4417
|
-
responseType_ = "text";
|
|
4418
|
-
}
|
|
4419
|
-
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
4420
|
-
responseType_ = "json";
|
|
4421
|
-
}
|
|
4422
|
-
else {
|
|
4423
|
-
responseType_ = "blob";
|
|
4424
|
-
}
|
|
4425
|
-
}
|
|
4426
|
-
let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
|
|
4427
|
-
const { basePath, withCredentials } = this.configuration;
|
|
4428
|
-
return this.httpClient.request("patch", `${basePath}${localVarPath}`, {
|
|
4429
|
-
context: localVarHttpContext,
|
|
4430
|
-
body: updateProjectDto,
|
|
4431
|
-
params: localVarQueryParameters,
|
|
4432
|
-
responseType: responseType_,
|
|
4433
|
-
...(withCredentials ? { withCredentials } : {}),
|
|
4434
|
-
headers: localVarHeaders,
|
|
4435
|
-
observe: observe,
|
|
4436
|
-
transferCache: localVarTransferCache,
|
|
4437
|
-
reportProgress: reportProgress,
|
|
4438
|
-
});
|
|
4439
|
-
}
|
|
4440
4440
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.11", ngImport: i0, type: ProjectsApiService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4441
4441
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.11", ngImport: i0, type: ProjectsApiService, providedIn: "root" });
|
|
4442
4442
|
}
|