@saritasa/renewaire-frontend-sdk 0.90.0 → 0.91.1
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
|
@@ -2528,10 +2528,48 @@ class ProjectsApiService extends BaseService {
|
|
|
2528
2528
|
reportProgress: reportProgress,
|
|
2529
2529
|
});
|
|
2530
2530
|
}
|
|
2531
|
+
projectsExtendProjectEditMode(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2532
|
+
const projectId = requestParameters?.projectId;
|
|
2533
|
+
if (projectId === null || projectId === undefined) {
|
|
2534
|
+
throw new Error("Required parameter projectId was null or undefined when calling projectsExtendProjectEditMode.");
|
|
2535
|
+
}
|
|
2536
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2537
|
+
// authentication (Bearer) required
|
|
2538
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2539
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2540
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2541
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2542
|
+
}
|
|
2543
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2544
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2545
|
+
let responseType_ = "json";
|
|
2546
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2547
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2548
|
+
responseType_ = "text";
|
|
2549
|
+
}
|
|
2550
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2551
|
+
responseType_ = "json";
|
|
2552
|
+
}
|
|
2553
|
+
else {
|
|
2554
|
+
responseType_ = "blob";
|
|
2555
|
+
}
|
|
2556
|
+
}
|
|
2557
|
+
let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/heartbeat`;
|
|
2558
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2559
|
+
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
2560
|
+
context: localVarHttpContext,
|
|
2561
|
+
responseType: responseType_,
|
|
2562
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2563
|
+
headers: localVarHeaders,
|
|
2564
|
+
observe: observe,
|
|
2565
|
+
transferCache: localVarTransferCache,
|
|
2566
|
+
reportProgress: reportProgress,
|
|
2567
|
+
});
|
|
2568
|
+
}
|
|
2531
2569
|
projectsGetProject(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2532
|
-
const
|
|
2533
|
-
if (
|
|
2534
|
-
throw new Error("Required parameter
|
|
2570
|
+
const projectId = requestParameters?.projectId;
|
|
2571
|
+
if (projectId === null || projectId === undefined) {
|
|
2572
|
+
throw new Error("Required parameter projectId was null or undefined when calling projectsGetProject.");
|
|
2535
2573
|
}
|
|
2536
2574
|
let localVarHeaders = this.defaultHeaders;
|
|
2537
2575
|
// authentication (Bearer) required
|
|
@@ -2559,7 +2597,7 @@ class ProjectsApiService extends BaseService {
|
|
|
2559
2597
|
responseType_ = "blob";
|
|
2560
2598
|
}
|
|
2561
2599
|
}
|
|
2562
|
-
let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "
|
|
2600
|
+
let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
|
|
2563
2601
|
const { basePath, withCredentials } = this.configuration;
|
|
2564
2602
|
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
2565
2603
|
context: localVarHttpContext,
|
|
@@ -2646,9 +2684,9 @@ class ProjectsApiService extends BaseService {
|
|
|
2646
2684
|
});
|
|
2647
2685
|
}
|
|
2648
2686
|
projectsStartEditProject(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2649
|
-
const
|
|
2650
|
-
if (
|
|
2651
|
-
throw new Error("Required parameter
|
|
2687
|
+
const projectId = requestParameters?.projectId;
|
|
2688
|
+
if (projectId === null || projectId === undefined) {
|
|
2689
|
+
throw new Error("Required parameter projectId was null or undefined when calling projectsStartEditProject.");
|
|
2652
2690
|
}
|
|
2653
2691
|
let localVarHeaders = this.defaultHeaders;
|
|
2654
2692
|
// authentication (Bearer) required
|
|
@@ -2671,7 +2709,7 @@ class ProjectsApiService extends BaseService {
|
|
|
2671
2709
|
responseType_ = "blob";
|
|
2672
2710
|
}
|
|
2673
2711
|
}
|
|
2674
|
-
let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "
|
|
2712
|
+
let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/start-edit`;
|
|
2675
2713
|
const { basePath, withCredentials } = this.configuration;
|
|
2676
2714
|
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
2677
2715
|
context: localVarHttpContext,
|
|
@@ -2684,9 +2722,9 @@ class ProjectsApiService extends BaseService {
|
|
|
2684
2722
|
});
|
|
2685
2723
|
}
|
|
2686
2724
|
projectsStopEditProject(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2687
|
-
const
|
|
2688
|
-
if (
|
|
2689
|
-
throw new Error("Required parameter
|
|
2725
|
+
const projectId = requestParameters?.projectId;
|
|
2726
|
+
if (projectId === null || projectId === undefined) {
|
|
2727
|
+
throw new Error("Required parameter projectId was null or undefined when calling projectsStopEditProject.");
|
|
2690
2728
|
}
|
|
2691
2729
|
let localVarHeaders = this.defaultHeaders;
|
|
2692
2730
|
// authentication (Bearer) required
|
|
@@ -2709,7 +2747,7 @@ class ProjectsApiService extends BaseService {
|
|
|
2709
2747
|
responseType_ = "blob";
|
|
2710
2748
|
}
|
|
2711
2749
|
}
|
|
2712
|
-
let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "
|
|
2750
|
+
let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/stop-edit`;
|
|
2713
2751
|
const { basePath, withCredentials } = this.configuration;
|
|
2714
2752
|
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
2715
2753
|
context: localVarHttpContext,
|