@saritasa/renewaire-frontend-sdk 0.129.0 → 0.131.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.129.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.131.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.129.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.131.0 --save
5
5
  ```
@@ -2745,6 +2745,93 @@ 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
+ }
2786
+ projectRevisionsSearchProjectRevisions(requestParameters, observe = "body", reportProgress = false, options) {
2787
+ const projectId = requestParameters?.projectId;
2788
+ const orderBy = requestParameters?.orderBy;
2789
+ const page = requestParameters?.page;
2790
+ const pageSize = requestParameters?.pageSize;
2791
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2792
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, projectId, "ProjectId");
2793
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, orderBy, "OrderBy");
2794
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, "Page");
2795
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, pageSize, "PageSize");
2796
+ let localVarHeaders = this.defaultHeaders;
2797
+ // authentication (Bearer) required
2798
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2799
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
2800
+ this.configuration.selectHeaderAccept([
2801
+ "text/plain",
2802
+ "application/json",
2803
+ "text/json",
2804
+ ]);
2805
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2806
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2807
+ }
2808
+ const localVarHttpContext = options?.context ?? new HttpContext();
2809
+ const localVarTransferCache = options?.transferCache ?? true;
2810
+ let responseType_ = "json";
2811
+ if (localVarHttpHeaderAcceptSelected) {
2812
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
2813
+ responseType_ = "text";
2814
+ }
2815
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2816
+ responseType_ = "json";
2817
+ }
2818
+ else {
2819
+ responseType_ = "blob";
2820
+ }
2821
+ }
2822
+ let localVarPath = `/api/project-revisions`;
2823
+ const { basePath, withCredentials } = this.configuration;
2824
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
2825
+ context: localVarHttpContext,
2826
+ params: localVarQueryParameters,
2827
+ responseType: responseType_,
2828
+ ...(withCredentials ? { withCredentials } : {}),
2829
+ headers: localVarHeaders,
2830
+ observe: observe,
2831
+ transferCache: localVarTransferCache,
2832
+ reportProgress: reportProgress,
2833
+ });
2834
+ }
2748
2835
  projectRevisionsSetRevisionAsMain(requestParameters, observe = "body", reportProgress = false, options) {
2749
2836
  const projectRevisionId = requestParameters?.projectRevisionId;
2750
2837
  if (projectRevisionId === null || projectRevisionId === undefined) {
@@ -3318,9 +3405,9 @@ class ProjectsApiService extends BaseService {
3318
3405
  });
3319
3406
  }
3320
3407
  projectsExtendProjectEditMode(requestParameters, observe = "body", reportProgress = false, options) {
3321
- const projectRevisionId = requestParameters?.projectRevisionId;
3322
- if (projectRevisionId === null || projectRevisionId === undefined) {
3323
- 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.");
3324
3411
  }
3325
3412
  let localVarHeaders = this.defaultHeaders;
3326
3413
  // authentication (Bearer) required
@@ -3348,7 +3435,7 @@ class ProjectsApiService extends BaseService {
3348
3435
  responseType_ = "blob";
3349
3436
  }
3350
3437
  }
3351
- 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`;
3352
3439
  const { basePath, withCredentials } = this.configuration;
3353
3440
  return this.httpClient.request("put", `${basePath}${localVarPath}`, {
3354
3441
  context: localVarHttpContext,
@@ -3361,9 +3448,9 @@ class ProjectsApiService extends BaseService {
3361
3448
  });
3362
3449
  }
3363
3450
  projectsGetProject(requestParameters, observe = "body", reportProgress = false, options) {
3364
- const projectRevisionId = requestParameters?.projectRevisionId;
3365
- if (projectRevisionId === null || projectRevisionId === undefined) {
3366
- throw new Error("Required parameter projectRevisionId was null or undefined when calling projectsGetProject.");
3451
+ const projectId = requestParameters?.projectId;
3452
+ if (projectId === null || projectId === undefined) {
3453
+ throw new Error("Required parameter projectId was null or undefined when calling projectsGetProject.");
3367
3454
  }
3368
3455
  let localVarHeaders = this.defaultHeaders;
3369
3456
  // authentication (Bearer) required
@@ -3391,7 +3478,7 @@ class ProjectsApiService extends BaseService {
3391
3478
  responseType_ = "blob";
3392
3479
  }
3393
3480
  }
3394
- let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3481
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3395
3482
  const { basePath, withCredentials } = this.configuration;
3396
3483
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
3397
3484
  context: localVarHttpContext,
@@ -3478,9 +3565,9 @@ class ProjectsApiService extends BaseService {
3478
3565
  });
3479
3566
  }
3480
3567
  projectsStartEditProject(requestParameters, observe = "body", reportProgress = false, options) {
3481
- const projectRevisionId = requestParameters?.projectRevisionId;
3482
- if (projectRevisionId === null || projectRevisionId === undefined) {
3483
- 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.");
3484
3571
  }
3485
3572
  let localVarHeaders = this.defaultHeaders;
3486
3573
  // authentication (Bearer) required
@@ -3508,7 +3595,7 @@ class ProjectsApiService extends BaseService {
3508
3595
  responseType_ = "blob";
3509
3596
  }
3510
3597
  }
3511
- 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`;
3512
3599
  const { basePath, withCredentials } = this.configuration;
3513
3600
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
3514
3601
  context: localVarHttpContext,
@@ -3521,9 +3608,9 @@ class ProjectsApiService extends BaseService {
3521
3608
  });
3522
3609
  }
3523
3610
  projectsStopEditProject(requestParameters, observe = "body", reportProgress = false, options) {
3524
- const projectRevisionId = requestParameters?.projectRevisionId;
3525
- if (projectRevisionId === null || projectRevisionId === undefined) {
3526
- 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.");
3527
3614
  }
3528
3615
  let localVarHeaders = this.defaultHeaders;
3529
3616
  // authentication (Bearer) required
@@ -3551,7 +3638,7 @@ class ProjectsApiService extends BaseService {
3551
3638
  responseType_ = "blob";
3552
3639
  }
3553
3640
  }
3554
- 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`;
3555
3642
  const { basePath, withCredentials } = this.configuration;
3556
3643
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
3557
3644
  context: localVarHttpContext,
@@ -3564,9 +3651,9 @@ class ProjectsApiService extends BaseService {
3564
3651
  });
3565
3652
  }
3566
3653
  projectsUpdateProject(requestParameters, observe = "body", reportProgress = false, options) {
3567
- const projectRevisionId = requestParameters?.projectRevisionId;
3568
- if (projectRevisionId === null || projectRevisionId === undefined) {
3569
- 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.");
3570
3657
  }
3571
3658
  const isEndEditMode = requestParameters?.isEndEditMode;
3572
3659
  const updateProjectDto = requestParameters?.updateProjectDto;
@@ -3609,7 +3696,7 @@ class ProjectsApiService extends BaseService {
3609
3696
  responseType_ = "blob";
3610
3697
  }
3611
3698
  }
3612
- 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" })}`;
3613
3700
  const { basePath, withCredentials } = this.configuration;
3614
3701
  return this.httpClient.request("patch", `${basePath}${localVarPath}`, {
3615
3702
  context: localVarHttpContext,
@@ -8895,16 +8982,6 @@ var Permission;
8895
8982
  * https://openapi-generator.tech
8896
8983
  * Do not edit the class manually.
8897
8984
  */
8898
- /**
8899
- * Note type.<br />ProjectNoteType<br />0 = Project<br />1 = QualifiedSpecification<br />2 = Internal<br />3 = SalesChannel
8900
- */
8901
- var ProjectNoteType;
8902
- (function (ProjectNoteType) {
8903
- ProjectNoteType["Project"] = "Project";
8904
- ProjectNoteType["QualifiedSpecification"] = "QualifiedSpecification";
8905
- ProjectNoteType["Internal"] = "Internal";
8906
- ProjectNoteType["SalesChannel"] = "SalesChannel";
8907
- })(ProjectNoteType || (ProjectNoteType = {}));
8908
8985
 
8909
8986
  /**
8910
8987
  * RenewAire CORES API
@@ -8915,6 +8992,16 @@ var ProjectNoteType;
8915
8992
  * https://openapi-generator.tech
8916
8993
  * Do not edit the class manually.
8917
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 = {}));
8918
9005
 
8919
9006
  /**
8920
9007
  * RenewAire CORES API