@saritasa/renewaire-frontend-sdk 0.36.0 → 0.37.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
|
@@ -2998,7 +2998,7 @@ class RsdRegionsApiService extends BaseService {
|
|
|
2998
2998
|
responseType_ = "blob";
|
|
2999
2999
|
}
|
|
3000
3000
|
}
|
|
3001
|
-
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "
|
|
3001
|
+
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}/documents/${this.configuration.encodeParam({ name: "documentId", value: documentId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}/download-url`;
|
|
3002
3002
|
const { basePath, withCredentials } = this.configuration;
|
|
3003
3003
|
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
3004
3004
|
context: localVarHttpContext,
|
|
@@ -3062,7 +3062,18 @@ class RsdRegionsApiService extends BaseService {
|
|
|
3062
3062
|
});
|
|
3063
3063
|
}
|
|
3064
3064
|
rsdRegionsCreateRsdRegion(requestParameters, observe = "body", reportProgress = false, options) {
|
|
3065
|
-
const
|
|
3065
|
+
const name = requestParameters?.name;
|
|
3066
|
+
if (name === null || name === undefined) {
|
|
3067
|
+
throw new Error("Required parameter name was null or undefined when calling rsdRegionsCreateRsdRegion.");
|
|
3068
|
+
}
|
|
3069
|
+
const primaryRsdUserId = requestParameters?.primaryRsdUserId;
|
|
3070
|
+
if (primaryRsdUserId === null || primaryRsdUserId === undefined) {
|
|
3071
|
+
throw new Error("Required parameter primaryRsdUserId was null or undefined when calling rsdRegionsCreateRsdRegion.");
|
|
3072
|
+
}
|
|
3073
|
+
const notes = requestParameters?.notes;
|
|
3074
|
+
const tags = requestParameters?.tags;
|
|
3075
|
+
const rsdUserIds = requestParameters?.rsdUserIds;
|
|
3076
|
+
const rsdRegionLogo = requestParameters?.rsdRegionLogo;
|
|
3066
3077
|
let localVarHeaders = this.defaultHeaders;
|
|
3067
3078
|
// authentication (Bearer) required
|
|
3068
3079
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -3078,14 +3089,51 @@ class RsdRegionsApiService extends BaseService {
|
|
|
3078
3089
|
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3079
3090
|
const localVarTransferCache = options?.transferCache ?? true;
|
|
3080
3091
|
// to determine the Content-Type header
|
|
3081
|
-
const consumes = [
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3092
|
+
const consumes = ["multipart/form-data"];
|
|
3093
|
+
const canConsumeForm = this.canConsumeForm(consumes);
|
|
3094
|
+
let localVarFormParams;
|
|
3095
|
+
let localVarUseForm = false;
|
|
3096
|
+
let localVarConvertFormParamsToString = false;
|
|
3097
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
3098
|
+
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
3099
|
+
localVarUseForm = canConsumeForm;
|
|
3100
|
+
if (localVarUseForm) {
|
|
3101
|
+
localVarFormParams = new FormData();
|
|
3102
|
+
}
|
|
3103
|
+
else {
|
|
3104
|
+
localVarFormParams = new HttpParams({ encoder: this.encoder });
|
|
3105
|
+
}
|
|
3106
|
+
if (name !== undefined) {
|
|
3107
|
+
localVarFormParams =
|
|
3108
|
+
localVarFormParams.append("Name", name) ||
|
|
3109
|
+
localVarFormParams;
|
|
3110
|
+
}
|
|
3111
|
+
if (notes !== undefined) {
|
|
3112
|
+
localVarFormParams =
|
|
3113
|
+
localVarFormParams.append("Notes", notes) ||
|
|
3114
|
+
localVarFormParams;
|
|
3115
|
+
}
|
|
3116
|
+
if (tags) {
|
|
3117
|
+
tags.forEach((element) => {
|
|
3118
|
+
localVarFormParams =
|
|
3119
|
+
localVarFormParams.append("Tags", element) ||
|
|
3120
|
+
localVarFormParams;
|
|
3121
|
+
});
|
|
3122
|
+
}
|
|
3123
|
+
if (primaryRsdUserId !== undefined) {
|
|
3124
|
+
localVarFormParams =
|
|
3125
|
+
localVarFormParams.append("PrimaryRsdUserId", primaryRsdUserId) || localVarFormParams;
|
|
3126
|
+
}
|
|
3127
|
+
if (rsdUserIds) {
|
|
3128
|
+
rsdUserIds.forEach((element) => {
|
|
3129
|
+
localVarFormParams =
|
|
3130
|
+
localVarFormParams.append("RsdUserIds", element) ||
|
|
3131
|
+
localVarFormParams;
|
|
3132
|
+
});
|
|
3133
|
+
}
|
|
3134
|
+
if (rsdRegionLogo !== undefined) {
|
|
3135
|
+
localVarFormParams =
|
|
3136
|
+
localVarFormParams.append("RsdRegionLogo", rsdRegionLogo) || localVarFormParams;
|
|
3089
3137
|
}
|
|
3090
3138
|
let responseType_ = "json";
|
|
3091
3139
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -3103,7 +3151,9 @@ class RsdRegionsApiService extends BaseService {
|
|
|
3103
3151
|
const { basePath, withCredentials } = this.configuration;
|
|
3104
3152
|
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
3105
3153
|
context: localVarHttpContext,
|
|
3106
|
-
body:
|
|
3154
|
+
body: localVarConvertFormParamsToString
|
|
3155
|
+
? localVarFormParams.toString()
|
|
3156
|
+
: localVarFormParams,
|
|
3107
3157
|
responseType: responseType_,
|
|
3108
3158
|
...(withCredentials ? { withCredentials } : {}),
|
|
3109
3159
|
headers: localVarHeaders,
|
|
@@ -3149,7 +3199,7 @@ class RsdRegionsApiService extends BaseService {
|
|
|
3149
3199
|
responseType_ = "blob";
|
|
3150
3200
|
}
|
|
3151
3201
|
}
|
|
3152
|
-
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "
|
|
3202
|
+
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}/documents`;
|
|
3153
3203
|
const { basePath, withCredentials } = this.configuration;
|
|
3154
3204
|
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
3155
3205
|
context: localVarHttpContext,
|
|
@@ -3193,7 +3243,7 @@ class RsdRegionsApiService extends BaseService {
|
|
|
3193
3243
|
responseType_ = "blob";
|
|
3194
3244
|
}
|
|
3195
3245
|
}
|
|
3196
|
-
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "
|
|
3246
|
+
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
|
|
3197
3247
|
const { basePath, withCredentials } = this.configuration;
|
|
3198
3248
|
return this.httpClient.request("get", `${basePath}${localVarPath}`, {
|
|
3199
3249
|
context: localVarHttpContext,
|
|
@@ -3419,8 +3469,19 @@ class RsdRegionsApiService extends BaseService {
|
|
|
3419
3469
|
if (rsdRegionId === null || rsdRegionId === undefined) {
|
|
3420
3470
|
throw new Error("Required parameter rsdRegionId was null or undefined when calling rsdRegionsUpdateRsdRegion.");
|
|
3421
3471
|
}
|
|
3472
|
+
const name = requestParameters?.name;
|
|
3473
|
+
if (name === null || name === undefined) {
|
|
3474
|
+
throw new Error("Required parameter name was null or undefined when calling rsdRegionsUpdateRsdRegion.");
|
|
3475
|
+
}
|
|
3476
|
+
const primaryRsdUserId = requestParameters?.primaryRsdUserId;
|
|
3477
|
+
if (primaryRsdUserId === null || primaryRsdUserId === undefined) {
|
|
3478
|
+
throw new Error("Required parameter primaryRsdUserId was null or undefined when calling rsdRegionsUpdateRsdRegion.");
|
|
3479
|
+
}
|
|
3422
3480
|
const isActive = requestParameters?.isActive;
|
|
3423
|
-
const
|
|
3481
|
+
const notes = requestParameters?.notes;
|
|
3482
|
+
const tags = requestParameters?.tags;
|
|
3483
|
+
const rsdUserIds = requestParameters?.rsdUserIds;
|
|
3484
|
+
const rsdRegionLogo = requestParameters?.rsdRegionLogo;
|
|
3424
3485
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
3425
3486
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, isActive, "isActive");
|
|
3426
3487
|
let localVarHeaders = this.defaultHeaders;
|
|
@@ -3433,14 +3494,51 @@ class RsdRegionsApiService extends BaseService {
|
|
|
3433
3494
|
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3434
3495
|
const localVarTransferCache = options?.transferCache ?? true;
|
|
3435
3496
|
// to determine the Content-Type header
|
|
3436
|
-
const consumes = [
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3497
|
+
const consumes = ["multipart/form-data"];
|
|
3498
|
+
const canConsumeForm = this.canConsumeForm(consumes);
|
|
3499
|
+
let localVarFormParams;
|
|
3500
|
+
let localVarUseForm = false;
|
|
3501
|
+
let localVarConvertFormParamsToString = false;
|
|
3502
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
3503
|
+
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
3504
|
+
localVarUseForm = canConsumeForm;
|
|
3505
|
+
if (localVarUseForm) {
|
|
3506
|
+
localVarFormParams = new FormData();
|
|
3507
|
+
}
|
|
3508
|
+
else {
|
|
3509
|
+
localVarFormParams = new HttpParams({ encoder: this.encoder });
|
|
3510
|
+
}
|
|
3511
|
+
if (name !== undefined) {
|
|
3512
|
+
localVarFormParams =
|
|
3513
|
+
localVarFormParams.append("Name", name) ||
|
|
3514
|
+
localVarFormParams;
|
|
3515
|
+
}
|
|
3516
|
+
if (notes !== undefined) {
|
|
3517
|
+
localVarFormParams =
|
|
3518
|
+
localVarFormParams.append("Notes", notes) ||
|
|
3519
|
+
localVarFormParams;
|
|
3520
|
+
}
|
|
3521
|
+
if (tags) {
|
|
3522
|
+
tags.forEach((element) => {
|
|
3523
|
+
localVarFormParams =
|
|
3524
|
+
localVarFormParams.append("Tags", element) ||
|
|
3525
|
+
localVarFormParams;
|
|
3526
|
+
});
|
|
3527
|
+
}
|
|
3528
|
+
if (primaryRsdUserId !== undefined) {
|
|
3529
|
+
localVarFormParams =
|
|
3530
|
+
localVarFormParams.append("PrimaryRsdUserId", primaryRsdUserId) || localVarFormParams;
|
|
3531
|
+
}
|
|
3532
|
+
if (rsdUserIds) {
|
|
3533
|
+
rsdUserIds.forEach((element) => {
|
|
3534
|
+
localVarFormParams =
|
|
3535
|
+
localVarFormParams.append("RsdUserIds", element) ||
|
|
3536
|
+
localVarFormParams;
|
|
3537
|
+
});
|
|
3538
|
+
}
|
|
3539
|
+
if (rsdRegionLogo !== undefined) {
|
|
3540
|
+
localVarFormParams =
|
|
3541
|
+
localVarFormParams.append("RsdRegionLogo", rsdRegionLogo) || localVarFormParams;
|
|
3444
3542
|
}
|
|
3445
3543
|
let responseType_ = "json";
|
|
3446
3544
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -3454,11 +3552,13 @@ class RsdRegionsApiService extends BaseService {
|
|
|
3454
3552
|
responseType_ = "blob";
|
|
3455
3553
|
}
|
|
3456
3554
|
}
|
|
3457
|
-
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "
|
|
3555
|
+
let localVarPath = `/api/rsd-regions/${this.configuration.encodeParam({ name: "rsdRegionId", value: rsdRegionId, in: "path", style: "simple", explode: false, dataType: "object", dataFormat: "int32" })}`;
|
|
3458
3556
|
const { basePath, withCredentials } = this.configuration;
|
|
3459
3557
|
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
3460
3558
|
context: localVarHttpContext,
|
|
3461
|
-
body:
|
|
3559
|
+
body: localVarConvertFormParamsToString
|
|
3560
|
+
? localVarFormParams.toString()
|
|
3561
|
+
: localVarFormParams,
|
|
3462
3562
|
params: localVarQueryParameters,
|
|
3463
3563
|
responseType: responseType_,
|
|
3464
3564
|
...(withCredentials ? { withCredentials } : {}),
|
|
@@ -5799,16 +5899,6 @@ var SaveGroupDtoTypeEnum;
|
|
|
5799
5899
|
SaveGroupDtoTypeEnum["System"] = "System";
|
|
5800
5900
|
})(SaveGroupDtoTypeEnum || (SaveGroupDtoTypeEnum = {}));
|
|
5801
5901
|
|
|
5802
|
-
/**
|
|
5803
|
-
* RenewAire CORES API
|
|
5804
|
-
*
|
|
5805
|
-
* Contact: renewaire@saritasa.com
|
|
5806
|
-
*
|
|
5807
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5808
|
-
* https://openapi-generator.tech
|
|
5809
|
-
* Do not edit the class manually.
|
|
5810
|
-
*/
|
|
5811
|
-
|
|
5812
5902
|
/**
|
|
5813
5903
|
* RenewAire CORES API
|
|
5814
5904
|
*
|