@saritasa/renewaire-frontend-sdk 0.217.0 → 0.219.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,141 @@ 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
|
+
}
|
|
4790
|
+
projectQualifiedSpecificationProcessQualifiedSpecification(requestParameters, observe = "body", reportProgress = false, options) {
|
|
4791
|
+
const projectRevisionId = requestParameters?.projectRevisionId;
|
|
4792
|
+
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
4793
|
+
throw new Error("Required parameter projectRevisionId was null or undefined when calling projectQualifiedSpecificationProcessQualifiedSpecification.");
|
|
4794
|
+
}
|
|
4795
|
+
const processQualifiedSpecificationDto = requestParameters?.processQualifiedSpecificationDto;
|
|
4796
|
+
let localVarHeaders = this.defaultHeaders;
|
|
4797
|
+
// authentication (Bearer) required
|
|
4798
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
4799
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
4800
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
4801
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
4802
|
+
}
|
|
4803
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
4804
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
4805
|
+
// to determine the Content-Type header
|
|
4806
|
+
const consumes = [
|
|
4807
|
+
"application/json-patch+json",
|
|
4808
|
+
"application/json",
|
|
4809
|
+
"text/json",
|
|
4810
|
+
"application/*+json",
|
|
4811
|
+
];
|
|
4812
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
4813
|
+
if (httpContentTypeSelected !== undefined) {
|
|
4814
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
4815
|
+
}
|
|
4816
|
+
let responseType_ = "json";
|
|
4817
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
4818
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
4819
|
+
responseType_ = "text";
|
|
4820
|
+
}
|
|
4821
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
4822
|
+
responseType_ = "json";
|
|
4823
|
+
}
|
|
4824
|
+
else {
|
|
4825
|
+
responseType_ = "blob";
|
|
4826
|
+
}
|
|
4827
|
+
}
|
|
4828
|
+
let localVarPath = `/api/project-qualified-specifications/${this.configuration.encodeParam({ name: "projectRevisionId", value: projectRevisionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/process`;
|
|
4829
|
+
const { basePath, withCredentials } = this.configuration;
|
|
4830
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
4831
|
+
context: localVarHttpContext,
|
|
4832
|
+
body: processQualifiedSpecificationDto,
|
|
4833
|
+
responseType: responseType_,
|
|
4834
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
4835
|
+
headers: localVarHeaders,
|
|
4836
|
+
observe: observe,
|
|
4837
|
+
transferCache: localVarTransferCache,
|
|
4838
|
+
reportProgress: reportProgress,
|
|
4839
|
+
});
|
|
4840
|
+
}
|
|
4706
4841
|
projectQualifiedSpecificationSubmitQualifiedSpecification(requestParameters, observe = "body", reportProgress = false, options) {
|
|
4707
4842
|
const projectRevisionId = requestParameters?.projectRevisionId;
|
|
4708
4843
|
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
@@ -4887,6 +5022,10 @@ class ProjectRevisionsApiService extends BaseService {
|
|
|
4887
5022
|
if (projectRevisionId === null || projectRevisionId === undefined) {
|
|
4888
5023
|
throw new Error("Required parameter projectRevisionId was null or undefined when calling projectRevisionsGetProjectRevisionLogs.");
|
|
4889
5024
|
}
|
|
5025
|
+
const type = requestParameters?.type;
|
|
5026
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
5027
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, projectRevisionId, "ProjectRevisionId");
|
|
5028
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, type, "Type");
|
|
4890
5029
|
let localVarHeaders = this.defaultHeaders;
|
|
4891
5030
|
// authentication (Bearer) required
|
|
4892
5031
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -4913,10 +5052,11 @@ class ProjectRevisionsApiService extends BaseService {
|
|
|
4913
5052
|
responseType_ = "blob";
|
|
4914
5053
|
}
|
|
4915
5054
|
}
|
|
4916
|
-
let localVarPath = `/api/project-revisions
|
|
5055
|
+
let localVarPath = `/api/project-revisions/logs`;
|
|
4917
5056
|
const { basePath, withCredentials } = this.configuration;
|
|
4918
5057
|
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
4919
5058
|
context: localVarHttpContext,
|
|
5059
|
+
params: localVarQueryParameters,
|
|
4920
5060
|
responseType: responseType_,
|
|
4921
5061
|
...(withCredentials ? { withCredentials } : {}),
|
|
4922
5062
|
headers: localVarHeaders,
|