@camstack/addon-provider-unifi 0.2.150 → 0.2.152
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/CHANGELOG.md +14 -0
- package/dist/addon.js +19718 -14850
- package/dist/addon.mjs +19707 -14847
- package/dist/index.js +12 -4
- package/dist/index.mjs +2 -2
- package/i18n/en.json +0 -2
- package/i18n/it.json +0 -2
- package/package.json +11 -5
package/dist/index.js
CHANGED
|
@@ -1,29 +1,37 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_addon = require("./addon.js");
|
|
3
|
+
exports.UNIFI_GATEWAY_ID = require_addon.UNIFI_GATEWAY_ID;
|
|
4
|
+
exports.UNIFI_SYSTEM = require_addon.UNIFI_SYSTEM;
|
|
3
5
|
exports.UnifiButtonActionSchema = require_addon.UnifiButtonActionSchema;
|
|
4
|
-
exports.
|
|
6
|
+
exports.UnifiClientRegistry = require_addon.UnifiClientRegistry;
|
|
5
7
|
exports.UnifiControllerResolver = require_addon.UnifiControllerResolver;
|
|
6
8
|
exports.UnifiFeatureDevice = require_addon.UnifiFeatureDevice;
|
|
7
9
|
exports.UnifiFeatureKindSchema = require_addon.UnifiFeatureKindSchema;
|
|
10
|
+
exports.UnifiGatewayDevice = require_addon.UnifiGatewayDevice;
|
|
8
11
|
exports.UnifiInfraDevice = require_addon.UnifiInfraDevice;
|
|
9
12
|
exports.UnifiIntegrationManager = require_addon.UnifiIntegrationManager;
|
|
10
13
|
exports.UnifiProviderAddon = require_addon.UnifiProviderAddon;
|
|
11
14
|
exports.UnifiSensorMetricSchema = require_addon.UnifiSensorMetricSchema;
|
|
12
15
|
exports.UnifiSwitchFeatureSchema = require_addon.UnifiSwitchFeatureSchema;
|
|
13
|
-
exports.
|
|
16
|
+
exports.buildConnectionFormSchema = require_addon.buildConnectionFormSchema;
|
|
14
17
|
exports.buildDiscoveryCandidates = require_addon.buildDiscoveryCandidates;
|
|
15
18
|
exports.buildInfraFeatures = require_addon.buildInfraFeatures;
|
|
19
|
+
exports.buildUnifiAdoptionProvider = require_addon.buildUnifiAdoptionProvider;
|
|
20
|
+
exports.buildUnifiDeviceAdopter = require_addon.buildUnifiDeviceAdopter;
|
|
16
21
|
exports.capForMetric = require_addon.capForMetric;
|
|
17
22
|
exports.clientNativeId = require_addon.clientNativeId;
|
|
23
|
+
exports.connectionFromSettings = require_addon.connectionFromSettings;
|
|
18
24
|
exports.defaultUnifiClientFactory = require_addon.defaultUnifiClientFactory;
|
|
19
25
|
exports.featuresEqual = require_addon.featuresEqual;
|
|
20
26
|
exports.infraNativeId = require_addon.infraNativeId;
|
|
21
27
|
exports.parseNativeId = require_addon.parseNativeId;
|
|
28
|
+
exports.reconcileInfraFeatures = require_addon.reconcileInfraFeatures;
|
|
29
|
+
exports.sameConnection = require_addon.sameConnection;
|
|
22
30
|
exports.settingsToConnection = require_addon.settingsToConnection;
|
|
23
|
-
exports.slugifyHost = require_addon.slugifyHost;
|
|
24
31
|
exports.unifiConnectionSchema = require_addon.unifiConnectionSchema;
|
|
25
|
-
exports.unifiControllerSchema = require_addon.unifiControllerSchema;
|
|
26
32
|
exports.unifiControllers = require_addon.unifiControllers;
|
|
27
33
|
exports.unifiFeatureDescriptorSchema = require_addon.unifiFeatureDescriptorSchema;
|
|
28
34
|
exports.unifiFeatureSchema = require_addon.unifiFeatureSchema;
|
|
35
|
+
exports.unifiGatewaySchema = require_addon.unifiGatewaySchema;
|
|
29
36
|
exports.unifiInfraSchema = require_addon.unifiInfraSchema;
|
|
37
|
+
exports.unifiStableId = require_addon.unifiStableId;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
export { UnifiButtonActionSchema,
|
|
1
|
+
import { A as settingsToConnection, C as UnifiButtonActionSchema, D as buildConnectionFormSchema, E as UnifiSwitchFeatureSchema, M as unifiFeatureDescriptorSchema, N as unifiFeatureSchema, O as connectionFromSettings, P as unifiInfraSchema, S as UNIFI_SYSTEM, T as UnifiSensorMetricSchema, UnifiProviderAddon, _ as buildInfraFeatures, a as defaultUnifiClientFactory, b as UnifiControllerResolver, c as UnifiGatewayDevice, d as buildDiscoveryCandidates, f as clientNativeId, g as UnifiFeatureDevice, h as unifiStableId, i as UnifiIntegrationManager, j as unifiConnectionSchema, k as sameConnection, l as unifiGatewaySchema, m as parseNativeId, n as buildUnifiDeviceAdopter, o as buildUnifiAdoptionProvider, p as infraNativeId, r as UnifiClientRegistry, s as UnifiInfraDevice, t as reconcileInfraFeatures, u as UNIFI_GATEWAY_ID, v as capForMetric, w as UnifiFeatureKindSchema, x as unifiControllers, y as featuresEqual } from "./addon.mjs";
|
|
2
|
+
export { UNIFI_GATEWAY_ID, UNIFI_SYSTEM, UnifiButtonActionSchema, UnifiClientRegistry, UnifiControllerResolver, UnifiFeatureDevice, UnifiFeatureKindSchema, UnifiGatewayDevice, UnifiInfraDevice, UnifiIntegrationManager, UnifiProviderAddon, UnifiSensorMetricSchema, UnifiSwitchFeatureSchema, buildConnectionFormSchema, buildDiscoveryCandidates, buildInfraFeatures, buildUnifiAdoptionProvider, buildUnifiDeviceAdopter, capForMetric, clientNativeId, connectionFromSettings, defaultUnifiClientFactory, featuresEqual, infraNativeId, parseNativeId, reconcileInfraFeatures, sameConnection, settingsToConnection, unifiConnectionSchema, unifiControllers, unifiFeatureDescriptorSchema, unifiFeatureSchema, unifiGatewaySchema, unifiInfraSchema, unifiStableId };
|
package/i18n/en.json
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"controller.s_identity.title": "Controller",
|
|
3
|
-
"controller.s_identity.name.label": "Name",
|
|
4
2
|
"controller.s_connection.title": "Connection",
|
|
5
3
|
"controller.s_connection.description": "Authenticate with a UniFi OS API key (preferred) or a local admin username and password.",
|
|
6
4
|
"controller.s_connection.host.label": "Controller host / IP",
|
package/i18n/it.json
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"controller.s_identity.title": "Controller",
|
|
3
|
-
"controller.s_identity.name.label": "Nome",
|
|
4
2
|
"controller.s_connection.title": "Connessione",
|
|
5
3
|
"controller.s_connection.description": "Autenticati con una API key UniFi OS (consigliata) o con utente e password di un admin locale.",
|
|
6
4
|
"controller.s_connection.host.label": "Host / IP del controller",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-provider-unifi",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.152",
|
|
4
4
|
"description": "UniFi Network controller device-provider addon for CamStack — local-controller infra switches/APs (as containers) + network-client presence. No cameras.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|
|
@@ -39,22 +39,28 @@
|
|
|
39
39
|
"category": "providers",
|
|
40
40
|
"name": "UniFi Network",
|
|
41
41
|
"version": "0.1.0",
|
|
42
|
-
"description": "
|
|
42
|
+
"description": "Add a UniFi Network controller as an integration (the connection and credentials are its settings); it adopts the controller as a Gateway, infra devices (switches / APs / gateways) as containers exposing per-port PoE, restart, LED and CPU/temp/clients sensors, plus network clients as presence. Cameras are not in scope.",
|
|
43
43
|
"entry": "./dist/addon.js",
|
|
44
44
|
"icon": "assets/icon.svg",
|
|
45
45
|
"color": "#0559c9",
|
|
46
46
|
"instanceMode": "multiple",
|
|
47
|
-
"mode": "
|
|
47
|
+
"mode": "account",
|
|
48
48
|
"execution": {
|
|
49
49
|
"placement": "hub-only"
|
|
50
50
|
},
|
|
51
51
|
"capabilities": [
|
|
52
52
|
{
|
|
53
53
|
"name": "device-provider"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "device-adoption"
|
|
54
57
|
}
|
|
55
58
|
]
|
|
56
59
|
}
|
|
57
|
-
]
|
|
60
|
+
],
|
|
61
|
+
"requires": {
|
|
62
|
+
"server": ">=1.2.719"
|
|
63
|
+
}
|
|
58
64
|
},
|
|
59
65
|
"files": [
|
|
60
66
|
"dist",
|
|
@@ -66,7 +72,7 @@
|
|
|
66
72
|
"scripts": {
|
|
67
73
|
"build": "vite build",
|
|
68
74
|
"dev": "vite build --watch",
|
|
69
|
-
"typecheck": "tsc --noEmit",
|
|
75
|
+
"typecheck": "tsc --noEmit -p tsconfig.spec.json",
|
|
70
76
|
"test": "vitest run",
|
|
71
77
|
"publish:npm": "npm publish --access public"
|
|
72
78
|
},
|