@saritasa/renewaire-frontend-sdk 0.160.1 → 0.161.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
@@ -1,5 +1,5 @@
1
- # @@saritasa/renewaire-frontend-sdk@0.160.1
1
+ # @@saritasa/renewaire-frontend-sdk@0.161.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.160.1 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.161.0 --save
5
5
  ```
@@ -4532,6 +4532,49 @@ class ProjectsApiService extends BaseService {
4532
4532
  reportProgress: reportProgress,
4533
4533
  });
4534
4534
  }
4535
+ projectsDuplicateProject(requestParameters, observe = "body", reportProgress = false, options) {
4536
+ const projectRevisionId = requestParameters?.projectRevisionId;
4537
+ if (projectRevisionId === null || projectRevisionId === undefined) {
4538
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectsDuplicateProject.");
4539
+ }
4540
+ let localVarHeaders = this.defaultHeaders;
4541
+ // authentication (Bearer) required
4542
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4543
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4544
+ this.configuration.selectHeaderAccept([
4545
+ "text/plain",
4546
+ "application/json",
4547
+ "text/json",
4548
+ ]);
4549
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4550
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4551
+ }
4552
+ const localVarHttpContext = options?.context ?? new HttpContext();
4553
+ const localVarTransferCache = options?.transferCache ?? true;
4554
+ let responseType_ = "json";
4555
+ if (localVarHttpHeaderAcceptSelected) {
4556
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4557
+ responseType_ = "text";
4558
+ }
4559
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4560
+ responseType_ = "json";
4561
+ }
4562
+ else {
4563
+ responseType_ = "blob";
4564
+ }
4565
+ }
4566
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/duplicate`;
4567
+ const { basePath, withCredentials } = this.configuration;
4568
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
4569
+ context: localVarHttpContext,
4570
+ responseType: responseType_,
4571
+ ...(withCredentials ? { withCredentials } : {}),
4572
+ headers: localVarHeaders,
4573
+ observe: observe,
4574
+ transferCache: localVarTransferCache,
4575
+ reportProgress: reportProgress,
4576
+ });
4577
+ }
4535
4578
  projectsExtendProjectEditMode(requestParameters, observe = "body", reportProgress = false, options) {
4536
4579
  const projectId = requestParameters?.projectId;
4537
4580
  if (projectId === null || projectId === undefined) {
@@ -9764,6 +9807,16 @@ var DesignWeatherMode;
9764
9807
  * Do not edit the class manually.
9765
9808
  */
9766
9809
 
9810
+ /**
9811
+ * RenewAire CORES API
9812
+ *
9813
+ * Contact: renewaire@saritasa.com
9814
+ *
9815
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9816
+ * https://openapi-generator.tech
9817
+ * Do not edit the class manually.
9818
+ */
9819
+
9767
9820
  /**
9768
9821
  * RenewAire CORES API
9769
9822
  *