@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.
- package/dist/browser/dashboard/dashboard.enum.js +34 -0
- package/dist/browser/dashboard/dashboard.operation.js +289 -0
- package/dist/browser/dashboard/dashboard.presentation.js +197 -0
- package/dist/browser/dashboard/dashboard.schema.js +126 -0
- package/dist/browser/dashboard/dashboard.test-spec.js +213 -0
- package/dist/browser/dashboard/index.js +299 -0
- package/dist/browser/dashboard.feature.js +84 -0
- package/dist/browser/datasource/posthog-datasource.js +289 -0
- package/dist/browser/docs/analytics-dashboard.docblock.js +103 -0
- package/dist/browser/docs/index.js +103 -0
- package/dist/browser/events.js +81 -0
- package/dist/browser/example.js +42 -0
- package/dist/browser/handlers/analytics.handlers.js +278 -0
- package/dist/browser/handlers/index.js +571 -0
- package/dist/browser/handlers/query.handlers.js +294 -0
- package/dist/browser/index.js +1677 -0
- package/dist/browser/query/index.js +159 -0
- package/dist/browser/query/query.enum.js +11 -0
- package/dist/browser/query/query.operation.js +154 -0
- package/dist/browser/query/query.presentation.js +119 -0
- package/dist/browser/query/query.schema.js +70 -0
- package/dist/browser/query/query.test-spec.js +113 -0
- package/dist/browser/query-engine/index.js +491 -0
- package/dist/browser/seeders/index.js +20 -0
- package/dist/browser/ui/AnalyticsDashboard.js +394 -0
- package/dist/browser/ui/hooks/index.js +69 -0
- package/dist/browser/ui/hooks/useAnalyticsData.js +66 -0
- package/dist/browser/ui/index.js +671 -0
- package/dist/browser/ui/renderers/analytics.markdown.js +275 -0
- package/dist/browser/ui/renderers/index.js +275 -0
- package/dist/dashboard/dashboard.enum.d.ts +3 -8
- package/dist/dashboard/dashboard.enum.d.ts.map +1 -1
- package/dist/dashboard/dashboard.enum.js +31 -39
- package/dist/dashboard/dashboard.operation.d.ts +444 -450
- package/dist/dashboard/dashboard.operation.d.ts.map +1 -1
- package/dist/dashboard/dashboard.operation.js +284 -207
- package/dist/dashboard/dashboard.presentation.d.ts +3 -8
- package/dist/dashboard/dashboard.presentation.d.ts.map +1 -1
- package/dist/dashboard/dashboard.presentation.js +193 -85
- package/dist/dashboard/dashboard.schema.d.ts +289 -294
- package/dist/dashboard/dashboard.schema.d.ts.map +1 -1
- package/dist/dashboard/dashboard.schema.js +119 -228
- package/dist/dashboard/dashboard.test-spec.d.ts +4 -9
- package/dist/dashboard/dashboard.test-spec.d.ts.map +1 -1
- package/dist/dashboard/dashboard.test-spec.js +209 -228
- package/dist/dashboard/index.d.ts +7 -4
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.js +299 -4
- package/dist/dashboard.feature.d.ts +1 -6
- package/dist/dashboard.feature.d.ts.map +1 -1
- package/dist/dashboard.feature.js +83 -175
- package/dist/datasource/posthog-datasource.d.ts +15 -19
- package/dist/datasource/posthog-datasource.d.ts.map +1 -1
- package/dist/datasource/posthog-datasource.js +274 -238
- package/dist/docs/analytics-dashboard.docblock.d.ts +2 -1
- package/dist/docs/analytics-dashboard.docblock.d.ts.map +1 -0
- package/dist/docs/analytics-dashboard.docblock.js +45 -56
- package/dist/docs/index.d.ts +2 -1
- package/dist/docs/index.d.ts.map +1 -0
- package/dist/docs/index.js +104 -1
- package/dist/events.d.ts +109 -115
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +74 -120
- package/dist/example.d.ts +2 -6
- package/dist/example.d.ts.map +1 -1
- package/dist/example.js +41 -55
- package/dist/handlers/analytics.handlers.d.ts +110 -109
- package/dist/handlers/analytics.handlers.d.ts.map +1 -1
- package/dist/handlers/analytics.handlers.js +267 -298
- package/dist/handlers/index.d.ts +3 -3
- package/dist/handlers/index.d.ts.map +1 -0
- package/dist/handlers/index.js +571 -3
- package/dist/handlers/query.handlers.d.ts +7 -11
- package/dist/handlers/query.handlers.d.ts.map +1 -1
- package/dist/handlers/query.handlers.js +292 -7
- package/dist/index.d.ts +12 -13
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1678 -14
- package/dist/node/dashboard/dashboard.enum.js +34 -0
- package/dist/node/dashboard/dashboard.operation.js +289 -0
- package/dist/node/dashboard/dashboard.presentation.js +197 -0
- package/dist/node/dashboard/dashboard.schema.js +126 -0
- package/dist/node/dashboard/dashboard.test-spec.js +213 -0
- package/dist/node/dashboard/index.js +299 -0
- package/dist/node/dashboard.feature.js +84 -0
- package/dist/node/datasource/posthog-datasource.js +289 -0
- package/dist/node/docs/analytics-dashboard.docblock.js +103 -0
- package/dist/node/docs/index.js +103 -0
- package/dist/node/events.js +81 -0
- package/dist/node/example.js +42 -0
- package/dist/node/handlers/analytics.handlers.js +278 -0
- package/dist/node/handlers/index.js +571 -0
- package/dist/node/handlers/query.handlers.js +294 -0
- package/dist/node/index.js +1677 -0
- package/dist/node/query/index.js +159 -0
- package/dist/node/query/query.enum.js +11 -0
- package/dist/node/query/query.operation.js +154 -0
- package/dist/node/query/query.presentation.js +119 -0
- package/dist/node/query/query.schema.js +70 -0
- package/dist/node/query/query.test-spec.js +113 -0
- package/dist/node/query-engine/index.js +491 -0
- package/dist/node/seeders/index.js +20 -0
- package/dist/node/ui/AnalyticsDashboard.js +394 -0
- package/dist/node/ui/hooks/index.js +69 -0
- package/dist/node/ui/hooks/useAnalyticsData.js +66 -0
- package/dist/node/ui/index.js +671 -0
- package/dist/node/ui/renderers/analytics.markdown.js +275 -0
- package/dist/node/ui/renderers/index.js +275 -0
- package/dist/query/index.d.ts +7 -4
- package/dist/query/index.d.ts.map +1 -0
- package/dist/query/index.js +159 -4
- package/dist/query/query.enum.d.ts +1 -6
- package/dist/query/query.enum.d.ts.map +1 -1
- package/dist/query/query.enum.js +10 -14
- package/dist/query/query.operation.d.ts +148 -154
- package/dist/query/query.operation.d.ts.map +1 -1
- package/dist/query/query.operation.js +151 -109
- package/dist/query/query.presentation.d.ts +2 -7
- package/dist/query/query.presentation.d.ts.map +1 -1
- package/dist/query/query.presentation.js +116 -56
- package/dist/query/query.schema.d.ts +121 -126
- package/dist/query/query.schema.d.ts.map +1 -1
- package/dist/query/query.schema.js +66 -152
- package/dist/query/query.test-spec.d.ts +2 -7
- package/dist/query/query.test-spec.d.ts.map +1 -1
- package/dist/query/query.test-spec.js +111 -121
- package/dist/query-engine/index.d.ts +84 -88
- package/dist/query-engine/index.d.ts.map +1 -1
- package/dist/query-engine/index.js +489 -188
- package/dist/seeders/index.d.ts +4 -8
- package/dist/seeders/index.d.ts.map +1 -1
- package/dist/seeders/index.js +18 -16
- package/dist/ui/AnalyticsDashboard.d.ts +1 -6
- package/dist/ui/AnalyticsDashboard.d.ts.map +1 -1
- package/dist/ui/AnalyticsDashboard.js +389 -259
- package/dist/ui/hooks/index.d.ts +2 -2
- package/dist/ui/hooks/index.d.ts.map +1 -0
- package/dist/ui/hooks/index.js +69 -4
- package/dist/ui/hooks/useAnalyticsData.d.ts +16 -20
- package/dist/ui/hooks/useAnalyticsData.d.ts.map +1 -1
- package/dist/ui/hooks/useAnalyticsData.js +63 -69
- package/dist/ui/index.d.ts +7 -6
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +671 -5
- package/dist/ui/renderers/analytics.markdown.d.ts +13 -14
- package/dist/ui/renderers/analytics.markdown.d.ts.map +1 -1
- package/dist/ui/renderers/analytics.markdown.js +266 -254
- package/dist/ui/renderers/index.d.ts +2 -2
- package/dist/ui/renderers/index.d.ts.map +1 -0
- package/dist/ui/renderers/index.js +275 -2
- package/package.json +328 -67
- package/dist/dashboard/dashboard.enum.js.map +0 -1
- package/dist/dashboard/dashboard.operation.js.map +0 -1
- package/dist/dashboard/dashboard.presentation.js.map +0 -1
- package/dist/dashboard/dashboard.schema.js.map +0 -1
- package/dist/dashboard/dashboard.test-spec.js.map +0 -1
- package/dist/dashboard.feature.js.map +0 -1
- package/dist/datasource/posthog-datasource.js.map +0 -1
- package/dist/docs/analytics-dashboard.docblock.js.map +0 -1
- package/dist/events.js.map +0 -1
- package/dist/example.js.map +0 -1
- package/dist/handlers/analytics.handlers.js.map +0 -1
- package/dist/handlers/query.handlers.js.map +0 -1
- package/dist/query/query.enum.js.map +0 -1
- package/dist/query/query.operation.js.map +0 -1
- package/dist/query/query.presentation.js.map +0 -1
- package/dist/query/query.schema.js.map +0 -1
- package/dist/query/query.test-spec.js.map +0 -1
- package/dist/query-engine/index.js.map +0 -1
- package/dist/seeders/index.js.map +0 -1
- package/dist/ui/AnalyticsDashboard.js.map +0 -1
- package/dist/ui/hooks/useAnalyticsData.js.map +0 -1
- package/dist/ui/renderers/analytics.markdown.js.map +0 -1
|
@@ -1,236 +1,127 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// @bun
|
|
2
|
+
// src/dashboard/dashboard.enum.ts
|
|
3
|
+
import { defineEnum } from "@contractspec/lib.schema";
|
|
4
|
+
var DashboardStatusEnum = defineEnum("DashboardStatus", [
|
|
5
|
+
"DRAFT",
|
|
6
|
+
"PUBLISHED",
|
|
7
|
+
"ARCHIVED"
|
|
8
|
+
]);
|
|
9
|
+
var WidgetTypeEnum = defineEnum("WidgetType", [
|
|
10
|
+
"LINE_CHART",
|
|
11
|
+
"BAR_CHART",
|
|
12
|
+
"PIE_CHART",
|
|
13
|
+
"AREA_CHART",
|
|
14
|
+
"SCATTER_PLOT",
|
|
15
|
+
"METRIC",
|
|
16
|
+
"TABLE",
|
|
17
|
+
"HEATMAP",
|
|
18
|
+
"FUNNEL",
|
|
19
|
+
"MAP",
|
|
20
|
+
"TEXT",
|
|
21
|
+
"EMBED"
|
|
22
|
+
]);
|
|
23
|
+
var RefreshIntervalEnum = defineEnum("RefreshInterval", [
|
|
24
|
+
"NONE",
|
|
25
|
+
"MINUTE",
|
|
26
|
+
"FIVE_MINUTES",
|
|
27
|
+
"FIFTEEN_MINUTES",
|
|
28
|
+
"HOUR",
|
|
29
|
+
"DAY"
|
|
30
|
+
]);
|
|
3
31
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
21
|
-
isOptional: false
|
|
22
|
-
},
|
|
23
|
-
type: {
|
|
24
|
-
type: WidgetTypeEnum,
|
|
25
|
-
isOptional: false
|
|
26
|
-
},
|
|
27
|
-
gridX: {
|
|
28
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
29
|
-
isOptional: false
|
|
30
|
-
},
|
|
31
|
-
gridY: {
|
|
32
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
33
|
-
isOptional: false
|
|
34
|
-
},
|
|
35
|
-
gridWidth: {
|
|
36
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
37
|
-
isOptional: false
|
|
38
|
-
},
|
|
39
|
-
gridHeight: {
|
|
40
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
41
|
-
isOptional: false
|
|
42
|
-
},
|
|
43
|
-
queryId: {
|
|
44
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
45
|
-
isOptional: true
|
|
46
|
-
},
|
|
47
|
-
config: {
|
|
48
|
-
type: ScalarTypeEnum.JSON(),
|
|
49
|
-
isOptional: true
|
|
50
|
-
}
|
|
51
|
-
}
|
|
32
|
+
// src/dashboard/dashboard.schema.ts
|
|
33
|
+
import { defineSchemaModel, ScalarTypeEnum } from "@contractspec/lib.schema";
|
|
34
|
+
var WidgetModel = defineSchemaModel({
|
|
35
|
+
name: "WidgetModel",
|
|
36
|
+
fields: {
|
|
37
|
+
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
38
|
+
dashboardId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
39
|
+
name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
40
|
+
type: { type: WidgetTypeEnum, isOptional: false },
|
|
41
|
+
gridX: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
42
|
+
gridY: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
43
|
+
gridWidth: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
44
|
+
gridHeight: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false },
|
|
45
|
+
queryId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
46
|
+
config: { type: ScalarTypeEnum.JSON(), isOptional: true }
|
|
47
|
+
}
|
|
52
48
|
});
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
},
|
|
67
|
-
slug: {
|
|
68
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
69
|
-
isOptional: false
|
|
70
|
-
},
|
|
71
|
-
description: {
|
|
72
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
73
|
-
isOptional: true
|
|
74
|
-
},
|
|
75
|
-
status: {
|
|
76
|
-
type: DashboardStatusEnum,
|
|
77
|
-
isOptional: false
|
|
78
|
-
},
|
|
79
|
-
refreshInterval: {
|
|
80
|
-
type: RefreshIntervalEnum,
|
|
81
|
-
isOptional: false
|
|
82
|
-
},
|
|
83
|
-
isPublic: {
|
|
84
|
-
type: ScalarTypeEnum.Boolean(),
|
|
85
|
-
isOptional: false
|
|
86
|
-
},
|
|
87
|
-
widgets: {
|
|
88
|
-
type: WidgetModel,
|
|
89
|
-
isArray: true,
|
|
90
|
-
isOptional: true
|
|
91
|
-
},
|
|
92
|
-
createdAt: {
|
|
93
|
-
type: ScalarTypeEnum.DateTime(),
|
|
94
|
-
isOptional: false
|
|
95
|
-
}
|
|
96
|
-
}
|
|
49
|
+
var DashboardModel = defineSchemaModel({
|
|
50
|
+
name: "DashboardModel",
|
|
51
|
+
fields: {
|
|
52
|
+
id: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
53
|
+
name: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
54
|
+
slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
55
|
+
description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
56
|
+
status: { type: DashboardStatusEnum, isOptional: false },
|
|
57
|
+
refreshInterval: { type: RefreshIntervalEnum, isOptional: false },
|
|
58
|
+
isPublic: { type: ScalarTypeEnum.Boolean(), isOptional: false },
|
|
59
|
+
widgets: { type: WidgetModel, isArray: true, isOptional: true },
|
|
60
|
+
createdAt: { type: ScalarTypeEnum.DateTime(), isOptional: false }
|
|
61
|
+
}
|
|
97
62
|
});
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
slug: {
|
|
109
|
-
type: ScalarTypeEnum.NonEmptyString(),
|
|
110
|
-
isOptional: false
|
|
111
|
-
},
|
|
112
|
-
description: {
|
|
113
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
114
|
-
isOptional: true
|
|
115
|
-
},
|
|
116
|
-
refreshInterval: {
|
|
117
|
-
type: RefreshIntervalEnum,
|
|
118
|
-
isOptional: true
|
|
119
|
-
},
|
|
120
|
-
dateRange: {
|
|
121
|
-
type: ScalarTypeEnum.JSON(),
|
|
122
|
-
isOptional: true
|
|
123
|
-
}
|
|
124
|
-
}
|
|
63
|
+
var CreateDashboardInputModel = defineSchemaModel({
|
|
64
|
+
name: "CreateDashboardInput",
|
|
65
|
+
fields: {
|
|
66
|
+
name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
67
|
+
slug: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
68
|
+
description: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
69
|
+
refreshInterval: { type: RefreshIntervalEnum, isOptional: true },
|
|
70
|
+
dateRange: { type: ScalarTypeEnum.JSON(), isOptional: true }
|
|
71
|
+
}
|
|
125
72
|
});
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
},
|
|
140
|
-
type: {
|
|
141
|
-
type: WidgetTypeEnum,
|
|
142
|
-
isOptional: false
|
|
143
|
-
},
|
|
144
|
-
gridX: {
|
|
145
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
146
|
-
isOptional: true
|
|
147
|
-
},
|
|
148
|
-
gridY: {
|
|
149
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
150
|
-
isOptional: true
|
|
151
|
-
},
|
|
152
|
-
gridWidth: {
|
|
153
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
154
|
-
isOptional: true
|
|
155
|
-
},
|
|
156
|
-
gridHeight: {
|
|
157
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
158
|
-
isOptional: true
|
|
159
|
-
},
|
|
160
|
-
queryId: {
|
|
161
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
162
|
-
isOptional: true
|
|
163
|
-
},
|
|
164
|
-
config: {
|
|
165
|
-
type: ScalarTypeEnum.JSON(),
|
|
166
|
-
isOptional: true
|
|
167
|
-
}
|
|
168
|
-
}
|
|
73
|
+
var AddWidgetInputModel = defineSchemaModel({
|
|
74
|
+
name: "AddWidgetInput",
|
|
75
|
+
fields: {
|
|
76
|
+
dashboardId: { type: ScalarTypeEnum.String_unsecure(), isOptional: false },
|
|
77
|
+
name: { type: ScalarTypeEnum.NonEmptyString(), isOptional: false },
|
|
78
|
+
type: { type: WidgetTypeEnum, isOptional: false },
|
|
79
|
+
gridX: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
80
|
+
gridY: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
81
|
+
gridWidth: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
82
|
+
gridHeight: { type: ScalarTypeEnum.Int_unsecure(), isOptional: true },
|
|
83
|
+
queryId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
84
|
+
config: { type: ScalarTypeEnum.JSON(), isOptional: true }
|
|
85
|
+
}
|
|
169
86
|
});
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
isOptional: true,
|
|
187
|
-
defaultValue: 20
|
|
188
|
-
},
|
|
189
|
-
offset: {
|
|
190
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
191
|
-
isOptional: true,
|
|
192
|
-
defaultValue: 0
|
|
193
|
-
}
|
|
194
|
-
}
|
|
87
|
+
var ListDashboardsInputModel = defineSchemaModel({
|
|
88
|
+
name: "ListDashboardsInput",
|
|
89
|
+
fields: {
|
|
90
|
+
status: { type: DashboardStatusEnum, isOptional: true },
|
|
91
|
+
search: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
92
|
+
limit: {
|
|
93
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
94
|
+
isOptional: true,
|
|
95
|
+
defaultValue: 20
|
|
96
|
+
},
|
|
97
|
+
offset: {
|
|
98
|
+
type: ScalarTypeEnum.Int_unsecure(),
|
|
99
|
+
isOptional: true,
|
|
100
|
+
defaultValue: 0
|
|
101
|
+
}
|
|
102
|
+
}
|
|
195
103
|
});
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
dashboards: {
|
|
203
|
-
type: DashboardModel,
|
|
204
|
-
isArray: true,
|
|
205
|
-
isOptional: false
|
|
206
|
-
},
|
|
207
|
-
total: {
|
|
208
|
-
type: ScalarTypeEnum.Int_unsecure(),
|
|
209
|
-
isOptional: false
|
|
210
|
-
}
|
|
211
|
-
}
|
|
104
|
+
var ListDashboardsOutputModel = defineSchemaModel({
|
|
105
|
+
name: "ListDashboardsOutput",
|
|
106
|
+
fields: {
|
|
107
|
+
dashboards: { type: DashboardModel, isArray: true, isOptional: false },
|
|
108
|
+
total: { type: ScalarTypeEnum.Int_unsecure(), isOptional: false }
|
|
109
|
+
}
|
|
212
110
|
});
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
221
|
-
isOptional: true
|
|
222
|
-
},
|
|
223
|
-
slug: {
|
|
224
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
225
|
-
isOptional: true
|
|
226
|
-
},
|
|
227
|
-
shareToken: {
|
|
228
|
-
type: ScalarTypeEnum.String_unsecure(),
|
|
229
|
-
isOptional: true
|
|
230
|
-
}
|
|
231
|
-
}
|
|
111
|
+
var GetDashboardInputModel = defineSchemaModel({
|
|
112
|
+
name: "GetDashboardInput",
|
|
113
|
+
fields: {
|
|
114
|
+
dashboardId: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
115
|
+
slug: { type: ScalarTypeEnum.String_unsecure(), isOptional: true },
|
|
116
|
+
shareToken: { type: ScalarTypeEnum.String_unsecure(), isOptional: true }
|
|
117
|
+
}
|
|
232
118
|
});
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
119
|
+
export {
|
|
120
|
+
WidgetModel,
|
|
121
|
+
ListDashboardsOutputModel,
|
|
122
|
+
ListDashboardsInputModel,
|
|
123
|
+
GetDashboardInputModel,
|
|
124
|
+
DashboardModel,
|
|
125
|
+
CreateDashboardInputModel,
|
|
126
|
+
AddWidgetInputModel
|
|
127
|
+
};
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const
|
|
5
|
-
declare const ListDashboardsTest: _contractspec_lib_contracts0.TestSpec;
|
|
6
|
-
declare const GetDashboardTest: _contractspec_lib_contracts0.TestSpec;
|
|
7
|
-
declare const AddWidgetTest: _contractspec_lib_contracts0.TestSpec;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { AddWidgetTest, CreateDashboardTest, GetDashboardTest, ListDashboardsTest };
|
|
1
|
+
export declare const CreateDashboardTest: import("@contractspec/lib.contracts").TestSpec;
|
|
2
|
+
export declare const ListDashboardsTest: import("@contractspec/lib.contracts").TestSpec;
|
|
3
|
+
export declare const GetDashboardTest: import("@contractspec/lib.contracts").TestSpec;
|
|
4
|
+
export declare const AddWidgetTest: import("@contractspec/lib.contracts").TestSpec;
|
|
10
5
|
//# sourceMappingURL=dashboard.test-spec.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboard.test-spec.d.ts","
|
|
1
|
+
{"version":3,"file":"dashboard.test-spec.d.ts","sourceRoot":"","sources":["../../src/dashboard/dashboard.test-spec.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,gDAmD9B,CAAC;AAEH,eAAO,MAAM,kBAAkB,gDA+C7B,CAAC;AAEH,eAAO,MAAM,gBAAgB,gDA8C3B,CAAC;AAEH,eAAO,MAAM,aAAa,gDAyDxB,CAAC"}
|