@camstack/types 1.2.412 → 1.2.414
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/capabilities/advanced-parameters.d.ts +17 -0
- package/dist/capabilities/ambient-light-sensor.cap.d.ts +5 -0
- package/dist/capabilities/battery.cap.d.ts +1 -0
- package/dist/capabilities/binary.cap.d.ts +5 -0
- package/dist/capabilities/composer.cap.d.ts +4 -0
- package/dist/capabilities/core-blocks.cap.d.ts +25 -0
- package/dist/capabilities/customize-catalog.d.ts +8 -0
- package/dist/capabilities/customize-spec.d.ts +2 -0
- package/dist/capabilities/humidity-sensor.cap.d.ts +5 -0
- package/dist/capabilities/power-meter.cap.d.ts +5 -0
- package/dist/capabilities/running-state.cap.d.ts +1 -0
- package/dist/capabilities/switch.cap.d.ts +5 -0
- package/dist/capabilities/temperature-sensor.cap.d.ts +5 -0
- package/dist/composition/cards/__fixtures__/stored-compositions.d.ts +3 -0
- package/dist/composition/cards/card-types.d.ts +77 -0
- package/dist/composition/cards/classify-field.d.ts +9 -0
- package/dist/composition/cards/convert-unit.d.ts +1 -0
- package/dist/composition/cards/decode.d.ts +3 -0
- package/dist/composition/cards/edit.d.ts +6 -0
- package/dist/composition/cards/encode.d.ts +3 -0
- package/dist/composition/cards/fill-status.d.ts +9 -0
- package/dist/composition/cards/formula-problem.d.ts +5 -0
- package/dist/composition/cards/index.d.ts +9 -0
- package/dist/composition/cards/role-cap.d.ts +1 -0
- package/dist/composition/composition-report.d.ts +2 -0
- package/dist/composition/index.d.ts +1 -0
- package/dist/composition/presets/numeric-transforms.d.ts +2 -0
- package/dist/generated/customize-catalog.d.ts +82 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +21745 -21132
- package/dist/index.mjs +21732 -21133
- package/package.json +1 -1
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { DeviceType } from '../device/device-type.js';
|
|
2
2
|
/**
|
|
3
3
|
* Customize catalog, projected from every `*.cap.ts` `customize` block.
|
|
4
|
-
*
|
|
4
|
+
* 11 caps. Field keys are `runtimeState` paths. No Zod.
|
|
5
5
|
*/
|
|
6
6
|
export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
7
|
+
readonly 'ambient-light-sensor': {
|
|
8
|
+
readonly version: 1;
|
|
9
|
+
readonly targets: readonly [];
|
|
10
|
+
readonly advancedParameters: readonly [{
|
|
11
|
+
readonly path: 'lux';
|
|
12
|
+
readonly kind: 'number';
|
|
13
|
+
readonly label: 'Illuminance';
|
|
14
|
+
readonly unit: 'lx';
|
|
15
|
+
}];
|
|
16
|
+
};
|
|
7
17
|
readonly battery: {
|
|
8
18
|
readonly version: 1;
|
|
9
19
|
readonly targets: readonly [{
|
|
@@ -41,6 +51,29 @@ export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
|
41
51
|
readonly when: 'add';
|
|
42
52
|
}];
|
|
43
53
|
}];
|
|
54
|
+
readonly advancedParameters: readonly [{
|
|
55
|
+
readonly path: 'binary';
|
|
56
|
+
readonly kind: 'boolean';
|
|
57
|
+
readonly label: 'Binary indicator';
|
|
58
|
+
}, {
|
|
59
|
+
readonly path: 'charging';
|
|
60
|
+
readonly kind: 'enum';
|
|
61
|
+
readonly label: 'Charging source';
|
|
62
|
+
readonly enumValues: readonly ["dc", "solar", "none", "unknown"];
|
|
63
|
+
}, {
|
|
64
|
+
readonly path: 'sleeping';
|
|
65
|
+
readonly kind: 'boolean';
|
|
66
|
+
readonly label: 'Sleeping';
|
|
67
|
+
}];
|
|
68
|
+
};
|
|
69
|
+
readonly binary: {
|
|
70
|
+
readonly version: 1;
|
|
71
|
+
readonly targets: readonly [];
|
|
72
|
+
readonly advancedParameters: readonly [{
|
|
73
|
+
readonly path: 'on';
|
|
74
|
+
readonly kind: 'boolean';
|
|
75
|
+
readonly label: 'On';
|
|
76
|
+
}];
|
|
44
77
|
};
|
|
45
78
|
readonly consumables: {
|
|
46
79
|
readonly version: 1;
|
|
@@ -108,6 +141,7 @@ export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
|
108
141
|
readonly when: 'add';
|
|
109
142
|
}];
|
|
110
143
|
}];
|
|
144
|
+
readonly advancedParameters: readonly [];
|
|
111
145
|
};
|
|
112
146
|
readonly doorbell: {
|
|
113
147
|
readonly version: 1;
|
|
@@ -141,6 +175,17 @@ export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
|
141
175
|
readonly highWater: 'composer-advance';
|
|
142
176
|
readonly debounceMs: 2000;
|
|
143
177
|
}];
|
|
178
|
+
readonly advancedParameters: readonly [];
|
|
179
|
+
};
|
|
180
|
+
readonly 'humidity-sensor': {
|
|
181
|
+
readonly version: 1;
|
|
182
|
+
readonly targets: readonly [];
|
|
183
|
+
readonly advancedParameters: readonly [{
|
|
184
|
+
readonly path: 'percent';
|
|
185
|
+
readonly kind: 'number';
|
|
186
|
+
readonly label: 'Humidity';
|
|
187
|
+
readonly unit: '%';
|
|
188
|
+
}];
|
|
144
189
|
};
|
|
145
190
|
readonly motion: {
|
|
146
191
|
readonly version: 1;
|
|
@@ -174,6 +219,22 @@ export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
|
174
219
|
readonly timeoutMs: 30000;
|
|
175
220
|
readonly sourceModes: readonly ["in-addition", "confirm", "replace"];
|
|
176
221
|
}];
|
|
222
|
+
readonly advancedParameters: readonly [];
|
|
223
|
+
};
|
|
224
|
+
readonly 'power-meter': {
|
|
225
|
+
readonly version: 1;
|
|
226
|
+
readonly targets: readonly [];
|
|
227
|
+
readonly advancedParameters: readonly [{
|
|
228
|
+
readonly path: 'kwhTotal';
|
|
229
|
+
readonly kind: 'number';
|
|
230
|
+
readonly label: 'Energy';
|
|
231
|
+
readonly unit: 'kWh';
|
|
232
|
+
}, {
|
|
233
|
+
readonly path: 'watts';
|
|
234
|
+
readonly kind: 'number';
|
|
235
|
+
readonly label: 'Power';
|
|
236
|
+
readonly unit: 'W';
|
|
237
|
+
}];
|
|
177
238
|
};
|
|
178
239
|
readonly 'running-state': {
|
|
179
240
|
readonly version: 1;
|
|
@@ -225,5 +286,25 @@ export declare const CAP_CUSTOMIZE_CATALOG: {
|
|
|
225
286
|
readonly sourceChangedAt: 'prefer';
|
|
226
287
|
}];
|
|
227
288
|
}];
|
|
289
|
+
readonly advancedParameters: readonly [];
|
|
290
|
+
};
|
|
291
|
+
readonly switch: {
|
|
292
|
+
readonly version: 1;
|
|
293
|
+
readonly targets: readonly [];
|
|
294
|
+
readonly advancedParameters: readonly [{
|
|
295
|
+
readonly path: 'on';
|
|
296
|
+
readonly kind: 'boolean';
|
|
297
|
+
readonly label: 'On';
|
|
298
|
+
}];
|
|
299
|
+
};
|
|
300
|
+
readonly 'temperature-sensor': {
|
|
301
|
+
readonly version: 1;
|
|
302
|
+
readonly targets: readonly [];
|
|
303
|
+
readonly advancedParameters: readonly [{
|
|
304
|
+
readonly path: 'celsius';
|
|
305
|
+
readonly kind: 'number';
|
|
306
|
+
readonly label: 'Temperature';
|
|
307
|
+
readonly unit: '°C';
|
|
308
|
+
}];
|
|
228
309
|
};
|
|
229
310
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -258,7 +258,9 @@ export { isRestoredCap, RESTORED_CAP_NAMES, RUNTIME_STATE_POLICY, runtimeStatePo
|
|
|
258
258
|
export { BucketAccumulator, bucketStartOf, type ClosedHistoryBucket, HISTORY_BUCKET_MS, MAX_REQUEUED_BUCKETS_PER_SERIES, } from './history/bucket-accumulator.js';
|
|
259
259
|
export { HISTORY_CATALOG, HISTORY_ITEM_CATALOG, HISTORY_NONE_CAPS, historyFieldsFor, } from './generated/history-catalog.js';
|
|
260
260
|
export { CAP_CUSTOMIZE_CATALOG } from './generated/customize-catalog.js';
|
|
261
|
-
export type { CustomizeCatalog, CustomizeCatalogField, CustomizeCatalogSource, CustomizeCatalogTarget, } from './capabilities/customize-catalog.js';
|
|
261
|
+
export type { CustomizeCatalog, CustomizeCatalogAdvancedParameter, CustomizeCatalogField, CustomizeCatalogSource, CustomizeCatalogTarget, } from './capabilities/customize-catalog.js';
|
|
262
|
+
export { compositionFillStatus, decodeCompositionToCards, formulaProblem, primaryCapForRole, problemsBlockSave, } from './composition/cards/index.js';
|
|
263
|
+
export type { CompositionFillStatus } from './composition/cards/index.js';
|
|
262
264
|
export type { CapabilityCustomizeSpec, CapabilityCustomizeTarget, CustomizeCardinality, EventCustomizeTarget, PulseEventCustomizeTarget, SpanEventCustomizeTarget, } from './capabilities/customize-spec.js';
|
|
263
265
|
export { CustomizeAssignmentStatusSchema, OverrideDraftSchema, type CustomizeAssignmentStatus, type OverrideDraft, } from './composition/customize/override-draft.js';
|
|
264
266
|
export { compileScalarOverride, type ScalarCompileInput, type ScalarValueKind, } from './composition/customize/scalar-compile.js';
|