@contractspec/example.analytics-dashboard 1.44.0 → 1.45.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.
- package/dist/dashboard/dashboard.enum.d.ts +4 -4
- package/dist/dashboard/dashboard.enum.d.ts.map +1 -1
- package/dist/dashboard/dashboard.operation.d.ts +132 -132
- package/dist/dashboard/dashboard.operation.js +6 -6
- package/dist/dashboard/dashboard.operation.js.map +1 -1
- package/dist/dashboard/dashboard.presentation.js +3 -3
- package/dist/dashboard/dashboard.presentation.js.map +1 -1
- package/dist/dashboard/dashboard.schema.d.ts +79 -79
- package/dist/dashboard.feature.js +30 -30
- package/dist/dashboard.feature.js.map +1 -1
- package/dist/events.d.ts +39 -39
- package/dist/events.js +3 -3
- package/dist/events.js.map +1 -1
- package/dist/example.d.ts +3 -36
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +16 -11
- package/dist/example.js.map +1 -1
- package/dist/query/query.enum.d.ts +2 -2
- package/dist/query/query.operation.d.ts +45 -45
- package/dist/query/query.operation.js +3 -3
- package/dist/query/query.operation.js.map +1 -1
- package/dist/query/query.presentation.js +2 -2
- package/dist/query/query.presentation.js.map +1 -1
- package/dist/query/query.schema.d.ts +34 -34
- package/package.json +10 -10
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const AnalyticsDashboardFeature = {
|
|
3
3
|
meta: {
|
|
4
4
|
key: "analytics-dashboard",
|
|
5
|
-
version: 1,
|
|
5
|
+
version: "1.0.0",
|
|
6
6
|
title: "Analytics Dashboard",
|
|
7
7
|
description: "Analytics dashboards with customizable widgets and queries",
|
|
8
8
|
domain: "analytics",
|
|
@@ -18,111 +18,111 @@ const AnalyticsDashboardFeature = {
|
|
|
18
18
|
operations: [
|
|
19
19
|
{
|
|
20
20
|
key: "analytics.dashboard.create",
|
|
21
|
-
version: 1
|
|
21
|
+
version: "1.0.0"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
key: "analytics.dashboard.list",
|
|
25
|
-
version: 1
|
|
25
|
+
version: "1.0.0"
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
28
|
key: "analytics.dashboard.get",
|
|
29
|
-
version: 1
|
|
29
|
+
version: "1.0.0"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
key: "analytics.widget.add",
|
|
33
|
-
version: 1
|
|
33
|
+
version: "1.0.0"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
key: "analytics.query.create",
|
|
37
|
-
version: 1
|
|
37
|
+
version: "1.0.0"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
key: "analytics.query.execute",
|
|
41
|
-
version: 1
|
|
41
|
+
version: "1.0.0"
|
|
42
42
|
}
|
|
43
43
|
],
|
|
44
44
|
events: [
|
|
45
45
|
{
|
|
46
46
|
key: "analytics.dashboard.created",
|
|
47
|
-
version: 1
|
|
47
|
+
version: "1.0.0"
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
key: "analytics.widget.added",
|
|
51
|
-
version: 1
|
|
51
|
+
version: "1.0.0"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
key: "analytics.query.created",
|
|
55
|
-
version: 1
|
|
55
|
+
version: "1.0.0"
|
|
56
56
|
}
|
|
57
57
|
],
|
|
58
58
|
presentations: [
|
|
59
59
|
{
|
|
60
60
|
key: "analytics.dashboard.list",
|
|
61
|
-
version: 1
|
|
61
|
+
version: "1.0.0"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
key: "analytics.dashboard.view",
|
|
65
|
-
version: 1
|
|
65
|
+
version: "1.0.0"
|
|
66
66
|
},
|
|
67
67
|
{
|
|
68
68
|
key: "analytics.dashboard.editor",
|
|
69
|
-
version: 1
|
|
69
|
+
version: "1.0.0"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
key: "analytics.query.list",
|
|
73
|
-
version: 1
|
|
73
|
+
version: "1.0.0"
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
76
|
key: "analytics.query.builder",
|
|
77
|
-
version: 1
|
|
77
|
+
version: "1.0.0"
|
|
78
78
|
}
|
|
79
79
|
],
|
|
80
80
|
opToPresentation: [
|
|
81
81
|
{
|
|
82
82
|
op: {
|
|
83
83
|
key: "analytics.dashboard.list",
|
|
84
|
-
version: 1
|
|
84
|
+
version: "1.0.0"
|
|
85
85
|
},
|
|
86
86
|
pres: {
|
|
87
87
|
key: "analytics.dashboard.list",
|
|
88
|
-
version: 1
|
|
88
|
+
version: "1.0.0"
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
op: {
|
|
93
93
|
key: "analytics.dashboard.get",
|
|
94
|
-
version: 1
|
|
94
|
+
version: "1.0.0"
|
|
95
95
|
},
|
|
96
96
|
pres: {
|
|
97
97
|
key: "analytics.dashboard.view",
|
|
98
|
-
version: 1
|
|
98
|
+
version: "1.0.0"
|
|
99
99
|
}
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
op: {
|
|
103
103
|
key: "analytics.dashboard.create",
|
|
104
|
-
version: 1
|
|
104
|
+
version: "1.0.0"
|
|
105
105
|
},
|
|
106
106
|
pres: {
|
|
107
107
|
key: "analytics.dashboard.editor",
|
|
108
|
-
version: 1
|
|
108
|
+
version: "1.0.0"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
112
|
op: {
|
|
113
113
|
key: "analytics.query.create",
|
|
114
|
-
version: 1
|
|
114
|
+
version: "1.0.0"
|
|
115
115
|
},
|
|
116
116
|
pres: {
|
|
117
117
|
key: "analytics.query.builder",
|
|
118
|
-
version: 1
|
|
118
|
+
version: "1.0.0"
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
],
|
|
122
122
|
presentationsTargets: [
|
|
123
123
|
{
|
|
124
124
|
key: "analytics.dashboard.list",
|
|
125
|
-
version: 1,
|
|
125
|
+
version: "1.0.0",
|
|
126
126
|
targets: [
|
|
127
127
|
"react",
|
|
128
128
|
"markdown",
|
|
@@ -131,32 +131,32 @@ const AnalyticsDashboardFeature = {
|
|
|
131
131
|
},
|
|
132
132
|
{
|
|
133
133
|
key: "analytics.dashboard.view",
|
|
134
|
-
version: 1,
|
|
134
|
+
version: "1.0.0",
|
|
135
135
|
targets: ["react", "markdown"]
|
|
136
136
|
},
|
|
137
137
|
{
|
|
138
138
|
key: "analytics.dashboard.editor",
|
|
139
|
-
version: 1,
|
|
139
|
+
version: "1.0.0",
|
|
140
140
|
targets: ["react"]
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
key: "analytics.query.builder",
|
|
144
|
-
version: 1,
|
|
144
|
+
version: "1.0.0",
|
|
145
145
|
targets: ["react"]
|
|
146
146
|
}
|
|
147
147
|
],
|
|
148
148
|
capabilities: { requires: [
|
|
149
149
|
{
|
|
150
150
|
key: "identity",
|
|
151
|
-
version: 1
|
|
151
|
+
version: "1.0.0"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
key: "metering",
|
|
155
|
-
version: 1
|
|
155
|
+
version: "1.0.0"
|
|
156
156
|
},
|
|
157
157
|
{
|
|
158
158
|
key: "audit-trail",
|
|
159
|
-
version: 1
|
|
159
|
+
version: "1.0.0"
|
|
160
160
|
}
|
|
161
161
|
] }
|
|
162
162
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.feature.js","names":["AnalyticsDashboardFeature: FeatureModuleSpec"],"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 type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\n// ============ Feature Definition ============\n\nexport const AnalyticsDashboardFeature: FeatureModuleSpec = {\n meta: {\n key: 'analytics-dashboard',\n version: 1,\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 },\n { key: 'analytics.dashboard.list', version: 1 },\n { key: 'analytics.dashboard.get', version: 1 },\n\n // Widget operations\n { key: 'analytics.widget.add', version: 1 },\n\n // Query operations\n { key: 'analytics.query.create', version: 1 },\n { key: 'analytics.query.execute', version: 1 },\n ],\n\n // ============ Events ============\n // Events emitted by this feature (EventRef[])\n events: [\n // Dashboard events\n { key: 'analytics.dashboard.created', version: 1 },\n\n // Widget events\n { key: 'analytics.widget.added', version: 1 },\n\n // Query events\n { key: 'analytics.query.created', version: 1 },\n ],\n\n // ============ Presentations ============\n // Presentations associated with this feature (PresentationRef[])\n presentations: [\n // Dashboard presentations\n { key: 'analytics.dashboard.list', version: 1 },\n { key: 'analytics.dashboard.view', version: 1 },\n { key: 'analytics.dashboard.editor', version: 1 },\n\n // Query presentations\n { key: 'analytics.query.list', version: 1 },\n { key: 'analytics.query.builder', version: 1 },\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 },\n pres: { key: 'analytics.dashboard.list', version: 1 },\n },\n {\n op: { key: 'analytics.dashboard.get', version: 1 },\n pres: { key: 'analytics.dashboard.view', version: 1 },\n },\n {\n op: { key: 'analytics.dashboard.create', version: 1 },\n pres: { key: 'analytics.dashboard.editor', version: 1 },\n },\n {\n op: { key: 'analytics.query.create', version: 1 },\n pres: { key: 'analytics.query.builder', version: 1 },\n },\n ],\n\n // ============ Presentation Targets ============\n // Target requirements for multi-surface rendering\n presentationsTargets: [\n {\n key: 'analytics.dashboard.list',\n version: 1,\n targets: ['react', 'markdown', 'application/json'],\n },\n {\n key: 'analytics.dashboard.view',\n version: 1,\n targets: ['react', 'markdown'],\n },\n {\n key: 'analytics.dashboard.editor',\n version: 1,\n targets: ['react'],\n },\n {\n key: 'analytics.query.builder',\n version: 1,\n targets: ['react'],\n },\n ],\n\n // ============ Capabilities ============\n // Capability requirements for this feature\n capabilities: {\n requires: [\n { key: 'identity', version: 1 },\n { key: 'metering', version: 1 },\n { key: 'audit-trail', version: 1 },\n ],\n },\n};\n"],"mappings":";AAcA,MAAaA,4BAA+C;CAC1D,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;
|
|
1
|
+
{"version":3,"file":"dashboard.feature.js","names":["AnalyticsDashboardFeature: FeatureModuleSpec"],"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 type { FeatureModuleSpec } from '@contractspec/lib.contracts';\n\n// ============ Feature Definition ============\n\nexport const AnalyticsDashboardFeature: FeatureModuleSpec = {\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,MAAaA,4BAA+C;CAC1D,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"}
|
package/dist/events.d.ts
CHANGED
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema286 from "@contractspec/lib.schema";
|
|
2
2
|
import * as _contractspec_lib_contracts5 from "@contractspec/lib.contracts";
|
|
3
3
|
|
|
4
4
|
//#region src/events.d.ts
|
|
5
|
-
declare const DashboardCreatedEvent: _contractspec_lib_contracts5.EventSpec<
|
|
5
|
+
declare const DashboardCreatedEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema286.SchemaModel<{
|
|
6
6
|
dashboardId: {
|
|
7
|
-
type:
|
|
7
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
8
8
|
isOptional: false;
|
|
9
9
|
};
|
|
10
10
|
title: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
orgId: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
createdBy: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
timestamp: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema286.FieldType<Date, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
}>>;
|
|
27
|
-
declare const WidgetAddedEvent: _contractspec_lib_contracts5.EventSpec<
|
|
27
|
+
declare const WidgetAddedEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema286.SchemaModel<{
|
|
28
28
|
widgetId: {
|
|
29
|
-
type:
|
|
29
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
30
30
|
isOptional: false;
|
|
31
31
|
};
|
|
32
32
|
dashboardId: {
|
|
33
|
-
type:
|
|
33
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
34
34
|
isOptional: false;
|
|
35
35
|
};
|
|
36
36
|
widgetType: {
|
|
37
|
-
type:
|
|
37
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
38
38
|
isOptional: false;
|
|
39
39
|
};
|
|
40
40
|
orgId: {
|
|
41
|
-
type:
|
|
41
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
42
42
|
isOptional: false;
|
|
43
43
|
};
|
|
44
44
|
timestamp: {
|
|
45
|
-
type:
|
|
45
|
+
type: _contractspec_lib_schema286.FieldType<Date, string>;
|
|
46
46
|
isOptional: false;
|
|
47
47
|
};
|
|
48
48
|
}>>;
|
|
49
|
-
declare const QueryCreatedEvent: _contractspec_lib_contracts5.EventSpec<
|
|
49
|
+
declare const QueryCreatedEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema286.SchemaModel<{
|
|
50
50
|
queryId: {
|
|
51
|
-
type:
|
|
51
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
52
52
|
isOptional: false;
|
|
53
53
|
};
|
|
54
54
|
name: {
|
|
55
|
-
type:
|
|
55
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
56
56
|
isOptional: false;
|
|
57
57
|
};
|
|
58
58
|
queryType: {
|
|
59
|
-
type:
|
|
59
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
60
60
|
isOptional: false;
|
|
61
61
|
};
|
|
62
62
|
orgId: {
|
|
63
|
-
type:
|
|
63
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
64
64
|
isOptional: false;
|
|
65
65
|
};
|
|
66
66
|
createdBy: {
|
|
67
|
-
type:
|
|
67
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
68
68
|
isOptional: false;
|
|
69
69
|
};
|
|
70
70
|
timestamp: {
|
|
71
|
-
type:
|
|
71
|
+
type: _contractspec_lib_schema286.FieldType<Date, string>;
|
|
72
72
|
isOptional: false;
|
|
73
73
|
};
|
|
74
74
|
}>>;
|
|
75
75
|
declare const AnalyticsDashboardEvents: {
|
|
76
|
-
DashboardCreatedEvent: _contractspec_lib_contracts5.EventSpec<
|
|
76
|
+
DashboardCreatedEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema286.SchemaModel<{
|
|
77
77
|
dashboardId: {
|
|
78
|
-
type:
|
|
78
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
79
79
|
isOptional: false;
|
|
80
80
|
};
|
|
81
81
|
title: {
|
|
82
|
-
type:
|
|
82
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
83
83
|
isOptional: false;
|
|
84
84
|
};
|
|
85
85
|
orgId: {
|
|
86
|
-
type:
|
|
86
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
87
87
|
isOptional: false;
|
|
88
88
|
};
|
|
89
89
|
createdBy: {
|
|
90
|
-
type:
|
|
90
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
91
91
|
isOptional: false;
|
|
92
92
|
};
|
|
93
93
|
timestamp: {
|
|
94
|
-
type:
|
|
94
|
+
type: _contractspec_lib_schema286.FieldType<Date, string>;
|
|
95
95
|
isOptional: false;
|
|
96
96
|
};
|
|
97
97
|
}>>;
|
|
98
|
-
WidgetAddedEvent: _contractspec_lib_contracts5.EventSpec<
|
|
98
|
+
WidgetAddedEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema286.SchemaModel<{
|
|
99
99
|
widgetId: {
|
|
100
|
-
type:
|
|
100
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
101
101
|
isOptional: false;
|
|
102
102
|
};
|
|
103
103
|
dashboardId: {
|
|
104
|
-
type:
|
|
104
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
105
105
|
isOptional: false;
|
|
106
106
|
};
|
|
107
107
|
widgetType: {
|
|
108
|
-
type:
|
|
108
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
109
109
|
isOptional: false;
|
|
110
110
|
};
|
|
111
111
|
orgId: {
|
|
112
|
-
type:
|
|
112
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
113
113
|
isOptional: false;
|
|
114
114
|
};
|
|
115
115
|
timestamp: {
|
|
116
|
-
type:
|
|
116
|
+
type: _contractspec_lib_schema286.FieldType<Date, string>;
|
|
117
117
|
isOptional: false;
|
|
118
118
|
};
|
|
119
119
|
}>>;
|
|
120
|
-
QueryCreatedEvent: _contractspec_lib_contracts5.EventSpec<
|
|
120
|
+
QueryCreatedEvent: _contractspec_lib_contracts5.EventSpec<_contractspec_lib_schema286.SchemaModel<{
|
|
121
121
|
queryId: {
|
|
122
|
-
type:
|
|
122
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
123
123
|
isOptional: false;
|
|
124
124
|
};
|
|
125
125
|
name: {
|
|
126
|
-
type:
|
|
126
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
127
127
|
isOptional: false;
|
|
128
128
|
};
|
|
129
129
|
queryType: {
|
|
130
|
-
type:
|
|
130
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
131
131
|
isOptional: false;
|
|
132
132
|
};
|
|
133
133
|
orgId: {
|
|
134
|
-
type:
|
|
134
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
135
135
|
isOptional: false;
|
|
136
136
|
};
|
|
137
137
|
createdBy: {
|
|
138
|
-
type:
|
|
138
|
+
type: _contractspec_lib_schema286.FieldType<string, string>;
|
|
139
139
|
isOptional: false;
|
|
140
140
|
};
|
|
141
141
|
timestamp: {
|
|
142
|
-
type:
|
|
142
|
+
type: _contractspec_lib_schema286.FieldType<Date, string>;
|
|
143
143
|
isOptional: false;
|
|
144
144
|
};
|
|
145
145
|
}>>;
|
package/dist/events.js
CHANGED
|
@@ -87,7 +87,7 @@ const QueryEventPayload = defineSchemaModel({
|
|
|
87
87
|
const DashboardCreatedEvent = defineEvent({
|
|
88
88
|
meta: {
|
|
89
89
|
key: "analytics.dashboard.created",
|
|
90
|
-
version: 1,
|
|
90
|
+
version: "1.0.0",
|
|
91
91
|
description: "A dashboard was created.",
|
|
92
92
|
stability: "stable",
|
|
93
93
|
owners: ["@analytics-team"],
|
|
@@ -98,7 +98,7 @@ const DashboardCreatedEvent = defineEvent({
|
|
|
98
98
|
const WidgetAddedEvent = defineEvent({
|
|
99
99
|
meta: {
|
|
100
100
|
key: "analytics.widget.added",
|
|
101
|
-
version: 1,
|
|
101
|
+
version: "1.0.0",
|
|
102
102
|
description: "A widget was added to a dashboard.",
|
|
103
103
|
stability: "stable",
|
|
104
104
|
owners: ["@analytics-team"],
|
|
@@ -109,7 +109,7 @@ const WidgetAddedEvent = defineEvent({
|
|
|
109
109
|
const QueryCreatedEvent = defineEvent({
|
|
110
110
|
meta: {
|
|
111
111
|
key: "analytics.query.created",
|
|
112
|
-
version: 1,
|
|
112
|
+
version: "1.0.0",
|
|
113
113
|
description: "A query was created.",
|
|
114
114
|
stability: "stable",
|
|
115
115
|
owners: ["@analytics-team"],
|
package/dist/events.js.map
CHANGED
|
@@ -1 +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,\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,\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,\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"}
|
|
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"}
|
package/dist/example.d.ts
CHANGED
|
@@ -1,40 +1,7 @@
|
|
|
1
|
+
import { ExampleSpec } from "@contractspec/lib.contracts";
|
|
2
|
+
|
|
1
3
|
//#region src/example.d.ts
|
|
2
|
-
declare const example:
|
|
3
|
-
readonly id: "analytics-dashboard";
|
|
4
|
-
readonly title: "Analytics Dashboard";
|
|
5
|
-
readonly summary: "Tenant-scoped dashboards, widgets, query builder, and scheduled reports (spec-first widgets/queries).";
|
|
6
|
-
readonly tags: readonly ["analytics", "dashboards", "bi", "queries"];
|
|
7
|
-
readonly kind: "template";
|
|
8
|
-
readonly visibility: "public";
|
|
9
|
-
readonly docs: {
|
|
10
|
-
readonly rootDocId: "docs.examples.analytics-dashboard";
|
|
11
|
-
readonly goalDocId: "docs.examples.analytics-dashboard.goal";
|
|
12
|
-
readonly usageDocId: "docs.examples.analytics-dashboard.usage";
|
|
13
|
-
readonly constraintsDocId: "docs.examples.analytics-dashboard.constraints";
|
|
14
|
-
};
|
|
15
|
-
readonly entrypoints: {
|
|
16
|
-
readonly packageName: "@contractspec/example.analytics-dashboard";
|
|
17
|
-
readonly feature: "./feature";
|
|
18
|
-
readonly contracts: "./contracts";
|
|
19
|
-
readonly presentations: "./presentations";
|
|
20
|
-
readonly handlers: "./handlers";
|
|
21
|
-
readonly docs: "./docs";
|
|
22
|
-
};
|
|
23
|
-
readonly surfaces: {
|
|
24
|
-
readonly templates: true;
|
|
25
|
-
readonly sandbox: {
|
|
26
|
-
readonly enabled: true;
|
|
27
|
-
readonly modes: readonly ["playground", "specs", "builder", "markdown", "evolution"];
|
|
28
|
-
};
|
|
29
|
-
readonly studio: {
|
|
30
|
-
readonly enabled: true;
|
|
31
|
-
readonly installable: true;
|
|
32
|
-
};
|
|
33
|
-
readonly mcp: {
|
|
34
|
-
readonly enabled: true;
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
4
|
+
declare const example: ExampleSpec;
|
|
38
5
|
//#endregion
|
|
39
6
|
export { example as default };
|
|
40
7
|
//# sourceMappingURL=example.d.ts.map
|
package/dist/example.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"example.d.ts","names":[],"sources":["../src/example.ts"],"sourcesContent":[],"mappings":";;;cAEM,SAAS"}
|
package/dist/example.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
//#region src/example.ts
|
|
2
2
|
const example = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
meta: {
|
|
4
|
+
key: "analytics-dashboard",
|
|
5
|
+
version: "1.0.0",
|
|
6
|
+
title: "Analytics Dashboard",
|
|
7
|
+
description: "Tenant-scoped dashboards, widgets, query builder, and scheduled reports (spec-first widgets/queries).",
|
|
8
|
+
kind: "template",
|
|
9
|
+
visibility: "public",
|
|
10
|
+
stability: "experimental",
|
|
11
|
+
owners: ["@platform.core"],
|
|
12
|
+
tags: [
|
|
13
|
+
"analytics",
|
|
14
|
+
"dashboards",
|
|
15
|
+
"bi",
|
|
16
|
+
"queries"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
14
19
|
docs: {
|
|
15
20
|
rootDocId: "docs.examples.analytics-dashboard",
|
|
16
21
|
goalDocId: "docs.examples.analytics-dashboard.goal",
|
package/dist/example.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"example.js","names":[],"sources":["../src/example.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"example.js","names":["example: ExampleSpec"],"sources":["../src/example.ts"],"sourcesContent":["import type { ExampleSpec } from '@contractspec/lib.contracts';\n\nconst example: ExampleSpec = {\n meta: {\n key: 'analytics-dashboard',\n version: '1.0.0',\n title: 'Analytics Dashboard',\n description:\n 'Tenant-scoped dashboards, widgets, query builder, and scheduled reports (spec-first widgets/queries).',\n kind: 'template',\n visibility: 'public',\n stability: 'experimental',\n owners: ['@platform.core'],\n tags: ['analytics', 'dashboards', 'bi', 'queries'],\n },\n docs: {\n rootDocId: 'docs.examples.analytics-dashboard',\n goalDocId: 'docs.examples.analytics-dashboard.goal',\n usageDocId: 'docs.examples.analytics-dashboard.usage',\n constraintsDocId: 'docs.examples.analytics-dashboard.constraints',\n },\n entrypoints: {\n packageName: '@contractspec/example.analytics-dashboard',\n feature: './feature',\n contracts: './contracts',\n presentations: './presentations',\n handlers: './handlers',\n docs: './docs',\n },\n surfaces: {\n templates: true,\n sandbox: {\n enabled: true,\n modes: ['playground', 'specs', 'builder', 'markdown', 'evolution'],\n },\n studio: { enabled: true, installable: true },\n mcp: { enabled: true },\n },\n};\n\nexport default example;\n"],"mappings":";AAEA,MAAMA,UAAuB;CAC3B,MAAM;EACJ,KAAK;EACL,SAAS;EACT,OAAO;EACP,aACE;EACF,MAAM;EACN,YAAY;EACZ,WAAW;EACX,QAAQ,CAAC,iBAAiB;EAC1B,MAAM;GAAC;GAAa;GAAc;GAAM;GAAU;EACnD;CACD,MAAM;EACJ,WAAW;EACX,WAAW;EACX,YAAY;EACZ,kBAAkB;EACnB;CACD,aAAa;EACX,aAAa;EACb,SAAS;EACT,WAAW;EACX,eAAe;EACf,UAAU;EACV,MAAM;EACP;CACD,UAAU;EACR,WAAW;EACX,SAAS;GACP,SAAS;GACT,OAAO;IAAC;IAAc;IAAS;IAAW;IAAY;IAAY;GACnE;EACD,QAAQ;GAAE,SAAS;GAAM,aAAa;GAAM;EAC5C,KAAK,EAAE,SAAS,MAAM;EACvB;CACF;AAED,sBAAe"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _contractspec_lib_schema209 from "@contractspec/lib.schema";
|
|
2
2
|
|
|
3
3
|
//#region src/query/query.enum.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Query type enum.
|
|
6
6
|
*/
|
|
7
|
-
declare const QueryTypeEnum:
|
|
7
|
+
declare const QueryTypeEnum: _contractspec_lib_schema209.EnumType<[string, string, string, string]>;
|
|
8
8
|
//#endregion
|
|
9
9
|
export { QueryTypeEnum };
|
|
10
10
|
//# sourceMappingURL=query.enum.d.ts.map
|