@camstack/types 1.2.420 → 1.2.421
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/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/composer.cap.d.ts +36 -0
- package/dist/capabilities/core-blocks.cap.d.ts +252 -0
- package/dist/capabilities/power-meter.cap.d.ts +1 -1
- package/dist/capabilities/running-state.cap.d.ts +1 -1
- package/dist/client.js +9 -1
- package/dist/client.mjs +9 -1
- package/dist/composition/composition.d.ts +12 -0
- package/dist/composition/helpers/appliance.d.ts +28 -0
- package/dist/composition/helpers/compile.d.ts +1 -1
- package/dist/composition/helpers/index.d.ts +2 -1
- package/dist/composition/helpers/save.d.ts +1 -1
- package/dist/composition/helpers/spec.d.ts +21 -1
- package/dist/{composition-OhpuespA.mjs → composition-B2rw5L29.mjs} +88 -3
- package/dist/{composition-re1aezX9.js → composition-B3Hkb6v7.js} +135 -2
- package/dist/device/appliance-export.d.ts +25 -0
- package/dist/device/cap-vocabulary/types.d.ts +10 -0
- package/dist/device/device-type.d.ts +8 -2
- package/dist/{err-msg-BXKzRBwg.mjs → err-msg-DIorGYeC.mjs} +7 -1
- package/dist/{err-msg-BhVbr0NX.js → err-msg-U7lLUMNz.js} +7 -1
- package/dist/generated/customize-catalog.d.ts +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +318 -118
- package/dist/index.mjs +307 -119
- package/dist/node.js +2 -2
- package/dist/node.mjs +2 -2
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_sleep = require("./sleep-YJ6FVsUu.js");
|
|
3
3
|
const require_event_category = require("./event-category-Ave2VSxY.js");
|
|
4
|
-
const require_err_msg = require("./err-msg-
|
|
4
|
+
const require_err_msg = require("./err-msg-U7lLUMNz.js");
|
|
5
5
|
//#region src/generated/cap-input-defaults.ts
|
|
6
6
|
/**
|
|
7
7
|
* AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
|
package/dist/addon.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { $ as expandCapMethods, $n as REVALIDATE_AFTER_MS, $r as isSecretMarker, $t as RecordFieldPathSchema, A as HF_REPO, An as RecordUniqueViolationError, Ar as buildSecretRef, B as withoutCallerStamp, Bn as RECORD_CLASSES, C as addonSliceHandleApi, Cn as InvalidRecordError, Dn as RecordNotFoundError, En as RECORDS_ERROR_CODES, Fn as UnknownRecordKindError, Fr as parseSecretRef, G as adminUiCapability, Gn as RECORD_MAX_DATA_BYTES, Hn as RECORD_DEFAULT_MAX_DATA_BYTES, I as deviceOpsCapability, In as asRecordsError, Jn as RECORD_QUERY_MAX, Jt as defineEntryKind, Kn as RECORD_MAX_INDEXES, L as viewerUiCapability, Ln as recordsErrorFromMessage, M as CAP_ADVANCE_FIELDS, Mn as RevConflictError, Mr as globalSecretScope, Nn as TransactRefusedError, Nr as isSecretRef, On as RecordSecretUnavailableError, Or as SECRET_REF_SCHEME, P as CAP_STATE_LEAVES, Pn as UnindexedFilterError, Pr as normalizeSecretOwner, Qn as resolveSecretViewsIn, Qr as isSecretFieldView, Qt as EntryDescriptorSchema, R as DEVICE_CHILDREN_BATCH_MAX, Rn as RECORD_BATCH_MAX, Rr as createEvent, Sn as ForeignSecretMarkerError, Tn as PlaintextSecretError, U as describeCustomActions, Un as RECORD_DELETE_BATCH, Vn as RECORD_DATABASES, Wn as RECORD_ID_MAX_LENGTH, Xn as RECORD_SETTINGS_MAX_ROWS, Xr as classifySecretWrite, Xt as createRecordsAccess, Yn as RECORD_SECRET_COLLECTION_PREFIX, Yr as SECRET_CLEAR, Yt as entryBody, Zn as RECORD_SWEEP_INTERVAL_MS, Zr as isSecretClear, Zt as assertTransactScope, _ as readErrorI18n, _n as collectZodSecretPaths, an as assertValidDeclaration, ar as registerKnownSecret, b as isDeviceScopedCap, bn as DeclarationRefusedError, c as asString, cn as REMOVE_LEAF, cr as PEER_BYTES_CHUNK_BYTES, ct as readNodePin, d as parseJsonUnknown, dn as parseSecretPath, dr as PEER_BYTES_TICKET_TTL_MS, dt as ReadinessRegistry, ei as isSecretMarkerLike, en as RecordIndexSchema, er as createSecretsAccess, f as hfModelUrl, fn as recordArrayItemPath, ft as ReadinessTimeoutError, g as ErrorI18nPayloadSchema, gr as BaseAddon, hn as secretArrayPrefixes, hr as DisposerChain, ht as scopeKey, in as StoredRecordKindDeclarationSchema, ir as knownSecretCount, jn as RecordsError, jr as formatSecretScope, kn as RecordTooLargeError, kr as arrayItemFieldPath, ln as collectSecretLeaves, lr as PEER_BYTES_MAX_OUTSTANDING, mn as recordSecretRef, ni as toSecretFieldView, nn as RecordKindNameSchema, nr as clearKnownSecrets, o as asJsonObject, on as declarationsOf, or as scrubKnownSecrets, p as BOOT_RECOVERY_BACKOFF_MS, pn as recordSecretCollection, pr as DATAPLANE_SECRET_HEADER, qn as RECORD_MAX_INDEX_FIELDS, qt as makeInMemoryRecords, r as maskUrlCredentials, rn as RecordRetentionSchema, rr as forgetKnownSecret, sn as defineRecordKinds, sr as shortSecretRefHash, st as nodePin, t as sleep, ti as makeSecretMarker, tn as RecordKindDeclarationSchema, tr as MIN_SCRUBBED_LENGTH, un as mapSecretLeaves, ur as PEER_BYTES_STALL_MS, ut as MODEL_FORMATS, vn as isZodSecret, vr as normalizeAddonInitResult, w as createEventBusSliceSource, wn as NoCallerError, x as createDeviceProxy, xn as FilterRequiredError, y as DEVICE_SCOPED_CAPS, yn as BatchTooLargeError, z as CALLER_STAMPED_CAPABILITIES, zn as RECORD_BATCH_MAX_BYTES, zr as emitReadiness } from "./sleep-bykKrTgu.mjs";
|
|
2
2
|
import { t as EventCategory } from "./event-category-CT-hz5Rb.mjs";
|
|
3
|
-
import { a as DeviceType, t as errMsg } from "./err-msg-
|
|
3
|
+
import { a as DeviceType, t as errMsg } from "./err-msg-DIorGYeC.mjs";
|
|
4
4
|
//#region src/generated/cap-input-defaults.ts
|
|
5
5
|
/**
|
|
6
6
|
* AUTO-GENERATED by scripts/generate-cap-input-defaults.ts — DO NOT EDIT.
|
|
@@ -174,6 +174,18 @@ export declare const ComposerBlockSchema: z.ZodObject<{
|
|
|
174
174
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
175
175
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
176
176
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
177
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
178
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
179
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
180
|
+
appliance: z.ZodEnum<{
|
|
181
|
+
washer: 'washer';
|
|
182
|
+
dryer: 'dryer';
|
|
183
|
+
dishwasher: 'dishwasher';
|
|
184
|
+
}>;
|
|
185
|
+
thresholdWatts: z.ZodNumber;
|
|
186
|
+
startDwellMs: z.ZodNumber;
|
|
187
|
+
stopDwellMs: z.ZodNumber;
|
|
188
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
177
189
|
}, z.core.$strip>], "kind">>;
|
|
178
190
|
}, z.core.$strip>;
|
|
179
191
|
}, z.core.$strip>;
|
|
@@ -366,6 +378,18 @@ export declare const ComposerApplyInputSchema: z.ZodObject<{
|
|
|
366
378
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
367
379
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
368
380
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
381
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
382
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
383
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
384
|
+
appliance: z.ZodEnum<{
|
|
385
|
+
washer: 'washer';
|
|
386
|
+
dryer: 'dryer';
|
|
387
|
+
dishwasher: 'dishwasher';
|
|
388
|
+
}>;
|
|
389
|
+
thresholdWatts: z.ZodNumber;
|
|
390
|
+
startDwellMs: z.ZodNumber;
|
|
391
|
+
stopDwellMs: z.ZodNumber;
|
|
392
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
369
393
|
}, z.core.$strip>], "kind">>;
|
|
370
394
|
}, z.core.$strip>;
|
|
371
395
|
}, z.core.$strip>>;
|
|
@@ -591,6 +615,18 @@ export declare const composerCapability: {
|
|
|
591
615
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
592
616
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
593
617
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
618
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
619
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
620
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
621
|
+
appliance: z.ZodEnum<{
|
|
622
|
+
washer: 'washer';
|
|
623
|
+
dryer: 'dryer';
|
|
624
|
+
dishwasher: 'dishwasher';
|
|
625
|
+
}>;
|
|
626
|
+
thresholdWatts: z.ZodNumber;
|
|
627
|
+
startDwellMs: z.ZodNumber;
|
|
628
|
+
stopDwellMs: z.ZodNumber;
|
|
629
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
594
630
|
}, z.core.$strip>], "kind">>;
|
|
595
631
|
}, z.core.$strip>;
|
|
596
632
|
}, z.core.$strip>>;
|
|
@@ -337,6 +337,18 @@ export declare const CoreBlockSourceSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
337
337
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
338
338
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
339
339
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
340
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
341
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
342
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
343
|
+
appliance: z.ZodEnum<{
|
|
344
|
+
washer: 'washer';
|
|
345
|
+
dryer: 'dryer';
|
|
346
|
+
dishwasher: 'dishwasher';
|
|
347
|
+
}>;
|
|
348
|
+
thresholdWatts: z.ZodNumber;
|
|
349
|
+
startDwellMs: z.ZodNumber;
|
|
350
|
+
stopDwellMs: z.ZodNumber;
|
|
351
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
340
352
|
}, z.core.$strip>], "kind">>;
|
|
341
353
|
}, z.core.$strip>;
|
|
342
354
|
}, z.core.$strip>], "kind">;
|
|
@@ -513,6 +525,18 @@ export declare const CompositionBlockInputSchema: z.ZodObject<{
|
|
|
513
525
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
514
526
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
515
527
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
528
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
529
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
530
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
531
|
+
appliance: z.ZodEnum<{
|
|
532
|
+
washer: 'washer';
|
|
533
|
+
dryer: 'dryer';
|
|
534
|
+
dishwasher: 'dishwasher';
|
|
535
|
+
}>;
|
|
536
|
+
thresholdWatts: z.ZodNumber;
|
|
537
|
+
startDwellMs: z.ZodNumber;
|
|
538
|
+
stopDwellMs: z.ZodNumber;
|
|
539
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
516
540
|
}, z.core.$strip>], "kind">>;
|
|
517
541
|
}, z.core.$strip>;
|
|
518
542
|
}, z.core.$strip>;
|
|
@@ -745,6 +769,18 @@ export declare const CoreBlockSchema: z.ZodObject<{
|
|
|
745
769
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
746
770
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
747
771
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
772
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
773
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
774
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
775
|
+
appliance: z.ZodEnum<{
|
|
776
|
+
washer: 'washer';
|
|
777
|
+
dryer: 'dryer';
|
|
778
|
+
dishwasher: 'dishwasher';
|
|
779
|
+
}>;
|
|
780
|
+
thresholdWatts: z.ZodNumber;
|
|
781
|
+
startDwellMs: z.ZodNumber;
|
|
782
|
+
stopDwellMs: z.ZodNumber;
|
|
783
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
748
784
|
}, z.core.$strip>], "kind">>;
|
|
749
785
|
}, z.core.$strip>;
|
|
750
786
|
}, z.core.$strip>], "kind">>;
|
|
@@ -1017,6 +1053,18 @@ export declare const CompositionViewSchema: z.ZodObject<{
|
|
|
1017
1053
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
1018
1054
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
1019
1055
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
1056
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1057
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
1058
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
1059
|
+
appliance: z.ZodEnum<{
|
|
1060
|
+
washer: 'washer';
|
|
1061
|
+
dryer: 'dryer';
|
|
1062
|
+
dishwasher: 'dishwasher';
|
|
1063
|
+
}>;
|
|
1064
|
+
thresholdWatts: z.ZodNumber;
|
|
1065
|
+
startDwellMs: z.ZodNumber;
|
|
1066
|
+
stopDwellMs: z.ZodNumber;
|
|
1067
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
1020
1068
|
}, z.core.$strip>], "kind">>;
|
|
1021
1069
|
}, z.core.$strip>;
|
|
1022
1070
|
}, z.core.$strip>], "kind">>;
|
|
@@ -1287,6 +1335,18 @@ export declare const CompositionListReadSchema: z.ZodDiscriminatedUnion<[z.ZodOb
|
|
|
1287
1335
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
1288
1336
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
1289
1337
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
1338
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1339
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
1340
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
1341
|
+
appliance: z.ZodEnum<{
|
|
1342
|
+
washer: 'washer';
|
|
1343
|
+
dryer: 'dryer';
|
|
1344
|
+
dishwasher: 'dishwasher';
|
|
1345
|
+
}>;
|
|
1346
|
+
thresholdWatts: z.ZodNumber;
|
|
1347
|
+
startDwellMs: z.ZodNumber;
|
|
1348
|
+
stopDwellMs: z.ZodNumber;
|
|
1349
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
1290
1350
|
}, z.core.$strip>], "kind">>;
|
|
1291
1351
|
}, z.core.$strip>;
|
|
1292
1352
|
}, z.core.$strip>], "kind">>;
|
|
@@ -1561,6 +1621,18 @@ export declare const CompositionGetReadSchema: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
1561
1621
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
1562
1622
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
1563
1623
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
1624
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1625
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
1626
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
1627
|
+
appliance: z.ZodEnum<{
|
|
1628
|
+
washer: 'washer';
|
|
1629
|
+
dryer: 'dryer';
|
|
1630
|
+
dishwasher: 'dishwasher';
|
|
1631
|
+
}>;
|
|
1632
|
+
thresholdWatts: z.ZodNumber;
|
|
1633
|
+
startDwellMs: z.ZodNumber;
|
|
1634
|
+
stopDwellMs: z.ZodNumber;
|
|
1635
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
1564
1636
|
}, z.core.$strip>], "kind">>;
|
|
1565
1637
|
}, z.core.$strip>;
|
|
1566
1638
|
}, z.core.$strip>], "kind">>;
|
|
@@ -1836,6 +1908,18 @@ export declare const CompositionCustomizationReadSchema: z.ZodDiscriminatedUnion
|
|
|
1836
1908
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
1837
1909
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
1838
1910
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
1911
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1912
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
1913
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
1914
|
+
appliance: z.ZodEnum<{
|
|
1915
|
+
washer: 'washer';
|
|
1916
|
+
dryer: 'dryer';
|
|
1917
|
+
dishwasher: 'dishwasher';
|
|
1918
|
+
}>;
|
|
1919
|
+
thresholdWatts: z.ZodNumber;
|
|
1920
|
+
startDwellMs: z.ZodNumber;
|
|
1921
|
+
stopDwellMs: z.ZodNumber;
|
|
1922
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
1839
1923
|
}, z.core.$strip>], "kind">>;
|
|
1840
1924
|
}, z.core.$strip>;
|
|
1841
1925
|
}, z.core.$strip>], "kind">>;
|
|
@@ -2131,6 +2215,18 @@ export declare const coreBlocksCapability: {
|
|
|
2131
2215
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
2132
2216
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
2133
2217
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
2218
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2219
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
2220
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
2221
|
+
appliance: z.ZodEnum<{
|
|
2222
|
+
washer: 'washer';
|
|
2223
|
+
dryer: 'dryer';
|
|
2224
|
+
dishwasher: 'dishwasher';
|
|
2225
|
+
}>;
|
|
2226
|
+
thresholdWatts: z.ZodNumber;
|
|
2227
|
+
startDwellMs: z.ZodNumber;
|
|
2228
|
+
stopDwellMs: z.ZodNumber;
|
|
2229
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
2134
2230
|
}, z.core.$strip>], "kind">>;
|
|
2135
2231
|
}, z.core.$strip>;
|
|
2136
2232
|
}, z.core.$strip>], "kind">>;
|
|
@@ -2365,6 +2461,18 @@ export declare const coreBlocksCapability: {
|
|
|
2365
2461
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
2366
2462
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
2367
2463
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
2464
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2465
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
2466
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
2467
|
+
appliance: z.ZodEnum<{
|
|
2468
|
+
washer: 'washer';
|
|
2469
|
+
dryer: 'dryer';
|
|
2470
|
+
dishwasher: 'dishwasher';
|
|
2471
|
+
}>;
|
|
2472
|
+
thresholdWatts: z.ZodNumber;
|
|
2473
|
+
startDwellMs: z.ZodNumber;
|
|
2474
|
+
stopDwellMs: z.ZodNumber;
|
|
2475
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
2368
2476
|
}, z.core.$strip>], "kind">>;
|
|
2369
2477
|
}, z.core.$strip>;
|
|
2370
2478
|
}, z.core.$strip>], "kind">>;
|
|
@@ -2613,6 +2721,18 @@ export declare const coreBlocksCapability: {
|
|
|
2613
2721
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
2614
2722
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
2615
2723
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
2724
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2725
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
2726
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
2727
|
+
appliance: z.ZodEnum<{
|
|
2728
|
+
washer: 'washer';
|
|
2729
|
+
dryer: 'dryer';
|
|
2730
|
+
dishwasher: 'dishwasher';
|
|
2731
|
+
}>;
|
|
2732
|
+
thresholdWatts: z.ZodNumber;
|
|
2733
|
+
startDwellMs: z.ZodNumber;
|
|
2734
|
+
stopDwellMs: z.ZodNumber;
|
|
2735
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
2616
2736
|
}, z.core.$strip>], "kind">>;
|
|
2617
2737
|
}, z.core.$strip>;
|
|
2618
2738
|
}, z.core.$strip>], "kind">>;
|
|
@@ -2859,6 +2979,18 @@ export declare const coreBlocksCapability: {
|
|
|
2859
2979
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
2860
2980
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
2861
2981
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
2982
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2983
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
2984
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
2985
|
+
appliance: z.ZodEnum<{
|
|
2986
|
+
washer: 'washer';
|
|
2987
|
+
dryer: 'dryer';
|
|
2988
|
+
dishwasher: 'dishwasher';
|
|
2989
|
+
}>;
|
|
2990
|
+
thresholdWatts: z.ZodNumber;
|
|
2991
|
+
startDwellMs: z.ZodNumber;
|
|
2992
|
+
stopDwellMs: z.ZodNumber;
|
|
2993
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
2862
2994
|
}, z.core.$strip>], "kind">>;
|
|
2863
2995
|
}, z.core.$strip>;
|
|
2864
2996
|
}, z.core.$strip>], "kind">>;
|
|
@@ -3101,6 +3233,18 @@ export declare const coreBlocksCapability: {
|
|
|
3101
3233
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
3102
3234
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
3103
3235
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
3236
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3237
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
3238
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
3239
|
+
appliance: z.ZodEnum<{
|
|
3240
|
+
washer: 'washer';
|
|
3241
|
+
dryer: 'dryer';
|
|
3242
|
+
dishwasher: 'dishwasher';
|
|
3243
|
+
}>;
|
|
3244
|
+
thresholdWatts: z.ZodNumber;
|
|
3245
|
+
startDwellMs: z.ZodNumber;
|
|
3246
|
+
stopDwellMs: z.ZodNumber;
|
|
3247
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
3104
3248
|
}, z.core.$strip>], "kind">>;
|
|
3105
3249
|
}, z.core.$strip>;
|
|
3106
3250
|
}, z.core.$strip>], "kind">>;
|
|
@@ -3348,6 +3492,18 @@ export declare const coreBlocksCapability: {
|
|
|
3348
3492
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
3349
3493
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
3350
3494
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
3495
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3496
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
3497
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
3498
|
+
appliance: z.ZodEnum<{
|
|
3499
|
+
washer: 'washer';
|
|
3500
|
+
dryer: 'dryer';
|
|
3501
|
+
dishwasher: 'dishwasher';
|
|
3502
|
+
}>;
|
|
3503
|
+
thresholdWatts: z.ZodNumber;
|
|
3504
|
+
startDwellMs: z.ZodNumber;
|
|
3505
|
+
stopDwellMs: z.ZodNumber;
|
|
3506
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
3351
3507
|
}, z.core.$strip>], "kind">>;
|
|
3352
3508
|
}, z.core.$strip>;
|
|
3353
3509
|
}, z.core.$strip>], "kind">>;
|
|
@@ -3622,6 +3778,18 @@ export declare const coreBlocksCapability: {
|
|
|
3622
3778
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
3623
3779
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
3624
3780
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
3781
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3782
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
3783
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
3784
|
+
appliance: z.ZodEnum<{
|
|
3785
|
+
washer: 'washer';
|
|
3786
|
+
dryer: 'dryer';
|
|
3787
|
+
dishwasher: 'dishwasher';
|
|
3788
|
+
}>;
|
|
3789
|
+
thresholdWatts: z.ZodNumber;
|
|
3790
|
+
startDwellMs: z.ZodNumber;
|
|
3791
|
+
stopDwellMs: z.ZodNumber;
|
|
3792
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
3625
3793
|
}, z.core.$strip>], "kind">>;
|
|
3626
3794
|
}, z.core.$strip>;
|
|
3627
3795
|
}, z.core.$strip>;
|
|
@@ -3852,6 +4020,18 @@ export declare const coreBlocksCapability: {
|
|
|
3852
4020
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
3853
4021
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
3854
4022
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
4023
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4024
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
4025
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
4026
|
+
appliance: z.ZodEnum<{
|
|
4027
|
+
washer: 'washer';
|
|
4028
|
+
dryer: 'dryer';
|
|
4029
|
+
dishwasher: 'dishwasher';
|
|
4030
|
+
}>;
|
|
4031
|
+
thresholdWatts: z.ZodNumber;
|
|
4032
|
+
startDwellMs: z.ZodNumber;
|
|
4033
|
+
stopDwellMs: z.ZodNumber;
|
|
4034
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
3855
4035
|
}, z.core.$strip>], "kind">>;
|
|
3856
4036
|
}, z.core.$strip>;
|
|
3857
4037
|
}, z.core.$strip>], "kind">>;
|
|
@@ -4030,6 +4210,18 @@ export declare const coreBlocksCapability: {
|
|
|
4030
4210
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
4031
4211
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
4032
4212
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
4213
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4214
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
4215
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
4216
|
+
appliance: z.ZodEnum<{
|
|
4217
|
+
washer: 'washer';
|
|
4218
|
+
dryer: 'dryer';
|
|
4219
|
+
dishwasher: 'dishwasher';
|
|
4220
|
+
}>;
|
|
4221
|
+
thresholdWatts: z.ZodNumber;
|
|
4222
|
+
startDwellMs: z.ZodNumber;
|
|
4223
|
+
stopDwellMs: z.ZodNumber;
|
|
4224
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
4033
4225
|
}, z.core.$strip>], "kind">>;
|
|
4034
4226
|
}, z.core.$strip>>;
|
|
4035
4227
|
}, z.core.$strip>;
|
|
@@ -4260,6 +4452,18 @@ export declare const coreBlocksCapability: {
|
|
|
4260
4452
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
4261
4453
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
4262
4454
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
4455
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4456
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
4457
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
4458
|
+
appliance: z.ZodEnum<{
|
|
4459
|
+
washer: 'washer';
|
|
4460
|
+
dryer: 'dryer';
|
|
4461
|
+
dishwasher: 'dishwasher';
|
|
4462
|
+
}>;
|
|
4463
|
+
thresholdWatts: z.ZodNumber;
|
|
4464
|
+
startDwellMs: z.ZodNumber;
|
|
4465
|
+
stopDwellMs: z.ZodNumber;
|
|
4466
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
4263
4467
|
}, z.core.$strip>], "kind">>;
|
|
4264
4468
|
}, z.core.$strip>;
|
|
4265
4469
|
}, z.core.$strip>], "kind">>;
|
|
@@ -4499,6 +4703,18 @@ export declare const coreBlocksCapability: {
|
|
|
4499
4703
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
4500
4704
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
4501
4705
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
4706
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4707
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
4708
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
4709
|
+
appliance: z.ZodEnum<{
|
|
4710
|
+
washer: 'washer';
|
|
4711
|
+
dryer: 'dryer';
|
|
4712
|
+
dishwasher: 'dishwasher';
|
|
4713
|
+
}>;
|
|
4714
|
+
thresholdWatts: z.ZodNumber;
|
|
4715
|
+
startDwellMs: z.ZodNumber;
|
|
4716
|
+
stopDwellMs: z.ZodNumber;
|
|
4717
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
4502
4718
|
}, z.core.$strip>], "kind">>;
|
|
4503
4719
|
}, z.core.$strip>;
|
|
4504
4720
|
}, z.core.$strip>], "kind">>;
|
|
@@ -4772,6 +4988,18 @@ export declare const coreBlocksCapability: {
|
|
|
4772
4988
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
4773
4989
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
4774
4990
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
4991
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4992
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
4993
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
4994
|
+
appliance: z.ZodEnum<{
|
|
4995
|
+
washer: 'washer';
|
|
4996
|
+
dryer: 'dryer';
|
|
4997
|
+
dishwasher: 'dishwasher';
|
|
4998
|
+
}>;
|
|
4999
|
+
thresholdWatts: z.ZodNumber;
|
|
5000
|
+
startDwellMs: z.ZodNumber;
|
|
5001
|
+
stopDwellMs: z.ZodNumber;
|
|
5002
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
4775
5003
|
}, z.core.$strip>], "kind">>;
|
|
4776
5004
|
}, z.core.$strip>;
|
|
4777
5005
|
}, z.core.$strip>], "kind">>;
|
|
@@ -5052,6 +5280,18 @@ export declare const coreBlocksCapability: {
|
|
|
5052
5280
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
5053
5281
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
5054
5282
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
5283
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5284
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
5285
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
5286
|
+
appliance: z.ZodEnum<{
|
|
5287
|
+
washer: 'washer';
|
|
5288
|
+
dryer: 'dryer';
|
|
5289
|
+
dishwasher: 'dishwasher';
|
|
5290
|
+
}>;
|
|
5291
|
+
thresholdWatts: z.ZodNumber;
|
|
5292
|
+
startDwellMs: z.ZodNumber;
|
|
5293
|
+
stopDwellMs: z.ZodNumber;
|
|
5294
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
5055
5295
|
}, z.core.$strip>], "kind">>;
|
|
5056
5296
|
}, z.core.$strip>;
|
|
5057
5297
|
}, z.core.$strip>], "kind">>;
|
|
@@ -5291,6 +5531,18 @@ export declare const coreBlocksCapability: {
|
|
|
5291
5531
|
aggregate: typeof import("../index.js").AggregateReducerSchema;
|
|
5292
5532
|
members: z.ZodArray<typeof import("../index.js").HelperMemberSchema>;
|
|
5293
5533
|
active: z.ZodOptional<typeof import("../index.js").ActiveCriterionSchema>;
|
|
5534
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
5535
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
5536
|
+
templateId: z.ZodLiteral<typeof import("../index.js").APPLIANCE_TEMPLATE_ID>;
|
|
5537
|
+
appliance: z.ZodEnum<{
|
|
5538
|
+
washer: 'washer';
|
|
5539
|
+
dryer: 'dryer';
|
|
5540
|
+
dishwasher: 'dishwasher';
|
|
5541
|
+
}>;
|
|
5542
|
+
thresholdWatts: z.ZodNumber;
|
|
5543
|
+
startDwellMs: z.ZodNumber;
|
|
5544
|
+
stopDwellMs: z.ZodNumber;
|
|
5545
|
+
member: typeof import("../index.js").HelperMemberSchema;
|
|
5294
5546
|
}, z.core.$strip>], "kind">>;
|
|
5295
5547
|
}, z.core.$strip>;
|
|
5296
5548
|
blockId: z.ZodOptional<z.ZodString>;
|
|
@@ -31,7 +31,7 @@ export declare const powerMeterCapability: {
|
|
|
31
31
|
readonly scope: 'device';
|
|
32
32
|
readonly deviceNative: true;
|
|
33
33
|
readonly mode: 'singleton';
|
|
34
|
-
readonly deviceTypes: readonly [DeviceType.Sensor];
|
|
34
|
+
readonly deviceTypes: readonly [DeviceType.Sensor, DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher];
|
|
35
35
|
readonly methods: {};
|
|
36
36
|
readonly status: {
|
|
37
37
|
readonly schema: z.ZodObject<{
|
|
@@ -81,7 +81,7 @@ export declare const runningStateCapability: {
|
|
|
81
81
|
readonly cap: 'running-state';
|
|
82
82
|
readonly stateField: 'running';
|
|
83
83
|
};
|
|
84
|
-
readonly deviceTypes: readonly [DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder];
|
|
84
|
+
readonly deviceTypes: readonly [DeviceType.Washer, DeviceType.Dryer, DeviceType.Dishwasher, DeviceType.Vacuum, DeviceType.LawnMower, DeviceType.MediaPlayer, DeviceType.WaterHeater, DeviceType.Humidifier, DeviceType.Fan, DeviceType.Climate, DeviceType.Thermostat, DeviceType.PetFeeder];
|
|
85
85
|
readonly apply: 'add';
|
|
86
86
|
readonly path: 'running';
|
|
87
87
|
readonly sources: readonly [{
|
package/dist/client.js
CHANGED
|
@@ -699,8 +699,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
699
699
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
700
700
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
701
701
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
702
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
702
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
703
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
703
704
|
DeviceType["Dishwasher"] = "dishwasher";
|
|
705
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
706
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
707
|
+
DeviceType["Washer"] = "washer";
|
|
708
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
709
|
+
DeviceType["Dryer"] = "dryer";
|
|
704
710
|
return DeviceType;
|
|
705
711
|
}({});
|
|
706
712
|
zod.z.enum(["new-session", "step-up"]);
|
|
@@ -26291,6 +26297,8 @@ var CONTAINER_CHILD_PRIORITY = [
|
|
|
26291
26297
|
"fan",
|
|
26292
26298
|
"vacuum",
|
|
26293
26299
|
"lawn-mower",
|
|
26300
|
+
"washer",
|
|
26301
|
+
"dryer",
|
|
26294
26302
|
"dishwasher",
|
|
26295
26303
|
"light",
|
|
26296
26304
|
"switch",
|
package/dist/client.mjs
CHANGED
|
@@ -698,8 +698,14 @@ var DeviceType = /* @__PURE__ */ function(DeviceType) {
|
|
|
698
698
|
DeviceType["PetFeeder"] = "pet-feeder";
|
|
699
699
|
/** Built-in dishwasher — program lifecycle, door / remote-start gates,
|
|
700
700
|
* salt and rinse-aid levels. Installed with the `dishwasher` cap.
|
|
701
|
-
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
701
|
+
* Sources: native Bosch Home Connect, reusable by similar integrations.
|
|
702
|
+
* A plug-built dishwasher carries running-state and power instead. */
|
|
702
703
|
DeviceType["Dishwasher"] = "dishwasher";
|
|
704
|
+
/** Washing machine. A plug-built one is running while its power stays
|
|
705
|
+
* above a threshold. No program cap — that surface is the dishwasher's. */
|
|
706
|
+
DeviceType["Washer"] = "washer";
|
|
707
|
+
/** Tumble dryer. Same plug-built running surface as {@link Washer}. */
|
|
708
|
+
DeviceType["Dryer"] = "dryer";
|
|
703
709
|
return DeviceType;
|
|
704
710
|
}({});
|
|
705
711
|
z.enum(["new-session", "step-up"]);
|
|
@@ -26290,6 +26296,8 @@ var CONTAINER_CHILD_PRIORITY = [
|
|
|
26290
26296
|
"fan",
|
|
26291
26297
|
"vacuum",
|
|
26292
26298
|
"lawn-mower",
|
|
26299
|
+
"washer",
|
|
26300
|
+
"dryer",
|
|
26293
26301
|
"dishwasher",
|
|
26294
26302
|
"light",
|
|
26295
26303
|
"switch",
|
|
@@ -776,6 +776,18 @@ export declare const CompositionSchema: z.ZodObject<{
|
|
|
776
776
|
aggregate: typeof import("./index.js").AggregateReducerSchema;
|
|
777
777
|
members: z.ZodArray<typeof import("./index.js").HelperMemberSchema>;
|
|
778
778
|
active: z.ZodOptional<typeof import("./index.js").ActiveCriterionSchema>;
|
|
779
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
780
|
+
kind: z.ZodLiteral<'appliance'>;
|
|
781
|
+
templateId: z.ZodLiteral<typeof import("./index.js").APPLIANCE_TEMPLATE_ID>;
|
|
782
|
+
appliance: z.ZodEnum<{
|
|
783
|
+
washer: 'washer';
|
|
784
|
+
dryer: 'dryer';
|
|
785
|
+
dishwasher: 'dishwasher';
|
|
786
|
+
}>;
|
|
787
|
+
thresholdWatts: z.ZodNumber;
|
|
788
|
+
startDwellMs: z.ZodNumber;
|
|
789
|
+
stopDwellMs: z.ZodNumber;
|
|
790
|
+
member: typeof import("./index.js").HelperMemberSchema;
|
|
779
791
|
}, z.core.$strip>], "kind">>;
|
|
780
792
|
}, z.core.$strip>;
|
|
781
793
|
export type Composition = z.infer<typeof CompositionSchema>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One power reading becomes a washer, dryer or dishwasher (D944 helper).
|
|
3
|
+
*
|
|
4
|
+
* Standby of the control board is under 5 W; a motor or a heater is far
|
|
5
|
+
* above that, so 5 W is the line. A door lock or a short pump spike is not
|
|
6
|
+
* a cycle, so running starts only after 30 s above the line.
|
|
7
|
+
*
|
|
8
|
+
* A wash, dry or dishwasher pause (soak, heat-wait, heater off between
|
|
9
|
+
* bursts) lasts several minutes. Ending the cycle on the first dip would
|
|
10
|
+
* report "finished" in the middle of the program, so the stop dwell is
|
|
11
|
+
* 10 minutes on every type. The number is stored per type so one machine
|
|
12
|
+
* can move later without moving the others.
|
|
13
|
+
*/
|
|
14
|
+
import { DeviceType } from '../../device/device-type.js';
|
|
15
|
+
import type { SourcePickRequest } from './source-pick.js';
|
|
16
|
+
export declare const APPLIANCE_TEMPLATE_ID: 'appliance';
|
|
17
|
+
export declare const APPLIANCE_KINDS: readonly ['washer', 'dryer', 'dishwasher'];
|
|
18
|
+
export type ApplianceKind = (typeof APPLIANCE_KINDS)[number];
|
|
19
|
+
export interface ApplianceDefaults {
|
|
20
|
+
readonly thresholdWatts: number;
|
|
21
|
+
readonly startDwellMs: number;
|
|
22
|
+
readonly stopDwellMs: number;
|
|
23
|
+
}
|
|
24
|
+
export declare const APPLIANCE_DEFAULTS: Readonly<Record<ApplianceKind, ApplianceDefaults>>;
|
|
25
|
+
export declare function applianceDeviceType(kind: ApplianceKind): DeviceType;
|
|
26
|
+
export declare function isApplianceKind(value: string): value is ApplianceKind;
|
|
27
|
+
/** The member step: one watts reading, from a sensor or from the plug itself. */
|
|
28
|
+
export declare function sourcePickForAppliance(): SourcePickRequest;
|
|
@@ -15,7 +15,7 @@ export interface HelperRefused {
|
|
|
15
15
|
readonly problems: readonly CompositionProblem[];
|
|
16
16
|
}
|
|
17
17
|
export type HelperCompileResult = HelperCompiled | HelperRefused;
|
|
18
|
-
/** Compile a
|
|
18
|
+
/** Compile a helper template to a new-device composition. Refusals are named. */
|
|
19
19
|
export declare function compileHelper(spec: HelperSpec): HelperCompileResult;
|
|
20
20
|
/** The built body, ignoring `helper`, so a save can demand one writer. */
|
|
21
21
|
export declare function sameHelperBody(stored: Composition, compiled: Composition): boolean;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { FAN_OUT_CONCURRENCY, LIGHT_SHARED_CAPS, type FanOutCall, type FanOutFailed, type FanOutMember, type FanOutMemberResult, type FanOutOk, type LightSharedCap, activeForReducer, fanOutTargets, reducerForActive, runFanOut, sharedColorModes, sharedLightCaps, } from './actuator.js';
|
|
2
2
|
export { type AggregateCounts, type AggregateEmpty, type AggregateOutcome, type AggregatePublish, type AggregateReadResult, type AggregateUnavailable, type AggregateValue, type EvaluateAggregateInput, evaluateAggregate, } from './aggregate.js';
|
|
3
|
+
export { APPLIANCE_DEFAULTS, APPLIANCE_KINDS, APPLIANCE_TEMPLATE_ID, type ApplianceDefaults, type ApplianceKind, applianceDeviceType, isApplianceKind, sourcePickForAppliance, } from './appliance.js';
|
|
3
4
|
export { type GroupTemplate, type HelperAccept, type HelperCompanion, GROUP_TEMPLATES, groupTemplate, } from './catalog.js';
|
|
4
5
|
export { type HelperCompileResult, type HelperCompiled, type HelperRefused, compileHelper, sameHelperBody, templateDeviceType, } from './compile.js';
|
|
5
6
|
export { type HelperMemberFact, helperSaveProblems, } from './save.js';
|
|
6
7
|
export { type SourcePick, type SourcePickAccept, type SourcePickHistory, type SourcePickRequest, sourcePickForTemplate, } from './source-pick.js';
|
|
7
|
-
export { ACTIVE_CRITERIA, AGGREGATE_REDUCERS, ActiveCriterionSchema, AggregateReducerSchema, BINARY_AGGREGATES, GROUP_TEMPLATE_IDS, GroupHelperSpecSchema, GroupTemplateIdSchema, HelperMemberSchema, HelperSpecSchema, MAX_HELPER_MEMBERS, NUMERIC_AGGREGATES, type ActiveCriterion, type AggregateReducer, type BinaryAggregate, type GroupHelperSpec, type GroupTemplateId, type HelperMember, type HelperSpec, type NumericAggregate, } from './spec.js';
|
|
8
|
+
export { ACTIVE_CRITERIA, AGGREGATE_REDUCERS, ActiveCriterionSchema, AggregateReducerSchema, BINARY_AGGREGATES, GROUP_TEMPLATE_IDS, ApplianceHelperSpecSchema, GroupHelperSpecSchema, GroupTemplateIdSchema, HelperMemberSchema, HelperSpecSchema, MAX_HELPER_MEMBERS, helperMembers, NUMERIC_AGGREGATES, type ActiveCriterion, type AggregateReducer, type BinaryAggregate, type ApplianceHelperSpec, type GroupHelperSpec, type GroupTemplateId, type HelperMember, type HelperSpec, type NumericAggregate, } from './spec.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Save-time checks a pure compile cannot make: the compiled features must be
|
|
3
3
|
* this spec's, and members that report a quantity must share one (D944 §4).
|
|
4
4
|
*/
|
|
5
|
-
import
|
|
5
|
+
import { DeviceType } from '../../device/device-type.js';
|
|
6
6
|
import type { ReadingQuantity } from '../../units/quantity.js';
|
|
7
7
|
import { type Composition } from '../composition.js';
|
|
8
8
|
import type { CompositionProblem } from '../composition-report.js';
|