@saritasa/renewaire-frontend-sdk 0.131.0 → 0.133.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.131.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.133.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.131.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.133.0 --save
5
5
  ```
@@ -2903,11 +2903,101 @@ class ProjectSharingApiService extends BaseService {
2903
2903
  super(basePath, configuration);
2904
2904
  this.httpClient = httpClient;
2905
2905
  }
2906
+ projectSharingRemoveProjectShare(requestParameters, observe = "body", reportProgress = false, options) {
2907
+ const projectSharingId = requestParameters?.projectSharingId;
2908
+ if (projectSharingId === null || projectSharingId === undefined) {
2909
+ throw new Error("Required parameter projectSharingId was null or undefined when calling projectSharingRemoveProjectShare.");
2910
+ }
2911
+ let localVarHeaders = this.defaultHeaders;
2912
+ // authentication (Bearer) required
2913
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2914
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2915
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2916
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2917
+ }
2918
+ const localVarHttpContext = options?.context ?? new HttpContext();
2919
+ const localVarTransferCache = options?.transferCache ?? true;
2920
+ let responseType_ = "json";
2921
+ if (localVarHttpHeaderAcceptSelected) {
2922
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
2923
+ responseType_ = "text";
2924
+ }
2925
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2926
+ responseType_ = "json";
2927
+ }
2928
+ else {
2929
+ responseType_ = "blob";
2930
+ }
2931
+ }
2932
+ let localVarPath = `/api/project-sharing/${this.configuration.encodeParam({ name: "projectSharingId", value: projectSharingId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
2933
+ const { basePath, withCredentials } = this.configuration;
2934
+ return this.httpClient.request("delete", `${basePath}${localVarPath}`, {
2935
+ context: localVarHttpContext,
2936
+ responseType: responseType_,
2937
+ ...(withCredentials ? { withCredentials } : {}),
2938
+ headers: localVarHeaders,
2939
+ observe: observe,
2940
+ transferCache: localVarTransferCache,
2941
+ reportProgress: reportProgress,
2942
+ });
2943
+ }
2906
2944
  projectSharingShareProject(requestParameters, observe = "body", reportProgress = false, options) {
2907
2945
  const shareProjectCommand = requestParameters?.shareProjectCommand;
2908
2946
  let localVarHeaders = this.defaultHeaders;
2909
2947
  // authentication (Bearer) required
2910
2948
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2949
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
2950
+ this.configuration.selectHeaderAccept([
2951
+ "text/plain",
2952
+ "application/json",
2953
+ "text/json",
2954
+ ]);
2955
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2956
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
2957
+ }
2958
+ const localVarHttpContext = options?.context ?? new HttpContext();
2959
+ const localVarTransferCache = options?.transferCache ?? true;
2960
+ // to determine the Content-Type header
2961
+ const consumes = [
2962
+ "application/json-patch+json",
2963
+ "application/json",
2964
+ "text/json",
2965
+ "application/*+json",
2966
+ ];
2967
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2968
+ if (httpContentTypeSelected !== undefined) {
2969
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
2970
+ }
2971
+ let responseType_ = "json";
2972
+ if (localVarHttpHeaderAcceptSelected) {
2973
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
2974
+ responseType_ = "text";
2975
+ }
2976
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2977
+ responseType_ = "json";
2978
+ }
2979
+ else {
2980
+ responseType_ = "blob";
2981
+ }
2982
+ }
2983
+ let localVarPath = `/api/project-sharing/invite`;
2984
+ const { basePath, withCredentials } = this.configuration;
2985
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
2986
+ context: localVarHttpContext,
2987
+ body: shareProjectCommand,
2988
+ responseType: responseType_,
2989
+ ...(withCredentials ? { withCredentials } : {}),
2990
+ headers: localVarHeaders,
2991
+ observe: observe,
2992
+ transferCache: localVarTransferCache,
2993
+ reportProgress: reportProgress,
2994
+ });
2995
+ }
2996
+ projectSharingUpdateProjectShare(requestParameters, observe = "body", reportProgress = false, options) {
2997
+ const updateProjectShareCommand = requestParameters?.updateProjectShareCommand;
2998
+ let localVarHeaders = this.defaultHeaders;
2999
+ // authentication (Bearer) required
3000
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
2911
3001
  const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
2912
3002
  if (localVarHttpHeaderAcceptSelected !== undefined) {
2913
3003
  localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
@@ -2941,7 +3031,7 @@ class ProjectSharingApiService extends BaseService {
2941
3031
  const { basePath, withCredentials } = this.configuration;
2942
3032
  return this.httpClient.request("post", `${basePath}${localVarPath}`, {
2943
3033
  context: localVarHttpContext,
2944
- body: shareProjectCommand,
3034
+ body: updateProjectShareCommand,
2945
3035
  responseType: responseType_,
2946
3036
  ...(withCredentials ? { withCredentials } : {}),
2947
3037
  headers: localVarHeaders,
@@ -3448,9 +3538,9 @@ class ProjectsApiService extends BaseService {
3448
3538
  });
3449
3539
  }
3450
3540
  projectsGetProject(requestParameters, observe = "body", reportProgress = false, options) {
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.");
3541
+ const projectRevisionId = requestParameters?.projectRevisionId;
3542
+ if (projectRevisionId === null || projectRevisionId === undefined) {
3543
+ throw new Error("Required parameter projectRevisionId was null or undefined when calling projectsGetProject.");
3454
3544
  }
3455
3545
  let localVarHeaders = this.defaultHeaders;
3456
3546
  // authentication (Bearer) required
@@ -3478,7 +3568,7 @@ class ProjectsApiService extends BaseService {
3478
3568
  responseType_ = "blob";
3479
3569
  }
3480
3570
  }
3481
- let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3571
+ let localVarPath = `/api/projects/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
3482
3572
  const { basePath, withCredentials } = this.configuration;
3483
3573
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
3484
3574
  context: localVarHttpContext,