@camstack/addon-provider-bosch 0.1.21 → 0.1.22
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/dist/{account-integration-offline-Ciq9CZa-.mjs → account-integration-offline-34gaYDfb.mjs} +1 -1
- package/dist/{account-integration-offline-CEg0JOfN.js → account-integration-offline-DZLHsBZF.js} +1 -1
- package/dist/{dist-CFPbdUpa.js → dist-CRlugVId.js} +441 -31
- package/dist/{dist-D9i3id5N.mjs → dist-DGlq0nuG.mjs} +436 -32
- package/dist/home-connect/addon.js +8 -17
- package/dist/home-connect/addon.mjs +8 -17
- package/dist/homecom/addon.js +2 -2
- package/dist/homecom/addon.mjs +2 -2
- package/dist/shc/addon.js +1 -1
- package/dist/shc/addon.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { a as parseOAuthCallback, i as loginFailureForAttempt, n as cascadeRemoveDevicesForIntegration, r as createSignInAttemptStore, t as setIntegrationDevicesOnline } from "../account-integration-offline-
|
|
1
|
+
import { A as _enum, C as DeviceType, D as defineCustomActions, E as customAction, F as record, I as string, L as union, M as literal, O as isSecretMarker, P as object, R as unknown, S as DeviceRole, T as createEvent, _ as runningFromDishwasherOperation, c as connectionTestCapability, d as dishwasherCapability, f as enumSensorCapability, g as powerMeterCapability, h as numericSensorCapability, i as RUNNING_STATE_COLD, j as array, k as isSecretMarkerLike, l as consumablesCapability, n as BaseDeviceProvider, o as binaryCapability, p as eventEmitterCapability, r as DishwasherOperationStateSchema, t as BaseDevice, u as deviceAdoptionCapability, v as runningStateCapability, w as errMsg, z as EventCategory } from "../dist-DGlq0nuG.mjs";
|
|
2
|
+
import { a as parseOAuthCallback, i as loginFailureForAttempt, n as cascadeRemoveDevicesForIntegration, r as createSignInAttemptStore, t as setIntegrationDevicesOnline } from "../account-integration-offline-34gaYDfb.mjs";
|
|
3
3
|
import { createHash, randomBytes } from "node:crypto";
|
|
4
4
|
import { connect } from "node:tls";
|
|
5
5
|
import { inflateRawSync } from "node:zlib";
|
|
@@ -4621,13 +4621,6 @@ var homeConnectDishwasherSchema = object({
|
|
|
4621
4621
|
var DISH_CAP = "dishwasher";
|
|
4622
4622
|
var CONSUMABLES_CAP = "consumables";
|
|
4623
4623
|
var RUNNING_CAP = "running-state";
|
|
4624
|
-
var RUNNING_COLD = {
|
|
4625
|
-
running: null,
|
|
4626
|
-
since: null,
|
|
4627
|
-
source: "native",
|
|
4628
|
-
phase: null,
|
|
4629
|
-
lastFetchedAt: 0
|
|
4630
|
-
};
|
|
4631
4624
|
var CONSUMABLES_EMPTY = {
|
|
4632
4625
|
items: [],
|
|
4633
4626
|
lastChangedAt: 0,
|
|
@@ -4665,10 +4658,7 @@ var HomeConnectDishwasherDevice = class extends BaseDevice {
|
|
|
4665
4658
|
this.registerConsumablesCap();
|
|
4666
4659
|
this.registerRunningCap();
|
|
4667
4660
|
this.runtimeState.setCapState(DISH_CAP, COLD_DISHWASHER_STATUS);
|
|
4668
|
-
this.runtimeState.setCapState(RUNNING_CAP,
|
|
4669
|
-
...RUNNING_COLD,
|
|
4670
|
-
lastFetchedAt: Date.now()
|
|
4671
|
-
});
|
|
4661
|
+
this.runtimeState.setCapState(RUNNING_CAP, RUNNING_STATE_COLD);
|
|
4672
4662
|
this.markOnline(false);
|
|
4673
4663
|
this.#unwatch = homeConnectConnections.watch(this.#brokerId, this.#haId, (event) => this.recomputeSlice(event));
|
|
4674
4664
|
this.recomputeSlice({ kind: "client" });
|
|
@@ -4698,7 +4688,7 @@ var HomeConnectDishwasherDevice = class extends BaseDevice {
|
|
|
4698
4688
|
lastValueAt
|
|
4699
4689
|
});
|
|
4700
4690
|
this.runtimeState.setCapState(DISH_CAP, slice);
|
|
4701
|
-
this.publishRunningSlice(slice
|
|
4691
|
+
this.publishRunningSlice(slice);
|
|
4702
4692
|
this.writeConsumables(dishwasherConsumablesFromFeatures(view));
|
|
4703
4693
|
this.markOnline(slice.availability !== "offline");
|
|
4704
4694
|
}
|
|
@@ -4802,11 +4792,12 @@ var HomeConnectDishwasherDevice = class extends BaseDevice {
|
|
|
4802
4792
|
});
|
|
4803
4793
|
}
|
|
4804
4794
|
registerRunningCap() {
|
|
4805
|
-
this.ctx.registerNativeCap(runningStateCapability, { getStatus: async () => this.runtimeState.getCapState(RUNNING_CAP) ??
|
|
4795
|
+
this.ctx.registerNativeCap(runningStateCapability, { getStatus: async () => this.runtimeState.getCapState(RUNNING_CAP) ?? RUNNING_STATE_COLD });
|
|
4806
4796
|
}
|
|
4807
|
-
publishRunningSlice(slice
|
|
4797
|
+
publishRunningSlice(slice) {
|
|
4798
|
+
const fetchedAt = Date.now();
|
|
4808
4799
|
const previous = this.runtimeState.getCapState(RUNNING_CAP);
|
|
4809
|
-
const next = runningFromDishwasherOperation(slice.operationState, slice.program, previous,
|
|
4800
|
+
const next = runningFromDishwasherOperation(slice.operationState, slice.program, previous, fetchedAt, slice.remainingSeconds);
|
|
4810
4801
|
this.runtimeState.setCapState(RUNNING_CAP, next);
|
|
4811
4802
|
}
|
|
4812
4803
|
};
|
package/dist/homecom/addon.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_dist = require("../dist-
|
|
3
|
-
const require_account_integration_offline = require("../account-integration-offline-
|
|
2
|
+
const require_dist = require("../dist-CRlugVId.js");
|
|
3
|
+
const require_account_integration_offline = require("../account-integration-offline-DZLHsBZF.js");
|
|
4
4
|
let node_crypto = require("node:crypto");
|
|
5
5
|
//#region src/homecom/config.ts
|
|
6
6
|
var HOMECOM_BRANDS = ["bosch", "buderus"];
|
package/dist/homecom/addon.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as
|
|
2
|
-
import { a as parseOAuthCallback, i as loginFailureForAttempt, n as cascadeRemoveDevicesForIntegration, r as createSignInAttemptStore, t as setIntegrationDevicesOnline } from "../account-integration-offline-
|
|
1
|
+
import { A as _enum, C as DeviceType, D as defineCustomActions, E as customAction, I as string, M as literal, N as number, O as isSecretMarker, P as object, c as connectionTestCapability, j as array, k as isSecretMarkerLike, n as BaseDeviceProvider, s as climateControlCapability, t as BaseDevice, u as deviceAdoptionCapability, w as errMsg, x as waterHeaterCapability, z as EventCategory } from "../dist-DGlq0nuG.mjs";
|
|
2
|
+
import { a as parseOAuthCallback, i as loginFailureForAttempt, n as cascadeRemoveDevicesForIntegration, r as createSignInAttemptStore, t as setIntegrationDevicesOnline } from "../account-integration-offline-34gaYDfb.mjs";
|
|
3
3
|
import { createHash, randomBytes } from "node:crypto";
|
|
4
4
|
//#region src/homecom/config.ts
|
|
5
5
|
var HOMECOM_BRANDS = ["bosch", "buderus"];
|
package/dist/shc/addon.js
CHANGED
|
@@ -2,7 +2,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
//#region \0rolldown/runtime.js
|
|
3
3
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
4
4
|
//#endregion
|
|
5
|
-
const require_dist = require("../dist-
|
|
5
|
+
const require_dist = require("../dist-CRlugVId.js");
|
|
6
6
|
let node_crypto = require("node:crypto");
|
|
7
7
|
let node_https = require("node:https");
|
|
8
8
|
let node_child_process = require("node:child_process");
|
package/dist/shc/addon.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as _enum, C as DeviceType, D as defineCustomActions, E as customAction, I as string, M as literal, N as number, P as object, a as batteryCapability, b as temperatureSensorCapability, c as connectionTestCapability, j as array, m as heatingValveCapability, n as BaseDeviceProvider, s as climateControlCapability, t as BaseDevice, u as deviceAdoptionCapability, w as errMsg, y as switchCapability, z as EventCategory } from "../dist-DGlq0nuG.mjs";
|
|
2
2
|
import { createRequire } from "node:module";
|
|
3
3
|
import { randomUUID } from "node:crypto";
|
|
4
4
|
import { request } from "node:https";
|
package/package.json
CHANGED