@camstack/types 1.2.247 → 1.2.249

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.
@@ -0,0 +1,24 @@
1
+ /**
2
+ * THE declared `{{var}}` vocabulary of notification templates.
3
+ *
4
+ * Before this file the only source was the maps three producers build at
5
+ * render time (`buildTemplateVars`, the timelapse and the digest
6
+ * `templateVars`), and every editor kept its own hand list — one advertised
7
+ * `{{tiles}}`, which nothing ever supplied. The parity specs in
8
+ * `addon-post-analysis` run each producer and compare its keys with this list,
9
+ * so the two cannot drift silently again.
10
+ */
11
+ import { NcRuleKindSchema, NcTemplateFamilySchema, NcTemplateFieldSchema, NcTemplateVarContextSchema, NcTemplateVarDescriptorSchema, NcTemplateVarGroupSchema, type NcTemplateVarContext, type NcTemplateVarDescriptor } from '../capabilities/notification-rules.cap.js';
12
+ export { NcRuleKindSchema, NcTemplateFamilySchema, NcTemplateFieldSchema, NcTemplateVarContextSchema, NcTemplateVarDescriptorSchema, NcTemplateVarGroupSchema, };
13
+ export type { NcTemplateFamily, NcTemplateField, NcTemplateVarContext, NcTemplateVarDescriptor, NcTemplateVarGroup, } from '../capabilities/notification-rules.cap.js';
14
+ export declare const NC_TEMPLATE_VARS: readonly NcTemplateVarDescriptor[];
15
+ /**
16
+ * The variables that have a value in `ctx`, in catalog order. Pure.
17
+ *
18
+ * `ctx` is trusted, typed input — untrusted input (a served/RPC boundary) is
19
+ * validated once against {@link NcTemplateVarContextSchema} at the cap/bridge
20
+ * boundary, not re-parsed on every call here (Task 4).
21
+ */
22
+ export declare function templateVarsFor(ctx: NcTemplateVarContext): NcTemplateVarDescriptor[];
23
+ /** True when `name` is supplied in `ctx`, dynamic families (`count_<class>`) included. */
24
+ export declare function isKnownTemplateVar(name: string, ctx: NcTemplateVarContext): boolean;
@@ -3743,6 +3743,8 @@ function createDeviceProxy(api, binding, opts) {
3743
3743
  setDeviceMuted: (input) => dispatch("notification-rules", "notificationRules", "setDeviceMuted", "mutation", input),
3744
3744
  testRule: (input) => dispatch("notification-rules", "notificationRules", "testRule", "mutation", input),
3745
3745
  getConditionCatalog: (input) => dispatch("notification-rules", "notificationRules", "getConditionCatalog", "query", input),
3746
+ getTemplateCatalog: (input) => dispatch("notification-rules", "notificationRules", "getTemplateCatalog", "query", input),
3747
+ previewTemplate: (input) => dispatch("notification-rules", "notificationRules", "previewTemplate", "mutation", input),
3746
3748
  getHistory: (input) => dispatch("notification-rules", "notificationRules", "getHistory", "query", input),
3747
3749
  resolveArtifactUrl: (input) => dispatch("notification-rules", "notificationRules", "resolveArtifactUrl", "query", input),
3748
3750
  listSnoozes: (input) => dispatch("notification-rules", "notificationRules", "listSnoozes", "query", input),
@@ -3743,6 +3743,8 @@ function createDeviceProxy(api, binding, opts) {
3743
3743
  setDeviceMuted: (input) => dispatch("notification-rules", "notificationRules", "setDeviceMuted", "mutation", input),
3744
3744
  testRule: (input) => dispatch("notification-rules", "notificationRules", "testRule", "mutation", input),
3745
3745
  getConditionCatalog: (input) => dispatch("notification-rules", "notificationRules", "getConditionCatalog", "query", input),
3746
+ getTemplateCatalog: (input) => dispatch("notification-rules", "notificationRules", "getTemplateCatalog", "query", input),
3747
+ previewTemplate: (input) => dispatch("notification-rules", "notificationRules", "previewTemplate", "mutation", input),
3746
3748
  getHistory: (input) => dispatch("notification-rules", "notificationRules", "getHistory", "query", input),
3747
3749
  resolveArtifactUrl: (input) => dispatch("notification-rules", "notificationRules", "resolveArtifactUrl", "query", input),
3748
3750
  listSnoozes: (input) => dispatch("notification-rules", "notificationRules", "listSnoozes", "query", input),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/types",
3
- "version": "1.2.247",
3
+ "version": "1.2.249",
4
4
  "description": "Shared types, interfaces, and model catalogs for the CamStack detection ecosystem",
5
5
  "keywords": [
6
6
  "camstack",