@camstack/addon-agent-ui 1.2.110 → 1.2.111
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 +56 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13244,6 +13244,43 @@ var ExposeInputSchema = object({
|
|
|
13244
13244
|
});
|
|
13245
13245
|
var UnexposeInputSchema = object({ deviceId: string() });
|
|
13246
13246
|
method(_void(), DeviceExportStatusSchema), method(_void(), array(DeviceKindSchema)), method(_void(), array(ExposedDeviceSchema)), method(ExposeInputSchema, _void(), { kind: "mutation" }), method(UnexposeInputSchema, _void(), { kind: "mutation" });
|
|
13247
|
+
/** Wire/storage schema for one icon id. */
|
|
13248
|
+
var LocationIconIdSchema = _enum([
|
|
13249
|
+
"map-pin",
|
|
13250
|
+
"house",
|
|
13251
|
+
"door-open",
|
|
13252
|
+
"sofa",
|
|
13253
|
+
"utensils",
|
|
13254
|
+
"bed-double",
|
|
13255
|
+
"bath",
|
|
13256
|
+
"briefcase",
|
|
13257
|
+
"car",
|
|
13258
|
+
"circle-parking",
|
|
13259
|
+
"route",
|
|
13260
|
+
"trees",
|
|
13261
|
+
"umbrella",
|
|
13262
|
+
"waves-ladder",
|
|
13263
|
+
"fence",
|
|
13264
|
+
"package",
|
|
13265
|
+
"warehouse",
|
|
13266
|
+
"store",
|
|
13267
|
+
"sun",
|
|
13268
|
+
"radar"
|
|
13269
|
+
]);
|
|
13270
|
+
/**
|
|
13271
|
+
* One (location, icon) assignment as it travels.
|
|
13272
|
+
*
|
|
13273
|
+
* `locationKey` is ALWAYS {@link locationIconKey} of the label — never the
|
|
13274
|
+
* operator's casing. The registry matches labels trimmed + case-insensitively
|
|
13275
|
+
* everywhere (`addLocation`, `removeLocation`, `renameLocation`), and a
|
|
13276
|
+
* case-only rename (`cucina` → `Cucina`) is a real edit this repo supports; a
|
|
13277
|
+
* map keyed on the displayed casing would orphan its entry on exactly that
|
|
13278
|
+
* edit. Consumers join by keying their own label through `locationIconKey`.
|
|
13279
|
+
*/
|
|
13280
|
+
var LocationIconAssignmentSchema = object({
|
|
13281
|
+
locationKey: string(),
|
|
13282
|
+
icon: LocationIconIdSchema
|
|
13283
|
+
});
|
|
13247
13284
|
var ProviderStatusSchema = object({
|
|
13248
13285
|
connected: boolean(),
|
|
13249
13286
|
deviceCount: number(),
|
|
@@ -13755,6 +13792,12 @@ method(object({
|
|
|
13755
13792
|
}), object({ moved: number() }), {
|
|
13756
13793
|
kind: "mutation",
|
|
13757
13794
|
auth: "admin"
|
|
13795
|
+
}), method(_void(), array(LocationIconAssignmentSchema)), method(object({
|
|
13796
|
+
location: string(),
|
|
13797
|
+
icon: LocationIconIdSchema.nullable()
|
|
13798
|
+
}), _void(), {
|
|
13799
|
+
kind: "mutation",
|
|
13800
|
+
auth: "admin"
|
|
13758
13801
|
}), method(object({
|
|
13759
13802
|
deviceId: number(),
|
|
13760
13803
|
disabled: boolean()
|
|
@@ -32578,6 +32621,12 @@ Object.freeze({
|
|
|
32578
32621
|
addonId: null,
|
|
32579
32622
|
access: "view"
|
|
32580
32623
|
},
|
|
32624
|
+
"deviceManager.listLocationIcons": {
|
|
32625
|
+
capName: "device-manager",
|
|
32626
|
+
capScope: "system",
|
|
32627
|
+
addonId: null,
|
|
32628
|
+
access: "view"
|
|
32629
|
+
},
|
|
32581
32630
|
"deviceManager.listLocations": {
|
|
32582
32631
|
capName: "device-manager",
|
|
32583
32632
|
capScope: "system",
|
|
@@ -32722,6 +32771,12 @@ Object.freeze({
|
|
|
32722
32771
|
addonId: null,
|
|
32723
32772
|
access: "create"
|
|
32724
32773
|
},
|
|
32774
|
+
"deviceManager.setLocationIcon": {
|
|
32775
|
+
capName: "device-manager",
|
|
32776
|
+
capScope: "system",
|
|
32777
|
+
addonId: null,
|
|
32778
|
+
access: "create"
|
|
32779
|
+
},
|
|
32725
32780
|
"deviceManager.setMetadata": {
|
|
32726
32781
|
capName: "device-manager",
|
|
32727
32782
|
capScope: "system",
|
|
@@ -39840,7 +39895,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
39840
39895
|
capability: adminUiCapability,
|
|
39841
39896
|
provider: {
|
|
39842
39897
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
39843
|
-
getVersion: async () => ({ version: "1.2.
|
|
39898
|
+
getVersion: async () => ({ version: "1.2.111" })
|
|
39844
39899
|
}
|
|
39845
39900
|
}];
|
|
39846
39901
|
}
|