@camstack/types 1.2.248 → 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.
- package/dist/addon.js +1 -1
- package/dist/addon.mjs +1 -1
- package/dist/capabilities/index.d.ts +1 -1
- package/dist/capabilities/notification-rules.cap.d.ts +1224 -11
- package/dist/capabilities/osd-manager.cap.d.ts +24 -0
- package/dist/generated/addon-api.d.ts +14 -0
- package/dist/generated/method-access-map.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1040 -24
- package/dist/index.mjs +1026 -25
- package/dist/notification/template-vars.d.ts +24 -0
- package/dist/{sleep-9gM_dS-5.js → sleep-CvwUEq16.js} +2 -0
- package/dist/{sleep-PEo0-Fz9.mjs → sleep-pM_J7YnY.mjs} +2 -0
- package/package.json +1 -1
|
@@ -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),
|