@contractspec/example.analytics-dashboard 0.0.0-canary-20260113170453

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.
Files changed (98) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +281 -0
  3. package/dist/dashboard/dashboard.enum.d.ts +18 -0
  4. package/dist/dashboard/dashboard.enum.d.ts.map +1 -0
  5. package/dist/dashboard/dashboard.enum.js +43 -0
  6. package/dist/dashboard/dashboard.enum.js.map +1 -0
  7. package/dist/dashboard/dashboard.operation.d.ts +537 -0
  8. package/dist/dashboard/dashboard.operation.d.ts.map +1 -0
  9. package/dist/dashboard/dashboard.operation.js +213 -0
  10. package/dist/dashboard/dashboard.operation.js.map +1 -0
  11. package/dist/dashboard/dashboard.presentation.d.ts +9 -0
  12. package/dist/dashboard/dashboard.presentation.d.ts.map +1 -0
  13. package/dist/dashboard/dashboard.presentation.js +90 -0
  14. package/dist/dashboard/dashboard.presentation.js.map +1 -0
  15. package/dist/dashboard/dashboard.schema.d.ts +333 -0
  16. package/dist/dashboard/dashboard.schema.d.ts.map +1 -0
  17. package/dist/dashboard/dashboard.schema.js +236 -0
  18. package/dist/dashboard/dashboard.schema.js.map +1 -0
  19. package/dist/dashboard/dashboard.test-spec.d.ts +10 -0
  20. package/dist/dashboard/dashboard.test-spec.d.ts.map +1 -0
  21. package/dist/dashboard/dashboard.test-spec.js +233 -0
  22. package/dist/dashboard/dashboard.test-spec.js.map +1 -0
  23. package/dist/dashboard/index.d.ts +4 -0
  24. package/dist/dashboard/index.js +5 -0
  25. package/dist/dashboard.feature.d.ts +17 -0
  26. package/dist/dashboard.feature.d.ts.map +1 -0
  27. package/dist/dashboard.feature.js +177 -0
  28. package/dist/dashboard.feature.js.map +1 -0
  29. package/dist/docs/analytics-dashboard.docblock.d.ts +1 -0
  30. package/dist/docs/analytics-dashboard.docblock.js +114 -0
  31. package/dist/docs/analytics-dashboard.docblock.js.map +1 -0
  32. package/dist/docs/index.d.ts +1 -0
  33. package/dist/docs/index.js +1 -0
  34. package/dist/events.d.ts +149 -0
  35. package/dist/events.d.ts.map +1 -0
  36. package/dist/events.js +128 -0
  37. package/dist/events.js.map +1 -0
  38. package/dist/example.d.ts +7 -0
  39. package/dist/example.d.ts.map +1 -0
  40. package/dist/example.js +58 -0
  41. package/dist/example.js.map +1 -0
  42. package/dist/handlers/analytics.handlers.d.ts +122 -0
  43. package/dist/handlers/analytics.handlers.d.ts.map +1 -0
  44. package/dist/handlers/analytics.handlers.js +310 -0
  45. package/dist/handlers/analytics.handlers.js.map +1 -0
  46. package/dist/handlers/index.d.ts +2 -0
  47. package/dist/handlers/index.js +3 -0
  48. package/dist/index.d.ts +12 -0
  49. package/dist/index.js +13 -0
  50. package/dist/query/index.d.ts +4 -0
  51. package/dist/query/index.js +5 -0
  52. package/dist/query/query.enum.d.ts +10 -0
  53. package/dist/query/query.enum.d.ts.map +1 -0
  54. package/dist/query/query.enum.js +16 -0
  55. package/dist/query/query.enum.js.map +1 -0
  56. package/dist/query/query.operation.d.ts +181 -0
  57. package/dist/query/query.operation.d.ts.map +1 -0
  58. package/dist/query/query.operation.js +113 -0
  59. package/dist/query/query.operation.js.map +1 -0
  60. package/dist/query/query.presentation.d.ts +8 -0
  61. package/dist/query/query.presentation.d.ts.map +1 -0
  62. package/dist/query/query.presentation.js +60 -0
  63. package/dist/query/query.presentation.js.map +1 -0
  64. package/dist/query/query.schema.d.ts +143 -0
  65. package/dist/query/query.schema.d.ts.map +1 -0
  66. package/dist/query/query.schema.js +157 -0
  67. package/dist/query/query.schema.js.map +1 -0
  68. package/dist/query/query.test-spec.d.ts +8 -0
  69. package/dist/query/query.test-spec.d.ts.map +1 -0
  70. package/dist/query/query.test-spec.js +124 -0
  71. package/dist/query/query.test-spec.js.map +1 -0
  72. package/dist/query-engine/index.d.ts +106 -0
  73. package/dist/query-engine/index.d.ts.map +1 -0
  74. package/dist/query-engine/index.js +189 -0
  75. package/dist/query-engine/index.js.map +1 -0
  76. package/dist/seeders/index.d.ts +10 -0
  77. package/dist/seeders/index.d.ts.map +1 -0
  78. package/dist/seeders/index.js +19 -0
  79. package/dist/seeders/index.js.map +1 -0
  80. package/dist/ui/AnalyticsDashboard.d.ts +7 -0
  81. package/dist/ui/AnalyticsDashboard.d.ts.map +1 -0
  82. package/dist/ui/AnalyticsDashboard.js +265 -0
  83. package/dist/ui/AnalyticsDashboard.js.map +1 -0
  84. package/dist/ui/hooks/index.d.ts +2 -0
  85. package/dist/ui/hooks/index.js +5 -0
  86. package/dist/ui/hooks/useAnalyticsData.d.ts +23 -0
  87. package/dist/ui/hooks/useAnalyticsData.d.ts.map +1 -0
  88. package/dist/ui/hooks/useAnalyticsData.js +73 -0
  89. package/dist/ui/hooks/useAnalyticsData.js.map +1 -0
  90. package/dist/ui/index.d.ts +6 -0
  91. package/dist/ui/index.js +6 -0
  92. package/dist/ui/renderers/analytics.markdown.d.ts +28 -0
  93. package/dist/ui/renderers/analytics.markdown.d.ts.map +1 -0
  94. package/dist/ui/renderers/analytics.markdown.js +264 -0
  95. package/dist/ui/renderers/analytics.markdown.js.map +1 -0
  96. package/dist/ui/renderers/index.d.ts +2 -0
  97. package/dist/ui/renderers/index.js +3 -0
  98. package/package.json +101 -0
@@ -0,0 +1,177 @@
1
+ import { defineFeature } from "@contractspec/lib.contracts";
2
+
3
+ //#region src/dashboard.feature.ts
4
+ /**
5
+ * Analytics Dashboard Feature Module
6
+ *
7
+ * Comprehensive analytics and dashboarding solution for data visualization
8
+ * and reporting across the platform.
9
+ *
10
+ * This feature module bundles all dashboard and query operations, events,
11
+ * and presentations into an installable feature following FeatureModuleSpec.
12
+ */
13
+ const AnalyticsDashboardFeature = defineFeature({
14
+ meta: {
15
+ key: "analytics-dashboard",
16
+ version: "1.0.0",
17
+ title: "Analytics Dashboard",
18
+ description: "Analytics dashboards with customizable widgets and queries",
19
+ domain: "analytics",
20
+ owners: ["@analytics-dashboard"],
21
+ tags: [
22
+ "analytics",
23
+ "dashboards",
24
+ "widgets",
25
+ "queries"
26
+ ],
27
+ stability: "experimental"
28
+ },
29
+ operations: [
30
+ {
31
+ key: "analytics.dashboard.create",
32
+ version: "1.0.0"
33
+ },
34
+ {
35
+ key: "analytics.dashboard.list",
36
+ version: "1.0.0"
37
+ },
38
+ {
39
+ key: "analytics.dashboard.get",
40
+ version: "1.0.0"
41
+ },
42
+ {
43
+ key: "analytics.widget.add",
44
+ version: "1.0.0"
45
+ },
46
+ {
47
+ key: "analytics.query.create",
48
+ version: "1.0.0"
49
+ },
50
+ {
51
+ key: "analytics.query.execute",
52
+ version: "1.0.0"
53
+ }
54
+ ],
55
+ events: [
56
+ {
57
+ key: "analytics.dashboard.created",
58
+ version: "1.0.0"
59
+ },
60
+ {
61
+ key: "analytics.widget.added",
62
+ version: "1.0.0"
63
+ },
64
+ {
65
+ key: "analytics.query.created",
66
+ version: "1.0.0"
67
+ }
68
+ ],
69
+ presentations: [
70
+ {
71
+ key: "analytics.dashboard.list",
72
+ version: "1.0.0"
73
+ },
74
+ {
75
+ key: "analytics.dashboard.view",
76
+ version: "1.0.0"
77
+ },
78
+ {
79
+ key: "analytics.dashboard.editor",
80
+ version: "1.0.0"
81
+ },
82
+ {
83
+ key: "analytics.query.list",
84
+ version: "1.0.0"
85
+ },
86
+ {
87
+ key: "analytics.query.builder",
88
+ version: "1.0.0"
89
+ }
90
+ ],
91
+ opToPresentation: [
92
+ {
93
+ op: {
94
+ key: "analytics.dashboard.list",
95
+ version: "1.0.0"
96
+ },
97
+ pres: {
98
+ key: "analytics.dashboard.list",
99
+ version: "1.0.0"
100
+ }
101
+ },
102
+ {
103
+ op: {
104
+ key: "analytics.dashboard.get",
105
+ version: "1.0.0"
106
+ },
107
+ pres: {
108
+ key: "analytics.dashboard.view",
109
+ version: "1.0.0"
110
+ }
111
+ },
112
+ {
113
+ op: {
114
+ key: "analytics.dashboard.create",
115
+ version: "1.0.0"
116
+ },
117
+ pres: {
118
+ key: "analytics.dashboard.editor",
119
+ version: "1.0.0"
120
+ }
121
+ },
122
+ {
123
+ op: {
124
+ key: "analytics.query.create",
125
+ version: "1.0.0"
126
+ },
127
+ pres: {
128
+ key: "analytics.query.builder",
129
+ version: "1.0.0"
130
+ }
131
+ }
132
+ ],
133
+ presentationsTargets: [
134
+ {
135
+ key: "analytics.dashboard.list",
136
+ version: "1.0.0",
137
+ targets: [
138
+ "react",
139
+ "markdown",
140
+ "application/json"
141
+ ]
142
+ },
143
+ {
144
+ key: "analytics.dashboard.view",
145
+ version: "1.0.0",
146
+ targets: ["react", "markdown"]
147
+ },
148
+ {
149
+ key: "analytics.dashboard.editor",
150
+ version: "1.0.0",
151
+ targets: ["react"]
152
+ },
153
+ {
154
+ key: "analytics.query.builder",
155
+ version: "1.0.0",
156
+ targets: ["react"]
157
+ }
158
+ ],
159
+ capabilities: { requires: [
160
+ {
161
+ key: "identity",
162
+ version: "1.0.0"
163
+ },
164
+ {
165
+ key: "metering",
166
+ version: "1.0.0"
167
+ },
168
+ {
169
+ key: "audit-trail",
170
+ version: "1.0.0"
171
+ }
172
+ ] }
173
+ });
174
+
175
+ //#endregion
176
+ export { AnalyticsDashboardFeature };
177
+ //# sourceMappingURL=dashboard.feature.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.feature.js","names":[],"sources":["../src/dashboard.feature.ts"],"sourcesContent":["/**\n * Analytics Dashboard Feature Module\n *\n * Comprehensive analytics and dashboarding solution for data visualization\n * and reporting across the platform.\n *\n * This feature module bundles all dashboard and query operations, events,\n * and presentations into an installable feature following FeatureModuleSpec.\n */\n\nimport { defineFeature } from '@contractspec/lib.contracts';\n\n// ============ Feature Definition ============\n\nexport const AnalyticsDashboardFeature = defineFeature({\n meta: {\n key: 'analytics-dashboard',\n version: '1.0.0',\n title: 'Analytics Dashboard',\n description: 'Analytics dashboards with customizable widgets and queries',\n domain: 'analytics',\n owners: ['@analytics-dashboard'],\n tags: ['analytics', 'dashboards', 'widgets', 'queries'],\n stability: 'experimental',\n },\n\n // ============ Contract Operations ============\n // All contract operations included in this feature (OpRef[])\n operations: [\n // Dashboard operations\n { key: 'analytics.dashboard.create', version: '1.0.0' },\n { key: 'analytics.dashboard.list', version: '1.0.0' },\n { key: 'analytics.dashboard.get', version: '1.0.0' },\n\n // Widget operations\n { key: 'analytics.widget.add', version: '1.0.0' },\n\n // Query operations\n { key: 'analytics.query.create', version: '1.0.0' },\n { key: 'analytics.query.execute', version: '1.0.0' },\n ],\n\n // ============ Events ============\n // Events emitted by this feature (EventRef[])\n events: [\n // Dashboard events\n { key: 'analytics.dashboard.created', version: '1.0.0' },\n\n // Widget events\n { key: 'analytics.widget.added', version: '1.0.0' },\n\n // Query events\n { key: 'analytics.query.created', version: '1.0.0' },\n ],\n\n // ============ Presentations ============\n // Presentations associated with this feature (PresentationRef[])\n presentations: [\n // Dashboard presentations\n { key: 'analytics.dashboard.list', version: '1.0.0' },\n { key: 'analytics.dashboard.view', version: '1.0.0' },\n { key: 'analytics.dashboard.editor', version: '1.0.0' },\n\n // Query presentations\n { key: 'analytics.query.list', version: '1.0.0' },\n { key: 'analytics.query.builder', version: '1.0.0' },\n ],\n\n // ============ Op-to-Presentation Links ============\n // Links operations to their primary presentations\n opToPresentation: [\n {\n op: { key: 'analytics.dashboard.list', version: '1.0.0' },\n pres: { key: 'analytics.dashboard.list', version: '1.0.0' },\n },\n {\n op: { key: 'analytics.dashboard.get', version: '1.0.0' },\n pres: { key: 'analytics.dashboard.view', version: '1.0.0' },\n },\n {\n op: { key: 'analytics.dashboard.create', version: '1.0.0' },\n pres: { key: 'analytics.dashboard.editor', version: '1.0.0' },\n },\n {\n op: { key: 'analytics.query.create', version: '1.0.0' },\n pres: { key: 'analytics.query.builder', version: '1.0.0' },\n },\n ],\n\n // ============ Presentation Targets ============\n // Target requirements for multi-surface rendering\n presentationsTargets: [\n {\n key: 'analytics.dashboard.list',\n version: '1.0.0',\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n key: 'analytics.dashboard.view',\n version: '1.0.0',\n targets: ['react', 'markdown'],\n },\n {\n key: 'analytics.dashboard.editor',\n version: '1.0.0',\n targets: ['react'],\n },\n {\n key: 'analytics.query.builder',\n version: '1.0.0',\n targets: ['react'],\n },\n ],\n\n // ============ Capabilities ============\n // Capability requirements for this feature\n capabilities: {\n requires: [\n { key: 'identity', version: '1.0.0' },\n { key: 'metering', version: '1.0.0' },\n { key: 'audit-trail', version: '1.0.0' },\n ],\n },\n});\n"],"mappings":";;;;;;;;;;;;AAcA,MAAa,4BAA4B,cAAc;CACrD,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aAAa;EACb,QAAQ;EACR,QAAQ,CAAC,uBAAuB;EAChC,MAAM;GAAC;GAAa;GAAc;GAAW;GAAU;EACvD,WAAW;EACZ;CAID,YAAY;EAEV;GAAE,KAAK;GAA8B,SAAS;GAAS;EACvD;GAAE,KAAK;GAA4B,SAAS;GAAS;EACrD;GAAE,KAAK;GAA2B,SAAS;GAAS;EAGpD;GAAE,KAAK;GAAwB,SAAS;GAAS;EAGjD;GAAE,KAAK;GAA0B,SAAS;GAAS;EACnD;GAAE,KAAK;GAA2B,SAAS;GAAS;EACrD;CAID,QAAQ;EAEN;GAAE,KAAK;GAA+B,SAAS;GAAS;EAGxD;GAAE,KAAK;GAA0B,SAAS;GAAS;EAGnD;GAAE,KAAK;GAA2B,SAAS;GAAS;EACrD;CAID,eAAe;EAEb;GAAE,KAAK;GAA4B,SAAS;GAAS;EACrD;GAAE,KAAK;GAA4B,SAAS;GAAS;EACrD;GAAE,KAAK;GAA8B,SAAS;GAAS;EAGvD;GAAE,KAAK;GAAwB,SAAS;GAAS;EACjD;GAAE,KAAK;GAA2B,SAAS;GAAS;EACrD;CAID,kBAAkB;EAChB;GACE,IAAI;IAAE,KAAK;IAA4B,SAAS;IAAS;GACzD,MAAM;IAAE,KAAK;IAA4B,SAAS;IAAS;GAC5D;EACD;GACE,IAAI;IAAE,KAAK;IAA2B,SAAS;IAAS;GACxD,MAAM;IAAE,KAAK;IAA4B,SAAS;IAAS;GAC5D;EACD;GACE,IAAI;IAAE,KAAK;IAA8B,SAAS;IAAS;GAC3D,MAAM;IAAE,KAAK;IAA8B,SAAS;IAAS;GAC9D;EACD;GACE,IAAI;IAAE,KAAK;IAA0B,SAAS;IAAS;GACvD,MAAM;IAAE,KAAK;IAA2B,SAAS;IAAS;GAC3D;EACF;CAID,sBAAsB;EACpB;GACE,KAAK;GACL,SAAS;GACT,SAAS;IAAC;IAAS;IAAY;IAAmB;GACnD;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,SAAS,WAAW;GAC/B;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,QAAQ;GACnB;EACD;GACE,KAAK;GACL,SAAS;GACT,SAAS,CAAC,QAAQ;GACnB;EACF;CAID,cAAc,EACZ,UAAU;EACR;GAAE,KAAK;GAAY,SAAS;GAAS;EACrC;GAAE,KAAK;GAAY,SAAS;GAAS;EACrC;GAAE,KAAK;GAAe,SAAS;GAAS;EACzC,EACF;CACF,CAAC"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,114 @@
1
+ import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
2
+
3
+ //#region src/docs/analytics-dashboard.docblock.ts
4
+ registerDocBlocks([
5
+ {
6
+ id: "docs.examples.analytics-dashboard",
7
+ title: "Analytics Dashboard",
8
+ summary: "Multi-tenant analytics with dashboards, widgets, query builder, and scheduled reports built on the Event Bus.",
9
+ kind: "reference",
10
+ visibility: "public",
11
+ route: "/docs/examples/analytics-dashboard",
12
+ tags: [
13
+ "analytics",
14
+ "dashboards",
15
+ "bi",
16
+ "queries"
17
+ ],
18
+ body: `## Entities
19
+
20
+ - Dashboard, Widget, Query, Report.
21
+ - Widget/query configs stay declarative for regeneration.
22
+
23
+ ## Contracts
24
+
25
+ - \`analytics.dashboard.create\`, \`analytics.widget.add\`, \`analytics.query.execute\`, \`analytics.dashboard.get\`.
26
+ - Metrics can source from Event Bus schemas and Usage/Metering module.
27
+
28
+ ## Events
29
+
30
+ - dashboard.created/updated, widget.added, report.scheduled/sent.
31
+ - Emitted for audit + notification hooks.
32
+
33
+ ## UI / Presentations
34
+
35
+ - Dashboard list, dashboard view, query builder, widget gallery.
36
+ - Registered under \`analytics-dashboard\` template in Template Registry.
37
+
38
+ ## Notes
39
+
40
+ - Enforce org scoping for multi-tenant isolation.
41
+ - Use Feature Flags for beta widgets; Metering to track query volume.
42
+ `
43
+ },
44
+ {
45
+ id: "docs.examples.analytics-dashboard.goal",
46
+ title: "Analytics Dashboard — Goal",
47
+ summary: "Why this template matters and what success looks like.",
48
+ kind: "goal",
49
+ visibility: "public",
50
+ route: "/docs/examples/analytics-dashboard/goal",
51
+ tags: ["analytics", "goal"],
52
+ body: `## Why it matters
53
+ - Give teams a regenerable analytics workspace that stays in sync with Event Bus, Usage/Metering, and presentations.
54
+ - Avoid dashboard drift by keeping schema-first widgets/queries.
55
+
56
+ ## Business/Product goal
57
+ - Deliver tenant-scoped dashboards, governed queries, and scheduled reports with clear ownership and auditability.
58
+ - Enable feature-flagged rollout of new widgets and sampling for cost control.
59
+
60
+ ## Success criteria
61
+ - Dashboards can be regenerated safely from spec changes.
62
+ - Queries/widgets have enforced validation; PII is redacted per policy.`
63
+ },
64
+ {
65
+ id: "docs.examples.analytics-dashboard.usage",
66
+ title: "Analytics Dashboard — Usage",
67
+ summary: "How to seed, extend, and safely regenerate dashboards.",
68
+ kind: "usage",
69
+ visibility: "public",
70
+ route: "/docs/examples/analytics-dashboard/usage",
71
+ tags: ["analytics", "usage"],
72
+ body: `## Setup
73
+ 1) Seed dashboards/widgets (via template registry) to preload sample queries.
74
+ 2) Configure org/tenant scope and attach Usage/Metering for cost/sampling controls.
75
+
76
+ ## Extend & regenerate
77
+ 1) Add or modify widget/query schemas in the spec (inputs, validation, PII paths).
78
+ 2) Regenerate to update UI + API + events; review presentations for redaction.
79
+ 3) Use Feature Flags to roll out new widgets or sampling knobs gradually.
80
+
81
+ ## Guardrails
82
+ - Keep all query inputs validated; mark PII paths in policy.
83
+ - Use Audit Trail for report deliveries; Notifications for scheduled sends.`
84
+ },
85
+ {
86
+ id: "docs.examples.analytics-dashboard.constraints",
87
+ title: "Analytics Dashboard — Constraints & Safety",
88
+ summary: "Internal guardrails for queries, widgets, and regeneration.",
89
+ kind: "reference",
90
+ visibility: "internal",
91
+ route: "/docs/examples/analytics-dashboard/constraints",
92
+ tags: [
93
+ "analytics",
94
+ "constraints",
95
+ "internal"
96
+ ],
97
+ body: `## Constraints
98
+ - Queries and widgets must declare inputs/validation in spec; no ad-hoc query strings.
99
+ - Regeneration must preserve sampling/windowing semantics; document changes explicitly.
100
+ - Events/usage metrics should remain consistent with Metering/Audit wiring.
101
+
102
+ ## PII & Data
103
+ - Mark PII paths (user ids, emails) in presentations for redaction.
104
+ - Avoid exposing raw query payloads in MCP/web without policy checks.
105
+
106
+ ## Verification
107
+ - Add fixtures for widget/query schema changes and scheduled reports.
108
+ - Run regeneration diff when adjusting query builders; ensure UI/markdown targets updated.
109
+ - Confirm feature-flagged widgets default to safe/off for new tenants.`
110
+ }
111
+ ]);
112
+
113
+ //#endregion
114
+ //# sourceMappingURL=analytics-dashboard.docblock.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"analytics-dashboard.docblock.js","names":[],"sources":["../../src/docs/analytics-dashboard.docblock.ts"],"sourcesContent":["import type { DocBlock } from '@contractspec/lib.contracts/docs';\nimport { registerDocBlocks } from '@contractspec/lib.contracts/docs';\n\nconst analyticsDashboardDocBlocks: DocBlock[] = [\n {\n id: 'docs.examples.analytics-dashboard',\n title: 'Analytics Dashboard',\n summary:\n 'Multi-tenant analytics with dashboards, widgets, query builder, and scheduled reports built on the Event Bus.',\n kind: 'reference',\n visibility: 'public',\n route: '/docs/examples/analytics-dashboard',\n tags: ['analytics', 'dashboards', 'bi', 'queries'],\n body: `## Entities\n\n- Dashboard, Widget, Query, Report.\n- Widget/query configs stay declarative for regeneration.\n\n## Contracts\n\n- \\`analytics.dashboard.create\\`, \\`analytics.widget.add\\`, \\`analytics.query.execute\\`, \\`analytics.dashboard.get\\`.\n- Metrics can source from Event Bus schemas and Usage/Metering module.\n\n## Events\n\n- dashboard.created/updated, widget.added, report.scheduled/sent.\n- Emitted for audit + notification hooks.\n\n## UI / Presentations\n\n- Dashboard list, dashboard view, query builder, widget gallery.\n- Registered under \\`analytics-dashboard\\` template in Template Registry.\n\n## Notes\n\n- Enforce org scoping for multi-tenant isolation.\n- Use Feature Flags for beta widgets; Metering to track query volume.\n`,\n },\n {\n id: 'docs.examples.analytics-dashboard.goal',\n title: 'Analytics Dashboard — Goal',\n summary: 'Why this template matters and what success looks like.',\n kind: 'goal',\n visibility: 'public',\n route: '/docs/examples/analytics-dashboard/goal',\n tags: ['analytics', 'goal'],\n body: `## Why it matters\n- Give teams a regenerable analytics workspace that stays in sync with Event Bus, Usage/Metering, and presentations.\n- Avoid dashboard drift by keeping schema-first widgets/queries.\n\n## Business/Product goal\n- Deliver tenant-scoped dashboards, governed queries, and scheduled reports with clear ownership and auditability.\n- Enable feature-flagged rollout of new widgets and sampling for cost control.\n\n## Success criteria\n- Dashboards can be regenerated safely from spec changes.\n- Queries/widgets have enforced validation; PII is redacted per policy.`,\n },\n {\n id: 'docs.examples.analytics-dashboard.usage',\n title: 'Analytics Dashboard — Usage',\n summary: 'How to seed, extend, and safely regenerate dashboards.',\n kind: 'usage',\n visibility: 'public',\n route: '/docs/examples/analytics-dashboard/usage',\n tags: ['analytics', 'usage'],\n body: `## Setup\n1) Seed dashboards/widgets (via template registry) to preload sample queries.\n2) Configure org/tenant scope and attach Usage/Metering for cost/sampling controls.\n\n## Extend & regenerate\n1) Add or modify widget/query schemas in the spec (inputs, validation, PII paths).\n2) Regenerate to update UI + API + events; review presentations for redaction.\n3) Use Feature Flags to roll out new widgets or sampling knobs gradually.\n\n## Guardrails\n- Keep all query inputs validated; mark PII paths in policy.\n- Use Audit Trail for report deliveries; Notifications for scheduled sends.`,\n },\n {\n id: 'docs.examples.analytics-dashboard.constraints',\n title: 'Analytics Dashboard — Constraints & Safety',\n summary: 'Internal guardrails for queries, widgets, and regeneration.',\n kind: 'reference',\n visibility: 'internal',\n route: '/docs/examples/analytics-dashboard/constraints',\n tags: ['analytics', 'constraints', 'internal'],\n body: `## Constraints\n- Queries and widgets must declare inputs/validation in spec; no ad-hoc query strings.\n- Regeneration must preserve sampling/windowing semantics; document changes explicitly.\n- Events/usage metrics should remain consistent with Metering/Audit wiring.\n\n## PII & Data\n- Mark PII paths (user ids, emails) in presentations for redaction.\n- Avoid exposing raw query payloads in MCP/web without policy checks.\n\n## Verification\n- Add fixtures for widget/query schema changes and scheduled reports.\n- Run regeneration diff when adjusting query builders; ensure UI/markdown targets updated.\n- Confirm feature-flagged widgets default to safe/off for new tenants.`,\n },\n];\n\nregisterDocBlocks(analyticsDashboardDocBlocks);\n"],"mappings":";;;AAwGA,kBArGgD;CAC9C;EACE,IAAI;EACJ,OAAO;EACP,SACE;EACF,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAa;GAAc;GAAM;GAAU;EAClD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;EAyBP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM,CAAC,aAAa,OAAO;EAC3B,MAAM;;;;;;;;;;;EAWP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM,CAAC,aAAa,QAAQ;EAC5B,MAAM;;;;;;;;;;;;EAYP;CACD;EACE,IAAI;EACJ,OAAO;EACP,SAAS;EACT,MAAM;EACN,YAAY;EACZ,OAAO;EACP,MAAM;GAAC;GAAa;GAAe;GAAW;EAC9C,MAAM;;;;;;;;;;;;;EAaP;CACF,CAE6C"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1 @@
1
+ import "./analytics-dashboard.docblock.js";
@@ -0,0 +1,149 @@
1
+ import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
+ import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
3
+
4
+ //#region src/events.d.ts
5
+ declare const DashboardCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
6
+ dashboardId: {
7
+ type: _contractspec_lib_schema0.FieldType<string, string>;
8
+ isOptional: false;
9
+ };
10
+ title: {
11
+ type: _contractspec_lib_schema0.FieldType<string, string>;
12
+ isOptional: false;
13
+ };
14
+ orgId: {
15
+ type: _contractspec_lib_schema0.FieldType<string, string>;
16
+ isOptional: false;
17
+ };
18
+ createdBy: {
19
+ type: _contractspec_lib_schema0.FieldType<string, string>;
20
+ isOptional: false;
21
+ };
22
+ timestamp: {
23
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
24
+ isOptional: false;
25
+ };
26
+ }>>;
27
+ declare const WidgetAddedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
28
+ widgetId: {
29
+ type: _contractspec_lib_schema0.FieldType<string, string>;
30
+ isOptional: false;
31
+ };
32
+ dashboardId: {
33
+ type: _contractspec_lib_schema0.FieldType<string, string>;
34
+ isOptional: false;
35
+ };
36
+ widgetType: {
37
+ type: _contractspec_lib_schema0.FieldType<string, string>;
38
+ isOptional: false;
39
+ };
40
+ orgId: {
41
+ type: _contractspec_lib_schema0.FieldType<string, string>;
42
+ isOptional: false;
43
+ };
44
+ timestamp: {
45
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
46
+ isOptional: false;
47
+ };
48
+ }>>;
49
+ declare const QueryCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
50
+ queryId: {
51
+ type: _contractspec_lib_schema0.FieldType<string, string>;
52
+ isOptional: false;
53
+ };
54
+ name: {
55
+ type: _contractspec_lib_schema0.FieldType<string, string>;
56
+ isOptional: false;
57
+ };
58
+ queryType: {
59
+ type: _contractspec_lib_schema0.FieldType<string, string>;
60
+ isOptional: false;
61
+ };
62
+ orgId: {
63
+ type: _contractspec_lib_schema0.FieldType<string, string>;
64
+ isOptional: false;
65
+ };
66
+ createdBy: {
67
+ type: _contractspec_lib_schema0.FieldType<string, string>;
68
+ isOptional: false;
69
+ };
70
+ timestamp: {
71
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
72
+ isOptional: false;
73
+ };
74
+ }>>;
75
+ declare const AnalyticsDashboardEvents: {
76
+ DashboardCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
77
+ dashboardId: {
78
+ type: _contractspec_lib_schema0.FieldType<string, string>;
79
+ isOptional: false;
80
+ };
81
+ title: {
82
+ type: _contractspec_lib_schema0.FieldType<string, string>;
83
+ isOptional: false;
84
+ };
85
+ orgId: {
86
+ type: _contractspec_lib_schema0.FieldType<string, string>;
87
+ isOptional: false;
88
+ };
89
+ createdBy: {
90
+ type: _contractspec_lib_schema0.FieldType<string, string>;
91
+ isOptional: false;
92
+ };
93
+ timestamp: {
94
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
95
+ isOptional: false;
96
+ };
97
+ }>>;
98
+ WidgetAddedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
99
+ widgetId: {
100
+ type: _contractspec_lib_schema0.FieldType<string, string>;
101
+ isOptional: false;
102
+ };
103
+ dashboardId: {
104
+ type: _contractspec_lib_schema0.FieldType<string, string>;
105
+ isOptional: false;
106
+ };
107
+ widgetType: {
108
+ type: _contractspec_lib_schema0.FieldType<string, string>;
109
+ isOptional: false;
110
+ };
111
+ orgId: {
112
+ type: _contractspec_lib_schema0.FieldType<string, string>;
113
+ isOptional: false;
114
+ };
115
+ timestamp: {
116
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
117
+ isOptional: false;
118
+ };
119
+ }>>;
120
+ QueryCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
121
+ queryId: {
122
+ type: _contractspec_lib_schema0.FieldType<string, string>;
123
+ isOptional: false;
124
+ };
125
+ name: {
126
+ type: _contractspec_lib_schema0.FieldType<string, string>;
127
+ isOptional: false;
128
+ };
129
+ queryType: {
130
+ type: _contractspec_lib_schema0.FieldType<string, string>;
131
+ isOptional: false;
132
+ };
133
+ orgId: {
134
+ type: _contractspec_lib_schema0.FieldType<string, string>;
135
+ isOptional: false;
136
+ };
137
+ createdBy: {
138
+ type: _contractspec_lib_schema0.FieldType<string, string>;
139
+ isOptional: false;
140
+ };
141
+ timestamp: {
142
+ type: _contractspec_lib_schema0.FieldType<Date, string>;
143
+ isOptional: false;
144
+ };
145
+ }>>;
146
+ };
147
+ //#endregion
148
+ export { AnalyticsDashboardEvents, DashboardCreatedEvent, QueryCreatedEvent, WidgetAddedEvent };
149
+ //# sourceMappingURL=events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"sourcesContent":[],"mappings":";;;;cAwCa,uBAAqB,4BAAA,CAAA,oCAAA;;UAUhC,yBAAA,CAAA;;EAVW,CAAA;EAUX,KAAA,EAAA;;;;;;;EAVgC,CAAA;EAAA,SAAA,EAAA;IAYrB,IAAA,qCAUX,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;AAV2B,cAAhB,gBAAgB,EAAA,4BAAA,CAAA,SAAA,2BAAA,WAAA,CAAA;EAAA,QAAA,EAAA;IAYhB,IAAA,EAFX,yBAAA,CAAA,SAYA,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;;;;;;;6CAV4B,CAAA,MAAA,EAAA,MAAA,CAAA;IAAA,UAAA,EAAA,KAAA;EAAA,CAAA;EAYjB,KAAA,EAAA;IAIZ,IAAA,qCAAA,CAAA,MAAA,EAAA,MAAA,CAAA;;;;;;;;cAhBY,mBAAiB,4BAAA,CAAA,oCAAA;;UAU5B,yBAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;cAEW;;;YAIZ,yBAAA,CAAA"}
package/dist/events.js ADDED
@@ -0,0 +1,128 @@
1
+ import { defineEvent } from "@contractspec/lib.contracts";
2
+ import { ScalarTypeEnum, defineSchemaModel } from "@contractspec/lib.schema";
3
+
4
+ //#region src/events.ts
5
+ const DashboardEventPayload = defineSchemaModel({
6
+ name: "DashboardEventPayload",
7
+ description: "Payload for dashboard events",
8
+ fields: {
9
+ dashboardId: {
10
+ type: ScalarTypeEnum.String_unsecure(),
11
+ isOptional: false
12
+ },
13
+ title: {
14
+ type: ScalarTypeEnum.String_unsecure(),
15
+ isOptional: false
16
+ },
17
+ orgId: {
18
+ type: ScalarTypeEnum.String_unsecure(),
19
+ isOptional: false
20
+ },
21
+ createdBy: {
22
+ type: ScalarTypeEnum.String_unsecure(),
23
+ isOptional: false
24
+ },
25
+ timestamp: {
26
+ type: ScalarTypeEnum.DateTime(),
27
+ isOptional: false
28
+ }
29
+ }
30
+ });
31
+ const WidgetEventPayload = defineSchemaModel({
32
+ name: "WidgetEventPayload",
33
+ description: "Payload for widget events",
34
+ fields: {
35
+ widgetId: {
36
+ type: ScalarTypeEnum.String_unsecure(),
37
+ isOptional: false
38
+ },
39
+ dashboardId: {
40
+ type: ScalarTypeEnum.String_unsecure(),
41
+ isOptional: false
42
+ },
43
+ widgetType: {
44
+ type: ScalarTypeEnum.String_unsecure(),
45
+ isOptional: false
46
+ },
47
+ orgId: {
48
+ type: ScalarTypeEnum.String_unsecure(),
49
+ isOptional: false
50
+ },
51
+ timestamp: {
52
+ type: ScalarTypeEnum.DateTime(),
53
+ isOptional: false
54
+ }
55
+ }
56
+ });
57
+ const QueryEventPayload = defineSchemaModel({
58
+ name: "QueryEventPayload",
59
+ description: "Payload for query events",
60
+ fields: {
61
+ queryId: {
62
+ type: ScalarTypeEnum.String_unsecure(),
63
+ isOptional: false
64
+ },
65
+ name: {
66
+ type: ScalarTypeEnum.String_unsecure(),
67
+ isOptional: false
68
+ },
69
+ queryType: {
70
+ type: ScalarTypeEnum.String_unsecure(),
71
+ isOptional: false
72
+ },
73
+ orgId: {
74
+ type: ScalarTypeEnum.String_unsecure(),
75
+ isOptional: false
76
+ },
77
+ createdBy: {
78
+ type: ScalarTypeEnum.String_unsecure(),
79
+ isOptional: false
80
+ },
81
+ timestamp: {
82
+ type: ScalarTypeEnum.DateTime(),
83
+ isOptional: false
84
+ }
85
+ }
86
+ });
87
+ const DashboardCreatedEvent = defineEvent({
88
+ meta: {
89
+ key: "analytics.dashboard.created",
90
+ version: "1.0.0",
91
+ description: "A dashboard was created.",
92
+ stability: "stable",
93
+ owners: ["@analytics-team"],
94
+ tags: ["dashboard"]
95
+ },
96
+ payload: DashboardEventPayload
97
+ });
98
+ const WidgetAddedEvent = defineEvent({
99
+ meta: {
100
+ key: "analytics.widget.added",
101
+ version: "1.0.0",
102
+ description: "A widget was added to a dashboard.",
103
+ stability: "stable",
104
+ owners: ["@analytics-team"],
105
+ tags: ["dashboard"]
106
+ },
107
+ payload: WidgetEventPayload
108
+ });
109
+ const QueryCreatedEvent = defineEvent({
110
+ meta: {
111
+ key: "analytics.query.created",
112
+ version: "1.0.0",
113
+ description: "A query was created.",
114
+ stability: "stable",
115
+ owners: ["@analytics-team"],
116
+ tags: ["dashboard"]
117
+ },
118
+ payload: QueryEventPayload
119
+ });
120
+ const AnalyticsDashboardEvents = {
121
+ DashboardCreatedEvent,
122
+ WidgetAddedEvent,
123
+ QueryCreatedEvent
124
+ };
125
+
126
+ //#endregion
127
+ export { AnalyticsDashboardEvents, DashboardCreatedEvent, QueryCreatedEvent, WidgetAddedEvent };
128
+ //# sourceMappingURL=events.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"events.js","names":[],"sources":["../src/events.ts"],"sourcesContent":["import { defineSchemaModel, ScalarTypeEnum } from '@contractspec/lib.schema';\nimport { defineEvent } from '@contractspec/lib.contracts';\n\nconst DashboardEventPayload = defineSchemaModel({\n name: 'DashboardEventPayload',\n description: 'Payload for dashboard events',\n fields: {\n dashboardId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n title: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst WidgetEventPayload = defineSchemaModel({\n name: 'WidgetEventPayload',\n description: 'Payload for widget events',\n fields: {\n widgetId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n dashboardId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n widgetType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nconst QueryEventPayload = defineSchemaModel({\n name: 'QueryEventPayload',\n description: 'Payload for query events',\n fields: {\n queryId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n queryType: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n orgId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n createdBy: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },\n timestamp: { type: ScalarTypeEnum.DateTime(), isOptional: false },\n },\n});\n\nexport const DashboardCreatedEvent = defineEvent({\n meta: {\n key: 'analytics.dashboard.created',\n version: '1.0.0',\n description: 'A dashboard was created.',\n stability: 'stable',\n owners: ['@analytics-team'],\n tags: ['dashboard'],\n },\n payload: DashboardEventPayload,\n});\n\nexport const WidgetAddedEvent = defineEvent({\n meta: {\n key: 'analytics.widget.added',\n version: '1.0.0',\n description: 'A widget was added to a dashboard.',\n stability: 'stable',\n owners: ['@analytics-team'],\n tags: ['dashboard'],\n },\n payload: WidgetEventPayload,\n});\n\nexport const QueryCreatedEvent = defineEvent({\n meta: {\n key: 'analytics.query.created',\n version: '1.0.0',\n description: 'A query was created.',\n stability: 'stable',\n owners: ['@analytics-team'],\n tags: ['dashboard'],\n },\n payload: QueryEventPayload,\n});\n\nexport const AnalyticsDashboardEvents = {\n DashboardCreatedEvent,\n WidgetAddedEvent,\n QueryCreatedEvent,\n};\n"],"mappings":";;;;AAGA,MAAM,wBAAwB,kBAAkB;CAC9C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC1E,OAAO;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,OAAO;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAM,qBAAqB,kBAAkB;CAC3C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,UAAU;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACvE,aAAa;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EAC1E,YAAY;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACzE,OAAO;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAM,oBAAoB,kBAAkB;CAC1C,MAAM;CACN,aAAa;CACb,QAAQ;EACN,SAAS;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACtE,MAAM;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACnE,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,OAAO;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACpE,WAAW;GAAE,MAAM,eAAe,iBAAiB;GAAE,YAAY;GAAO;EACxE,WAAW;GAAE,MAAM,eAAe,UAAU;GAAE,YAAY;GAAO;EAClE;CACF,CAAC;AAEF,MAAa,wBAAwB,YAAY;CAC/C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,kBAAkB;EAC3B,MAAM,CAAC,YAAY;EACpB;CACD,SAAS;CACV,CAAC;AAEF,MAAa,mBAAmB,YAAY;CAC1C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,kBAAkB;EAC3B,MAAM,CAAC,YAAY;EACpB;CACD,SAAS;CACV,CAAC;AAEF,MAAa,oBAAoB,YAAY;CAC3C,MAAM;EACJ,KAAK;EACL,SAAS;EACT,aAAa;EACb,WAAW;EACX,QAAQ,CAAC,kBAAkB;EAC3B,MAAM,CAAC,YAAY;EACpB;CACD,SAAS;CACV,CAAC;AAEF,MAAa,2BAA2B;CACtC;CACA;CACA;CACD"}
@@ -0,0 +1,7 @@
1
+ import * as _contractspec_lib_contracts15 from "@contractspec/lib.contracts";
2
+
3
+ //#region src/example.d.ts
4
+ declare const example: _contractspec_lib_contracts15.ExampleSpec;
5
+ //#endregion
6
+ export { example as default };
7
+ //# sourceMappingURL=example.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAoCJ,6BAAA,CApCW"}
@@ -0,0 +1,58 @@
1
+ import { defineExample } from "@contractspec/lib.contracts";
2
+
3
+ //#region src/example.ts
4
+ const example = defineExample({
5
+ meta: {
6
+ key: "analytics-dashboard",
7
+ version: "1.0.0",
8
+ title: "Analytics Dashboard",
9
+ description: "Tenant-scoped dashboards, widgets, query builder, and scheduled reports (spec-first widgets/queries).",
10
+ kind: "template",
11
+ visibility: "public",
12
+ stability: "experimental",
13
+ owners: ["@platform.core"],
14
+ tags: [
15
+ "analytics",
16
+ "dashboards",
17
+ "bi",
18
+ "queries"
19
+ ]
20
+ },
21
+ docs: {
22
+ rootDocId: "docs.examples.analytics-dashboard",
23
+ goalDocId: "docs.examples.analytics-dashboard.goal",
24
+ usageDocId: "docs.examples.analytics-dashboard.usage",
25
+ constraintsDocId: "docs.examples.analytics-dashboard.constraints"
26
+ },
27
+ entrypoints: {
28
+ packageName: "@contractspec/example.analytics-dashboard",
29
+ feature: "./feature",
30
+ contracts: "./contracts",
31
+ presentations: "./presentations",
32
+ handlers: "./handlers",
33
+ docs: "./docs"
34
+ },
35
+ surfaces: {
36
+ templates: true,
37
+ sandbox: {
38
+ enabled: true,
39
+ modes: [
40
+ "playground",
41
+ "specs",
42
+ "builder",
43
+ "markdown",
44
+ "evolution"
45
+ ]
46
+ },
47
+ studio: {
48
+ enabled: true,
49
+ installable: true
50
+ },
51
+ mcp: { enabled: true }
52
+ }
53
+ });
54
+ var example_default = example;
55
+
56
+ //#endregion
57
+ export { example_default as default };
58
+ //# sourceMappingURL=example.js.map