@saritasa/renewaire-frontend-sdk 0.368.0 → 0.370.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
|
@@ -13305,6 +13305,40 @@ class UsersApiService extends BaseService {
|
|
|
13305
13305
|
reportProgress: reportProgress,
|
|
13306
13306
|
});
|
|
13307
13307
|
}
|
|
13308
|
+
usersRequestOwnDeactivation(observe = "body", reportProgress = false, options) {
|
|
13309
|
+
let localVarHeaders = this.defaultHeaders;
|
|
13310
|
+
// authentication (Bearer) required
|
|
13311
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
13312
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
13313
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
13314
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
13315
|
+
}
|
|
13316
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
13317
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
13318
|
+
let responseType_ = "json";
|
|
13319
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
13320
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
13321
|
+
responseType_ = "text";
|
|
13322
|
+
}
|
|
13323
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
13324
|
+
responseType_ = "json";
|
|
13325
|
+
}
|
|
13326
|
+
else {
|
|
13327
|
+
responseType_ = "blob";
|
|
13328
|
+
}
|
|
13329
|
+
}
|
|
13330
|
+
let localVarPath = `/api/users/request-deactivation`;
|
|
13331
|
+
const { basePath, withCredentials } = this.configuration;
|
|
13332
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
13333
|
+
context: localVarHttpContext,
|
|
13334
|
+
responseType: responseType_,
|
|
13335
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
13336
|
+
headers: localVarHeaders,
|
|
13337
|
+
observe: observe,
|
|
13338
|
+
transferCache: localVarTransferCache,
|
|
13339
|
+
reportProgress: reportProgress,
|
|
13340
|
+
});
|
|
13341
|
+
}
|
|
13308
13342
|
usersResetPassword(requestParameters, observe = "body", reportProgress = false, options) {
|
|
13309
13343
|
const resetPasswordCommand = requestParameters?.resetPasswordCommand;
|
|
13310
13344
|
let localVarHeaders = this.defaultHeaders;
|
|
@@ -14490,6 +14524,57 @@ class UsersManagementApiService extends BaseService {
|
|
|
14490
14524
|
reportProgress: reportProgress,
|
|
14491
14525
|
});
|
|
14492
14526
|
}
|
|
14527
|
+
usersManagementRequestDeactivation(requestParameters, observe = "body", reportProgress = false, options) {
|
|
14528
|
+
const userId = requestParameters?.userId;
|
|
14529
|
+
if (userId === null || userId === undefined) {
|
|
14530
|
+
throw new Error("Required parameter userId was null or undefined when calling usersManagementRequestDeactivation.");
|
|
14531
|
+
}
|
|
14532
|
+
const requestUserDeactivationDto = requestParameters?.requestUserDeactivationDto;
|
|
14533
|
+
let localVarHeaders = this.defaultHeaders;
|
|
14534
|
+
// authentication (Bearer) required
|
|
14535
|
+
localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
|
|
14536
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
14537
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
14538
|
+
localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
|
|
14539
|
+
}
|
|
14540
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
14541
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
14542
|
+
// to determine the Content-Type header
|
|
14543
|
+
const consumes = [
|
|
14544
|
+
"application/json-patch+json",
|
|
14545
|
+
"application/json",
|
|
14546
|
+
"text/json",
|
|
14547
|
+
"application/*+json",
|
|
14548
|
+
];
|
|
14549
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
14550
|
+
if (httpContentTypeSelected !== undefined) {
|
|
14551
|
+
localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
|
|
14552
|
+
}
|
|
14553
|
+
let responseType_ = "json";
|
|
14554
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
14555
|
+
if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
|
|
14556
|
+
responseType_ = "text";
|
|
14557
|
+
}
|
|
14558
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
14559
|
+
responseType_ = "json";
|
|
14560
|
+
}
|
|
14561
|
+
else {
|
|
14562
|
+
responseType_ = "blob";
|
|
14563
|
+
}
|
|
14564
|
+
}
|
|
14565
|
+
let localVarPath = `/api/users/management/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/request/deactivate`;
|
|
14566
|
+
const { basePath, withCredentials } = this.configuration;
|
|
14567
|
+
return this.httpClient.request("post", `${basePath}${localVarPath}`, {
|
|
14568
|
+
context: localVarHttpContext,
|
|
14569
|
+
body: requestUserDeactivationDto,
|
|
14570
|
+
responseType: responseType_,
|
|
14571
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
14572
|
+
headers: localVarHeaders,
|
|
14573
|
+
observe: observe,
|
|
14574
|
+
transferCache: localVarTransferCache,
|
|
14575
|
+
reportProgress: reportProgress,
|
|
14576
|
+
});
|
|
14577
|
+
}
|
|
14493
14578
|
usersManagementRequestEmailChange(requestParameters, observe = "body", reportProgress = false, options) {
|
|
14494
14579
|
const userId = requestParameters?.userId;
|
|
14495
14580
|
if (userId === null || userId === undefined) {
|
|
@@ -16042,13 +16127,14 @@ var PendingRequestStatus;
|
|
|
16042
16127
|
* Do not edit the class manually.
|
|
16043
16128
|
*/
|
|
16044
16129
|
/**
|
|
16045
|
-
* Pending request type.<br />PendingRequestType<br />0 = CompanyChange<br />1 = EmailChange<br />2 = RepAssignmentChange
|
|
16130
|
+
* Pending request type.<br />PendingRequestType<br />0 = CompanyChange<br />1 = EmailChange<br />2 = RepAssignmentChange<br />3 = UserDeactivation
|
|
16046
16131
|
*/
|
|
16047
16132
|
var PendingRequestType;
|
|
16048
16133
|
(function (PendingRequestType) {
|
|
16049
16134
|
PendingRequestType["CompanyChange"] = "CompanyChange";
|
|
16050
16135
|
PendingRequestType["EmailChange"] = "EmailChange";
|
|
16051
16136
|
PendingRequestType["RepAssignmentChange"] = "RepAssignmentChange";
|
|
16137
|
+
PendingRequestType["UserDeactivation"] = "UserDeactivation";
|
|
16052
16138
|
})(PendingRequestType || (PendingRequestType = {}));
|
|
16053
16139
|
|
|
16054
16140
|
/**
|
|
@@ -17086,6 +17172,16 @@ var RepDataSource;
|
|
|
17086
17172
|
* Do not edit the class manually.
|
|
17087
17173
|
*/
|
|
17088
17174
|
|
|
17175
|
+
/**
|
|
17176
|
+
* RenewAire CORES API
|
|
17177
|
+
*
|
|
17178
|
+
* Contact: renewaire@saritasa.com
|
|
17179
|
+
*
|
|
17180
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
17181
|
+
* https://openapi-generator.tech
|
|
17182
|
+
* Do not edit the class manually.
|
|
17183
|
+
*/
|
|
17184
|
+
|
|
17089
17185
|
/**
|
|
17090
17186
|
* RenewAire CORES API
|
|
17091
17187
|
*
|