@contractspec/example.analytics-dashboard 1.57.0 → 1.59.0

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 (173) hide show
  1. package/dist/browser/dashboard/dashboard.enum.js +34 -0
  2. package/dist/browser/dashboard/dashboard.operation.js +289 -0
  3. package/dist/browser/dashboard/dashboard.presentation.js +197 -0
  4. package/dist/browser/dashboard/dashboard.schema.js +126 -0
  5. package/dist/browser/dashboard/dashboard.test-spec.js +213 -0
  6. package/dist/browser/dashboard/index.js +299 -0
  7. package/dist/browser/dashboard.feature.js +84 -0
  8. package/dist/browser/datasource/posthog-datasource.js +289 -0
  9. package/dist/browser/docs/analytics-dashboard.docblock.js +103 -0
  10. package/dist/browser/docs/index.js +103 -0
  11. package/dist/browser/events.js +81 -0
  12. package/dist/browser/example.js +42 -0
  13. package/dist/browser/handlers/analytics.handlers.js +278 -0
  14. package/dist/browser/handlers/index.js +571 -0
  15. package/dist/browser/handlers/query.handlers.js +294 -0
  16. package/dist/browser/index.js +1677 -0
  17. package/dist/browser/query/index.js +159 -0
  18. package/dist/browser/query/query.enum.js +11 -0
  19. package/dist/browser/query/query.operation.js +154 -0
  20. package/dist/browser/query/query.presentation.js +119 -0
  21. package/dist/browser/query/query.schema.js +70 -0
  22. package/dist/browser/query/query.test-spec.js +113 -0
  23. package/dist/browser/query-engine/index.js +491 -0
  24. package/dist/browser/seeders/index.js +20 -0
  25. package/dist/browser/ui/AnalyticsDashboard.js +394 -0
  26. package/dist/browser/ui/hooks/index.js +69 -0
  27. package/dist/browser/ui/hooks/useAnalyticsData.js +66 -0
  28. package/dist/browser/ui/index.js +671 -0
  29. package/dist/browser/ui/renderers/analytics.markdown.js +275 -0
  30. package/dist/browser/ui/renderers/index.js +275 -0
  31. package/dist/dashboard/dashboard.enum.d.ts +3 -8
  32. package/dist/dashboard/dashboard.enum.d.ts.map +1 -1
  33. package/dist/dashboard/dashboard.enum.js +31 -39
  34. package/dist/dashboard/dashboard.operation.d.ts +444 -450
  35. package/dist/dashboard/dashboard.operation.d.ts.map +1 -1
  36. package/dist/dashboard/dashboard.operation.js +284 -207
  37. package/dist/dashboard/dashboard.presentation.d.ts +3 -8
  38. package/dist/dashboard/dashboard.presentation.d.ts.map +1 -1
  39. package/dist/dashboard/dashboard.presentation.js +193 -85
  40. package/dist/dashboard/dashboard.schema.d.ts +289 -294
  41. package/dist/dashboard/dashboard.schema.d.ts.map +1 -1
  42. package/dist/dashboard/dashboard.schema.js +119 -228
  43. package/dist/dashboard/dashboard.test-spec.d.ts +4 -9
  44. package/dist/dashboard/dashboard.test-spec.d.ts.map +1 -1
  45. package/dist/dashboard/dashboard.test-spec.js +209 -228
  46. package/dist/dashboard/index.d.ts +7 -4
  47. package/dist/dashboard/index.d.ts.map +1 -0
  48. package/dist/dashboard/index.js +299 -4
  49. package/dist/dashboard.feature.d.ts +1 -6
  50. package/dist/dashboard.feature.d.ts.map +1 -1
  51. package/dist/dashboard.feature.js +83 -175
  52. package/dist/datasource/posthog-datasource.d.ts +15 -19
  53. package/dist/datasource/posthog-datasource.d.ts.map +1 -1
  54. package/dist/datasource/posthog-datasource.js +274 -238
  55. package/dist/docs/analytics-dashboard.docblock.d.ts +2 -1
  56. package/dist/docs/analytics-dashboard.docblock.d.ts.map +1 -0
  57. package/dist/docs/analytics-dashboard.docblock.js +45 -56
  58. package/dist/docs/index.d.ts +2 -1
  59. package/dist/docs/index.d.ts.map +1 -0
  60. package/dist/docs/index.js +104 -1
  61. package/dist/events.d.ts +109 -115
  62. package/dist/events.d.ts.map +1 -1
  63. package/dist/events.js +74 -120
  64. package/dist/example.d.ts +2 -6
  65. package/dist/example.d.ts.map +1 -1
  66. package/dist/example.js +41 -55
  67. package/dist/handlers/analytics.handlers.d.ts +110 -109
  68. package/dist/handlers/analytics.handlers.d.ts.map +1 -1
  69. package/dist/handlers/analytics.handlers.js +267 -298
  70. package/dist/handlers/index.d.ts +3 -3
  71. package/dist/handlers/index.d.ts.map +1 -0
  72. package/dist/handlers/index.js +571 -3
  73. package/dist/handlers/query.handlers.d.ts +7 -11
  74. package/dist/handlers/query.handlers.d.ts.map +1 -1
  75. package/dist/handlers/query.handlers.js +292 -7
  76. package/dist/index.d.ts +12 -13
  77. package/dist/index.d.ts.map +1 -0
  78. package/dist/index.js +1678 -14
  79. package/dist/node/dashboard/dashboard.enum.js +34 -0
  80. package/dist/node/dashboard/dashboard.operation.js +289 -0
  81. package/dist/node/dashboard/dashboard.presentation.js +197 -0
  82. package/dist/node/dashboard/dashboard.schema.js +126 -0
  83. package/dist/node/dashboard/dashboard.test-spec.js +213 -0
  84. package/dist/node/dashboard/index.js +299 -0
  85. package/dist/node/dashboard.feature.js +84 -0
  86. package/dist/node/datasource/posthog-datasource.js +289 -0
  87. package/dist/node/docs/analytics-dashboard.docblock.js +103 -0
  88. package/dist/node/docs/index.js +103 -0
  89. package/dist/node/events.js +81 -0
  90. package/dist/node/example.js +42 -0
  91. package/dist/node/handlers/analytics.handlers.js +278 -0
  92. package/dist/node/handlers/index.js +571 -0
  93. package/dist/node/handlers/query.handlers.js +294 -0
  94. package/dist/node/index.js +1677 -0
  95. package/dist/node/query/index.js +159 -0
  96. package/dist/node/query/query.enum.js +11 -0
  97. package/dist/node/query/query.operation.js +154 -0
  98. package/dist/node/query/query.presentation.js +119 -0
  99. package/dist/node/query/query.schema.js +70 -0
  100. package/dist/node/query/query.test-spec.js +113 -0
  101. package/dist/node/query-engine/index.js +491 -0
  102. package/dist/node/seeders/index.js +20 -0
  103. package/dist/node/ui/AnalyticsDashboard.js +394 -0
  104. package/dist/node/ui/hooks/index.js +69 -0
  105. package/dist/node/ui/hooks/useAnalyticsData.js +66 -0
  106. package/dist/node/ui/index.js +671 -0
  107. package/dist/node/ui/renderers/analytics.markdown.js +275 -0
  108. package/dist/node/ui/renderers/index.js +275 -0
  109. package/dist/query/index.d.ts +7 -4
  110. package/dist/query/index.d.ts.map +1 -0
  111. package/dist/query/index.js +159 -4
  112. package/dist/query/query.enum.d.ts +1 -6
  113. package/dist/query/query.enum.d.ts.map +1 -1
  114. package/dist/query/query.enum.js +10 -14
  115. package/dist/query/query.operation.d.ts +148 -154
  116. package/dist/query/query.operation.d.ts.map +1 -1
  117. package/dist/query/query.operation.js +151 -109
  118. package/dist/query/query.presentation.d.ts +2 -7
  119. package/dist/query/query.presentation.d.ts.map +1 -1
  120. package/dist/query/query.presentation.js +116 -56
  121. package/dist/query/query.schema.d.ts +121 -126
  122. package/dist/query/query.schema.d.ts.map +1 -1
  123. package/dist/query/query.schema.js +66 -152
  124. package/dist/query/query.test-spec.d.ts +2 -7
  125. package/dist/query/query.test-spec.d.ts.map +1 -1
  126. package/dist/query/query.test-spec.js +111 -121
  127. package/dist/query-engine/index.d.ts +84 -88
  128. package/dist/query-engine/index.d.ts.map +1 -1
  129. package/dist/query-engine/index.js +489 -188
  130. package/dist/seeders/index.d.ts +4 -8
  131. package/dist/seeders/index.d.ts.map +1 -1
  132. package/dist/seeders/index.js +18 -16
  133. package/dist/ui/AnalyticsDashboard.d.ts +1 -6
  134. package/dist/ui/AnalyticsDashboard.d.ts.map +1 -1
  135. package/dist/ui/AnalyticsDashboard.js +389 -259
  136. package/dist/ui/hooks/index.d.ts +2 -2
  137. package/dist/ui/hooks/index.d.ts.map +1 -0
  138. package/dist/ui/hooks/index.js +69 -4
  139. package/dist/ui/hooks/useAnalyticsData.d.ts +16 -20
  140. package/dist/ui/hooks/useAnalyticsData.d.ts.map +1 -1
  141. package/dist/ui/hooks/useAnalyticsData.js +63 -69
  142. package/dist/ui/index.d.ts +7 -6
  143. package/dist/ui/index.d.ts.map +1 -0
  144. package/dist/ui/index.js +671 -5
  145. package/dist/ui/renderers/analytics.markdown.d.ts +13 -14
  146. package/dist/ui/renderers/analytics.markdown.d.ts.map +1 -1
  147. package/dist/ui/renderers/analytics.markdown.js +266 -254
  148. package/dist/ui/renderers/index.d.ts +2 -2
  149. package/dist/ui/renderers/index.d.ts.map +1 -0
  150. package/dist/ui/renderers/index.js +275 -2
  151. package/package.json +328 -67
  152. package/dist/dashboard/dashboard.enum.js.map +0 -1
  153. package/dist/dashboard/dashboard.operation.js.map +0 -1
  154. package/dist/dashboard/dashboard.presentation.js.map +0 -1
  155. package/dist/dashboard/dashboard.schema.js.map +0 -1
  156. package/dist/dashboard/dashboard.test-spec.js.map +0 -1
  157. package/dist/dashboard.feature.js.map +0 -1
  158. package/dist/datasource/posthog-datasource.js.map +0 -1
  159. package/dist/docs/analytics-dashboard.docblock.js.map +0 -1
  160. package/dist/events.js.map +0 -1
  161. package/dist/example.js.map +0 -1
  162. package/dist/handlers/analytics.handlers.js.map +0 -1
  163. package/dist/handlers/query.handlers.js.map +0 -1
  164. package/dist/query/query.enum.js.map +0 -1
  165. package/dist/query/query.operation.js.map +0 -1
  166. package/dist/query/query.presentation.js.map +0 -1
  167. package/dist/query/query.schema.js.map +0 -1
  168. package/dist/query/query.test-spec.js.map +0 -1
  169. package/dist/query-engine/index.js.map +0 -1
  170. package/dist/seeders/index.js.map +0 -1
  171. package/dist/ui/AnalyticsDashboard.js.map +0 -1
  172. package/dist/ui/hooks/useAnalyticsData.js.map +0 -1
  173. package/dist/ui/renderers/analytics.markdown.js.map +0 -1
@@ -1,21 +1,16 @@
1
+ // @bun
2
+ // src/docs/analytics-dashboard.docblock.ts
1
3
  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
4
+ var analyticsDashboardDocBlocks = [
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: ["analytics", "dashboards", "bi", "queries"],
13
+ body: `## Entities
19
14
 
20
15
  - Dashboard, Widget, Query, Report.
21
16
  - Widget/query configs stay declarative for regeneration.
@@ -41,16 +36,16 @@ registerDocBlocks([
41
36
  - Use Feature Flags for beta widgets; Metering to track query volume.
42
37
  - PostHog datasource can back query execution via HogQL for dashboard widgets.
43
38
  `
44
- },
45
- {
46
- id: "docs.examples.analytics-dashboard.goal",
47
- title: "Analytics Dashboard Goal",
48
- summary: "Why this template matters and what success looks like.",
49
- kind: "goal",
50
- visibility: "public",
51
- route: "/docs/examples/analytics-dashboard/goal",
52
- tags: ["analytics", "goal"],
53
- body: `## Why it matters
39
+ },
40
+ {
41
+ id: "docs.examples.analytics-dashboard.goal",
42
+ title: "Analytics Dashboard \u2014 Goal",
43
+ summary: "Why this template matters and what success looks like.",
44
+ kind: "goal",
45
+ visibility: "public",
46
+ route: "/docs/examples/analytics-dashboard/goal",
47
+ tags: ["analytics", "goal"],
48
+ body: `## Why it matters
54
49
  - Give teams a regenerable analytics workspace that stays in sync with Event Bus, Usage/Metering, and presentations.
55
50
  - Avoid dashboard drift by keeping schema-first widgets/queries.
56
51
 
@@ -61,16 +56,16 @@ registerDocBlocks([
61
56
  ## Success criteria
62
57
  - Dashboards can be regenerated safely from spec changes.
63
58
  - Queries/widgets have enforced validation; PII is redacted per policy.`
64
- },
65
- {
66
- id: "docs.examples.analytics-dashboard.usage",
67
- title: "Analytics Dashboard Usage",
68
- summary: "How to seed, extend, and safely regenerate dashboards.",
69
- kind: "usage",
70
- visibility: "public",
71
- route: "/docs/examples/analytics-dashboard/usage",
72
- tags: ["analytics", "usage"],
73
- body: `## Setup
59
+ },
60
+ {
61
+ id: "docs.examples.analytics-dashboard.usage",
62
+ title: "Analytics Dashboard \u2014 Usage",
63
+ summary: "How to seed, extend, and safely regenerate dashboards.",
64
+ kind: "usage",
65
+ visibility: "public",
66
+ route: "/docs/examples/analytics-dashboard/usage",
67
+ tags: ["analytics", "usage"],
68
+ body: `## Setup
74
69
  1) Seed dashboards/widgets (via template registry) to preload sample queries.
75
70
  2) Configure org/tenant scope and attach Usage/Metering for cost/sampling controls.
76
71
 
@@ -82,20 +77,16 @@ registerDocBlocks([
82
77
  ## Guardrails
83
78
  - Keep all query inputs validated; mark PII paths in policy.
84
79
  - Use Audit Trail for report deliveries; Notifications for scheduled sends.`
85
- },
86
- {
87
- id: "docs.examples.analytics-dashboard.constraints",
88
- title: "Analytics Dashboard Constraints & Safety",
89
- summary: "Internal guardrails for queries, widgets, and regeneration.",
90
- kind: "reference",
91
- visibility: "internal",
92
- route: "/docs/examples/analytics-dashboard/constraints",
93
- tags: [
94
- "analytics",
95
- "constraints",
96
- "internal"
97
- ],
98
- body: `## Constraints
80
+ },
81
+ {
82
+ id: "docs.examples.analytics-dashboard.constraints",
83
+ title: "Analytics Dashboard \u2014 Constraints & Safety",
84
+ summary: "Internal guardrails for queries, widgets, and regeneration.",
85
+ kind: "reference",
86
+ visibility: "internal",
87
+ route: "/docs/examples/analytics-dashboard/constraints",
88
+ tags: ["analytics", "constraints", "internal"],
89
+ body: `## Constraints
99
90
  - Queries and widgets must declare inputs/validation in spec; no ad-hoc query strings.
100
91
  - Regeneration must preserve sampling/windowing semantics; document changes explicitly.
101
92
  - Events/usage metrics should remain consistent with Metering/Audit wiring.
@@ -108,8 +99,6 @@ registerDocBlocks([
108
99
  - Add fixtures for widget/query schema changes and scheduled reports.
109
100
  - Run regeneration diff when adjusting query builders; ensure UI/markdown targets updated.
110
101
  - Confirm feature-flagged widgets default to safe/off for new tenants.`
111
- }
112
- ]);
113
-
114
- //#endregion
115
- //# sourceMappingURL=analytics-dashboard.docblock.js.map
102
+ }
103
+ ];
104
+ registerDocBlocks(analyticsDashboardDocBlocks);
@@ -1 +1,2 @@
1
- export { };
1
+ import './analytics-dashboard.docblock';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/docs/index.ts"],"names":[],"mappings":"AAAA,OAAO,gCAAgC,CAAC"}
@@ -1 +1,104 @@
1
- import "./analytics-dashboard.docblock.js";
1
+ // @bun
2
+ // src/docs/analytics-dashboard.docblock.ts
3
+ import { registerDocBlocks } from "@contractspec/lib.contracts/docs";
4
+ var analyticsDashboardDocBlocks = [
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: ["analytics", "dashboards", "bi", "queries"],
13
+ body: `## Entities
14
+
15
+ - Dashboard, Widget, Query, Report.
16
+ - Widget/query configs stay declarative for regeneration.
17
+
18
+ ## Contracts
19
+
20
+ - \`analytics.dashboard.create\`, \`analytics.widget.add\`, \`analytics.query.execute\`, \`analytics.dashboard.get\`.
21
+ - Metrics can source from Event Bus schemas and Usage/Metering module.
22
+
23
+ ## Events
24
+
25
+ - dashboard.created/updated, widget.added, report.scheduled/sent.
26
+ - Emitted for audit + notification hooks.
27
+
28
+ ## UI / Presentations
29
+
30
+ - Dashboard list, dashboard view, query builder, widget gallery.
31
+ - Registered under \`analytics-dashboard\` template in Template Registry.
32
+
33
+ ## Notes
34
+
35
+ - Enforce org scoping for multi-tenant isolation.
36
+ - Use Feature Flags for beta widgets; Metering to track query volume.
37
+ - PostHog datasource can back query execution via HogQL for dashboard widgets.
38
+ `
39
+ },
40
+ {
41
+ id: "docs.examples.analytics-dashboard.goal",
42
+ title: "Analytics Dashboard \u2014 Goal",
43
+ summary: "Why this template matters and what success looks like.",
44
+ kind: "goal",
45
+ visibility: "public",
46
+ route: "/docs/examples/analytics-dashboard/goal",
47
+ tags: ["analytics", "goal"],
48
+ body: `## Why it matters
49
+ - Give teams a regenerable analytics workspace that stays in sync with Event Bus, Usage/Metering, and presentations.
50
+ - Avoid dashboard drift by keeping schema-first widgets/queries.
51
+
52
+ ## Business/Product goal
53
+ - Deliver tenant-scoped dashboards, governed queries, and scheduled reports with clear ownership and auditability.
54
+ - Enable feature-flagged rollout of new widgets and sampling for cost control.
55
+
56
+ ## Success criteria
57
+ - Dashboards can be regenerated safely from spec changes.
58
+ - Queries/widgets have enforced validation; PII is redacted per policy.`
59
+ },
60
+ {
61
+ id: "docs.examples.analytics-dashboard.usage",
62
+ title: "Analytics Dashboard \u2014 Usage",
63
+ summary: "How to seed, extend, and safely regenerate dashboards.",
64
+ kind: "usage",
65
+ visibility: "public",
66
+ route: "/docs/examples/analytics-dashboard/usage",
67
+ tags: ["analytics", "usage"],
68
+ body: `## Setup
69
+ 1) Seed dashboards/widgets (via template registry) to preload sample queries.
70
+ 2) Configure org/tenant scope and attach Usage/Metering for cost/sampling controls.
71
+
72
+ ## Extend & regenerate
73
+ 1) Add or modify widget/query schemas in the spec (inputs, validation, PII paths).
74
+ 2) Regenerate to update UI + API + events; review presentations for redaction.
75
+ 3) Use Feature Flags to roll out new widgets or sampling knobs gradually.
76
+
77
+ ## Guardrails
78
+ - Keep all query inputs validated; mark PII paths in policy.
79
+ - Use Audit Trail for report deliveries; Notifications for scheduled sends.`
80
+ },
81
+ {
82
+ id: "docs.examples.analytics-dashboard.constraints",
83
+ title: "Analytics Dashboard \u2014 Constraints & Safety",
84
+ summary: "Internal guardrails for queries, widgets, and regeneration.",
85
+ kind: "reference",
86
+ visibility: "internal",
87
+ route: "/docs/examples/analytics-dashboard/constraints",
88
+ tags: ["analytics", "constraints", "internal"],
89
+ body: `## Constraints
90
+ - Queries and widgets must declare inputs/validation in spec; no ad-hoc query strings.
91
+ - Regeneration must preserve sampling/windowing semantics; document changes explicitly.
92
+ - Events/usage metrics should remain consistent with Metering/Audit wiring.
93
+
94
+ ## PII & Data
95
+ - Mark PII paths (user ids, emails) in presentations for redaction.
96
+ - Avoid exposing raw query payloads in MCP/web without policy checks.
97
+
98
+ ## Verification
99
+ - Add fixtures for widget/query schema changes and scheduled reports.
100
+ - Run regeneration diff when adjusting query builders; ensure UI/markdown targets updated.
101
+ - Confirm feature-flagged widgets default to safe/off for new tenants.`
102
+ }
103
+ ];
104
+ registerDocBlocks(analyticsDashboardDocBlocks);
package/dist/events.d.ts CHANGED
@@ -1,149 +1,143 @@
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<{
1
+ export declare const DashboardCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
77
2
  dashboardId: {
78
- type: _contractspec_lib_schema0.FieldType<string, string>;
79
- isOptional: false;
3
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
4
+ isOptional: false;
80
5
  };
81
6
  title: {
82
- type: _contractspec_lib_schema0.FieldType<string, string>;
83
- isOptional: false;
7
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
8
+ isOptional: false;
84
9
  };
85
10
  orgId: {
86
- type: _contractspec_lib_schema0.FieldType<string, string>;
87
- isOptional: false;
11
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
12
+ isOptional: false;
88
13
  };
89
14
  createdBy: {
90
- type: _contractspec_lib_schema0.FieldType<string, string>;
91
- isOptional: false;
15
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
16
+ isOptional: false;
92
17
  };
93
18
  timestamp: {
94
- type: _contractspec_lib_schema0.FieldType<Date, string>;
95
- isOptional: false;
19
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
20
+ isOptional: false;
96
21
  };
97
- }>>;
98
- WidgetAddedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
22
+ }>>;
23
+ export declare const WidgetAddedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
99
24
  widgetId: {
100
- type: _contractspec_lib_schema0.FieldType<string, string>;
101
- isOptional: false;
25
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
26
+ isOptional: false;
102
27
  };
103
28
  dashboardId: {
104
- type: _contractspec_lib_schema0.FieldType<string, string>;
105
- isOptional: false;
29
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
30
+ isOptional: false;
106
31
  };
107
32
  widgetType: {
108
- type: _contractspec_lib_schema0.FieldType<string, string>;
109
- isOptional: false;
33
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
34
+ isOptional: false;
110
35
  };
111
36
  orgId: {
112
- type: _contractspec_lib_schema0.FieldType<string, string>;
113
- isOptional: false;
37
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
38
+ isOptional: false;
114
39
  };
115
40
  timestamp: {
116
- type: _contractspec_lib_schema0.FieldType<Date, string>;
117
- isOptional: false;
41
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
42
+ isOptional: false;
118
43
  };
119
- }>>;
120
- QueryCreatedEvent: _contractspec_lib_contracts0.EventSpec<_contractspec_lib_schema0.SchemaModel<{
44
+ }>>;
45
+ export declare const QueryCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
121
46
  queryId: {
122
- type: _contractspec_lib_schema0.FieldType<string, string>;
123
- isOptional: false;
47
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
48
+ isOptional: false;
124
49
  };
125
50
  name: {
126
- type: _contractspec_lib_schema0.FieldType<string, string>;
127
- isOptional: false;
51
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
52
+ isOptional: false;
128
53
  };
129
54
  queryType: {
130
- type: _contractspec_lib_schema0.FieldType<string, string>;
131
- isOptional: false;
55
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
56
+ isOptional: false;
132
57
  };
133
58
  orgId: {
134
- type: _contractspec_lib_schema0.FieldType<string, string>;
135
- isOptional: false;
59
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
60
+ isOptional: false;
136
61
  };
137
62
  createdBy: {
138
- type: _contractspec_lib_schema0.FieldType<string, string>;
139
- isOptional: false;
63
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
64
+ isOptional: false;
140
65
  };
141
66
  timestamp: {
142
- type: _contractspec_lib_schema0.FieldType<Date, string>;
143
- isOptional: false;
67
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
68
+ isOptional: false;
144
69
  };
145
- }>>;
70
+ }>>;
71
+ export declare const AnalyticsDashboardEvents: {
72
+ DashboardCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
73
+ dashboardId: {
74
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
75
+ isOptional: false;
76
+ };
77
+ title: {
78
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
79
+ isOptional: false;
80
+ };
81
+ orgId: {
82
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
83
+ isOptional: false;
84
+ };
85
+ createdBy: {
86
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
87
+ isOptional: false;
88
+ };
89
+ timestamp: {
90
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
91
+ isOptional: false;
92
+ };
93
+ }>>;
94
+ WidgetAddedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
95
+ widgetId: {
96
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
97
+ isOptional: false;
98
+ };
99
+ dashboardId: {
100
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
101
+ isOptional: false;
102
+ };
103
+ widgetType: {
104
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
105
+ isOptional: false;
106
+ };
107
+ orgId: {
108
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
109
+ isOptional: false;
110
+ };
111
+ timestamp: {
112
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
113
+ isOptional: false;
114
+ };
115
+ }>>;
116
+ QueryCreatedEvent: import("@contractspec/lib.contracts").EventSpec<import("@contractspec/lib.schema").SchemaModel<{
117
+ queryId: {
118
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
119
+ isOptional: false;
120
+ };
121
+ name: {
122
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
123
+ isOptional: false;
124
+ };
125
+ queryType: {
126
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
127
+ isOptional: false;
128
+ };
129
+ orgId: {
130
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
131
+ isOptional: false;
132
+ };
133
+ createdBy: {
134
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
135
+ isOptional: false;
136
+ };
137
+ timestamp: {
138
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
139
+ isOptional: false;
140
+ };
141
+ }>>;
146
142
  };
147
- //#endregion
148
- export { AnalyticsDashboardEvents, DashboardCreatedEvent, QueryCreatedEvent, WidgetAddedEvent };
149
143
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","names":[],"sources":["../src/events.ts"],"mappings":";;;;cAwCa,qBAAA,EAAqB,4BAAA,CAAA,SAAA,2BAAA,WAAA;;UAUhC,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAEW,gBAAA,EAAgB,4BAAA,CAAA,SAAA,2BAAA,WAAA;;UAU3B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAEW,iBAAA,EAAiB,4BAAA,CAAA,SAAA,2BAAA,WAAA;;UAU5B,yBAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;cAEW,wBAAA;;;YAIZ,yBAAA,CAAA,SAAA"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../src/events.ts"],"names":[],"mappings":"AAwCA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;GAUhC,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;GAU3B,CAAC;AAEH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;GAU5B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAIpC,CAAC"}