@camstack/addon-provider-onvif 1.2.105 → 1.2.106
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 +133 -0
- package/dist/addon.mjs +133 -0
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -13277,6 +13277,70 @@ var LocationIconAssignmentSchema = object({
|
|
|
13277
13277
|
locationKey: string(),
|
|
13278
13278
|
icon: LocationIconIdSchema
|
|
13279
13279
|
});
|
|
13280
|
+
/**
|
|
13281
|
+
* One (location, description) assignment as it travels.
|
|
13282
|
+
*
|
|
13283
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13284
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13285
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13286
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13287
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13288
|
+
* off the location itself, on `locationIconKey`.
|
|
13289
|
+
*/
|
|
13290
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13291
|
+
locationKey: string(),
|
|
13292
|
+
description: string()
|
|
13293
|
+
});
|
|
13294
|
+
/**
|
|
13295
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13296
|
+
*
|
|
13297
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13298
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13299
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13300
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13301
|
+
*
|
|
13302
|
+
* ## Why not `zone`
|
|
13303
|
+
*
|
|
13304
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13305
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13306
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13307
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13308
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13309
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13310
|
+
*
|
|
13311
|
+
* ## The key
|
|
13312
|
+
*
|
|
13313
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13314
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13315
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13316
|
+
* silently-dropped location description.
|
|
13317
|
+
*
|
|
13318
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13319
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13320
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13321
|
+
*/
|
|
13322
|
+
/**
|
|
13323
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13324
|
+
* the locations inside it.
|
|
13325
|
+
*
|
|
13326
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13327
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13328
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13329
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13330
|
+
* it has not fetched yet.
|
|
13331
|
+
*
|
|
13332
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13333
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13334
|
+
*/
|
|
13335
|
+
var SiteZoneSchema = object({
|
|
13336
|
+
zoneKey: string(),
|
|
13337
|
+
label: string(),
|
|
13338
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13339
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13340
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13341
|
+
* the ones that most want grouping. */
|
|
13342
|
+
locationKeys: array(string())
|
|
13343
|
+
});
|
|
13280
13344
|
var ProviderStatusSchema = object({
|
|
13281
13345
|
connected: boolean(),
|
|
13282
13346
|
deviceCount: number(),
|
|
@@ -13875,6 +13939,33 @@ method(object({
|
|
|
13875
13939
|
}), _void(), {
|
|
13876
13940
|
kind: "mutation",
|
|
13877
13941
|
auth: "admin"
|
|
13942
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
13943
|
+
location: string(),
|
|
13944
|
+
description: string().max(400).nullable()
|
|
13945
|
+
}), _void(), {
|
|
13946
|
+
kind: "mutation",
|
|
13947
|
+
auth: "admin"
|
|
13948
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
13949
|
+
name: string(),
|
|
13950
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
13951
|
+
}), _void(), {
|
|
13952
|
+
kind: "mutation",
|
|
13953
|
+
auth: "admin"
|
|
13954
|
+
}), method(object({ name: string() }), _void(), {
|
|
13955
|
+
kind: "mutation",
|
|
13956
|
+
auth: "admin"
|
|
13957
|
+
}), method(object({
|
|
13958
|
+
from: string(),
|
|
13959
|
+
to: string()
|
|
13960
|
+
}), _void(), {
|
|
13961
|
+
kind: "mutation",
|
|
13962
|
+
auth: "admin"
|
|
13963
|
+
}), method(object({
|
|
13964
|
+
location: string(),
|
|
13965
|
+
zone: string().nullable()
|
|
13966
|
+
}), _void(), {
|
|
13967
|
+
kind: "mutation",
|
|
13968
|
+
auth: "admin"
|
|
13878
13969
|
}), method(object({
|
|
13879
13970
|
deviceId: number(),
|
|
13880
13971
|
disabled: boolean()
|
|
@@ -33670,6 +33761,12 @@ Object.freeze({
|
|
|
33670
33761
|
addonId: null,
|
|
33671
33762
|
access: "view"
|
|
33672
33763
|
},
|
|
33764
|
+
"deviceManager.listLocationDescriptions": {
|
|
33765
|
+
capName: "device-manager",
|
|
33766
|
+
capScope: "system",
|
|
33767
|
+
addonId: null,
|
|
33768
|
+
access: "view"
|
|
33769
|
+
},
|
|
33673
33770
|
"deviceManager.listLocationIcons": {
|
|
33674
33771
|
capName: "device-manager",
|
|
33675
33772
|
capScope: "system",
|
|
@@ -33688,6 +33785,12 @@ Object.freeze({
|
|
|
33688
33785
|
addonId: null,
|
|
33689
33786
|
access: "view"
|
|
33690
33787
|
},
|
|
33788
|
+
"deviceManager.listSiteZones": {
|
|
33789
|
+
capName: "device-manager",
|
|
33790
|
+
capScope: "system",
|
|
33791
|
+
addonId: null,
|
|
33792
|
+
access: "view"
|
|
33793
|
+
},
|
|
33691
33794
|
"deviceManager.listWrappersForCap": {
|
|
33692
33795
|
capName: "device-manager",
|
|
33693
33796
|
capScope: "system",
|
|
@@ -33772,12 +33875,24 @@ Object.freeze({
|
|
|
33772
33875
|
addonId: null,
|
|
33773
33876
|
access: "delete"
|
|
33774
33877
|
},
|
|
33878
|
+
"deviceManager.removeSiteZone": {
|
|
33879
|
+
capName: "device-manager",
|
|
33880
|
+
capScope: "system",
|
|
33881
|
+
addonId: null,
|
|
33882
|
+
access: "delete"
|
|
33883
|
+
},
|
|
33775
33884
|
"deviceManager.renameLocation": {
|
|
33776
33885
|
capName: "device-manager",
|
|
33777
33886
|
capScope: "system",
|
|
33778
33887
|
addonId: null,
|
|
33779
33888
|
access: "create"
|
|
33780
33889
|
},
|
|
33890
|
+
"deviceManager.renameSiteZone": {
|
|
33891
|
+
capName: "device-manager",
|
|
33892
|
+
capScope: "system",
|
|
33893
|
+
addonId: null,
|
|
33894
|
+
access: "create"
|
|
33895
|
+
},
|
|
33781
33896
|
"deviceManager.runDeviceAction": {
|
|
33782
33897
|
capName: "device-manager",
|
|
33783
33898
|
capScope: "system",
|
|
@@ -33820,12 +33935,24 @@ Object.freeze({
|
|
|
33820
33935
|
addonId: null,
|
|
33821
33936
|
access: "create"
|
|
33822
33937
|
},
|
|
33938
|
+
"deviceManager.setLocationDescription": {
|
|
33939
|
+
capName: "device-manager",
|
|
33940
|
+
capScope: "system",
|
|
33941
|
+
addonId: null,
|
|
33942
|
+
access: "create"
|
|
33943
|
+
},
|
|
33823
33944
|
"deviceManager.setLocationIcon": {
|
|
33824
33945
|
capName: "device-manager",
|
|
33825
33946
|
capScope: "system",
|
|
33826
33947
|
addonId: null,
|
|
33827
33948
|
access: "create"
|
|
33828
33949
|
},
|
|
33950
|
+
"deviceManager.setLocationZone": {
|
|
33951
|
+
capName: "device-manager",
|
|
33952
|
+
capScope: "system",
|
|
33953
|
+
addonId: null,
|
|
33954
|
+
access: "create"
|
|
33955
|
+
},
|
|
33829
33956
|
"deviceManager.setMetadata": {
|
|
33830
33957
|
capName: "device-manager",
|
|
33831
33958
|
capScope: "system",
|
|
@@ -33856,6 +33983,12 @@ Object.freeze({
|
|
|
33856
33983
|
addonId: null,
|
|
33857
33984
|
access: "create"
|
|
33858
33985
|
},
|
|
33986
|
+
"deviceManager.setSiteZone": {
|
|
33987
|
+
capName: "device-manager",
|
|
33988
|
+
capScope: "system",
|
|
33989
|
+
addonId: null,
|
|
33990
|
+
access: "create"
|
|
33991
|
+
},
|
|
33859
33992
|
"deviceManager.setStreamProfileMap": {
|
|
33860
33993
|
capName: "device-manager",
|
|
33861
33994
|
capScope: "system",
|
package/dist/addon.mjs
CHANGED
|
@@ -13278,6 +13278,70 @@ var LocationIconAssignmentSchema = object({
|
|
|
13278
13278
|
locationKey: string(),
|
|
13279
13279
|
icon: LocationIconIdSchema
|
|
13280
13280
|
});
|
|
13281
|
+
/**
|
|
13282
|
+
* One (location, description) assignment as it travels.
|
|
13283
|
+
*
|
|
13284
|
+
* Same key discipline as {@link LocationIconAssignmentSchema}, and for the same
|
|
13285
|
+
* reason: this lived for a while in the post-analysis addon's own settings,
|
|
13286
|
+
* keyed by a HAND-TYPED label matched exactly and case-sensitively. A rename in
|
|
13287
|
+
* the Locations page carried the icon and silently orphaned the description —
|
|
13288
|
+
* two authorities for one thing, joined by two different rules. Now both hang
|
|
13289
|
+
* off the location itself, on `locationIconKey`.
|
|
13290
|
+
*/
|
|
13291
|
+
var LocationDescriptionAssignmentSchema = object({
|
|
13292
|
+
locationKey: string(),
|
|
13293
|
+
description: string()
|
|
13294
|
+
});
|
|
13295
|
+
/**
|
|
13296
|
+
* A SITE ZONE — a named part of the property that several locations belong to.
|
|
13297
|
+
*
|
|
13298
|
+
* "Zona notte" holds every bedroom; "Zona giorno" the living room and the
|
|
13299
|
+
* kitchen. A camera belongs to exactly one location, and a location to at most
|
|
13300
|
+
* one zone, so a camera's zone is derived and never stored on the device: the
|
|
13301
|
+
* whole point of this entity is that grouping rooms touches no device row.
|
|
13302
|
+
*
|
|
13303
|
+
* ## Why not `zone`
|
|
13304
|
+
*
|
|
13305
|
+
* Because `zone` is already the most loaded word in this product: 612 source
|
|
13306
|
+
* files and 24 Italian strings where it means a DETECTION zone drawn on a
|
|
13307
|
+
* camera. The two are unrelated — one is a polygon in a frame, the other is a
|
|
13308
|
+
* set of rooms — and a reader who confuses them will look for a camera's
|
|
13309
|
+
* bedrooms. So the code says `siteZone` everywhere, and the UI frees the plain
|
|
13310
|
+
* word by calling the drawn one what it actually is: a detection zone.
|
|
13311
|
+
*
|
|
13312
|
+
* ## The key
|
|
13313
|
+
*
|
|
13314
|
+
* `siteZoneKey(label)` — trimmed, lower-cased, the SAME derivation locations
|
|
13315
|
+
* use (`locationIconKey`). Membership and the icon both hang off it, so a
|
|
13316
|
+
* case-only rename keeps them, which is exactly the orphaning that cost us a
|
|
13317
|
+
* silently-dropped location description.
|
|
13318
|
+
*
|
|
13319
|
+
* The icon vocabulary is the location one, unchanged: a zone is drawn on the
|
|
13320
|
+
* same two surfaces by the same glyph map, so a second vocabulary would be a
|
|
13321
|
+
* second thing to keep drawable (`scripts/check-location-icons-drawable.ts`).
|
|
13322
|
+
*/
|
|
13323
|
+
/**
|
|
13324
|
+
* One zone as it travels: its key, the label the operator typed, its icon and
|
|
13325
|
+
* the locations inside it.
|
|
13326
|
+
*
|
|
13327
|
+
* The LABEL is carried alongside the key because the key is lossy on purpose —
|
|
13328
|
+
* a surface must show "Zona notte", not "zona notte". Locations are carried
|
|
13329
|
+
* here, rather than left to a second call, because every consumer wants both
|
|
13330
|
+
* at once and a viewer that asked twice could render a zone whose membership
|
|
13331
|
+
* it has not fetched yet.
|
|
13332
|
+
*
|
|
13333
|
+
* `icon: null` means nobody chose one, which is NOT the fallback pin: only one
|
|
13334
|
+
* of those two is a choice, and a picker has to draw them differently.
|
|
13335
|
+
*/
|
|
13336
|
+
var SiteZoneSchema = object({
|
|
13337
|
+
zoneKey: string(),
|
|
13338
|
+
label: string(),
|
|
13339
|
+
icon: LocationIconIdSchema.nullable(),
|
|
13340
|
+
/** Folded location keys, sorted. A location listed here need not be
|
|
13341
|
+
* REGISTERED — devices carry labels nobody registered, and those rooms are
|
|
13342
|
+
* the ones that most want grouping. */
|
|
13343
|
+
locationKeys: array(string())
|
|
13344
|
+
});
|
|
13281
13345
|
var ProviderStatusSchema = object({
|
|
13282
13346
|
connected: boolean(),
|
|
13283
13347
|
deviceCount: number(),
|
|
@@ -13876,6 +13940,33 @@ method(object({
|
|
|
13876
13940
|
}), _void(), {
|
|
13877
13941
|
kind: "mutation",
|
|
13878
13942
|
auth: "admin"
|
|
13943
|
+
}), method(_void(), array(LocationDescriptionAssignmentSchema)), method(object({
|
|
13944
|
+
location: string(),
|
|
13945
|
+
description: string().max(400).nullable()
|
|
13946
|
+
}), _void(), {
|
|
13947
|
+
kind: "mutation",
|
|
13948
|
+
auth: "admin"
|
|
13949
|
+
}), method(_void(), array(SiteZoneSchema)), method(object({
|
|
13950
|
+
name: string(),
|
|
13951
|
+
icon: LocationIconIdSchema.nullable().optional()
|
|
13952
|
+
}), _void(), {
|
|
13953
|
+
kind: "mutation",
|
|
13954
|
+
auth: "admin"
|
|
13955
|
+
}), method(object({ name: string() }), _void(), {
|
|
13956
|
+
kind: "mutation",
|
|
13957
|
+
auth: "admin"
|
|
13958
|
+
}), method(object({
|
|
13959
|
+
from: string(),
|
|
13960
|
+
to: string()
|
|
13961
|
+
}), _void(), {
|
|
13962
|
+
kind: "mutation",
|
|
13963
|
+
auth: "admin"
|
|
13964
|
+
}), method(object({
|
|
13965
|
+
location: string(),
|
|
13966
|
+
zone: string().nullable()
|
|
13967
|
+
}), _void(), {
|
|
13968
|
+
kind: "mutation",
|
|
13969
|
+
auth: "admin"
|
|
13879
13970
|
}), method(object({
|
|
13880
13971
|
deviceId: number(),
|
|
13881
13972
|
disabled: boolean()
|
|
@@ -33671,6 +33762,12 @@ Object.freeze({
|
|
|
33671
33762
|
addonId: null,
|
|
33672
33763
|
access: "view"
|
|
33673
33764
|
},
|
|
33765
|
+
"deviceManager.listLocationDescriptions": {
|
|
33766
|
+
capName: "device-manager",
|
|
33767
|
+
capScope: "system",
|
|
33768
|
+
addonId: null,
|
|
33769
|
+
access: "view"
|
|
33770
|
+
},
|
|
33674
33771
|
"deviceManager.listLocationIcons": {
|
|
33675
33772
|
capName: "device-manager",
|
|
33676
33773
|
capScope: "system",
|
|
@@ -33689,6 +33786,12 @@ Object.freeze({
|
|
|
33689
33786
|
addonId: null,
|
|
33690
33787
|
access: "view"
|
|
33691
33788
|
},
|
|
33789
|
+
"deviceManager.listSiteZones": {
|
|
33790
|
+
capName: "device-manager",
|
|
33791
|
+
capScope: "system",
|
|
33792
|
+
addonId: null,
|
|
33793
|
+
access: "view"
|
|
33794
|
+
},
|
|
33692
33795
|
"deviceManager.listWrappersForCap": {
|
|
33693
33796
|
capName: "device-manager",
|
|
33694
33797
|
capScope: "system",
|
|
@@ -33773,12 +33876,24 @@ Object.freeze({
|
|
|
33773
33876
|
addonId: null,
|
|
33774
33877
|
access: "delete"
|
|
33775
33878
|
},
|
|
33879
|
+
"deviceManager.removeSiteZone": {
|
|
33880
|
+
capName: "device-manager",
|
|
33881
|
+
capScope: "system",
|
|
33882
|
+
addonId: null,
|
|
33883
|
+
access: "delete"
|
|
33884
|
+
},
|
|
33776
33885
|
"deviceManager.renameLocation": {
|
|
33777
33886
|
capName: "device-manager",
|
|
33778
33887
|
capScope: "system",
|
|
33779
33888
|
addonId: null,
|
|
33780
33889
|
access: "create"
|
|
33781
33890
|
},
|
|
33891
|
+
"deviceManager.renameSiteZone": {
|
|
33892
|
+
capName: "device-manager",
|
|
33893
|
+
capScope: "system",
|
|
33894
|
+
addonId: null,
|
|
33895
|
+
access: "create"
|
|
33896
|
+
},
|
|
33782
33897
|
"deviceManager.runDeviceAction": {
|
|
33783
33898
|
capName: "device-manager",
|
|
33784
33899
|
capScope: "system",
|
|
@@ -33821,12 +33936,24 @@ Object.freeze({
|
|
|
33821
33936
|
addonId: null,
|
|
33822
33937
|
access: "create"
|
|
33823
33938
|
},
|
|
33939
|
+
"deviceManager.setLocationDescription": {
|
|
33940
|
+
capName: "device-manager",
|
|
33941
|
+
capScope: "system",
|
|
33942
|
+
addonId: null,
|
|
33943
|
+
access: "create"
|
|
33944
|
+
},
|
|
33824
33945
|
"deviceManager.setLocationIcon": {
|
|
33825
33946
|
capName: "device-manager",
|
|
33826
33947
|
capScope: "system",
|
|
33827
33948
|
addonId: null,
|
|
33828
33949
|
access: "create"
|
|
33829
33950
|
},
|
|
33951
|
+
"deviceManager.setLocationZone": {
|
|
33952
|
+
capName: "device-manager",
|
|
33953
|
+
capScope: "system",
|
|
33954
|
+
addonId: null,
|
|
33955
|
+
access: "create"
|
|
33956
|
+
},
|
|
33830
33957
|
"deviceManager.setMetadata": {
|
|
33831
33958
|
capName: "device-manager",
|
|
33832
33959
|
capScope: "system",
|
|
@@ -33857,6 +33984,12 @@ Object.freeze({
|
|
|
33857
33984
|
addonId: null,
|
|
33858
33985
|
access: "create"
|
|
33859
33986
|
},
|
|
33987
|
+
"deviceManager.setSiteZone": {
|
|
33988
|
+
capName: "device-manager",
|
|
33989
|
+
capScope: "system",
|
|
33990
|
+
addonId: null,
|
|
33991
|
+
access: "create"
|
|
33992
|
+
},
|
|
33860
33993
|
"deviceManager.setStreamProfileMap": {
|
|
33861
33994
|
capName: "device-manager",
|
|
33862
33995
|
capScope: "system",
|