@saritasa/renewaire-frontend-sdk 0.78.1 → 0.79.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.78.1
1
+ # @@saritasa/renewaire-frontend-sdk@0.79.0
2
2
 
3
3
  ```bash
4
- npm install @saritasa/renewaire-frontend-sdk@0.78.1 --save
4
+ npm install @saritasa/renewaire-frontend-sdk@0.79.0 --save
5
5
  ```
@@ -5212,6 +5212,44 @@ class UsersApiService extends BaseService {
5212
5212
  reportProgress: reportProgress,
5213
5213
  });
5214
5214
  }
5215
+ usersDeactivate(requestParameters, observe = "body", reportProgress = false, options) {
5216
+ const userId = requestParameters?.userId;
5217
+ if (userId === null || userId === undefined) {
5218
+ throw new Error("Required parameter userId was null or undefined when calling usersDeactivate.");
5219
+ }
5220
+ let localVarHeaders = this.defaultHeaders;
5221
+ // authentication (Bearer) required
5222
+ localVarHeaders = this.configuration.addCredentialToHeaders("Bearer", "Authorization", localVarHeaders, "Bearer ");
5223
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
5224
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
5225
+ localVarHeaders = localVarHeaders.set("Accept", localVarHttpHeaderAcceptSelected);
5226
+ }
5227
+ const localVarHttpContext = options?.context ?? new HttpContext();
5228
+ const localVarTransferCache = options?.transferCache ?? true;
5229
+ let responseType_ = "json";
5230
+ if (localVarHttpHeaderAcceptSelected) {
5231
+ if (localVarHttpHeaderAcceptSelected.startsWith("text")) {
5232
+ responseType_ = "text";
5233
+ }
5234
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
5235
+ responseType_ = "json";
5236
+ }
5237
+ else {
5238
+ responseType_ = "blob";
5239
+ }
5240
+ }
5241
+ let localVarPath = `/api/users/${this.configuration.encodeParam({ name: "userId", value: userId, in: "path", style: "simple", explode: false, dataType: "number", dataFormat: "int32" })}/deactivate`;
5242
+ const { basePath, withCredentials } = this.configuration;
5243
+ return this.httpClient.request("post", `${basePath}${localVarPath}`, {
5244
+ context: localVarHttpContext,
5245
+ responseType: responseType_,
5246
+ ...(withCredentials ? { withCredentials } : {}),
5247
+ headers: localVarHeaders,
5248
+ observe: observe,
5249
+ transferCache: localVarTransferCache,
5250
+ reportProgress: reportProgress,
5251
+ });
5252
+ }
5215
5253
  usersForgotPassword(requestParameters, observe = "body", reportProgress = false, options) {
5216
5254
  const forgotPasswordCommand = requestParameters?.forgotPasswordCommand;
5217
5255
  let localVarHeaders = this.defaultHeaders;
@@ -7793,12 +7831,13 @@ var UnitSystem;
7793
7831
  * Do not edit the class manually.
7794
7832
  */
7795
7833
  /**
7796
- * UserStatus<br />0 = Inactive<br />1 = Active
7834
+ * UserStatus<br />0 = Inactive<br />1 = Active<br />2 = Deactivated
7797
7835
  */
7798
7836
  var UserStatus;
7799
7837
  (function (UserStatus) {
7800
7838
  UserStatus["Inactive"] = "Inactive";
7801
7839
  UserStatus["Active"] = "Active";
7840
+ UserStatus["Deactivated"] = "Deactivated";
7802
7841
  })(UserStatus || (UserStatus = {}));
7803
7842
 
7804
7843
  /**