@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,537 +1,531 @@
1
- import * as _contractspec_lib_contracts0 from "@contractspec/lib.contracts";
2
- import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
3
-
4
- //#region src/dashboard/dashboard.operation.d.ts
5
1
  /**
6
2
  * Create a new analytics dashboard.
7
3
  */
8
- declare const CreateDashboardContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
9
- name: {
10
- type: _contractspec_lib_schema0.FieldType<string, string>;
11
- isOptional: false;
12
- };
13
- slug: {
14
- type: _contractspec_lib_schema0.FieldType<string, string>;
15
- isOptional: false;
16
- };
17
- description: {
18
- type: _contractspec_lib_schema0.FieldType<string, string>;
19
- isOptional: true;
20
- };
21
- refreshInterval: {
22
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
23
- isOptional: true;
24
- };
25
- dateRange: {
26
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
27
- isOptional: true;
28
- };
29
- }>, _contractspec_lib_schema0.SchemaModel<{
30
- id: {
31
- type: _contractspec_lib_schema0.FieldType<string, string>;
32
- isOptional: false;
33
- };
34
- name: {
35
- type: _contractspec_lib_schema0.FieldType<string, string>;
36
- isOptional: false;
37
- };
38
- slug: {
39
- type: _contractspec_lib_schema0.FieldType<string, string>;
40
- isOptional: false;
41
- };
42
- description: {
43
- type: _contractspec_lib_schema0.FieldType<string, string>;
44
- isOptional: true;
45
- };
46
- status: {
47
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
48
- isOptional: false;
49
- };
50
- refreshInterval: {
51
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
52
- isOptional: false;
53
- };
54
- isPublic: {
55
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
56
- isOptional: false;
57
- };
58
- widgets: {
59
- type: _contractspec_lib_schema0.SchemaModel<{
60
- id: {
61
- type: _contractspec_lib_schema0.FieldType<string, string>;
62
- isOptional: false;
63
- };
64
- dashboardId: {
65
- type: _contractspec_lib_schema0.FieldType<string, string>;
66
- isOptional: false;
67
- };
68
- name: {
69
- type: _contractspec_lib_schema0.FieldType<string, string>;
70
- isOptional: false;
71
- };
72
- type: {
73
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
74
- isOptional: false;
75
- };
76
- gridX: {
77
- type: _contractspec_lib_schema0.FieldType<number, number>;
78
- isOptional: false;
79
- };
80
- gridY: {
81
- type: _contractspec_lib_schema0.FieldType<number, number>;
82
- isOptional: false;
83
- };
84
- gridWidth: {
85
- type: _contractspec_lib_schema0.FieldType<number, number>;
4
+ export declare const CreateDashboardContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
5
+ name: {
6
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
86
7
  isOptional: false;
87
- };
88
- gridHeight: {
89
- type: _contractspec_lib_schema0.FieldType<number, number>;
8
+ };
9
+ slug: {
10
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
90
11
  isOptional: false;
91
- };
92
- queryId: {
93
- type: _contractspec_lib_schema0.FieldType<string, string>;
12
+ };
13
+ description: {
14
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
94
15
  isOptional: true;
95
- };
96
- config: {
97
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
16
+ };
17
+ refreshInterval: {
18
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string]>;
98
19
  isOptional: true;
99
- };
100
- }>;
101
- isArray: true;
102
- isOptional: true;
103
- };
104
- createdAt: {
105
- type: _contractspec_lib_schema0.FieldType<Date, string>;
106
- isOptional: false;
107
- };
108
- }>, {
109
- key: string;
110
- version: string;
111
- stability: string;
112
- owners: "@example.analytics-dashboard"[];
113
- tags: string[];
114
- when: string;
115
- payload: _contractspec_lib_schema0.SchemaModel<{
20
+ };
21
+ dateRange: {
22
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
23
+ isOptional: true;
24
+ };
25
+ }>, import("@contractspec/lib.schema").SchemaModel<{
116
26
  id: {
117
- type: _contractspec_lib_schema0.FieldType<string, string>;
118
- isOptional: false;
27
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
28
+ isOptional: false;
119
29
  };
120
30
  name: {
121
- type: _contractspec_lib_schema0.FieldType<string, string>;
122
- isOptional: false;
31
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
32
+ isOptional: false;
123
33
  };
124
34
  slug: {
125
- type: _contractspec_lib_schema0.FieldType<string, string>;
126
- isOptional: false;
35
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
36
+ isOptional: false;
127
37
  };
128
38
  description: {
129
- type: _contractspec_lib_schema0.FieldType<string, string>;
130
- isOptional: true;
39
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
40
+ isOptional: true;
131
41
  };
132
42
  status: {
133
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
134
- isOptional: false;
43
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
44
+ isOptional: false;
135
45
  };
136
46
  refreshInterval: {
137
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
138
- isOptional: false;
47
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string]>;
48
+ isOptional: false;
139
49
  };
140
50
  isPublic: {
141
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
142
- isOptional: false;
51
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
52
+ isOptional: false;
143
53
  };
144
54
  widgets: {
145
- type: _contractspec_lib_schema0.SchemaModel<{
55
+ type: import("@contractspec/lib.schema").SchemaModel<{
56
+ id: {
57
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
58
+ isOptional: false;
59
+ };
60
+ dashboardId: {
61
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
62
+ isOptional: false;
63
+ };
64
+ name: {
65
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
66
+ isOptional: false;
67
+ };
68
+ type: {
69
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
70
+ isOptional: false;
71
+ };
72
+ gridX: {
73
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
74
+ isOptional: false;
75
+ };
76
+ gridY: {
77
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
78
+ isOptional: false;
79
+ };
80
+ gridWidth: {
81
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
82
+ isOptional: false;
83
+ };
84
+ gridHeight: {
85
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
86
+ isOptional: false;
87
+ };
88
+ queryId: {
89
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
90
+ isOptional: true;
91
+ };
92
+ config: {
93
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
94
+ isOptional: true;
95
+ };
96
+ }>;
97
+ isArray: true;
98
+ isOptional: true;
99
+ };
100
+ createdAt: {
101
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
102
+ isOptional: false;
103
+ };
104
+ }>, {
105
+ key: string;
106
+ version: string;
107
+ stability: string;
108
+ owners: "@example.analytics-dashboard"[];
109
+ tags: string[];
110
+ when: string;
111
+ payload: import("@contractspec/lib.schema").SchemaModel<{
146
112
  id: {
147
- type: _contractspec_lib_schema0.FieldType<string, string>;
148
- isOptional: false;
149
- };
150
- dashboardId: {
151
- type: _contractspec_lib_schema0.FieldType<string, string>;
152
- isOptional: false;
113
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
114
+ isOptional: false;
153
115
  };
154
116
  name: {
155
- type: _contractspec_lib_schema0.FieldType<string, string>;
156
- isOptional: false;
117
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
118
+ isOptional: false;
157
119
  };
158
- type: {
159
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
160
- isOptional: false;
120
+ slug: {
121
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
122
+ isOptional: false;
161
123
  };
162
- gridX: {
163
- type: _contractspec_lib_schema0.FieldType<number, number>;
164
- isOptional: false;
124
+ description: {
125
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
126
+ isOptional: true;
165
127
  };
166
- gridY: {
167
- type: _contractspec_lib_schema0.FieldType<number, number>;
168
- isOptional: false;
128
+ status: {
129
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
130
+ isOptional: false;
169
131
  };
170
- gridWidth: {
171
- type: _contractspec_lib_schema0.FieldType<number, number>;
172
- isOptional: false;
132
+ refreshInterval: {
133
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string]>;
134
+ isOptional: false;
173
135
  };
174
- gridHeight: {
175
- type: _contractspec_lib_schema0.FieldType<number, number>;
176
- isOptional: false;
136
+ isPublic: {
137
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
138
+ isOptional: false;
177
139
  };
178
- queryId: {
179
- type: _contractspec_lib_schema0.FieldType<string, string>;
180
- isOptional: true;
140
+ widgets: {
141
+ type: import("@contractspec/lib.schema").SchemaModel<{
142
+ id: {
143
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
144
+ isOptional: false;
145
+ };
146
+ dashboardId: {
147
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
148
+ isOptional: false;
149
+ };
150
+ name: {
151
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
152
+ isOptional: false;
153
+ };
154
+ type: {
155
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
156
+ isOptional: false;
157
+ };
158
+ gridX: {
159
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
160
+ isOptional: false;
161
+ };
162
+ gridY: {
163
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
164
+ isOptional: false;
165
+ };
166
+ gridWidth: {
167
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
168
+ isOptional: false;
169
+ };
170
+ gridHeight: {
171
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
172
+ isOptional: false;
173
+ };
174
+ queryId: {
175
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
176
+ isOptional: true;
177
+ };
178
+ config: {
179
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
180
+ isOptional: true;
181
+ };
182
+ }>;
183
+ isArray: true;
184
+ isOptional: true;
181
185
  };
182
- config: {
183
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
184
- isOptional: true;
186
+ createdAt: {
187
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
188
+ isOptional: false;
185
189
  };
186
- }>;
187
- isArray: true;
188
- isOptional: true;
189
- };
190
- createdAt: {
191
- type: _contractspec_lib_schema0.FieldType<Date, string>;
192
- isOptional: false;
193
- };
194
- }>;
190
+ }>;
195
191
  }[]>;
196
192
  /**
197
193
  * Add a widget to a dashboard.
198
194
  */
199
- declare const AddWidgetContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
200
- dashboardId: {
201
- type: _contractspec_lib_schema0.FieldType<string, string>;
202
- isOptional: false;
203
- };
204
- name: {
205
- type: _contractspec_lib_schema0.FieldType<string, string>;
206
- isOptional: false;
207
- };
208
- type: {
209
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
210
- isOptional: false;
211
- };
212
- gridX: {
213
- type: _contractspec_lib_schema0.FieldType<number, number>;
214
- isOptional: true;
215
- };
216
- gridY: {
217
- type: _contractspec_lib_schema0.FieldType<number, number>;
218
- isOptional: true;
219
- };
220
- gridWidth: {
221
- type: _contractspec_lib_schema0.FieldType<number, number>;
222
- isOptional: true;
223
- };
224
- gridHeight: {
225
- type: _contractspec_lib_schema0.FieldType<number, number>;
226
- isOptional: true;
227
- };
228
- queryId: {
229
- type: _contractspec_lib_schema0.FieldType<string, string>;
230
- isOptional: true;
231
- };
232
- config: {
233
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
234
- isOptional: true;
235
- };
236
- }>, _contractspec_lib_schema0.SchemaModel<{
237
- id: {
238
- type: _contractspec_lib_schema0.FieldType<string, string>;
239
- isOptional: false;
240
- };
241
- dashboardId: {
242
- type: _contractspec_lib_schema0.FieldType<string, string>;
243
- isOptional: false;
244
- };
245
- name: {
246
- type: _contractspec_lib_schema0.FieldType<string, string>;
247
- isOptional: false;
248
- };
249
- type: {
250
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
251
- isOptional: false;
252
- };
253
- gridX: {
254
- type: _contractspec_lib_schema0.FieldType<number, number>;
255
- isOptional: false;
256
- };
257
- gridY: {
258
- type: _contractspec_lib_schema0.FieldType<number, number>;
259
- isOptional: false;
260
- };
261
- gridWidth: {
262
- type: _contractspec_lib_schema0.FieldType<number, number>;
263
- isOptional: false;
264
- };
265
- gridHeight: {
266
- type: _contractspec_lib_schema0.FieldType<number, number>;
267
- isOptional: false;
268
- };
269
- queryId: {
270
- type: _contractspec_lib_schema0.FieldType<string, string>;
271
- isOptional: true;
272
- };
273
- config: {
274
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
275
- isOptional: true;
276
- };
277
- }>, {
278
- key: string;
279
- version: string;
280
- stability: string;
281
- owners: "@example.analytics-dashboard"[];
282
- tags: string[];
283
- when: string;
284
- payload: _contractspec_lib_schema0.SchemaModel<{
285
- id: {
286
- type: _contractspec_lib_schema0.FieldType<string, string>;
287
- isOptional: false;
288
- };
195
+ export declare const AddWidgetContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
289
196
  dashboardId: {
290
- type: _contractspec_lib_schema0.FieldType<string, string>;
291
- isOptional: false;
197
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
198
+ isOptional: false;
292
199
  };
293
200
  name: {
294
- type: _contractspec_lib_schema0.FieldType<string, string>;
295
- isOptional: false;
201
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
202
+ isOptional: false;
296
203
  };
297
204
  type: {
298
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
299
- isOptional: false;
205
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
206
+ isOptional: false;
300
207
  };
301
208
  gridX: {
302
- type: _contractspec_lib_schema0.FieldType<number, number>;
303
- isOptional: false;
209
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
210
+ isOptional: true;
304
211
  };
305
212
  gridY: {
306
- type: _contractspec_lib_schema0.FieldType<number, number>;
307
- isOptional: false;
213
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
214
+ isOptional: true;
308
215
  };
309
216
  gridWidth: {
310
- type: _contractspec_lib_schema0.FieldType<number, number>;
311
- isOptional: false;
217
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
218
+ isOptional: true;
312
219
  };
313
220
  gridHeight: {
314
- type: _contractspec_lib_schema0.FieldType<number, number>;
315
- isOptional: false;
221
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
222
+ isOptional: true;
316
223
  };
317
224
  queryId: {
318
- type: _contractspec_lib_schema0.FieldType<string, string>;
319
- isOptional: true;
225
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
226
+ isOptional: true;
320
227
  };
321
228
  config: {
322
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
323
- isOptional: true;
229
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
230
+ isOptional: true;
324
231
  };
325
- }>;
326
- }[]>;
327
- /**
328
- * List dashboards.
329
- */
330
- declare const ListDashboardsContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
331
- status: {
332
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
333
- isOptional: true;
334
- };
335
- search: {
336
- type: _contractspec_lib_schema0.FieldType<string, string>;
337
- isOptional: true;
338
- };
339
- limit: {
340
- type: _contractspec_lib_schema0.FieldType<number, number>;
341
- isOptional: true;
342
- defaultValue: number;
343
- };
344
- offset: {
345
- type: _contractspec_lib_schema0.FieldType<number, number>;
346
- isOptional: true;
347
- defaultValue: number;
348
- };
349
- }>, _contractspec_lib_schema0.SchemaModel<{
350
- dashboards: {
351
- type: _contractspec_lib_schema0.SchemaModel<{
352
- id: {
353
- type: _contractspec_lib_schema0.FieldType<string, string>;
232
+ }>, import("@contractspec/lib.schema").SchemaModel<{
233
+ id: {
234
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
354
235
  isOptional: false;
355
- };
356
- name: {
357
- type: _contractspec_lib_schema0.FieldType<string, string>;
236
+ };
237
+ dashboardId: {
238
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
358
239
  isOptional: false;
359
- };
360
- slug: {
361
- type: _contractspec_lib_schema0.FieldType<string, string>;
240
+ };
241
+ name: {
242
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
362
243
  isOptional: false;
363
- };
364
- description: {
365
- type: _contractspec_lib_schema0.FieldType<string, string>;
366
- isOptional: true;
367
- };
368
- status: {
369
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
244
+ };
245
+ type: {
246
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
247
+ isOptional: false;
248
+ };
249
+ gridX: {
250
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
251
+ isOptional: false;
252
+ };
253
+ gridY: {
254
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
370
255
  isOptional: false;
371
- };
372
- refreshInterval: {
373
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
256
+ };
257
+ gridWidth: {
258
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
374
259
  isOptional: false;
375
- };
376
- isPublic: {
377
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
260
+ };
261
+ gridHeight: {
262
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
378
263
  isOptional: false;
379
- };
380
- widgets: {
381
- type: _contractspec_lib_schema0.SchemaModel<{
382
- id: {
383
- type: _contractspec_lib_schema0.FieldType<string, string>;
264
+ };
265
+ queryId: {
266
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
267
+ isOptional: true;
268
+ };
269
+ config: {
270
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
271
+ isOptional: true;
272
+ };
273
+ }>, {
274
+ key: string;
275
+ version: string;
276
+ stability: string;
277
+ owners: "@example.analytics-dashboard"[];
278
+ tags: string[];
279
+ when: string;
280
+ payload: import("@contractspec/lib.schema").SchemaModel<{
281
+ id: {
282
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
384
283
  isOptional: false;
385
- };
386
- dashboardId: {
387
- type: _contractspec_lib_schema0.FieldType<string, string>;
284
+ };
285
+ dashboardId: {
286
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
388
287
  isOptional: false;
389
- };
390
- name: {
391
- type: _contractspec_lib_schema0.FieldType<string, string>;
288
+ };
289
+ name: {
290
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
392
291
  isOptional: false;
393
- };
394
- type: {
395
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
292
+ };
293
+ type: {
294
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
396
295
  isOptional: false;
397
- };
398
- gridX: {
399
- type: _contractspec_lib_schema0.FieldType<number, number>;
296
+ };
297
+ gridX: {
298
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
400
299
  isOptional: false;
401
- };
402
- gridY: {
403
- type: _contractspec_lib_schema0.FieldType<number, number>;
300
+ };
301
+ gridY: {
302
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
404
303
  isOptional: false;
405
- };
406
- gridWidth: {
407
- type: _contractspec_lib_schema0.FieldType<number, number>;
304
+ };
305
+ gridWidth: {
306
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
408
307
  isOptional: false;
409
- };
410
- gridHeight: {
411
- type: _contractspec_lib_schema0.FieldType<number, number>;
308
+ };
309
+ gridHeight: {
310
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
412
311
  isOptional: false;
413
- };
414
- queryId: {
415
- type: _contractspec_lib_schema0.FieldType<string, string>;
312
+ };
313
+ queryId: {
314
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
416
315
  isOptional: true;
417
- };
418
- config: {
419
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
316
+ };
317
+ config: {
318
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
420
319
  isOptional: true;
421
- };
320
+ };
321
+ }>;
322
+ }[]>;
323
+ /**
324
+ * List dashboards.
325
+ */
326
+ export declare const ListDashboardsContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
327
+ status: {
328
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
329
+ isOptional: true;
330
+ };
331
+ search: {
332
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
333
+ isOptional: true;
334
+ };
335
+ limit: {
336
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
337
+ isOptional: true;
338
+ defaultValue: number;
339
+ };
340
+ offset: {
341
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
342
+ isOptional: true;
343
+ defaultValue: number;
344
+ };
345
+ }>, import("@contractspec/lib.schema").SchemaModel<{
346
+ dashboards: {
347
+ type: import("@contractspec/lib.schema").SchemaModel<{
348
+ id: {
349
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
350
+ isOptional: false;
351
+ };
352
+ name: {
353
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
354
+ isOptional: false;
355
+ };
356
+ slug: {
357
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
358
+ isOptional: false;
359
+ };
360
+ description: {
361
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
362
+ isOptional: true;
363
+ };
364
+ status: {
365
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
366
+ isOptional: false;
367
+ };
368
+ refreshInterval: {
369
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string]>;
370
+ isOptional: false;
371
+ };
372
+ isPublic: {
373
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
374
+ isOptional: false;
375
+ };
376
+ widgets: {
377
+ type: import("@contractspec/lib.schema").SchemaModel<{
378
+ id: {
379
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
380
+ isOptional: false;
381
+ };
382
+ dashboardId: {
383
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
384
+ isOptional: false;
385
+ };
386
+ name: {
387
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
388
+ isOptional: false;
389
+ };
390
+ type: {
391
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
392
+ isOptional: false;
393
+ };
394
+ gridX: {
395
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
396
+ isOptional: false;
397
+ };
398
+ gridY: {
399
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
400
+ isOptional: false;
401
+ };
402
+ gridWidth: {
403
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
404
+ isOptional: false;
405
+ };
406
+ gridHeight: {
407
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
408
+ isOptional: false;
409
+ };
410
+ queryId: {
411
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
412
+ isOptional: true;
413
+ };
414
+ config: {
415
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
416
+ isOptional: true;
417
+ };
418
+ }>;
419
+ isArray: true;
420
+ isOptional: true;
421
+ };
422
+ createdAt: {
423
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
424
+ isOptional: false;
425
+ };
422
426
  }>;
423
427
  isArray: true;
424
- isOptional: true;
425
- };
426
- createdAt: {
427
- type: _contractspec_lib_schema0.FieldType<Date, string>;
428
428
  isOptional: false;
429
- };
430
- }>;
431
- isArray: true;
432
- isOptional: false;
433
- };
434
- total: {
435
- type: _contractspec_lib_schema0.FieldType<number, number>;
436
- isOptional: false;
437
- };
429
+ };
430
+ total: {
431
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
432
+ isOptional: false;
433
+ };
438
434
  }>, undefined>;
439
435
  /**
440
436
  * Get a dashboard with widgets.
441
437
  */
442
- declare const GetDashboardContract: _contractspec_lib_contracts0.OperationSpec<_contractspec_lib_schema0.SchemaModel<{
443
- dashboardId: {
444
- type: _contractspec_lib_schema0.FieldType<string, string>;
445
- isOptional: true;
446
- };
447
- slug: {
448
- type: _contractspec_lib_schema0.FieldType<string, string>;
449
- isOptional: true;
450
- };
451
- shareToken: {
452
- type: _contractspec_lib_schema0.FieldType<string, string>;
453
- isOptional: true;
454
- };
455
- }>, _contractspec_lib_schema0.SchemaModel<{
456
- id: {
457
- type: _contractspec_lib_schema0.FieldType<string, string>;
458
- isOptional: false;
459
- };
460
- name: {
461
- type: _contractspec_lib_schema0.FieldType<string, string>;
462
- isOptional: false;
463
- };
464
- slug: {
465
- type: _contractspec_lib_schema0.FieldType<string, string>;
466
- isOptional: false;
467
- };
468
- description: {
469
- type: _contractspec_lib_schema0.FieldType<string, string>;
470
- isOptional: true;
471
- };
472
- status: {
473
- type: _contractspec_lib_schema0.EnumType<[string, string, string]>;
474
- isOptional: false;
475
- };
476
- refreshInterval: {
477
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string]>;
478
- isOptional: false;
479
- };
480
- isPublic: {
481
- type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
482
- isOptional: false;
483
- };
484
- widgets: {
485
- type: _contractspec_lib_schema0.SchemaModel<{
486
- id: {
487
- type: _contractspec_lib_schema0.FieldType<string, string>;
488
- isOptional: false;
489
- };
490
- dashboardId: {
491
- type: _contractspec_lib_schema0.FieldType<string, string>;
492
- isOptional: false;
493
- };
494
- name: {
495
- type: _contractspec_lib_schema0.FieldType<string, string>;
438
+ export declare const GetDashboardContract: import("@contractspec/lib.contracts").OperationSpec<import("@contractspec/lib.schema").SchemaModel<{
439
+ dashboardId: {
440
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
441
+ isOptional: true;
442
+ };
443
+ slug: {
444
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
445
+ isOptional: true;
446
+ };
447
+ shareToken: {
448
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
449
+ isOptional: true;
450
+ };
451
+ }>, import("@contractspec/lib.schema").SchemaModel<{
452
+ id: {
453
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
496
454
  isOptional: false;
497
- };
498
- type: {
499
- type: _contractspec_lib_schema0.EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
455
+ };
456
+ name: {
457
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
500
458
  isOptional: false;
501
- };
502
- gridX: {
503
- type: _contractspec_lib_schema0.FieldType<number, number>;
459
+ };
460
+ slug: {
461
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
504
462
  isOptional: false;
505
- };
506
- gridY: {
507
- type: _contractspec_lib_schema0.FieldType<number, number>;
463
+ };
464
+ description: {
465
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
466
+ isOptional: true;
467
+ };
468
+ status: {
469
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string]>;
508
470
  isOptional: false;
509
- };
510
- gridWidth: {
511
- type: _contractspec_lib_schema0.FieldType<number, number>;
471
+ };
472
+ refreshInterval: {
473
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string]>;
512
474
  isOptional: false;
513
- };
514
- gridHeight: {
515
- type: _contractspec_lib_schema0.FieldType<number, number>;
475
+ };
476
+ isPublic: {
477
+ type: import("@contractspec/lib.schema").FieldType<boolean, boolean>;
516
478
  isOptional: false;
517
- };
518
- queryId: {
519
- type: _contractspec_lib_schema0.FieldType<string, string>;
520
- isOptional: true;
521
- };
522
- config: {
523
- type: _contractspec_lib_schema0.FieldType<unknown, unknown>;
479
+ };
480
+ widgets: {
481
+ type: import("@contractspec/lib.schema").SchemaModel<{
482
+ id: {
483
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
484
+ isOptional: false;
485
+ };
486
+ dashboardId: {
487
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
488
+ isOptional: false;
489
+ };
490
+ name: {
491
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
492
+ isOptional: false;
493
+ };
494
+ type: {
495
+ type: import("@contractspec/lib.schema").EnumType<[string, string, string, string, string, string, string, string, string, string, string, string]>;
496
+ isOptional: false;
497
+ };
498
+ gridX: {
499
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
500
+ isOptional: false;
501
+ };
502
+ gridY: {
503
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
504
+ isOptional: false;
505
+ };
506
+ gridWidth: {
507
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
508
+ isOptional: false;
509
+ };
510
+ gridHeight: {
511
+ type: import("@contractspec/lib.schema").FieldType<number, number>;
512
+ isOptional: false;
513
+ };
514
+ queryId: {
515
+ type: import("@contractspec/lib.schema").FieldType<string, string>;
516
+ isOptional: true;
517
+ };
518
+ config: {
519
+ type: import("@contractspec/lib.schema").FieldType<unknown, unknown>;
520
+ isOptional: true;
521
+ };
522
+ }>;
523
+ isArray: true;
524
524
  isOptional: true;
525
- };
526
- }>;
527
- isArray: true;
528
- isOptional: true;
529
- };
530
- createdAt: {
531
- type: _contractspec_lib_schema0.FieldType<Date, string>;
532
- isOptional: false;
533
- };
525
+ };
526
+ createdAt: {
527
+ type: import("@contractspec/lib.schema").FieldType<Date, string>;
528
+ isOptional: false;
529
+ };
534
530
  }>, undefined>;
535
- //#endregion
536
- export { AddWidgetContract, CreateDashboardContract, GetDashboardContract, ListDashboardsContract };
537
531
  //# sourceMappingURL=dashboard.operation.d.ts.map