@saritasa/renewaire-frontend-sdk 0.368.0 → 0.369.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.368.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.369.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.368.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.369.0 --save
5
5
  ```
@@ -14490,6 +14490,57 @@ class UsersManagementApiService extends BaseService {
14490
14490
  reportProgress: reportProgress,
14491
14491
  });
14492
14492
  }
14493
+ usersManagementRequestDeactivation(requestParameters, observe = "body", reportProgress = false, options) {
14494
+ const userId = requestParameters?.userId;
14495
+ if (userId === null || userId === undefined) {
14496
+ throw new Error("Required parameter userId was null or undefined when calling usersManagementRequestDeactivation.");
14497
+ }
14498
+ const requestUserDeactivationDto = requestParameters?.requestUserDeactivationDto;
14499
+ let localVarHeaders = this.defaultHeaders;
14500
+ // authentication (Bearer) required
14501
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
14502
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
14503
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
14504
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
14505
+ }
14506
+ const localVarHttpContext = options?.context ?? new HttpContext();
14507
+ const localVarTransferCache = options?.transferCache ?? true;
14508
+ // to determine the Content-Type header
14509
+ const consumes = [
14510
+ "application/json-patch+json",
14511
+ "application/json",
14512
+ "text/json",
14513
+ "application/*+json",
14514
+ ];
14515
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
14516
+ if (httpContentTypeSelected !== undefined) {
14517
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
14518
+ }
14519
+ let responseType_ = "json";
14520
+ if (localVarHttpHeaderAcceptSelected) {
14521
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
14522
+ responseType_ = "text";
14523
+ }
14524
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
14525
+ responseType_ = "json";
14526
+ }
14527
+ else {
14528
+ responseType_ = "blob";
14529
+ }
14530
+ }
14531
+ let localVarPath = `/api/users/management/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/request/deactivate`;
14532
+ const { basePath, withCredentials } = this.configuration;
14533
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
14534
+ context: localVarHttpContext,
14535
+ body: requestUserDeactivationDto,
14536
+ responseType: responseType_,
14537
+ ...(withCredentials ? { withCredentials } : {}),
14538
+ headers: localVarHeaders,
14539
+ observe: observe,
14540
+ transferCache: localVarTransferCache,
14541
+ reportProgress: reportProgress,
14542
+ });
14543
+ }
14493
14544
  usersManagementRequestEmailChange(requestParameters, observe = "body", reportProgress = false, options) {
14494
14545
  const userId = requestParameters?.userId;
14495
14546
  if (userId === null || userId === undefined) {
@@ -16042,13 +16093,14 @@ var PendingRequestStatus;
16042
16093
  * Do not edit the class manually.
16043
16094
  */
16044
16095
  /**
16045
- * Pending request type.<br />PendingRequestType<br />0 = CompanyChange<br />1 = EmailChange<br />2 = RepAssignmentChange
16096
+ * Pending request type.<br />PendingRequestType<br />0 = CompanyChange<br />1 = EmailChange<br />2 = RepAssignmentChange<br />3 = UserDeactivation
16046
16097
  */
16047
16098
  var PendingRequestType;
16048
16099
  (function (PendingRequestType) {
16049
16100
  PendingRequestType["CompanyChange"] = "CompanyChange";
16050
16101
  PendingRequestType["EmailChange"] = "EmailChange";
16051
16102
  PendingRequestType["RepAssignmentChange"] = "RepAssignmentChange";
16103
+ PendingRequestType["UserDeactivation"] = "UserDeactivation";
16052
16104
  })(PendingRequestType || (PendingRequestType = {}));
16053
16105
 
16054
16106
  /**
@@ -17086,6 +17138,16 @@ var RepDataSource;
17086
17138
  * Do not edit the class manually.
17087
17139
  */
17088
17140
 
17141
+ /**
17142
+ * RenewAire CORES API
17143
+ *
17144
+ * Contact: renewaire@saritasa.com
17145
+ *
17146
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
17147
+ * https://openapi-generator.tech
17148
+ * Do not edit the class manually.
17149
+ */
17150
+
17089
17151
  /**
17090
17152
  * RenewAire CORES API
17091
17153
  *