@saritasa/renewaire-frontend-sdk 0.238.0 → 0.239.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
|
@@ -756,6 +756,125 @@ class BombDrawingsApiService extends BaseService {
|
|
|
756
756
|
reportProgress: reportProgress,
|
|
757
757
|
});
|
|
758
758
|
}
|
|
759
|
+
drawingsGetDrawingFileDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
760
|
+
const drawingLayerId = requestParameters?.drawingLayerId;
|
|
761
|
+
if (drawingLayerId === null || drawingLayerId === undefined) {
|
|
762
|
+
throw new Error("Required parameter drawingLayerId was null or undefined when calling drawingsGetDrawingFileDownloadUrl.");
|
|
763
|
+
}
|
|
764
|
+
let localVarHeaders = this.defaultHeaders;
|
|
765
|
+
// authentication (Bearer) required
|
|
766
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
767
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
768
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
769
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
770
|
+
}
|
|
771
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
772
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
773
|
+
let responseType_ = "json";
|
|
774
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
775
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
776
|
+
responseType_ = "text";
|
|
777
|
+
}
|
|
778
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
779
|
+
responseType_ = "json";
|
|
780
|
+
}
|
|
781
|
+
else {
|
|
782
|
+
responseType_ = "blob";
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
let localVarPath = `/api/bomb/drawings/${this.configuration.encodeParam({ name: "drawingLayerId", value: drawingLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/download-url`;
|
|
786
|
+
const { basePath, withCredentials } = this.configuration;
|
|
787
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
788
|
+
context: localVarHttpContext,
|
|
789
|
+
responseType: responseType_,
|
|
790
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
791
|
+
headers: localVarHeaders,
|
|
792
|
+
observe: observe,
|
|
793
|
+
transferCache: localVarTransferCache,
|
|
794
|
+
reportProgress: reportProgress,
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
drawingsGetDrawingFilePreviewUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
798
|
+
const drawingLayerId = requestParameters?.drawingLayerId;
|
|
799
|
+
if (drawingLayerId === null || drawingLayerId === undefined) {
|
|
800
|
+
throw new Error("Required parameter drawingLayerId was null or undefined when calling drawingsGetDrawingFilePreviewUrl.");
|
|
801
|
+
}
|
|
802
|
+
let localVarHeaders = this.defaultHeaders;
|
|
803
|
+
// authentication (Bearer) required
|
|
804
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
805
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
806
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
807
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
808
|
+
}
|
|
809
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
810
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
811
|
+
let responseType_ = "json";
|
|
812
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
813
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
814
|
+
responseType_ = "text";
|
|
815
|
+
}
|
|
816
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
817
|
+
responseType_ = "json";
|
|
818
|
+
}
|
|
819
|
+
else {
|
|
820
|
+
responseType_ = "blob";
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
let localVarPath = `/api/bomb/drawings/${this.configuration.encodeParam({ name: "drawingLayerId", value: drawingLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/preview-url`;
|
|
824
|
+
const { basePath, withCredentials } = this.configuration;
|
|
825
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
826
|
+
context: localVarHttpContext,
|
|
827
|
+
responseType: responseType_,
|
|
828
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
829
|
+
headers: localVarHeaders,
|
|
830
|
+
observe: observe,
|
|
831
|
+
transferCache: localVarTransferCache,
|
|
832
|
+
reportProgress: reportProgress,
|
|
833
|
+
});
|
|
834
|
+
}
|
|
835
|
+
drawingsGetDrawingLayer(requestParameters, observe = "body", reportProgress = false, options) {
|
|
836
|
+
const drawingLayerId = requestParameters?.drawingLayerId;
|
|
837
|
+
if (drawingLayerId === null || drawingLayerId === undefined) {
|
|
838
|
+
throw new Error("Required parameter drawingLayerId was null or undefined when calling drawingsGetDrawingLayer.");
|
|
839
|
+
}
|
|
840
|
+
let localVarHeaders = this.defaultHeaders;
|
|
841
|
+
// authentication (Bearer) required
|
|
842
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
843
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
|
|
844
|
+
this.configuration.selectHeaderAccept([
|
|
845
|
+
"text/plain",
|
|
846
|
+
"application/json",
|
|
847
|
+
"text/json",
|
|
848
|
+
]);
|
|
849
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
850
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
851
|
+
}
|
|
852
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
853
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
854
|
+
let responseType_ = "json";
|
|
855
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
856
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
857
|
+
responseType_ = "text";
|
|
858
|
+
}
|
|
859
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
860
|
+
responseType_ = "json";
|
|
861
|
+
}
|
|
862
|
+
else {
|
|
863
|
+
responseType_ = "blob";
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
let localVarPath = `/api/bomb/drawings/${this.configuration.encodeParam({ name: "drawingLayerId", value: drawingLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}`;
|
|
867
|
+
const { basePath, withCredentials } = this.configuration;
|
|
868
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
869
|
+
context: localVarHttpContext,
|
|
870
|
+
responseType: responseType_,
|
|
871
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
872
|
+
headers: localVarHeaders,
|
|
873
|
+
observe: observe,
|
|
874
|
+
transferCache: localVarTransferCache,
|
|
875
|
+
reportProgress: reportProgress,
|
|
876
|
+
});
|
|
877
|
+
}
|
|
759
878
|
drawingsUpdateDrawingLayer(requestParameters, observe = "body", reportProgress = false, options) {
|
|
760
879
|
const drawingLayerId = requestParameters?.drawingLayerId;
|
|
761
880
|
if (drawingLayerId === null || drawingLayerId === undefined) {
|
|
@@ -1922,6 +2041,44 @@ class BombSchematicsApiService extends BaseService {
|
|
|
1922
2041
|
reportProgress: reportProgress,
|
|
1923
2042
|
});
|
|
1924
2043
|
}
|
|
2044
|
+
schematicsGetSchematicFilePreviewUrl(requestParameters, observe = "body", reportProgress = false, options) {
|
|
2045
|
+
const schematicLayerId = requestParameters?.schematicLayerId;
|
|
2046
|
+
if (schematicLayerId === null || schematicLayerId === undefined) {
|
|
2047
|
+
throw new Error("Required parameter schematicLayerId was null or undefined when calling schematicsGetSchematicFilePreviewUrl.");
|
|
2048
|
+
}
|
|
2049
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2050
|
+
// authentication (Bearer) required
|
|
2051
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
2052
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
2053
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2054
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
2055
|
+
}
|
|
2056
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
2057
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
2058
|
+
let responseType_ = "json";
|
|
2059
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2060
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
2061
|
+
responseType_ = "text";
|
|
2062
|
+
}
|
|
2063
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2064
|
+
responseType_ = "json";
|
|
2065
|
+
}
|
|
2066
|
+
else {
|
|
2067
|
+
responseType_ = "blob";
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
let localVarPath = `/api/bomb/schematics/${this.configuration.encodeParam({ name: "schematicLayerId", value: schematicLayerId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int64" })}/preview-url`;
|
|
2071
|
+
const { basePath, withCredentials } = this.configuration;
|
|
2072
|
+
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
2073
|
+
context: localVarHttpContext,
|
|
2074
|
+
responseType: responseType_,
|
|
2075
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
2076
|
+
headers: localVarHeaders,
|
|
2077
|
+
observe: observe,
|
|
2078
|
+
transferCache: localVarTransferCache,
|
|
2079
|
+
reportProgress: reportProgress,
|
|
2080
|
+
});
|
|
2081
|
+
}
|
|
1925
2082
|
schematicsGetSchematicLayer(requestParameters, observe = "body", reportProgress = false, options) {
|
|
1926
2083
|
const schematicLayerId = requestParameters?.schematicLayerId;
|
|
1927
2084
|
if (schematicLayerId === null || schematicLayerId === undefined) {
|