@saritasa/renewaire-frontend-sdk 0.217.0 → 0.218.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
|
@@ -4703,6 +4703,90 @@ class ProjectQualifiedSpecificationsApiService extends BaseService {
|
|
|
4703
4703
|
super(basePath, configuration);
|
|
4704
4704
|
this.httpClient = httpClient;
|
|
4705
4705
|
}
|
|
4706
|
+
projectQualifiedSpecificationGetQualifiedSpecificationAttachmentDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
4707
|
+
const projectRevisionId = requestParameters?.projectRevisionId;
|
|
4708
|
+
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
4709
|
+
throw new Error("Required parameter projectRevisionId was null or undefined when calling projectQualifiedSpecificationGetQualifiedSpecificationAttachmentDownloadUrl.");
|
|
4710
|
+
}
|
|
4711
|
+
const attachmentId = requestParameters?.attachmentId;
|
|
4712
|
+
if (attachmentId === null || attachmentId === undefined) {
|
|
4713
|
+
throw new Error("Required parameter attachmentId was null or undefined when calling projectQualifiedSpecificationGetQualifiedSpecificationAttachmentDownloadUrl.");
|
|
4714
|
+
}
|
|
4715
|
+
let localVarHeaders = this.defaultHeaders;
|
|
4716
|
+
// authentication (Bearer) required
|
|
4717
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
4718
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
4719
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
4720
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
4721
|
+
}
|
|
4722
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
4723
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
4724
|
+
let responseType_ = "json";
|
|
4725
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
4726
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
4727
|
+
responseType_ = "text";
|
|
4728
|
+
}
|
|
4729
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
4730
|
+
responseType_ = "json";
|
|
4731
|
+
}
|
|
4732
|
+
else {
|
|
4733
|
+
responseType_ = "blob";
|
|
4734
|
+
}
|
|
4735
|
+
}
|
|
4736
|
+
let localVarPath = `/api/project-qualified-specifications/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/attachments/${this.configuration.encodeParam({ name: "attachmentId", value: attachmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
|
|
4737
|
+
const { basePath, withCredentials } = this.configuration;
|
|
4738
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
4739
|
+
context: localVarHttpContext,
|
|
4740
|
+
responseType: responseType_,
|
|
4741
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
4742
|
+
headers: localVarHeaders,
|
|
4743
|
+
observe: observe,
|
|
4744
|
+
transferCache: localVarTransferCache,
|
|
4745
|
+
reportProgress: reportProgress,
|
|
4746
|
+
});
|
|
4747
|
+
}
|
|
4748
|
+
projectQualifiedSpecificationGetQualifiedSpecificationAttachmentPreviewUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
4749
|
+
const projectRevisionId = requestParameters?.projectRevisionId;
|
|
4750
|
+
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
4751
|
+
throw new Error("Required parameter projectRevisionId was null or undefined when calling projectQualifiedSpecificationGetQualifiedSpecificationAttachmentPreviewUrl.");
|
|
4752
|
+
}
|
|
4753
|
+
const attachmentId = requestParameters?.attachmentId;
|
|
4754
|
+
if (attachmentId === null || attachmentId === undefined) {
|
|
4755
|
+
throw new Error("Required parameter attachmentId was null or undefined when calling projectQualifiedSpecificationGetQualifiedSpecificationAttachmentPreviewUrl.");
|
|
4756
|
+
}
|
|
4757
|
+
let localVarHeaders = this.defaultHeaders;
|
|
4758
|
+
// authentication (Bearer) required
|
|
4759
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
4760
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
4761
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
4762
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
4763
|
+
}
|
|
4764
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
4765
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
4766
|
+
let responseType_ = "json";
|
|
4767
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
4768
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
4769
|
+
responseType_ = "text";
|
|
4770
|
+
}
|
|
4771
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
4772
|
+
responseType_ = "json";
|
|
4773
|
+
}
|
|
4774
|
+
else {
|
|
4775
|
+
responseType_ = "blob";
|
|
4776
|
+
}
|
|
4777
|
+
}
|
|
4778
|
+
let localVarPath = `/api/project-qualified-specifications/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/attachments/${this.configuration.encodeParam({ name: "attachmentId", value: attachmentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/preview`;
|
|
4779
|
+
const { basePath, withCredentials } = this.configuration;
|
|
4780
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
4781
|
+
context: localVarHttpContext,
|
|
4782
|
+
responseType: responseType_,
|
|
4783
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
4784
|
+
headers: localVarHeaders,
|
|
4785
|
+
observe: observe,
|
|
4786
|
+
transferCache: localVarTransferCache,
|
|
4787
|
+
reportProgress: reportProgress,
|
|
4788
|
+
});
|
|
4789
|
+
}
|
|
4706
4790
|
projectQualifiedSpecificationSubmitQualifiedSpecification(requestParameters, observe = "body", reportProgress = false, options) {
|
|
4707
4791
|
const projectRevisionId = requestParameters?.projectRevisionId;
|
|
4708
4792
|
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
@@ -4887,6 +4971,10 @@ class ProjectRevisionsApiService extends BaseService {
|
|
|
4887
4971
|
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
4888
4972
|
throw new Error("Required parameter projectRevisionId was null or undefined when calling projectRevisionsGetProjectRevisionLogs.");
|
|
4889
4973
|
}
|
|
4974
|
+
const type = requestParameters?.type;
|
|
4975
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
4976
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, projectRevisionId, "ProjectRevisionId");
|
|
4977
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, type, "Type");
|
|
4890
4978
|
let localVarHeaders = this.defaultHeaders;
|
|
4891
4979
|
// authentication (Bearer) required
|
|
4892
4980
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -4913,10 +5001,11 @@ class ProjectRevisionsApiService extends BaseService {
|
|
|
4913
5001
|
responseType_ = "blob";
|
|
4914
5002
|
}
|
|
4915
5003
|
}
|
|
4916
|
-
let localVarPath = `/api/project-revisions
|
|
5004
|
+
let localVarPath = `/api/project-revisions/logs`;
|
|
4917
5005
|
const { basePath, withCredentials } = this.configuration;
|
|
4918
5006
|
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
4919
5007
|
context: localVarHttpContext,
|
|
5008
|
+
params: localVarQueryParameters,
|
|
4920
5009
|
responseType: responseType_,
|
|
4921
5010
|
...(withCredentials ? { withCredentials } : {}),
|
|
4922
5011
|
headers: localVarHeaders,
|