@saritasa/renewaire-frontend-sdk 0.130.0 → 0.132.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.130.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.132.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.130.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.132.0 --save
5
5
  ```
@@ -2745,6 +2745,44 @@ class ProjectRevisionsApiService extends BaseService {
2745
2745
  super(basePath, configuration);
2746
2746
  this.httpClient = httpClient;
2747
2747
  }
2748
+ projectRevisionsRemoveRevision(requestParameters, observe = "body", reportProgress = false, options) {
2749
+ const projectRevisionId = requestParameters?.projectRevisionId;
2750
+ if (projectRevisionId === null || projectRevisionId === undefined) {
2751
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectRevisionsRemoveRevision.");
2752
+ }
2753
+ let localVarHeaders = this.defaultHeaders;
2754
+ // authentication (Bearer) required
2755
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2756
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2757
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2758
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2759
+ }
2760
+ const localVarHttpContext = options?.context ?? new HttpContext();
2761
+ const localVarTransferCache = options?.transferCache ?? true;
2762
+ let responseType_ = "json";
2763
+ if (localVarHttpHeaderAcceptSelected) {
2764
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
2765
+ responseType_ = "text";
2766
+ }
2767
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2768
+ responseType_ = "json";
2769
+ }
2770
+ else {
2771
+ responseType_ = "blob";
2772
+ }
2773
+ }
2774
+ let localVarPath = `/api/project-revisions/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2775
+ const { basePath, withCredentials } = this.configuration;
2776
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
2777
+ context: localVarHttpContext,
2778
+ responseType: responseType_,
2779
+ ...(withCredentials ? { withCredentials } : {}),
2780
+ headers: localVarHeaders,
2781
+ observe: observe,
2782
+ transferCache: localVarTransferCache,
2783
+ reportProgress: reportProgress,
2784
+ });
2785
+ }
2748
2786
  projectRevisionsSearchProjectRevisions(requestParameters, observe = "body", reportProgress = false, options) {
2749
2787
  const projectId = requestParameters?.projectId;
2750
2788
  const orderBy = requestParameters?.orderBy;
@@ -3367,9 +3405,9 @@ class ProjectsApiService extends BaseService {
3367
3405
  });
3368
3406
  }
3369
3407
  projectsExtendProjectEditMode(requestParameters, observe = "body", reportProgress = false, options) {
3370
- const projectRevisionId = requestParameters?.projectRevisionId;
3371
- if (projectRevisionId === null || projectRevisionId === undefined) {
3372
- throw new Error("Required parameter projectRevisionId was null or undefined when calling projectsExtendProjectEditMode.");
3408
+ const projectId = requestParameters?.projectId;
3409
+ if (projectId === null || projectId === undefined) {
3410
+ throw new Error("Required parameter projectId was null or undefined when calling projectsExtendProjectEditMode.");
3373
3411
  }
3374
3412
  let localVarHeaders = this.defaultHeaders;
3375
3413
  // authentication (Bearer) required
@@ -3397,7 +3435,7 @@ class ProjectsApiService extends BaseService {
3397
3435
  responseType_ = "blob";
3398
3436
  }
3399
3437
  }
3400
- let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/heartbeat`;
3438
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/heartbeat`;
3401
3439
  const { basePath, withCredentials } = this.configuration;
3402
3440
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
3403
3441
  context: localVarHttpContext,
@@ -3527,9 +3565,9 @@ class ProjectsApiService extends BaseService {
3527
3565
  });
3528
3566
  }
3529
3567
  projectsStartEditProject(requestParameters, observe = "body", reportProgress = false, options) {
3530
- const projectRevisionId = requestParameters?.projectRevisionId;
3531
- if (projectRevisionId === null || projectRevisionId === undefined) {
3532
- throw new Error("Required parameter projectRevisionId was null or undefined when calling projectsStartEditProject.");
3568
+ const projectId = requestParameters?.projectId;
3569
+ if (projectId === null || projectId === undefined) {
3570
+ throw new Error("Required parameter projectId was null or undefined when calling projectsStartEditProject.");
3533
3571
  }
3534
3572
  let localVarHeaders = this.defaultHeaders;
3535
3573
  // authentication (Bearer) required
@@ -3557,7 +3595,7 @@ class ProjectsApiService extends BaseService {
3557
3595
  responseType_ = "blob";
3558
3596
  }
3559
3597
  }
3560
- let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/start-edit`;
3598
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/start-edit`;
3561
3599
  const { basePath, withCredentials } = this.configuration;
3562
3600
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
3563
3601
  context: localVarHttpContext,
@@ -3570,9 +3608,9 @@ class ProjectsApiService extends BaseService {
3570
3608
  });
3571
3609
  }
3572
3610
  projectsStopEditProject(requestParameters, observe = "body", reportProgress = false, options) {
3573
- const projectRevisionId = requestParameters?.projectRevisionId;
3574
- if (projectRevisionId === null || projectRevisionId === undefined) {
3575
- throw new Error("Required parameter projectRevisionId was null or undefined when calling projectsStopEditProject.");
3611
+ const projectId = requestParameters?.projectId;
3612
+ if (projectId === null || projectId === undefined) {
3613
+ throw new Error("Required parameter projectId was null or undefined when calling projectsStopEditProject.");
3576
3614
  }
3577
3615
  let localVarHeaders = this.defaultHeaders;
3578
3616
  // authentication (Bearer) required
@@ -3600,7 +3638,7 @@ class ProjectsApiService extends BaseService {
3600
3638
  responseType_ = "blob";
3601
3639
  }
3602
3640
  }
3603
- let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/stop-edit`;
3641
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/stop-edit`;
3604
3642
  const { basePath, withCredentials } = this.configuration;
3605
3643
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
3606
3644
  context: localVarHttpContext,
@@ -3613,9 +3651,9 @@ class ProjectsApiService extends BaseService {
3613
3651
  });
3614
3652
  }
3615
3653
  projectsUpdateProject(requestParameters, observe = "body", reportProgress = false, options) {
3616
- const projectRevisionId = requestParameters?.projectRevisionId;
3617
- if (projectRevisionId === null || projectRevisionId === undefined) {
3618
- throw new Error("Required parameter projectRevisionId was null or undefined when calling projectsUpdateProject.");
3654
+ const projectId = requestParameters?.projectId;
3655
+ if (projectId === null || projectId === undefined) {
3656
+ throw new Error("Required parameter projectId was null or undefined when calling projectsUpdateProject.");
3619
3657
  }
3620
3658
  const isEndEditMode = requestParameters?.isEndEditMode;
3621
3659
  const updateProjectDto = requestParameters?.updateProjectDto;
@@ -3658,7 +3696,7 @@ class ProjectsApiService extends BaseService {
3658
3696
  responseType_ = "blob";
3659
3697
  }
3660
3698
  }
3661
- let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3699
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3662
3700
  const { basePath, withCredentials } = this.configuration;
3663
3701
  return this.httpClient.request("patch", `${basePath}${localVarPath}`, {
3664
3702
  context: localVarHttpContext,
@@ -8944,16 +8982,6 @@ var Permission;
8944
8982
  * https://openapi-generator.tech
8945
8983
  * Do not edit the class manually.
8946
8984
  */
8947
- /**
8948
- * Note type.<br />ProjectNoteType<br />0 = Project<br />1 = QualifiedSpecification<br />2 = Internal<br />3 = SalesChannel
8949
- */
8950
- var ProjectNoteType;
8951
- (function (ProjectNoteType) {
8952
- ProjectNoteType["Project"] = "Project";
8953
- ProjectNoteType["QualifiedSpecification"] = "QualifiedSpecification";
8954
- ProjectNoteType["Internal"] = "Internal";
8955
- ProjectNoteType["SalesChannel"] = "SalesChannel";
8956
- })(ProjectNoteType || (ProjectNoteType = {}));
8957
8985
 
8958
8986
  /**
8959
8987
  * RenewAire CORES API
@@ -8964,6 +8992,16 @@ var ProjectNoteType;
8964
8992
  * https://openapi-generator.tech
8965
8993
  * Do not edit the class manually.
8966
8994
  */
8995
+ /**
8996
+ * Note type.<br />ProjectNoteType<br />0 = Project<br />1 = QualifiedSpecification<br />2 = Internal<br />3 = SalesChannel
8997
+ */
8998
+ var ProjectNoteType;
8999
+ (function (ProjectNoteType) {
9000
+ ProjectNoteType["Project"] = "Project";
9001
+ ProjectNoteType["QualifiedSpecification"] = "QualifiedSpecification";
9002
+ ProjectNoteType["Internal"] = "Internal";
9003
+ ProjectNoteType["SalesChannel"] = "SalesChannel";
9004
+ })(ProjectNoteType || (ProjectNoteType = {}));
8967
9005
 
8968
9006
  /**
8969
9007
  * RenewAire CORES API