@saritasa/renewaire-frontend-sdk 0.372.0 → 0.373.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.372.0
1
+ # @@saritasa/renewaire-frontend-sdk@0.373.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.372.0 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.373.0 --save
5
5
  ```
@@ -14683,6 +14683,57 @@ class UsersManagementApiService extends BaseService {
14683
14683
  reportProgress: reportProgress,
14684
14684
  });
14685
14685
  }
14686
+ usersManagementRequestReactivation(requestParameters, observe = "body", reportProgress = false, options) {
14687
+ const userId = requestParameters?.userId;
14688
+ if (userId === null || userId === undefined) {
14689
+ throw new Error("Required parameter userId was null or undefined when calling usersManagementRequestReactivation.");
14690
+ }
14691
+ const requestUserReactivationDto = requestParameters?.requestUserReactivationDto;
14692
+ let localVarHeaders = this.defaultHeaders;
14693
+ // authentication (Bearer) required
14694
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
14695
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
14696
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
14697
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
14698
+ }
14699
+ const localVarHttpContext = options?.context ?? new HttpContext();
14700
+ const localVarTransferCache = options?.transferCache ?? true;
14701
+ // to determine the Content-Type header
14702
+ const consumes = [
14703
+ "application/json-patch+json",
14704
+ "application/json",
14705
+ "text/json",
14706
+ "application/*+json",
14707
+ ];
14708
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
14709
+ if (httpContentTypeSelected !== undefined) {
14710
+ localVarHeaders = localVarHeaders.set("Content-Type", httpContentTypeSelected);
14711
+ }
14712
+ let responseType_ = "json";
14713
+ if (localVarHttpHeaderAcceptSelected) {
14714
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
14715
+ responseType_ = "text";
14716
+ }
14717
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
14718
+ responseType_ = "json";
14719
+ }
14720
+ else {
14721
+ responseType_ = "blob";
14722
+ }
14723
+ }
14724
+ let localVarPath = `/api/users/management/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/request/re-activate`;
14725
+ const { basePath, withCredentials } = this.configuration;
14726
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
14727
+ context: localVarHttpContext,
14728
+ body: requestUserReactivationDto,
14729
+ responseType: responseType_,
14730
+ ...(withCredentials ? { withCredentials } : {}),
14731
+ headers: localVarHeaders,
14732
+ observe: observe,
14733
+ transferCache: localVarTransferCache,
14734
+ reportProgress: reportProgress,
14735
+ });
14736
+ }
14686
14737
  usersManagementRequestRepChange(requestParameters, observe = "body", reportProgress = false, options) {
14687
14738
  const userId = requestParameters?.userId;
14688
14739
  if (userId === null || userId === undefined) {
@@ -16133,7 +16184,7 @@ var PendingRequestStatus;
16133
16184
  * Do not edit the class manually.
16134
16185
  */
16135
16186
  /**
16136
- * Pending request type.<br />PendingRequestType<br />0 = CompanyChange<br />1 = EmailChange<br />2 = RepAssignmentChange<br />3 = UserDeactivation
16187
+ * Pending request type.<br />PendingRequestType<br />0 = CompanyChange<br />1 = EmailChange<br />2 = RepAssignmentChange<br />3 = UserDeactivation<br />4 = UserReactivation
16137
16188
  */
16138
16189
  var PendingRequestType;
16139
16190
  (function (PendingRequestType) {
@@ -16141,6 +16192,7 @@ var PendingRequestType;
16141
16192
  PendingRequestType["EmailChange"] = "EmailChange";
16142
16193
  PendingRequestType["RepAssignmentChange"] = "RepAssignmentChange";
16143
16194
  PendingRequestType["UserDeactivation"] = "UserDeactivation";
16195
+ PendingRequestType["UserReactivation"] = "UserReactivation";
16144
16196
  })(PendingRequestType || (PendingRequestType = {}));
16145
16197
 
16146
16198
  /**