@contractspec/example.analytics-dashboard 1.56.1 → 1.58.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 (171) 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 -7
  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 +18 -0
  53. package/dist/datasource/posthog-datasource.d.ts.map +1 -0
  54. package/dist/datasource/posthog-datasource.js +290 -0
  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 +46 -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 +40 -55
  67. package/dist/handlers/analytics.handlers.d.ts +110 -110
  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 -2
  71. package/dist/handlers/index.d.ts.map +1 -0
  72. package/dist/handlers/index.js +571 -2
  73. package/dist/handlers/query.handlers.d.ts +9 -0
  74. package/dist/handlers/query.handlers.d.ts.map +1 -0
  75. package/dist/handlers/query.handlers.js +295 -0
  76. package/dist/index.d.ts +12 -12
  77. package/dist/index.d.ts.map +1 -0
  78. package/dist/index.js +1678 -13
  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 -86
  128. package/dist/query-engine/index.d.ts.map +1 -1
  129. package/dist/query-engine/index.js +490 -187
  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 -15
  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 +329 -62
  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/docs/analytics-dashboard.docblock.js.map +0 -1
  159. package/dist/events.js.map +0 -1
  160. package/dist/example.js.map +0 -1
  161. package/dist/handlers/analytics.handlers.js.map +0 -1
  162. package/dist/query/query.enum.js.map +0 -1
  163. package/dist/query/query.operation.js.map +0 -1
  164. package/dist/query/query.presentation.js.map +0 -1
  165. package/dist/query/query.schema.js.map +0 -1
  166. package/dist/query/query.test-spec.js.map +0 -1
  167. package/dist/query-engine/index.js.map +0 -1
  168. package/dist/seeders/index.js.map +0 -1
  169. package/dist/ui/AnalyticsDashboard.js.map +0 -1
  170. package/dist/ui/hooks/useAnalyticsData.js.map +0 -1
  171. package/dist/ui/renderers/analytics.markdown.js.map +0 -1
@@ -1,333 +1,328 @@
1
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
2
-
3
- //#region src/dashboard/dashboard.schema.d.ts
4
1
  /**
5
2
  * A dashboard widget.
6
3
  */
7
- declare const WidgetModel: _contractspec_lib_schema0.SchemaModel<{
8
- id: {
9
- type: _contractspec_lib_schema0.FieldType<string, string>;
10
- isOptional: false;
11
- };
12
- dashboardId: {
13
- type: _contractspec_lib_schema0.FieldType<string, string>;
14
- isOptional: false;
15
- };
16
- name: {
17
- type: _contractspec_lib_schema0.FieldType<string, string>;
18
- isOptional: false;
19
- };
20
- type: {
21
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
22
- isOptional: false;
23
- };
24
- gridX: {
25
- type: _contractspec_lib_schema0.FieldType<number, number>;
26
- isOptional: false;
27
- };
28
- gridY: {
29
- type: _contractspec_lib_schema0.FieldType<number, number>;
30
- isOptional: false;
31
- };
32
- gridWidth: {
33
- type: _contractspec_lib_schema0.FieldType<number, number>;
34
- isOptional: false;
35
- };
36
- gridHeight: {
37
- type: _contractspec_lib_schema0.FieldType<number, number>;
38
- isOptional: false;
39
- };
40
- queryId: {
41
- type: _contractspec_lib_schema0.FieldType<string, string>;
42
- isOptional: true;
43
- };
44
- config: {
45
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
46
- isOptional: true;
47
- };
4
+ export declare const WidgetModel: import("@contractspec/lib.schema").SchemaModel<{
5
+ id: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
7
+ isOptional: false;
8
+ };
9
+ dashboardId: {
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
11
+ isOptional: false;
12
+ };
13
+ name: {
14
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
15
+ isOptional: false;
16
+ };
17
+ type: {
18
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
19
+ isOptional: false;
20
+ };
21
+ gridX: {
22
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
23
+ isOptional: false;
24
+ };
25
+ gridY: {
26
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
27
+ isOptional: false;
28
+ };
29
+ gridWidth: {
30
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
31
+ isOptional: false;
32
+ };
33
+ gridHeight: {
34
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
35
+ isOptional: false;
36
+ };
37
+ queryId: {
38
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
39
+ isOptional: true;
40
+ };
41
+ config: {
42
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
43
+ isOptional: true;
44
+ };
48
45
  }>;
49
46
  /**
50
47
  * An analytics dashboard.
51
48
  */
52
- declare const DashboardModel: _contractspec_lib_schema0.SchemaModel<{
53
- id: {
54
- type: _contractspec_lib_schema0.FieldType<string, string>;
55
- isOptional: false;
56
- };
57
- name: {
58
- type: _contractspec_lib_schema0.FieldType<string, string>;
59
- isOptional: false;
60
- };
61
- slug: {
62
- type: _contractspec_lib_schema0.FieldType<string, string>;
63
- isOptional: false;
64
- };
65
- description: {
66
- type: _contractspec_lib_schema0.FieldType<string, string>;
67
- isOptional: true;
68
- };
69
- status: {
70
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
71
- isOptional: false;
72
- };
73
- refreshInterval: {
74
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
75
- isOptional: false;
76
- };
77
- isPublic: {
78
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
79
- isOptional: false;
80
- };
81
- widgets: {
82
- type: _contractspec_lib_schema0.SchemaModel<{
83
- id: {
84
- type: _contractspec_lib_schema0.FieldType<string, string>;
85
- isOptional: false;
86
- };
87
- dashboardId: {
88
- type: _contractspec_lib_schema0.FieldType<string, string>;
89
- isOptional: false;
90
- };
91
- name: {
92
- type: _contractspec_lib_schema0.FieldType<string, string>;
49
+ export declare const DashboardModel: import("@contractspec/lib.schema").SchemaModel<{
50
+ id: {
51
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
93
52
  isOptional: false;
94
- };
95
- type: {
96
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
53
+ };
54
+ name: {
55
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
97
56
  isOptional: false;
98
- };
99
- gridX: {
100
- type: _contractspec_lib_schema0.FieldType<number, number>;
57
+ };
58
+ slug: {
59
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
101
60
  isOptional: false;
102
- };
103
- gridY: {
104
- type: _contractspec_lib_schema0.FieldType<number, number>;
61
+ };
62
+ description: {
63
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
64
+ isOptional: true;
65
+ };
66
+ status: {
67
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
105
68
  isOptional: false;
106
- };
107
- gridWidth: {
108
- type: _contractspec_lib_schema0.FieldType<number, number>;
69
+ };
70
+ refreshInterval: {
71
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string]>;
109
72
  isOptional: false;
110
- };
111
- gridHeight: {
112
- type: _contractspec_lib_schema0.FieldType<number, number>;
73
+ };
74
+ isPublic: {
75
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
113
76
  isOptional: false;
114
- };
115
- queryId: {
116
- type: _contractspec_lib_schema0.FieldType<string, string>;
117
- isOptional: true;
118
- };
119
- config: {
120
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
77
+ };
78
+ widgets: {
79
+ type: import("@contractspec/lib.schema").SchemaModel<{
80
+ id: {
81
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
82
+ isOptional: false;
83
+ };
84
+ dashboardId: {
85
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
86
+ isOptional: false;
87
+ };
88
+ name: {
89
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
90
+ isOptional: false;
91
+ };
92
+ type: {
93
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
94
+ isOptional: false;
95
+ };
96
+ gridX: {
97
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
98
+ isOptional: false;
99
+ };
100
+ gridY: {
101
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
102
+ isOptional: false;
103
+ };
104
+ gridWidth: {
105
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
106
+ isOptional: false;
107
+ };
108
+ gridHeight: {
109
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
110
+ isOptional: false;
111
+ };
112
+ queryId: {
113
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
114
+ isOptional: true;
115
+ };
116
+ config: {
117
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
118
+ isOptional: true;
119
+ };
120
+ }>;
121
+ isArray: true;
121
122
  isOptional: true;
122
- };
123
- }>;
124
- isArray: true;
125
- isOptional: true;
126
- };
127
- createdAt: {
128
- type: _contractspec_lib_schema0.FieldType<Date, string>;
129
- isOptional: false;
130
- };
123
+ };
124
+ createdAt: {
125
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
126
+ isOptional: false;
127
+ };
131
128
  }>;
132
129
  /**
133
130
  * Input for creating a dashboard.
134
131
  */
135
- declare const CreateDashboardInputModel: _contractspec_lib_schema0.SchemaModel<{
136
- name: {
137
- type: _contractspec_lib_schema0.FieldType<string, string>;
138
- isOptional: false;
139
- };
140
- slug: {
141
- type: _contractspec_lib_schema0.FieldType<string, string>;
142
- isOptional: false;
143
- };
144
- description: {
145
- type: _contractspec_lib_schema0.FieldType<string, string>;
146
- isOptional: true;
147
- };
148
- refreshInterval: {
149
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
150
- isOptional: true;
151
- };
152
- dateRange: {
153
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
154
- isOptional: true;
155
- };
132
+ export declare const CreateDashboardInputModel: import("@contractspec/lib.schema").SchemaModel<{
133
+ name: {
134
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
135
+ isOptional: false;
136
+ };
137
+ slug: {
138
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
139
+ isOptional: false;
140
+ };
141
+ description: {
142
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
143
+ isOptional: true;
144
+ };
145
+ refreshInterval: {
146
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string]>;
147
+ isOptional: true;
148
+ };
149
+ dateRange: {
150
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
151
+ isOptional: true;
152
+ };
156
153
  }>;
157
154
  /**
158
155
  * Input for adding a widget.
159
156
  */
160
- declare const AddWidgetInputModel: _contractspec_lib_schema0.SchemaModel<{
161
- dashboardId: {
162
- type: _contractspec_lib_schema0.FieldType<string, string>;
163
- isOptional: false;
164
- };
165
- name: {
166
- type: _contractspec_lib_schema0.FieldType<string, string>;
167
- isOptional: false;
168
- };
169
- type: {
170
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
171
- isOptional: false;
172
- };
173
- gridX: {
174
- type: _contractspec_lib_schema0.FieldType<number, number>;
175
- isOptional: true;
176
- };
177
- gridY: {
178
- type: _contractspec_lib_schema0.FieldType<number, number>;
179
- isOptional: true;
180
- };
181
- gridWidth: {
182
- type: _contractspec_lib_schema0.FieldType<number, number>;
183
- isOptional: true;
184
- };
185
- gridHeight: {
186
- type: _contractspec_lib_schema0.FieldType<number, number>;
187
- isOptional: true;
188
- };
189
- queryId: {
190
- type: _contractspec_lib_schema0.FieldType<string, string>;
191
- isOptional: true;
192
- };
193
- config: {
194
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
195
- isOptional: true;
196
- };
157
+ export declare const AddWidgetInputModel: import("@contractspec/lib.schema").SchemaModel<{
158
+ dashboardId: {
159
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
160
+ isOptional: false;
161
+ };
162
+ name: {
163
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
164
+ isOptional: false;
165
+ };
166
+ type: {
167
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
168
+ isOptional: false;
169
+ };
170
+ gridX: {
171
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
172
+ isOptional: true;
173
+ };
174
+ gridY: {
175
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
176
+ isOptional: true;
177
+ };
178
+ gridWidth: {
179
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
180
+ isOptional: true;
181
+ };
182
+ gridHeight: {
183
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
184
+ isOptional: true;
185
+ };
186
+ queryId: {
187
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
188
+ isOptional: true;
189
+ };
190
+ config: {
191
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
192
+ isOptional: true;
193
+ };
197
194
  }>;
198
195
  /**
199
196
  * Input for listing dashboards.
200
197
  */
201
- declare const ListDashboardsInputModel: _contractspec_lib_schema0.SchemaModel<{
202
- status: {
203
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
204
- isOptional: true;
205
- };
206
- search: {
207
- type: _contractspec_lib_schema0.FieldType<string, string>;
208
- isOptional: true;
209
- };
210
- limit: {
211
- type: _contractspec_lib_schema0.FieldType<number, number>;
212
- isOptional: true;
213
- defaultValue: number;
214
- };
215
- offset: {
216
- type: _contractspec_lib_schema0.FieldType<number, number>;
217
- isOptional: true;
218
- defaultValue: number;
219
- };
198
+ export declare const ListDashboardsInputModel: import("@contractspec/lib.schema").SchemaModel<{
199
+ status: {
200
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
201
+ isOptional: true;
202
+ };
203
+ search: {
204
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
205
+ isOptional: true;
206
+ };
207
+ limit: {
208
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
209
+ isOptional: true;
210
+ defaultValue: number;
211
+ };
212
+ offset: {
213
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
214
+ isOptional: true;
215
+ defaultValue: number;
216
+ };
220
217
  }>;
221
218
  /**
222
219
  * Output for listing dashboards.
223
220
  */
224
- declare const ListDashboardsOutputModel: _contractspec_lib_schema0.SchemaModel<{
225
- dashboards: {
226
- type: _contractspec_lib_schema0.SchemaModel<{
227
- id: {
228
- type: _contractspec_lib_schema0.FieldType<string, string>;
229
- isOptional: false;
230
- };
231
- name: {
232
- type: _contractspec_lib_schema0.FieldType<string, string>;
233
- isOptional: false;
234
- };
235
- slug: {
236
- type: _contractspec_lib_schema0.FieldType<string, string>;
237
- isOptional: false;
238
- };
239
- description: {
240
- type: _contractspec_lib_schema0.FieldType<string, string>;
241
- isOptional: true;
242
- };
243
- status: {
244
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
245
- isOptional: false;
246
- };
247
- refreshInterval: {
248
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
249
- isOptional: false;
250
- };
251
- isPublic: {
252
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
253
- isOptional: false;
254
- };
255
- widgets: {
256
- type: _contractspec_lib_schema0.SchemaModel<{
257
- id: {
258
- type: _contractspec_lib_schema0.FieldType<string, string>;
259
- isOptional: false;
260
- };
261
- dashboardId: {
262
- type: _contractspec_lib_schema0.FieldType<string, string>;
263
- isOptional: false;
264
- };
265
- name: {
266
- type: _contractspec_lib_schema0.FieldType<string, string>;
267
- isOptional: false;
268
- };
269
- type: {
270
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
271
- isOptional: false;
272
- };
273
- gridX: {
274
- type: _contractspec_lib_schema0.FieldType<number, number>;
275
- isOptional: false;
276
- };
277
- gridY: {
278
- type: _contractspec_lib_schema0.FieldType<number, number>;
279
- isOptional: false;
280
- };
281
- gridWidth: {
282
- type: _contractspec_lib_schema0.FieldType<number, number>;
283
- isOptional: false;
284
- };
285
- gridHeight: {
286
- type: _contractspec_lib_schema0.FieldType<number, number>;
287
- isOptional: false;
288
- };
289
- queryId: {
290
- type: _contractspec_lib_schema0.FieldType<string, string>;
291
- isOptional: true;
292
- };
293
- config: {
294
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
295
- isOptional: true;
296
- };
221
+ export declare const ListDashboardsOutputModel: import("@contractspec/lib.schema").SchemaModel<{
222
+ dashboards: {
223
+ type: import("@contractspec/lib.schema").SchemaModel<{
224
+ id: {
225
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
226
+ isOptional: false;
227
+ };
228
+ name: {
229
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
230
+ isOptional: false;
231
+ };
232
+ slug: {
233
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
234
+ isOptional: false;
235
+ };
236
+ description: {
237
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
238
+ isOptional: true;
239
+ };
240
+ status: {
241
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
242
+ isOptional: false;
243
+ };
244
+ refreshInterval: {
245
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string]>;
246
+ isOptional: false;
247
+ };
248
+ isPublic: {
249
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
250
+ isOptional: false;
251
+ };
252
+ widgets: {
253
+ type: import("@contractspec/lib.schema").SchemaModel<{
254
+ id: {
255
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
256
+ isOptional: false;
257
+ };
258
+ dashboardId: {
259
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
260
+ isOptional: false;
261
+ };
262
+ name: {
263
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
264
+ isOptional: false;
265
+ };
266
+ type: {
267
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
268
+ isOptional: false;
269
+ };
270
+ gridX: {
271
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
272
+ isOptional: false;
273
+ };
274
+ gridY: {
275
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
276
+ isOptional: false;
277
+ };
278
+ gridWidth: {
279
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
280
+ isOptional: false;
281
+ };
282
+ gridHeight: {
283
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
284
+ isOptional: false;
285
+ };
286
+ queryId: {
287
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
288
+ isOptional: true;
289
+ };
290
+ config: {
291
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
292
+ isOptional: true;
293
+ };
294
+ }>;
295
+ isArray: true;
296
+ isOptional: true;
297
+ };
298
+ createdAt: {
299
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
300
+ isOptional: false;
301
+ };
297
302
  }>;
298
303
  isArray: true;
299
- isOptional: true;
300
- };
301
- createdAt: {
302
- type: _contractspec_lib_schema0.FieldType<Date, string>;
303
304
  isOptional: false;
304
- };
305
- }>;
306
- isArray: true;
307
- isOptional: false;
308
- };
309
- total: {
310
- type: _contractspec_lib_schema0.FieldType<number, number>;
311
- isOptional: false;
312
- };
305
+ };
306
+ total: {
307
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
308
+ isOptional: false;
309
+ };
313
310
  }>;
314
311
  /**
315
312
  * Input for getting a dashboard.
316
313
  */
317
- declare const GetDashboardInputModel: _contractspec_lib_schema0.SchemaModel<{
318
- dashboardId: {
319
- type: _contractspec_lib_schema0.FieldType<string, string>;
320
- isOptional: true;
321
- };
322
- slug: {
323
- type: _contractspec_lib_schema0.FieldType<string, string>;
324
- isOptional: true;
325
- };
326
- shareToken: {
327
- type: _contractspec_lib_schema0.FieldType<string, string>;
328
- isOptional: true;
329
- };
314
+ export declare const GetDashboardInputModel: import("@contractspec/lib.schema").SchemaModel<{
315
+ dashboardId: {
316
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
317
+ isOptional: true;
318
+ };
319
+ slug: {
320
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
321
+ isOptional: true;
322
+ };
323
+ shareToken: {
324
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
325
+ isOptional: true;
326
+ };
330
327
  }>;
331
- //#endregion
332
- export { AddWidgetInputModel, CreateDashboardInputModel, DashboardModel, GetDashboardInputModel, ListDashboardsInputModel, ListDashboardsOutputModel, WidgetModel };
333
328
  //# sourceMappingURL=dashboard.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"dashboard.schema.d.ts","names":[],"sources":["../../src/dashboard/dashboard.schema.ts"],"sourcesContent":[],"mappings":";;;;;;AAUa,cAAA,WAcX,4BAdsB,WActB,CAAA;EAAA,EAAA,EAAA;UAAA,yBAAA,CAAA;;;;;;;;;;EAdsB,CAAA;EAmBX,IAAA,EAAA;IAaX,IAAA,oCAAA,CAAA,CAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA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