@tiba-spark/client-shared-lib 25.4.0-458 → 25.4.0-469

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.
@@ -8263,20 +8263,15 @@ class SmartparkCloudServiceProxy {
8263
8263
  }
8264
8264
  /**
8265
8265
  * @param x_Password (optional)
8266
- * @param smartparkId (optional)
8267
- * @param status (optional)
8266
+ * @param smartparkGuid (optional)
8268
8267
  * @return Success
8269
8268
  */
8270
- disconnect(x_Password, smartparkId, status) {
8269
+ disconnect(x_Password, smartparkGuid) {
8271
8270
  let url_ = this.baseUrl + "/api/services/smartpark/disconnect?";
8272
- if (smartparkId === null)
8273
- throw new Error("The parameter 'smartparkId' cannot be null.");
8274
- else if (smartparkId !== undefined)
8275
- url_ += "smartparkId=" + encodeURIComponent("" + smartparkId) + "&";
8276
- if (status === null)
8277
- throw new Error("The parameter 'status' cannot be null.");
8278
- else if (status !== undefined)
8279
- url_ += "status=" + encodeURIComponent("" + status) + "&";
8271
+ if (smartparkGuid === null)
8272
+ throw new Error("The parameter 'smartparkGuid' cannot be null.");
8273
+ else if (smartparkGuid !== undefined)
8274
+ url_ += "smartparkGuid=" + encodeURIComponent("" + smartparkGuid) + "&";
8280
8275
  url_ = url_.replace(/[?&]$/, "");
8281
8276
  let options_ = {
8282
8277
  observe: "response",
@@ -109706,8 +109701,8 @@ let SmartparkState = class SmartparkState {
109706
109701
  }
109707
109702
  }
109708
109703
  }
109709
- onDisconnectSmartparkAction(ctx, { smartParkGuid, smartParkId, password }) {
109710
- const smartpark$ = this.smartparkCloudServiceProxy.disconnect(password, smartParkId, SmartParkStatus.Nonactive);
109704
+ onDisconnectSmartparkAction(ctx, { smartParkGuid, password }) {
109705
+ const smartpark$ = this.smartparkCloudServiceProxy.disconnect(password, smartParkGuid);
109711
109706
  return smartpark$.pipe(tap({
109712
109707
  next: (v) => {
109713
109708
  const smartparks = (ctx.getState().smartparks || []).filter(sp => sp.guid !== smartParkGuid);