@camstack/addon-agent-ui 1.2.167 → 1.2.168
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 +75 -1
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -19958,6 +19958,39 @@ var NcAlarmSettingsSchema = object({
|
|
|
19958
19958
|
modeDelays: NcAlarmModeDelaysListSchema.default([])
|
|
19959
19959
|
});
|
|
19960
19960
|
/**
|
|
19961
|
+
* One named alarm configuration profile — a full {@link NcAlarmSettings} blob
|
|
19962
|
+
* (memberships including secure-on-arm, delays, announce targets). The id is
|
|
19963
|
+
* assigned by the server; clients show the name.
|
|
19964
|
+
*/
|
|
19965
|
+
var NcAlarmProfileMetaSchema = object({
|
|
19966
|
+
id: string().min(1).max(64),
|
|
19967
|
+
name: string().min(1).max(64),
|
|
19968
|
+
/** The seeded Default profile — cannot be deleted. */
|
|
19969
|
+
isDefault: boolean()
|
|
19970
|
+
});
|
|
19971
|
+
/**
|
|
19972
|
+
* Profiles ride on {@link NcAlarmConfig}: one globally active profile, whose
|
|
19973
|
+
* settings are what arm decisions and `settings` already expose. Switching
|
|
19974
|
+
* active applies that profile's blob onto the panel.
|
|
19975
|
+
*/
|
|
19976
|
+
var NcAlarmProfilesViewSchema = object({
|
|
19977
|
+
activeId: string().min(1),
|
|
19978
|
+
items: array(NcAlarmProfileMetaSchema).min(1)
|
|
19979
|
+
});
|
|
19980
|
+
var NcAlarmCreateProfileInputSchema = object({
|
|
19981
|
+
name: string().min(1).max(64),
|
|
19982
|
+
/**
|
|
19983
|
+
* Omit / undefined → system defaults (empty memberships, stock delays).
|
|
19984
|
+
* Set → clone that profile's settings.
|
|
19985
|
+
*/
|
|
19986
|
+
cloneFromId: string().min(1).max(64).optional()
|
|
19987
|
+
});
|
|
19988
|
+
var NcAlarmRenameProfileInputSchema = object({
|
|
19989
|
+
id: string().min(1).max(64),
|
|
19990
|
+
name: string().min(1).max(64)
|
|
19991
|
+
});
|
|
19992
|
+
var NcAlarmProfileIdInputSchema = object({ id: string().min(1).max(64) });
|
|
19993
|
+
/**
|
|
19961
19994
|
* Every field optional — a tab edits one control at a time.
|
|
19962
19995
|
*
|
|
19963
19996
|
* List fields and `modeDelays` are re-declared WITHOUT their defaults:
|
|
@@ -20068,6 +20101,11 @@ var NcAlarmConfigSchema = object({
|
|
|
20068
20101
|
*/
|
|
20069
20102
|
deviceId: number().int().nullable(),
|
|
20070
20103
|
settings: NcAlarmSettingsSchema,
|
|
20104
|
+
/**
|
|
20105
|
+
* Named configuration profiles. Optional so an older hub answer still parses;
|
|
20106
|
+
* a client without this field shows no picker (single implicit Default).
|
|
20107
|
+
*/
|
|
20108
|
+
profiles: NcAlarmProfilesViewSchema.optional(),
|
|
20071
20109
|
coverage: array(NcAlarmModeCoverageSchema),
|
|
20072
20110
|
/**
|
|
20073
20111
|
* The panel as it is NOW — state, what each mode would find open, what is
|
|
@@ -20194,6 +20232,18 @@ method(object({}), object({ rules: array(NcRuleSchema) }), { auth: "admin" }), m
|
|
|
20194
20232
|
}), method(object({}), NcAlarmConfigSchema, { auth: "admin" }), method(object({ patch: NcAlarmSettingsPatchSchema }), NcAlarmConfigSchema, {
|
|
20195
20233
|
kind: "mutation",
|
|
20196
20234
|
auth: "admin"
|
|
20235
|
+
}), method(NcAlarmCreateProfileInputSchema, NcAlarmConfigSchema, {
|
|
20236
|
+
kind: "mutation",
|
|
20237
|
+
auth: "admin"
|
|
20238
|
+
}), method(NcAlarmRenameProfileInputSchema, NcAlarmConfigSchema, {
|
|
20239
|
+
kind: "mutation",
|
|
20240
|
+
auth: "admin"
|
|
20241
|
+
}), method(NcAlarmProfileIdInputSchema, NcAlarmConfigSchema, {
|
|
20242
|
+
kind: "mutation",
|
|
20243
|
+
auth: "admin"
|
|
20244
|
+
}), method(NcAlarmProfileIdInputSchema, NcAlarmConfigSchema, {
|
|
20245
|
+
kind: "mutation",
|
|
20246
|
+
auth: "admin"
|
|
20197
20247
|
}), method(NcAlarmSensorsInputSchema, NcAlarmSensorsSchema, { auth: "admin" });
|
|
20198
20248
|
/**
|
|
20199
20249
|
* Zod schemas for persisted record types.
|
|
@@ -40739,12 +40789,24 @@ Object.freeze({
|
|
|
40739
40789
|
addonId: null,
|
|
40740
40790
|
access: "create"
|
|
40741
40791
|
},
|
|
40792
|
+
"notificationRules.activateAlarmProfile": {
|
|
40793
|
+
capName: "notification-rules",
|
|
40794
|
+
capScope: "system",
|
|
40795
|
+
addonId: null,
|
|
40796
|
+
access: "create"
|
|
40797
|
+
},
|
|
40742
40798
|
"notificationRules.cancelSnooze": {
|
|
40743
40799
|
capName: "notification-rules",
|
|
40744
40800
|
capScope: "system",
|
|
40745
40801
|
addonId: null,
|
|
40746
40802
|
access: "create"
|
|
40747
40803
|
},
|
|
40804
|
+
"notificationRules.createAlarmProfile": {
|
|
40805
|
+
capName: "notification-rules",
|
|
40806
|
+
capScope: "system",
|
|
40807
|
+
addonId: null,
|
|
40808
|
+
access: "create"
|
|
40809
|
+
},
|
|
40748
40810
|
"notificationRules.createRule": {
|
|
40749
40811
|
capName: "notification-rules",
|
|
40750
40812
|
capScope: "system",
|
|
@@ -40757,6 +40819,12 @@ Object.freeze({
|
|
|
40757
40819
|
addonId: null,
|
|
40758
40820
|
access: "create"
|
|
40759
40821
|
},
|
|
40822
|
+
"notificationRules.deleteAlarmProfile": {
|
|
40823
|
+
capName: "notification-rules",
|
|
40824
|
+
capScope: "system",
|
|
40825
|
+
addonId: null,
|
|
40826
|
+
access: "delete"
|
|
40827
|
+
},
|
|
40760
40828
|
"notificationRules.deleteRule": {
|
|
40761
40829
|
capName: "notification-rules",
|
|
40762
40830
|
capScope: "system",
|
|
@@ -40841,6 +40909,12 @@ Object.freeze({
|
|
|
40841
40909
|
addonId: null,
|
|
40842
40910
|
access: "view"
|
|
40843
40911
|
},
|
|
40912
|
+
"notificationRules.renameAlarmProfile": {
|
|
40913
|
+
capName: "notification-rules",
|
|
40914
|
+
capScope: "system",
|
|
40915
|
+
addonId: null,
|
|
40916
|
+
access: "create"
|
|
40917
|
+
},
|
|
40844
40918
|
"notificationRules.resolveArtifactUrl": {
|
|
40845
40919
|
capName: "notification-rules",
|
|
40846
40920
|
capScope: "system",
|
|
@@ -47920,7 +47994,7 @@ var AgentUIAddon = class extends BaseAddon {
|
|
|
47920
47994
|
capability: adminUiCapability,
|
|
47921
47995
|
provider: {
|
|
47922
47996
|
getStaticDir: async () => ({ staticDir: path.resolve(__dirname) }),
|
|
47923
|
-
getVersion: async () => ({ version: "1.2.
|
|
47997
|
+
getVersion: async () => ({ version: "1.2.168" })
|
|
47924
47998
|
}
|
|
47925
47999
|
}];
|
|
47926
48000
|
}
|