@saritasa/renewaire-frontend-sdk 0.152.1 → 0.153.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
|
@@ -3468,6 +3468,49 @@ class ProjectSharingApiService extends BaseService {
|
|
|
3468
3468
|
super(basePath, configuration);
|
|
3469
3469
|
this.httpClient = httpClient;
|
|
3470
3470
|
}
|
|
3471
|
+
projectSharingGetProjectShareItems(requestParameters, observe = "body", reportProgress = false, options) {
|
|
3472
|
+
const projectId = requestParameters?.projectId;
|
|
3473
|
+
if (projectId === null || projectId === undefined) {
|
|
3474
|
+
throw new Error("Required parameter projectId was null or undefined when calling projectSharingGetProjectShareItems.");
|
|
3475
|
+
}
|
|
3476
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3477
|
+
// authentication (Bearer) required
|
|
3478
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
3479
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
3480
|
+
this.configuration.selectHeaderAccept([
|
|
3481
|
+
"text/plain",
|
|
3482
|
+
"application/json",
|
|
3483
|
+
"text/json",
|
|
3484
|
+
]);
|
|
3485
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3486
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
3487
|
+
}
|
|
3488
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3489
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3490
|
+
let responseType_ = "json";
|
|
3491
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3492
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
3493
|
+
responseType_ = "text";
|
|
3494
|
+
}
|
|
3495
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3496
|
+
responseType_ = "json";
|
|
3497
|
+
}
|
|
3498
|
+
else {
|
|
3499
|
+
responseType_ = "blob";
|
|
3500
|
+
}
|
|
3501
|
+
}
|
|
3502
|
+
let localVarPath = `/api/project-sharing/${this.configuration.encodeParam({ name: "projectId", value: projectId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
|
|
3503
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3504
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
3505
|
+
context: localVarHttpContext,
|
|
3506
|
+
responseType: responseType_,
|
|
3507
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3508
|
+
headers: localVarHeaders,
|
|
3509
|
+
observe: observe,
|
|
3510
|
+
transferCache: localVarTransferCache,
|
|
3511
|
+
reportProgress: reportProgress,
|
|
3512
|
+
});
|
|
3513
|
+
}
|
|
3471
3514
|
projectSharingRemoveProjectShare(requestParameters, observe = "body", reportProgress = false, options) {
|
|
3472
3515
|
const projectSharingId = requestParameters?.projectSharingId;
|
|
3473
3516
|
if (projectSharingId === null || projectSharingId === undefined) {
|