@saritasa/renewaire-frontend-sdk 0.40.0 → 0.41.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 +2 -2
- package/fesm2022/saritasa-renewaire-frontend-sdk.mjs +358 -33
- package/fesm2022/saritasa-renewaire-frontend-sdk.mjs.map +1 -1
- package/index.d.ts +102 -129
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5107,7 +5107,70 @@ class UsersManagementApiService extends BaseService {
|
|
|
5107
5107
|
this.httpClient = httpClient;
|
|
5108
5108
|
}
|
|
5109
5109
|
usersManagementCreateUser(requestParameters, observe = "body", reportProgress = false, options) {
|
|
5110
|
-
const
|
|
5110
|
+
const email = requestParameters?.email;
|
|
5111
|
+
if (email === null || email === undefined) {
|
|
5112
|
+
throw new Error("Required parameter email was null or undefined when calling usersManagementCreateUser.");
|
|
5113
|
+
}
|
|
5114
|
+
const status = requestParameters?.status;
|
|
5115
|
+
if (status === null || status === undefined) {
|
|
5116
|
+
throw new Error("Required parameter status was null or undefined when calling usersManagementCreateUser.");
|
|
5117
|
+
}
|
|
5118
|
+
const contactInformationFirstName = requestParameters?.contactInformationFirstName;
|
|
5119
|
+
if (contactInformationFirstName === null ||
|
|
5120
|
+
contactInformationFirstName === undefined) {
|
|
5121
|
+
throw new Error("Required parameter contactInformationFirstName was null or undefined when calling usersManagementCreateUser.");
|
|
5122
|
+
}
|
|
5123
|
+
const contactInformationLastName = requestParameters?.contactInformationLastName;
|
|
5124
|
+
if (contactInformationLastName === null ||
|
|
5125
|
+
contactInformationLastName === undefined) {
|
|
5126
|
+
throw new Error("Required parameter contactInformationLastName was null or undefined when calling usersManagementCreateUser.");
|
|
5127
|
+
}
|
|
5128
|
+
const contactInformationCompany = requestParameters?.contactInformationCompany;
|
|
5129
|
+
if (contactInformationCompany === null ||
|
|
5130
|
+
contactInformationCompany === undefined) {
|
|
5131
|
+
throw new Error("Required parameter contactInformationCompany was null or undefined when calling usersManagementCreateUser.");
|
|
5132
|
+
}
|
|
5133
|
+
const contactInformationTitle = requestParameters?.contactInformationTitle;
|
|
5134
|
+
if (contactInformationTitle === null ||
|
|
5135
|
+
contactInformationTitle === undefined) {
|
|
5136
|
+
throw new Error("Required parameter contactInformationTitle was null or undefined when calling usersManagementCreateUser.");
|
|
5137
|
+
}
|
|
5138
|
+
const contactInformationWorkPhoneNumber = requestParameters?.contactInformationWorkPhoneNumber;
|
|
5139
|
+
if (contactInformationWorkPhoneNumber === null ||
|
|
5140
|
+
contactInformationWorkPhoneNumber === undefined) {
|
|
5141
|
+
throw new Error("Required parameter contactInformationWorkPhoneNumber was null or undefined when calling usersManagementCreateUser.");
|
|
5142
|
+
}
|
|
5143
|
+
const addressCountryName = requestParameters?.addressCountryName;
|
|
5144
|
+
if (addressCountryName === null || addressCountryName === undefined) {
|
|
5145
|
+
throw new Error("Required parameter addressCountryName was null or undefined when calling usersManagementCreateUser.");
|
|
5146
|
+
}
|
|
5147
|
+
const addressAddress1 = requestParameters?.addressAddress1;
|
|
5148
|
+
if (addressAddress1 === null || addressAddress1 === undefined) {
|
|
5149
|
+
throw new Error("Required parameter addressAddress1 was null or undefined when calling usersManagementCreateUser.");
|
|
5150
|
+
}
|
|
5151
|
+
const addressState = requestParameters?.addressState;
|
|
5152
|
+
if (addressState === null || addressState === undefined) {
|
|
5153
|
+
throw new Error("Required parameter addressState was null or undefined when calling usersManagementCreateUser.");
|
|
5154
|
+
}
|
|
5155
|
+
const addressPostalCode = requestParameters?.addressPostalCode;
|
|
5156
|
+
if (addressPostalCode === null || addressPostalCode === undefined) {
|
|
5157
|
+
throw new Error("Required parameter addressPostalCode was null or undefined when calling usersManagementCreateUser.");
|
|
5158
|
+
}
|
|
5159
|
+
const occupation = requestParameters?.occupation;
|
|
5160
|
+
if (occupation === null || occupation === undefined) {
|
|
5161
|
+
throw new Error("Required parameter occupation was null or undefined when calling usersManagementCreateUser.");
|
|
5162
|
+
}
|
|
5163
|
+
const contactInformationWorkPhoneNumberExt = requestParameters?.contactInformationWorkPhoneNumberExt;
|
|
5164
|
+
const contactInformationMobilePhoneNumber = requestParameters?.contactInformationMobilePhoneNumber;
|
|
5165
|
+
const addressAddress2 = requestParameters?.addressAddress2;
|
|
5166
|
+
const addressCity = requestParameters?.addressCity;
|
|
5167
|
+
const addressCounty = requestParameters?.addressCounty;
|
|
5168
|
+
const addressApartmentNumber = requestParameters?.addressApartmentNumber;
|
|
5169
|
+
const companyLogo = requestParameters?.companyLogo;
|
|
5170
|
+
const groupId = requestParameters?.groupId;
|
|
5171
|
+
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
5172
|
+
const salesUserIds = requestParameters?.salesUserIds;
|
|
5173
|
+
const userPermissionIds = requestParameters?.userPermissionIds;
|
|
5111
5174
|
let localVarHeaders = this.defaultHeaders;
|
|
5112
5175
|
// authentication (Bearer) required
|
|
5113
5176
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -5123,14 +5186,122 @@ class UsersManagementApiService extends BaseService {
|
|
|
5123
5186
|
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
5124
5187
|
const localVarTransferCache = options?.transferCache ?? true;
|
|
5125
5188
|
// to determine the Content-Type header
|
|
5126
|
-
const consumes = [
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5189
|
+
const consumes = ["multipart/form-data"];
|
|
5190
|
+
const canConsumeForm = this.canConsumeForm(consumes);
|
|
5191
|
+
let localVarFormParams;
|
|
5192
|
+
let localVarUseForm = false;
|
|
5193
|
+
let localVarConvertFormParamsToString = false;
|
|
5194
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
5195
|
+
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
5196
|
+
localVarUseForm = canConsumeForm;
|
|
5197
|
+
if (localVarUseForm) {
|
|
5198
|
+
localVarFormParams = new FormData();
|
|
5199
|
+
}
|
|
5200
|
+
else {
|
|
5201
|
+
localVarFormParams = new HttpParams({ encoder: this.encoder });
|
|
5202
|
+
}
|
|
5203
|
+
if (email !== undefined) {
|
|
5204
|
+
localVarFormParams =
|
|
5205
|
+
localVarFormParams.append("Email", email) ||
|
|
5206
|
+
localVarFormParams;
|
|
5207
|
+
}
|
|
5208
|
+
if (status !== undefined) {
|
|
5209
|
+
localVarFormParams =
|
|
5210
|
+
localVarFormParams.append("Status", status) ||
|
|
5211
|
+
localVarFormParams;
|
|
5212
|
+
}
|
|
5213
|
+
if (contactInformationFirstName !== undefined) {
|
|
5214
|
+
localVarFormParams =
|
|
5215
|
+
localVarFormParams.append("ContactInformation.FirstName", contactInformationFirstName) || localVarFormParams;
|
|
5216
|
+
}
|
|
5217
|
+
if (contactInformationLastName !== undefined) {
|
|
5218
|
+
localVarFormParams =
|
|
5219
|
+
localVarFormParams.append("ContactInformation.LastName", contactInformationLastName) || localVarFormParams;
|
|
5220
|
+
}
|
|
5221
|
+
if (contactInformationCompany !== undefined) {
|
|
5222
|
+
localVarFormParams =
|
|
5223
|
+
localVarFormParams.append("ContactInformation.Company", contactInformationCompany) || localVarFormParams;
|
|
5224
|
+
}
|
|
5225
|
+
if (contactInformationTitle !== undefined) {
|
|
5226
|
+
localVarFormParams =
|
|
5227
|
+
localVarFormParams.append("ContactInformation.Title", contactInformationTitle) || localVarFormParams;
|
|
5228
|
+
}
|
|
5229
|
+
if (contactInformationWorkPhoneNumber !== undefined) {
|
|
5230
|
+
localVarFormParams =
|
|
5231
|
+
localVarFormParams.append("ContactInformation.WorkPhoneNumber", contactInformationWorkPhoneNumber) || localVarFormParams;
|
|
5232
|
+
}
|
|
5233
|
+
if (contactInformationWorkPhoneNumberExt !== undefined) {
|
|
5234
|
+
localVarFormParams =
|
|
5235
|
+
localVarFormParams.append("ContactInformation.WorkPhoneNumberExt", contactInformationWorkPhoneNumberExt) || localVarFormParams;
|
|
5236
|
+
}
|
|
5237
|
+
if (contactInformationMobilePhoneNumber !== undefined) {
|
|
5238
|
+
localVarFormParams =
|
|
5239
|
+
localVarFormParams.append("ContactInformation.MobilePhoneNumber", contactInformationMobilePhoneNumber) || localVarFormParams;
|
|
5240
|
+
}
|
|
5241
|
+
if (addressCountryName !== undefined) {
|
|
5242
|
+
localVarFormParams =
|
|
5243
|
+
localVarFormParams.append("Address.CountryName", addressCountryName) || localVarFormParams;
|
|
5244
|
+
}
|
|
5245
|
+
if (addressAddress1 !== undefined) {
|
|
5246
|
+
localVarFormParams =
|
|
5247
|
+
localVarFormParams.append("Address.Address1", addressAddress1) || localVarFormParams;
|
|
5248
|
+
}
|
|
5249
|
+
if (addressAddress2 !== undefined) {
|
|
5250
|
+
localVarFormParams =
|
|
5251
|
+
localVarFormParams.append("Address.Address2", addressAddress2) || localVarFormParams;
|
|
5252
|
+
}
|
|
5253
|
+
if (addressCity !== undefined) {
|
|
5254
|
+
localVarFormParams =
|
|
5255
|
+
localVarFormParams.append("Address.City", addressCity) ||
|
|
5256
|
+
localVarFormParams;
|
|
5257
|
+
}
|
|
5258
|
+
if (addressCounty !== undefined) {
|
|
5259
|
+
localVarFormParams =
|
|
5260
|
+
localVarFormParams.append("Address.County", addressCounty) || localVarFormParams;
|
|
5261
|
+
}
|
|
5262
|
+
if (addressState !== undefined) {
|
|
5263
|
+
localVarFormParams =
|
|
5264
|
+
localVarFormParams.append("Address.State", addressState) || localVarFormParams;
|
|
5265
|
+
}
|
|
5266
|
+
if (addressPostalCode !== undefined) {
|
|
5267
|
+
localVarFormParams =
|
|
5268
|
+
localVarFormParams.append("Address.PostalCode", addressPostalCode) || localVarFormParams;
|
|
5269
|
+
}
|
|
5270
|
+
if (addressApartmentNumber !== undefined) {
|
|
5271
|
+
localVarFormParams =
|
|
5272
|
+
localVarFormParams.append("Address.ApartmentNumber", addressApartmentNumber) || localVarFormParams;
|
|
5273
|
+
}
|
|
5274
|
+
if (occupation !== undefined) {
|
|
5275
|
+
localVarFormParams =
|
|
5276
|
+
localVarFormParams.append("Occupation", occupation) ||
|
|
5277
|
+
localVarFormParams;
|
|
5278
|
+
}
|
|
5279
|
+
if (companyLogo !== undefined) {
|
|
5280
|
+
localVarFormParams =
|
|
5281
|
+
localVarFormParams.append("CompanyLogo", companyLogo) ||
|
|
5282
|
+
localVarFormParams;
|
|
5283
|
+
}
|
|
5284
|
+
if (groupId !== undefined) {
|
|
5285
|
+
localVarFormParams =
|
|
5286
|
+
localVarFormParams.append("GroupId", groupId) ||
|
|
5287
|
+
localVarFormParams;
|
|
5288
|
+
}
|
|
5289
|
+
if (repTerritoryId !== undefined) {
|
|
5290
|
+
localVarFormParams =
|
|
5291
|
+
localVarFormParams.append("RepTerritoryId", repTerritoryId) || localVarFormParams;
|
|
5292
|
+
}
|
|
5293
|
+
if (salesUserIds) {
|
|
5294
|
+
salesUserIds.forEach((element) => {
|
|
5295
|
+
localVarFormParams =
|
|
5296
|
+
localVarFormParams.append("SalesUserIds", element) ||
|
|
5297
|
+
localVarFormParams;
|
|
5298
|
+
});
|
|
5299
|
+
}
|
|
5300
|
+
if (userPermissionIds) {
|
|
5301
|
+
userPermissionIds.forEach((element) => {
|
|
5302
|
+
localVarFormParams =
|
|
5303
|
+
localVarFormParams.append("UserPermissionIds", element) || localVarFormParams;
|
|
5304
|
+
});
|
|
5134
5305
|
}
|
|
5135
5306
|
let responseType_ = "json";
|
|
5136
5307
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -5148,7 +5319,9 @@ class UsersManagementApiService extends BaseService {
|
|
|
5148
5319
|
const { basePath, withCredentials } = this.configuration;
|
|
5149
5320
|
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
5150
5321
|
context: localVarHttpContext,
|
|
5151
|
-
body:
|
|
5322
|
+
body: localVarConvertFormParamsToString
|
|
5323
|
+
? localVarFormParams.toString()
|
|
5324
|
+
: localVarFormParams,
|
|
5152
5325
|
responseType: responseType_,
|
|
5153
5326
|
...(withCredentials ? { withCredentials } : {}),
|
|
5154
5327
|
headers: localVarHeaders,
|
|
@@ -5297,7 +5470,66 @@ class UsersManagementApiService extends BaseService {
|
|
|
5297
5470
|
if (userId === null || userId === undefined) {
|
|
5298
5471
|
throw new Error("Required parameter userId was null or undefined when calling usersManagementUpdateUser.");
|
|
5299
5472
|
}
|
|
5300
|
-
const
|
|
5473
|
+
const status = requestParameters?.status;
|
|
5474
|
+
if (status === null || status === undefined) {
|
|
5475
|
+
throw new Error("Required parameter status was null or undefined when calling usersManagementUpdateUser.");
|
|
5476
|
+
}
|
|
5477
|
+
const contactInformationFirstName = requestParameters?.contactInformationFirstName;
|
|
5478
|
+
if (contactInformationFirstName === null ||
|
|
5479
|
+
contactInformationFirstName === undefined) {
|
|
5480
|
+
throw new Error("Required parameter contactInformationFirstName was null or undefined when calling usersManagementUpdateUser.");
|
|
5481
|
+
}
|
|
5482
|
+
const contactInformationLastName = requestParameters?.contactInformationLastName;
|
|
5483
|
+
if (contactInformationLastName === null ||
|
|
5484
|
+
contactInformationLastName === undefined) {
|
|
5485
|
+
throw new Error("Required parameter contactInformationLastName was null or undefined when calling usersManagementUpdateUser.");
|
|
5486
|
+
}
|
|
5487
|
+
const contactInformationCompany = requestParameters?.contactInformationCompany;
|
|
5488
|
+
if (contactInformationCompany === null ||
|
|
5489
|
+
contactInformationCompany === undefined) {
|
|
5490
|
+
throw new Error("Required parameter contactInformationCompany was null or undefined when calling usersManagementUpdateUser.");
|
|
5491
|
+
}
|
|
5492
|
+
const contactInformationTitle = requestParameters?.contactInformationTitle;
|
|
5493
|
+
if (contactInformationTitle === null ||
|
|
5494
|
+
contactInformationTitle === undefined) {
|
|
5495
|
+
throw new Error("Required parameter contactInformationTitle was null or undefined when calling usersManagementUpdateUser.");
|
|
5496
|
+
}
|
|
5497
|
+
const contactInformationWorkPhoneNumber = requestParameters?.contactInformationWorkPhoneNumber;
|
|
5498
|
+
if (contactInformationWorkPhoneNumber === null ||
|
|
5499
|
+
contactInformationWorkPhoneNumber === undefined) {
|
|
5500
|
+
throw new Error("Required parameter contactInformationWorkPhoneNumber was null or undefined when calling usersManagementUpdateUser.");
|
|
5501
|
+
}
|
|
5502
|
+
const addressCountryName = requestParameters?.addressCountryName;
|
|
5503
|
+
if (addressCountryName === null || addressCountryName === undefined) {
|
|
5504
|
+
throw new Error("Required parameter addressCountryName was null or undefined when calling usersManagementUpdateUser.");
|
|
5505
|
+
}
|
|
5506
|
+
const addressAddress1 = requestParameters?.addressAddress1;
|
|
5507
|
+
if (addressAddress1 === null || addressAddress1 === undefined) {
|
|
5508
|
+
throw new Error("Required parameter addressAddress1 was null or undefined when calling usersManagementUpdateUser.");
|
|
5509
|
+
}
|
|
5510
|
+
const addressState = requestParameters?.addressState;
|
|
5511
|
+
if (addressState === null || addressState === undefined) {
|
|
5512
|
+
throw new Error("Required parameter addressState was null or undefined when calling usersManagementUpdateUser.");
|
|
5513
|
+
}
|
|
5514
|
+
const addressPostalCode = requestParameters?.addressPostalCode;
|
|
5515
|
+
if (addressPostalCode === null || addressPostalCode === undefined) {
|
|
5516
|
+
throw new Error("Required parameter addressPostalCode was null or undefined when calling usersManagementUpdateUser.");
|
|
5517
|
+
}
|
|
5518
|
+
const occupation = requestParameters?.occupation;
|
|
5519
|
+
if (occupation === null || occupation === undefined) {
|
|
5520
|
+
throw new Error("Required parameter occupation was null or undefined when calling usersManagementUpdateUser.");
|
|
5521
|
+
}
|
|
5522
|
+
const contactInformationWorkPhoneNumberExt = requestParameters?.contactInformationWorkPhoneNumberExt;
|
|
5523
|
+
const contactInformationMobilePhoneNumber = requestParameters?.contactInformationMobilePhoneNumber;
|
|
5524
|
+
const addressAddress2 = requestParameters?.addressAddress2;
|
|
5525
|
+
const addressCity = requestParameters?.addressCity;
|
|
5526
|
+
const addressCounty = requestParameters?.addressCounty;
|
|
5527
|
+
const addressApartmentNumber = requestParameters?.addressApartmentNumber;
|
|
5528
|
+
const companyLogo = requestParameters?.companyLogo;
|
|
5529
|
+
const groupId = requestParameters?.groupId;
|
|
5530
|
+
const repTerritoryId = requestParameters?.repTerritoryId;
|
|
5531
|
+
const salesUserIds = requestParameters?.salesUserIds;
|
|
5532
|
+
const userPermissionIds = requestParameters?.userPermissionIds;
|
|
5301
5533
|
let localVarHeaders = this.defaultHeaders;
|
|
5302
5534
|
// authentication (Bearer) required
|
|
5303
5535
|
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
@@ -5313,14 +5545,117 @@ class UsersManagementApiService extends BaseService {
|
|
|
5313
5545
|
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
5314
5546
|
const localVarTransferCache = options?.transferCache ?? true;
|
|
5315
5547
|
// to determine the Content-Type header
|
|
5316
|
-
const consumes = [
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5548
|
+
const consumes = ["multipart/form-data"];
|
|
5549
|
+
const canConsumeForm = this.canConsumeForm(consumes);
|
|
5550
|
+
let localVarFormParams;
|
|
5551
|
+
let localVarUseForm = false;
|
|
5552
|
+
let localVarConvertFormParamsToString = false;
|
|
5553
|
+
// use FormData to transmit files using content-type "multipart/form-data"
|
|
5554
|
+
// see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data
|
|
5555
|
+
localVarUseForm = canConsumeForm;
|
|
5556
|
+
if (localVarUseForm) {
|
|
5557
|
+
localVarFormParams = new FormData();
|
|
5558
|
+
}
|
|
5559
|
+
else {
|
|
5560
|
+
localVarFormParams = new HttpParams({ encoder: this.encoder });
|
|
5561
|
+
}
|
|
5562
|
+
if (status !== undefined) {
|
|
5563
|
+
localVarFormParams =
|
|
5564
|
+
localVarFormParams.append("Status", status) ||
|
|
5565
|
+
localVarFormParams;
|
|
5566
|
+
}
|
|
5567
|
+
if (contactInformationFirstName !== undefined) {
|
|
5568
|
+
localVarFormParams =
|
|
5569
|
+
localVarFormParams.append("ContactInformation.FirstName", contactInformationFirstName) || localVarFormParams;
|
|
5570
|
+
}
|
|
5571
|
+
if (contactInformationLastName !== undefined) {
|
|
5572
|
+
localVarFormParams =
|
|
5573
|
+
localVarFormParams.append("ContactInformation.LastName", contactInformationLastName) || localVarFormParams;
|
|
5574
|
+
}
|
|
5575
|
+
if (contactInformationCompany !== undefined) {
|
|
5576
|
+
localVarFormParams =
|
|
5577
|
+
localVarFormParams.append("ContactInformation.Company", contactInformationCompany) || localVarFormParams;
|
|
5578
|
+
}
|
|
5579
|
+
if (contactInformationTitle !== undefined) {
|
|
5580
|
+
localVarFormParams =
|
|
5581
|
+
localVarFormParams.append("ContactInformation.Title", contactInformationTitle) || localVarFormParams;
|
|
5582
|
+
}
|
|
5583
|
+
if (contactInformationWorkPhoneNumber !== undefined) {
|
|
5584
|
+
localVarFormParams =
|
|
5585
|
+
localVarFormParams.append("ContactInformation.WorkPhoneNumber", contactInformationWorkPhoneNumber) || localVarFormParams;
|
|
5586
|
+
}
|
|
5587
|
+
if (contactInformationWorkPhoneNumberExt !== undefined) {
|
|
5588
|
+
localVarFormParams =
|
|
5589
|
+
localVarFormParams.append("ContactInformation.WorkPhoneNumberExt", contactInformationWorkPhoneNumberExt) || localVarFormParams;
|
|
5590
|
+
}
|
|
5591
|
+
if (contactInformationMobilePhoneNumber !== undefined) {
|
|
5592
|
+
localVarFormParams =
|
|
5593
|
+
localVarFormParams.append("ContactInformation.MobilePhoneNumber", contactInformationMobilePhoneNumber) || localVarFormParams;
|
|
5594
|
+
}
|
|
5595
|
+
if (addressCountryName !== undefined) {
|
|
5596
|
+
localVarFormParams =
|
|
5597
|
+
localVarFormParams.append("Address.CountryName", addressCountryName) || localVarFormParams;
|
|
5598
|
+
}
|
|
5599
|
+
if (addressAddress1 !== undefined) {
|
|
5600
|
+
localVarFormParams =
|
|
5601
|
+
localVarFormParams.append("Address.Address1", addressAddress1) || localVarFormParams;
|
|
5602
|
+
}
|
|
5603
|
+
if (addressAddress2 !== undefined) {
|
|
5604
|
+
localVarFormParams =
|
|
5605
|
+
localVarFormParams.append("Address.Address2", addressAddress2) || localVarFormParams;
|
|
5606
|
+
}
|
|
5607
|
+
if (addressCity !== undefined) {
|
|
5608
|
+
localVarFormParams =
|
|
5609
|
+
localVarFormParams.append("Address.City", addressCity) ||
|
|
5610
|
+
localVarFormParams;
|
|
5611
|
+
}
|
|
5612
|
+
if (addressCounty !== undefined) {
|
|
5613
|
+
localVarFormParams =
|
|
5614
|
+
localVarFormParams.append("Address.County", addressCounty) || localVarFormParams;
|
|
5615
|
+
}
|
|
5616
|
+
if (addressState !== undefined) {
|
|
5617
|
+
localVarFormParams =
|
|
5618
|
+
localVarFormParams.append("Address.State", addressState) || localVarFormParams;
|
|
5619
|
+
}
|
|
5620
|
+
if (addressPostalCode !== undefined) {
|
|
5621
|
+
localVarFormParams =
|
|
5622
|
+
localVarFormParams.append("Address.PostalCode", addressPostalCode) || localVarFormParams;
|
|
5623
|
+
}
|
|
5624
|
+
if (addressApartmentNumber !== undefined) {
|
|
5625
|
+
localVarFormParams =
|
|
5626
|
+
localVarFormParams.append("Address.ApartmentNumber", addressApartmentNumber) || localVarFormParams;
|
|
5627
|
+
}
|
|
5628
|
+
if (occupation !== undefined) {
|
|
5629
|
+
localVarFormParams =
|
|
5630
|
+
localVarFormParams.append("Occupation", occupation) ||
|
|
5631
|
+
localVarFormParams;
|
|
5632
|
+
}
|
|
5633
|
+
if (companyLogo !== undefined) {
|
|
5634
|
+
localVarFormParams =
|
|
5635
|
+
localVarFormParams.append("CompanyLogo", companyLogo) ||
|
|
5636
|
+
localVarFormParams;
|
|
5637
|
+
}
|
|
5638
|
+
if (groupId !== undefined) {
|
|
5639
|
+
localVarFormParams =
|
|
5640
|
+
localVarFormParams.append("GroupId", groupId) ||
|
|
5641
|
+
localVarFormParams;
|
|
5642
|
+
}
|
|
5643
|
+
if (repTerritoryId !== undefined) {
|
|
5644
|
+
localVarFormParams =
|
|
5645
|
+
localVarFormParams.append("RepTerritoryId", repTerritoryId) || localVarFormParams;
|
|
5646
|
+
}
|
|
5647
|
+
if (salesUserIds) {
|
|
5648
|
+
salesUserIds.forEach((element) => {
|
|
5649
|
+
localVarFormParams =
|
|
5650
|
+
localVarFormParams.append("SalesUserIds", element) ||
|
|
5651
|
+
localVarFormParams;
|
|
5652
|
+
});
|
|
5653
|
+
}
|
|
5654
|
+
if (userPermissionIds) {
|
|
5655
|
+
userPermissionIds.forEach((element) => {
|
|
5656
|
+
localVarFormParams =
|
|
5657
|
+
localVarFormParams.append("UserPermissionIds", element) || localVarFormParams;
|
|
5658
|
+
});
|
|
5324
5659
|
}
|
|
5325
5660
|
let responseType_ = "json";
|
|
5326
5661
|
if (localVarHttpHeaderAcceptSelected) {
|
|
@@ -5338,7 +5673,9 @@ class UsersManagementApiService extends BaseService {
|
|
|
5338
5673
|
const { basePath, withCredentials } = this.configuration;
|
|
5339
5674
|
return this.httpClient.request("put", `${basePath}${localVarPath}`, {
|
|
5340
5675
|
context: localVarHttpContext,
|
|
5341
|
-
body:
|
|
5676
|
+
body: localVarConvertFormParamsToString
|
|
5677
|
+
? localVarFormParams.toString()
|
|
5678
|
+
: localVarFormParams,
|
|
5342
5679
|
responseType: responseType_,
|
|
5343
5680
|
...(withCredentials ? { withCredentials } : {}),
|
|
5344
5681
|
headers: localVarHeaders,
|
|
@@ -5533,12 +5870,6 @@ var CoolingDesignBasis;
|
|
|
5533
5870
|
* Do not edit the class manually.
|
|
5534
5871
|
*/
|
|
5535
5872
|
|
|
5536
|
-
var CreateUserDtoStatusEnum;
|
|
5537
|
-
(function (CreateUserDtoStatusEnum) {
|
|
5538
|
-
CreateUserDtoStatusEnum["Inactive"] = "Inactive";
|
|
5539
|
-
CreateUserDtoStatusEnum["Active"] = "Active";
|
|
5540
|
-
})(CreateUserDtoStatusEnum || (CreateUserDtoStatusEnum = {}));
|
|
5541
|
-
|
|
5542
5873
|
/**
|
|
5543
5874
|
* RenewAire CORES API
|
|
5544
5875
|
*
|
|
@@ -6088,12 +6419,6 @@ var UnitSystem;
|
|
|
6088
6419
|
UnitSystem["Metric"] = "Metric";
|
|
6089
6420
|
})(UnitSystem || (UnitSystem = {}));
|
|
6090
6421
|
|
|
6091
|
-
var UpdateUserDtoStatusEnum;
|
|
6092
|
-
(function (UpdateUserDtoStatusEnum) {
|
|
6093
|
-
UpdateUserDtoStatusEnum["Inactive"] = "Inactive";
|
|
6094
|
-
UpdateUserDtoStatusEnum["Active"] = "Active";
|
|
6095
|
-
})(UpdateUserDtoStatusEnum || (UpdateUserDtoStatusEnum = {}));
|
|
6096
|
-
|
|
6097
6422
|
/**
|
|
6098
6423
|
* RenewAire CORES API
|
|
6099
6424
|
*
|
|
@@ -6263,5 +6588,5 @@ function provideApi(configOrBasePath) {
|
|
|
6263
6588
|
* Generated bundle index. Do not edit.
|
|
6264
6589
|
*/
|
|
6265
6590
|
|
|
6266
|
-
export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis,
|
|
6591
|
+
export { APIS, AddressCountry, AddressDtoCountryEnum, ApiModule, AshraeVersion, AuditEntity, AuditLogsApiService, AuthApiService, BASE_PATH, COLLECTION_FORMATS, Configuration, CoolingDesignBasis, CurrentUserDtoPreferredUnitEnum, CurrentUserDtoRegistrationStatusEnum, DesignWeatherMode, FeedbackType, FeedbacksApiService, GroupCustomerType, GroupDtoCustomerTypeEnum, GroupDtoTypeEnum, GroupType, GroupsApiService, KnownContactsApiService, Language, Permission, PermissionBundlesApiService, PermissionsApiService, ProjectsApiService, RegionLevel, RegionsApiService, RegistrationStatus, RepContactsApiService, RepTerritoriesApiService, RepTerritoryLocationsApiService, RsdRegionsApiService, SaveGroupDtoTypeEnum, SaveUserDesignConditionsDtoCoolingDesignBasisEnum, SearchRegionDtoLevelEnum, SetPreferredLanguageCommandPreferredLanguageEnum, UnitSystem, UserDesignConditionsApiService, UserDesignConditionsDtoCoolingDesignBasisEnum, UserDesignWeatherConditionDtoDesignWeatherModeEnum, UserPermissionDtoPermissionEnum, UserPreferencesDtoPreferredLanguageEnum, UserPreferencesDtoPreferredUnitEnum, UserProfileSettingsDtoRegistrationStatusEnum, UserStatus, UserTablesApiService, UsersApiService, UsersManagementApiService, provideApi };
|
|
6267
6592
|
//# sourceMappingURL=saritasa-renewaire-frontend-sdk.mjs.map
|