@saritasa/renewaire-frontend-sdk 0.77.0 → 0.78.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.77.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.78.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.77.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.78.0 --save
5
5
  ```
@@ -4152,14 +4152,57 @@ class RsdRegionsApiService extends BaseService {
4152
4152
  reportProgress: reportProgress,
4153
4153
  });
4154
4154
  }
4155
- rsdRegionsCreateRsdRegionDocumentDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
4155
+ rsdRegionsGetRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
4156
+ const id = requestParameters?.id;
4157
+ if (id === null || id === undefined) {
4158
+ throw new Error("Required parameter id was null or undefined when calling rsdRegionsGetRsdRegion.");
4159
+ }
4160
+ let localVarHeaders = this.defaultHeaders;
4161
+ // authentication (Bearer) required
4162
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4163
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4164
+ this.configuration.selectHeaderAccept([
4165
+ "text/plain",
4166
+ "application/json",
4167
+ "text/json",
4168
+ ]);
4169
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
4170
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4171
+ }
4172
+ const localVarHttpContext = options?.context ?? new HttpContext();
4173
+ const localVarTransferCache = options?.transferCache ?? true;
4174
+ let responseType_ = "json";
4175
+ if (localVarHttpHeaderAcceptSelected) {
4176
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
4177
+ responseType_ = "text";
4178
+ }
4179
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
4180
+ responseType_ = "json";
4181
+ }
4182
+ else {
4183
+ responseType_ = "blob";
4184
+ }
4185
+ }
4186
+ let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
4187
+ const { basePath, withCredentials } = this.configuration;
4188
+ return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4189
+ context: localVarHttpContext,
4190
+ responseType: responseType_,
4191
+ ...(withCredentials ? { withCredentials } : {}),
4192
+ headers: localVarHeaders,
4193
+ observe: observe,
4194
+ transferCache: localVarTransferCache,
4195
+ reportProgress: reportProgress,
4196
+ });
4197
+ }
4198
+ rsdRegionsGetRsdRegionDocumentDownloadUrl(requestParameters, observe = "body", reportProgress = false, options) {
4156
4199
  const rsdRegionId = requestParameters?.rsdRegionId;
4157
4200
  if (rsdRegionId === null || rsdRegionId === undefined) {
4158
- throw new Error("Required parameter rsdRegionId was null or undefined when calling rsdRegionsCreateRsdRegionDocumentDownloadUrl.");
4201
+ throw new Error("Required parameter rsdRegionId was null or undefined when calling rsdRegionsGetRsdRegionDocumentDownloadUrl.");
4159
4202
  }
4160
4203
  const documentId = requestParameters?.documentId;
4161
4204
  if (documentId === null || documentId === undefined) {
4162
- throw new Error("Required parameter documentId was null or undefined when calling rsdRegionsCreateRsdRegionDocumentDownloadUrl.");
4205
+ throw new Error("Required parameter documentId was null or undefined when calling rsdRegionsGetRsdRegionDocumentDownloadUrl.");
4163
4206
  }
4164
4207
  let localVarHeaders = this.defaultHeaders;
4165
4208
  // authentication (Bearer) required
@@ -4194,20 +4237,19 @@ class RsdRegionsApiService extends BaseService {
4194
4237
  reportProgress: reportProgress,
4195
4238
  });
4196
4239
  }
4197
- rsdRegionsGetRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
4198
- const id = requestParameters?.id;
4199
- if (id === null || id === undefined) {
4200
- throw new Error("Required parameter id was null or undefined when calling rsdRegionsGetRsdRegion.");
4240
+ rsdRegionsGetRsdRegionDocumentPreview(requestParameters, observe = "body", reportProgress = false, options) {
4241
+ const rsdRegionId = requestParameters?.rsdRegionId;
4242
+ if (rsdRegionId === null || rsdRegionId === undefined) {
4243
+ throw new Error("Required parameter rsdRegionId was null or undefined when calling rsdRegionsGetRsdRegionDocumentPreview.");
4244
+ }
4245
+ const documentId = requestParameters?.documentId;
4246
+ if (documentId === null || documentId === undefined) {
4247
+ throw new Error("Required parameter documentId was null or undefined when calling rsdRegionsGetRsdRegionDocumentPreview.");
4201
4248
  }
4202
4249
  let localVarHeaders = this.defaultHeaders;
4203
4250
  // authentication (Bearer) required
4204
4251
  localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
4205
- const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ??
4206
- this.configuration.selectHeaderAccept([
4207
- "text/plain",
4208
- "application/json",
4209
- "text/json",
4210
- ]);
4252
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
4211
4253
  if (localVarHttpHeaderAcceptSelected !== undefined) {
4212
4254
  localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
4213
4255
  }
@@ -4225,7 +4267,7 @@ class RsdRegionsApiService extends BaseService {
4225
4267
  responseType_ = "blob";
4226
4268
  }
4227
4269
  }
4228
- let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}`;
4270
+ let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/documents/${this.configuration.encodeParam({ name: "documentId", value: documentId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/preview`;
4229
4271
  const { basePath, withCredentials } = this.configuration;
4230
4272
  return this.httpClient.request("get", `${basePath}${localVarPath}`, {
4231
4273
  context: localVarHttpContext,