@altertable/data-app 0.59.1

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 (174) hide show
  1. package/AGENTS.md +35 -0
  2. package/CONTRIBUTING.md +83 -0
  3. package/LICENSE +21 -0
  4. package/README.md +63 -0
  5. package/dist/bootstrap.js +388 -0
  6. package/dist/chunks/contract-14vxdcrs.js +192 -0
  7. package/dist/chunks/contract-14vxdcrs.js.map +10 -0
  8. package/dist/chunks/contract-8q35dcyh.js +9 -0
  9. package/dist/chunks/contract-8q35dcyh.js.map +10 -0
  10. package/dist/chunks/contract-jksbmt5q.js +133 -0
  11. package/dist/chunks/contract-jksbmt5q.js.map +10 -0
  12. package/dist/chunks/contract-mb5nfzwg.js +375 -0
  13. package/dist/chunks/contract-mb5nfzwg.js.map +12 -0
  14. package/dist/chunks/contract-mev09s5v.js +77 -0
  15. package/dist/chunks/contract-mev09s5v.js.map +10 -0
  16. package/dist/chunks/contract-nt819swq.js +321 -0
  17. package/dist/chunks/contract-nt819swq.js.map +11 -0
  18. package/dist/chunks/contract-ryyf6dme.js +21 -0
  19. package/dist/chunks/contract-ryyf6dme.js.map +10 -0
  20. package/dist/chunks/contract-tkkc28tg.js +213 -0
  21. package/dist/chunks/contract-tkkc28tg.js.map +12 -0
  22. package/dist/chunks/contract-tqrf3ykr.js +232 -0
  23. package/dist/chunks/contract-tqrf3ykr.js.map +11 -0
  24. package/dist/chunks/contract-wz59z8pq.js +8 -0
  25. package/dist/chunks/contract-wz59z8pq.js.map +10 -0
  26. package/dist/client/index.js +27 -0
  27. package/dist/client/index.js.map +9 -0
  28. package/dist/core/appearance.js +12 -0
  29. package/dist/core/appearance.js.map +9 -0
  30. package/dist/core/config.js +8 -0
  31. package/dist/core/config.js.map +9 -0
  32. package/dist/core/contract.js +55 -0
  33. package/dist/core/contract.js.map +9 -0
  34. package/dist/core/format.js +18 -0
  35. package/dist/core/format.js.map +9 -0
  36. package/dist/embed/index.js +91 -0
  37. package/dist/embed/index.js.map +11 -0
  38. package/dist/local.js +332 -0
  39. package/dist/local.js.map +15 -0
  40. package/dist/react/embed/index.js +130 -0
  41. package/dist/react/embed/index.js.map +11 -0
  42. package/dist/react/index.css +4478 -0
  43. package/dist/react/index.js +6105 -0
  44. package/dist/react/index.js.map +90 -0
  45. package/dist/react.css.d.ts +1 -0
  46. package/dist/server.js +231 -0
  47. package/dist/server.js.map +14 -0
  48. package/dist/types/client/iframe.d.ts +39 -0
  49. package/dist/types/client/index.d.ts +42 -0
  50. package/dist/types/client/location.d.ts +15 -0
  51. package/dist/types/client/messages.d.ts +7 -0
  52. package/dist/types/client/navigation.d.ts +14 -0
  53. package/dist/types/client/transport.d.ts +15 -0
  54. package/dist/types/core/appearance.d.ts +28 -0
  55. package/dist/types/core/bridge.d.ts +35 -0
  56. package/dist/types/core/config.d.ts +14 -0
  57. package/dist/types/core/contract.d.ts +139 -0
  58. package/dist/types/core/data-view.d.ts +46 -0
  59. package/dist/types/core/date-range.d.ts +20 -0
  60. package/dist/types/core/dimension.d.ts +60 -0
  61. package/dist/types/core/format.d.ts +40 -0
  62. package/dist/types/core/invariant.d.ts +2 -0
  63. package/dist/types/core/messages.d.ts +77 -0
  64. package/dist/types/core/reading.d.ts +17 -0
  65. package/dist/types/core/variables.d.ts +82 -0
  66. package/dist/types/embed/bootstrap.d.ts +5 -0
  67. package/dist/types/embed/host.d.ts +23 -0
  68. package/dist/types/embed/index.d.ts +11 -0
  69. package/dist/types/embed/navigation.d.ts +6 -0
  70. package/dist/types/embed/shell.d.ts +21 -0
  71. package/dist/types/embed/standalone.d.ts +1 -0
  72. package/dist/types/react/content.d.ts +23 -0
  73. package/dist/types/react/embed/bridge.d.ts +12 -0
  74. package/dist/types/react/embed/index.d.ts +9 -0
  75. package/dist/types/react/embed/shell.d.ts +10 -0
  76. package/dist/types/react/hooks.d.ts +831 -0
  77. package/dist/types/react/index.d.ts +11 -0
  78. package/dist/types/react/mount.d.ts +11 -0
  79. package/dist/types/react/ui/AboutData.d.ts +61 -0
  80. package/dist/types/react/ui/AltertableLogo.d.ts +3 -0
  81. package/dist/types/react/ui/AppFooter.d.ts +7 -0
  82. package/dist/types/react/ui/AppHeader.d.ts +12 -0
  83. package/dist/types/react/ui/AppLayout.d.ts +17 -0
  84. package/dist/types/react/ui/AppScope.d.ts +8 -0
  85. package/dist/types/react/ui/AppToolbar.d.ts +32 -0
  86. package/dist/types/react/ui/Breakdown.d.ts +14 -0
  87. package/dist/types/react/ui/Button.d.ts +12 -0
  88. package/dist/types/react/ui/Checkbox.d.ts +11 -0
  89. package/dist/types/react/ui/Combobox.d.ts +43 -0
  90. package/dist/types/react/ui/ComparisonVisual.d.ts +15 -0
  91. package/dist/types/react/ui/ContentSkeleton.d.ts +8 -0
  92. package/dist/types/react/ui/DataApp.d.ts +56 -0
  93. package/dist/types/react/ui/DataBoundary.d.ts +16 -0
  94. package/dist/types/react/ui/DataSection.d.ts +28 -0
  95. package/dist/types/react/ui/DataTable.d.ts +28 -0
  96. package/dist/types/react/ui/DataViewToast.d.ts +12 -0
  97. package/dist/types/react/ui/DataWidget.d.ts +39 -0
  98. package/dist/types/react/ui/DateRangePicker.d.ts +29 -0
  99. package/dist/types/react/ui/DateTimeTooltip.d.ts +10 -0
  100. package/dist/types/react/ui/DimensionPicker.d.ts +11 -0
  101. package/dist/types/react/ui/EmptyState.d.ts +9 -0
  102. package/dist/types/react/ui/GettingStarted.d.ts +9 -0
  103. package/dist/types/react/ui/GlossaryDefinition.d.ts +8 -0
  104. package/dist/types/react/ui/GlossaryExplanation.d.ts +17 -0
  105. package/dist/types/react/ui/GradientScroll.d.ts +16 -0
  106. package/dist/types/react/ui/Grid.d.ts +13 -0
  107. package/dist/types/react/ui/GridItem.d.ts +7 -0
  108. package/dist/types/react/ui/HelpPopover.d.ts +24 -0
  109. package/dist/types/react/ui/IconButton.d.ts +19 -0
  110. package/dist/types/react/ui/InspectionContext.d.ts +10 -0
  111. package/dist/types/react/ui/Kbd.d.ts +8 -0
  112. package/dist/types/react/ui/LiveControl.d.ts +11 -0
  113. package/dist/types/react/ui/MetricWidget.d.ts +48 -0
  114. package/dist/types/react/ui/PeriodSummary.d.ts +17 -0
  115. package/dist/types/react/ui/PresentStory.d.ts +34 -0
  116. package/dist/types/react/ui/QueryList.d.ts +15 -0
  117. package/dist/types/react/ui/Ranking.d.ts +14 -0
  118. package/dist/types/react/ui/RefreshControl.d.ts +11 -0
  119. package/dist/types/react/ui/RefreshRegion.d.ts +10 -0
  120. package/dist/types/react/ui/RequestHint.d.ts +21 -0
  121. package/dist/types/react/ui/SearchField.d.ts +23 -0
  122. package/dist/types/react/ui/SearchInput.d.ts +9 -0
  123. package/dist/types/react/ui/SearchMatch.d.ts +7 -0
  124. package/dist/types/react/ui/SelectableBarChart.d.ts +16 -0
  125. package/dist/types/react/ui/SelectionMark.d.ts +5 -0
  126. package/dist/types/react/ui/Sheet.d.ts +19 -0
  127. package/dist/types/react/ui/Skeleton.d.ts +6 -0
  128. package/dist/types/react/ui/Stack.d.ts +8 -0
  129. package/dist/types/react/ui/StatusPanel.d.ts +11 -0
  130. package/dist/types/react/ui/TableWidget.d.ts +57 -0
  131. package/dist/types/react/ui/Tabs.d.ts +6 -0
  132. package/dist/types/react/ui/ThemeSelector.d.ts +13 -0
  133. package/dist/types/react/ui/Tooltip.d.ts +23 -0
  134. package/dist/types/react/ui/UpdatedAt.d.ts +10 -0
  135. package/dist/types/react/ui/VariableBar.d.ts +7 -0
  136. package/dist/types/react/ui/VisualizationWidget.d.ts +52 -0
  137. package/dist/types/react/ui/WidgetDisclosure.d.ts +7 -0
  138. package/dist/types/react/ui/WidgetEvidence.d.ts +12 -0
  139. package/dist/types/react/ui/WidgetViewTabs.d.ts +17 -0
  140. package/dist/types/react/ui/chartColor.d.ts +1 -0
  141. package/dist/types/react/ui/classNames.d.ts +1 -0
  142. package/dist/types/react/ui/comparison.d.ts +30 -0
  143. package/dist/types/react/ui/data-context.d.ts +65 -0
  144. package/dist/types/react/ui/data-identifiers.d.ts +33 -0
  145. package/dist/types/react/ui/icons.d.ts +42 -0
  146. package/dist/types/react/ui/index.d.ts +129 -0
  147. package/dist/types/react/ui/metric.d.ts +11 -0
  148. package/dist/types/react/ui/search.d.ts +6 -0
  149. package/dist/types/react/ui/searchItems.d.ts +34 -0
  150. package/dist/types/react/ui/shortcuts.d.ts +32 -0
  151. package/dist/types/react/ui/story.d.ts +20 -0
  152. package/dist/types/react/ui/variables.d.ts +36 -0
  153. package/dist/types/react/ui/widget-views.d.ts +3 -0
  154. package/dist/types/react/view-controls.d.ts +17 -0
  155. package/dist/types/react/view.d.ts +49 -0
  156. package/dist/types/server/handler.d.ts +13 -0
  157. package/dist/types/server/index.d.ts +7 -0
  158. package/dist/types/server/local.d.ts +17 -0
  159. package/docs/app-authoring.md +26 -0
  160. package/docs/appearance.md +30 -0
  161. package/docs/bootstrap.md +76 -0
  162. package/docs/client.md +127 -0
  163. package/docs/config.md +21 -0
  164. package/docs/contract.md +95 -0
  165. package/docs/embed.md +98 -0
  166. package/docs/format.md +29 -0
  167. package/docs/react-embed.md +57 -0
  168. package/docs/react-styles.md +17 -0
  169. package/docs/react.md +248 -0
  170. package/docs/releasing.md +74 -0
  171. package/docs/server-bun.md +26 -0
  172. package/docs/server.md +47 -0
  173. package/docs/starter-agent-instructions.md +51 -0
  174. package/package.json +124 -0
@@ -0,0 +1,831 @@
1
+ import { type ReactNode } from 'react';
2
+ import type { DataOperations, DateRangeRequest } from '../core/contract.js';
3
+ import type { DataClient, InputOf, OutputOf } from '../client/index.js';
4
+ import { type ReportingPeriod } from './ui/PeriodSummary.js';
5
+ import { type VariableCollection } from '../core/variables.js';
6
+ import { dateRangeVariable, type DateRangeVariableOptions } from './ui/variables.js';
7
+ import { type DimensionFilterOptions, type DimensionOption, type DimensionValue } from '../core/dimension.js';
8
+ import type { EmptyStateProps } from './ui/EmptyState.js';
9
+ import { type DataContentState } from './content.js';
10
+ import { type DataViewDefinition, type ResolvedVariables, type ViewBindings } from './view.js';
11
+ type TimeVariables<Additional extends VariableCollection> = {
12
+ period: ReturnType<typeof dateRangeVariable>;
13
+ } & Additional;
14
+ type TimeInput<Additional extends VariableCollection> = keyof Additional extends never ? DateRangeRequest : ResolvedVariables<TimeVariables<Additional>>;
15
+ type TimeInputMapping<Additional extends VariableCollection, Input> = TimeInput<Additional> extends Input ? {
16
+ input?: (values: ResolvedVariables<TimeVariables<Additional>>) => Input;
17
+ } : {
18
+ input: (values: ResolvedVariables<TimeVariables<Additional>>) => Input;
19
+ };
20
+ /**
21
+ * `placeholderData` may belong to an earlier input. Use `useDataView` to distinguish initial
22
+ * loading, refreshes, and changed-input requests.
23
+ */
24
+ export declare function createDataHooks<Operations extends DataOperations>(client: DataClient<Operations>): {
25
+ useDataQuery: <Name extends keyof Operations & string>(name: Name, input: InputOf<Operations[Name]>, options?: {
26
+ enabled?: boolean;
27
+ staleTime?: number;
28
+ gcTime?: number;
29
+ refetchOnWindowFocus?: boolean;
30
+ }) => {
31
+ dataUpdatedAt: number;
32
+ errorUpdatedAt: number;
33
+ failureCount: number;
34
+ failureReason: Error | null;
35
+ errorUpdateCount: number;
36
+ isFetched: boolean;
37
+ isFetchedAfterMount: boolean;
38
+ isFetching: boolean;
39
+ isInitialLoading: boolean;
40
+ isPaused: boolean;
41
+ isRefetching: boolean;
42
+ isStale: boolean;
43
+ isEnabled: boolean;
44
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
45
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
46
+ data: undefined;
47
+ error: Error;
48
+ isError: true;
49
+ isPending: false;
50
+ isLoading: false;
51
+ isLoadingError: true;
52
+ isRefetchError: false;
53
+ isSuccess: false;
54
+ isPlaceholderData: false;
55
+ status: 'error';
56
+ /** Abort the current request and restore its prior query state. */
57
+ cancel(this: void): Promise<void>;
58
+ } | {
59
+ dataUpdatedAt: number;
60
+ errorUpdatedAt: number;
61
+ failureCount: number;
62
+ failureReason: Error | null;
63
+ errorUpdateCount: number;
64
+ isFetched: boolean;
65
+ isFetchedAfterMount: boolean;
66
+ isFetching: boolean;
67
+ isInitialLoading: boolean;
68
+ isPaused: boolean;
69
+ isRefetching: boolean;
70
+ isStale: boolean;
71
+ isEnabled: boolean;
72
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
73
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
74
+ data: undefined;
75
+ error: null;
76
+ isError: false;
77
+ isPending: true;
78
+ isLoading: true;
79
+ isLoadingError: false;
80
+ isRefetchError: false;
81
+ isSuccess: false;
82
+ isPlaceholderData: false;
83
+ status: 'pending';
84
+ /** Abort the current request and restore its prior query state. */
85
+ cancel(this: void): Promise<void>;
86
+ } | {
87
+ dataUpdatedAt: number;
88
+ errorUpdatedAt: number;
89
+ failureCount: number;
90
+ failureReason: Error | null;
91
+ errorUpdateCount: number;
92
+ isFetched: boolean;
93
+ isFetchedAfterMount: boolean;
94
+ isFetching: boolean;
95
+ isLoading: boolean;
96
+ isInitialLoading: boolean;
97
+ isPaused: boolean;
98
+ isRefetching: boolean;
99
+ isStale: boolean;
100
+ isEnabled: boolean;
101
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
102
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
103
+ data: undefined;
104
+ error: null;
105
+ isError: false;
106
+ isPending: true;
107
+ isLoadingError: false;
108
+ isRefetchError: false;
109
+ isSuccess: false;
110
+ isPlaceholderData: false;
111
+ status: 'pending';
112
+ /** Abort the current request and restore its prior query state. */
113
+ cancel(this: void): Promise<void>;
114
+ } | {
115
+ dataUpdatedAt: number;
116
+ errorUpdatedAt: number;
117
+ failureCount: number;
118
+ failureReason: Error | null;
119
+ errorUpdateCount: number;
120
+ isFetched: boolean;
121
+ isFetchedAfterMount: boolean;
122
+ isFetching: boolean;
123
+ isInitialLoading: boolean;
124
+ isPaused: boolean;
125
+ isRefetching: boolean;
126
+ isStale: boolean;
127
+ isEnabled: boolean;
128
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
129
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
130
+ data: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
131
+ isError: false;
132
+ error: null;
133
+ isPending: false;
134
+ isLoading: false;
135
+ isLoadingError: false;
136
+ isRefetchError: false;
137
+ isSuccess: true;
138
+ isPlaceholderData: true;
139
+ status: 'success';
140
+ /** Abort the current request and restore its prior query state. */
141
+ cancel(this: void): Promise<void>;
142
+ } | {
143
+ dataUpdatedAt: number;
144
+ errorUpdatedAt: number;
145
+ failureCount: number;
146
+ failureReason: Error | null;
147
+ errorUpdateCount: number;
148
+ isFetched: boolean;
149
+ isFetchedAfterMount: boolean;
150
+ isFetching: boolean;
151
+ isInitialLoading: boolean;
152
+ isPaused: boolean;
153
+ isRefetching: boolean;
154
+ isStale: boolean;
155
+ isEnabled: boolean;
156
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
157
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
158
+ data: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
159
+ error: Error;
160
+ isError: true;
161
+ isPending: false;
162
+ isLoading: false;
163
+ isLoadingError: false;
164
+ isRefetchError: true;
165
+ isSuccess: false;
166
+ isPlaceholderData: false;
167
+ status: 'error';
168
+ /** Abort the current request and restore its prior query state. */
169
+ cancel(this: void): Promise<void>;
170
+ } | {
171
+ dataUpdatedAt: number;
172
+ errorUpdatedAt: number;
173
+ failureCount: number;
174
+ failureReason: Error | null;
175
+ errorUpdateCount: number;
176
+ isFetched: boolean;
177
+ isFetchedAfterMount: boolean;
178
+ isFetching: boolean;
179
+ isInitialLoading: boolean;
180
+ isPaused: boolean;
181
+ isRefetching: boolean;
182
+ isStale: boolean;
183
+ isEnabled: boolean;
184
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
185
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
186
+ data: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
187
+ error: null;
188
+ isError: false;
189
+ isPending: false;
190
+ isLoading: false;
191
+ isLoadingError: false;
192
+ isRefetchError: false;
193
+ isSuccess: true;
194
+ isPlaceholderData: false;
195
+ status: 'success';
196
+ /** Abort the current request and restore its prior query state. */
197
+ cancel(this: void): Promise<void>;
198
+ };
199
+ useDataView: <Name extends keyof Operations & string>(name: Name, input: InputOf<Operations[Name]>, options: {
200
+ enabled?: boolean;
201
+ staleTime?: number;
202
+ gcTime?: number;
203
+ refetchOnWindowFocus?: boolean;
204
+ } & {
205
+ isEmpty: (data: OutputOf<Operations[Name]>) => boolean;
206
+ describeInput?: (input: InputOf<Operations[Name]>) => string;
207
+ period?: (input: InputOf<Operations[Name]>) => ReportingPeriod;
208
+ sameInput?: (left: InputOf<Operations[Name]>, right: InputOf<Operations[Name]>) => boolean;
209
+ }) => {
210
+ dataUpdatedAt: number;
211
+ errorUpdatedAt: number;
212
+ failureCount: number;
213
+ failureReason: Error | null;
214
+ errorUpdateCount: number;
215
+ isFetched: boolean;
216
+ isFetchedAfterMount: boolean;
217
+ isFetching: boolean;
218
+ isInitialLoading: boolean;
219
+ isPaused: boolean;
220
+ isRefetching: boolean;
221
+ isStale: boolean;
222
+ isEnabled: boolean;
223
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
224
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
225
+ data: undefined;
226
+ error: Error;
227
+ isError: true;
228
+ isPending: false;
229
+ isLoading: false;
230
+ isLoadingError: true;
231
+ isRefetchError: false;
232
+ isSuccess: false;
233
+ isPlaceholderData: false;
234
+ status: 'error';
235
+ /** Abort the current request and restore its prior query state. */
236
+ cancel(this: void): Promise<void>;
237
+ view: import("../core/data-view.js").DataView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
238
+ snapshot: import("../core/data-view.js").DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
239
+ response: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
240
+ queries: import("../core/contract.js").DisclosedQuery[] | undefined;
241
+ refresh: {
242
+ refreshing: boolean;
243
+ onRefresh(): undefined;
244
+ onCancel: (this: void) => Promise<void>;
245
+ };
246
+ } | {
247
+ dataUpdatedAt: number;
248
+ errorUpdatedAt: number;
249
+ failureCount: number;
250
+ failureReason: Error | null;
251
+ errorUpdateCount: number;
252
+ isFetched: boolean;
253
+ isFetchedAfterMount: boolean;
254
+ isFetching: boolean;
255
+ isInitialLoading: boolean;
256
+ isPaused: boolean;
257
+ isRefetching: boolean;
258
+ isStale: boolean;
259
+ isEnabled: boolean;
260
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
261
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
262
+ data: undefined;
263
+ error: null;
264
+ isError: false;
265
+ isPending: true;
266
+ isLoading: true;
267
+ isLoadingError: false;
268
+ isRefetchError: false;
269
+ isSuccess: false;
270
+ isPlaceholderData: false;
271
+ status: 'pending';
272
+ /** Abort the current request and restore its prior query state. */
273
+ cancel(this: void): Promise<void>;
274
+ view: import("../core/data-view.js").DataView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
275
+ snapshot: import("../core/data-view.js").DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
276
+ response: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
277
+ queries: import("../core/contract.js").DisclosedQuery[] | undefined;
278
+ refresh: {
279
+ refreshing: boolean;
280
+ onRefresh(): undefined;
281
+ onCancel: (this: void) => Promise<void>;
282
+ };
283
+ } | {
284
+ dataUpdatedAt: number;
285
+ errorUpdatedAt: number;
286
+ failureCount: number;
287
+ failureReason: Error | null;
288
+ errorUpdateCount: number;
289
+ isFetched: boolean;
290
+ isFetchedAfterMount: boolean;
291
+ isFetching: boolean;
292
+ isLoading: boolean;
293
+ isInitialLoading: boolean;
294
+ isPaused: boolean;
295
+ isRefetching: boolean;
296
+ isStale: boolean;
297
+ isEnabled: boolean;
298
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
299
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
300
+ data: undefined;
301
+ error: null;
302
+ isError: false;
303
+ isPending: true;
304
+ isLoadingError: false;
305
+ isRefetchError: false;
306
+ isSuccess: false;
307
+ isPlaceholderData: false;
308
+ status: 'pending';
309
+ /** Abort the current request and restore its prior query state. */
310
+ cancel(this: void): Promise<void>;
311
+ view: import("../core/data-view.js").DataView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
312
+ snapshot: import("../core/data-view.js").DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
313
+ response: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
314
+ queries: import("../core/contract.js").DisclosedQuery[] | undefined;
315
+ refresh: {
316
+ refreshing: boolean;
317
+ onRefresh(): undefined;
318
+ onCancel: (this: void) => Promise<void>;
319
+ };
320
+ } | {
321
+ dataUpdatedAt: number;
322
+ errorUpdatedAt: number;
323
+ failureCount: number;
324
+ failureReason: Error | null;
325
+ errorUpdateCount: number;
326
+ isFetched: boolean;
327
+ isFetchedAfterMount: boolean;
328
+ isFetching: boolean;
329
+ isInitialLoading: boolean;
330
+ isPaused: boolean;
331
+ isRefetching: boolean;
332
+ isStale: boolean;
333
+ isEnabled: boolean;
334
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
335
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
336
+ data: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
337
+ isError: false;
338
+ error: null;
339
+ isPending: false;
340
+ isLoading: false;
341
+ isLoadingError: false;
342
+ isRefetchError: false;
343
+ isSuccess: true;
344
+ isPlaceholderData: true;
345
+ status: 'success';
346
+ /** Abort the current request and restore its prior query state. */
347
+ cancel(this: void): Promise<void>;
348
+ view: import("../core/data-view.js").DataView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
349
+ snapshot: import("../core/data-view.js").DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
350
+ response: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
351
+ queries: import("../core/contract.js").DisclosedQuery[] | undefined;
352
+ refresh: {
353
+ refreshing: boolean;
354
+ onRefresh(): undefined;
355
+ onCancel: (this: void) => Promise<void>;
356
+ };
357
+ } | {
358
+ dataUpdatedAt: number;
359
+ errorUpdatedAt: number;
360
+ failureCount: number;
361
+ failureReason: Error | null;
362
+ errorUpdateCount: number;
363
+ isFetched: boolean;
364
+ isFetchedAfterMount: boolean;
365
+ isFetching: boolean;
366
+ isInitialLoading: boolean;
367
+ isPaused: boolean;
368
+ isRefetching: boolean;
369
+ isStale: boolean;
370
+ isEnabled: boolean;
371
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
372
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
373
+ data: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
374
+ error: Error;
375
+ isError: true;
376
+ isPending: false;
377
+ isLoading: false;
378
+ isLoadingError: false;
379
+ isRefetchError: true;
380
+ isSuccess: false;
381
+ isPlaceholderData: false;
382
+ status: 'error';
383
+ /** Abort the current request and restore its prior query state. */
384
+ cancel(this: void): Promise<void>;
385
+ view: import("../core/data-view.js").DataView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
386
+ snapshot: import("../core/data-view.js").DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
387
+ response: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
388
+ queries: import("../core/contract.js").DisclosedQuery[] | undefined;
389
+ refresh: {
390
+ refreshing: boolean;
391
+ onRefresh(): undefined;
392
+ onCancel: (this: void) => Promise<void>;
393
+ };
394
+ } | {
395
+ dataUpdatedAt: number;
396
+ errorUpdatedAt: number;
397
+ failureCount: number;
398
+ failureReason: Error | null;
399
+ errorUpdateCount: number;
400
+ isFetched: boolean;
401
+ isFetchedAfterMount: boolean;
402
+ isFetching: boolean;
403
+ isInitialLoading: boolean;
404
+ isPaused: boolean;
405
+ isRefetching: boolean;
406
+ isStale: boolean;
407
+ isEnabled: boolean;
408
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
409
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
410
+ data: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
411
+ error: null;
412
+ isError: false;
413
+ isPending: false;
414
+ isLoading: false;
415
+ isLoadingError: false;
416
+ isRefetchError: false;
417
+ isSuccess: true;
418
+ isPlaceholderData: false;
419
+ status: 'success';
420
+ /** Abort the current request and restore its prior query state. */
421
+ cancel(this: void): Promise<void>;
422
+ view: import("../core/data-view.js").DataView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
423
+ snapshot: import("../core/data-view.js").DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
424
+ response: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
425
+ queries: import("../core/contract.js").DisclosedQuery[] | undefined;
426
+ refresh: {
427
+ refreshing: boolean;
428
+ onRefresh(): undefined;
429
+ onCancel: (this: void) => Promise<void>;
430
+ };
431
+ };
432
+ defineDataView: <Name extends keyof Operations & string, const Variables extends VariableCollection>(definition: DataViewDefinition<Name, Variables, InputOf<Operations[Name]>, OutputOf<Operations[Name]>>) => {
433
+ operation: Name;
434
+ input: (values: ResolvedVariables<Variables>) => InputOf<Operations[Name]>;
435
+ bindings?: Partial<{ [Key in keyof Variables]: (input: InputOf<Operations[Name]>) => ResolvedVariables<Variables>[Key]; }> | undefined;
436
+ isEmpty: (data: OutputOf<Operations[Name]>) => boolean;
437
+ empty: Pick<EmptyStateProps, 'title' | 'description'>;
438
+ date: import("./view.js").ViewDate<Variables, InputOf<Operations[Name]>>;
439
+ variables: Variables;
440
+ describeInput: (input: InputOf<Operations[Name]>) => string;
441
+ content(render: (state: DataContentState<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>) => ReactNode): {
442
+ loading: ReactNode;
443
+ children(data: OutputOf<Operations[Name]>, input: InputOf<Operations[Name]>): ReactNode;
444
+ };
445
+ } | {
446
+ operation: Name;
447
+ input: (values: ResolvedVariables<Variables>) => InputOf<Operations[Name]>;
448
+ bindings?: Partial<{ [Key in keyof Variables]: (input: InputOf<Operations[Name]>) => ResolvedVariables<Variables>[Key]; }> | undefined;
449
+ isEmpty: (data: OutputOf<Operations[Name]>) => boolean;
450
+ empty: Pick<EmptyStateProps, 'title' | 'description'>;
451
+ date?: never;
452
+ variables: Variables;
453
+ describeInput: (input: InputOf<Operations[Name]>) => string;
454
+ content(render: (state: DataContentState<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>) => ReactNode): {
455
+ loading: ReactNode;
456
+ children(data: OutputOf<Operations[Name]>, input: InputOf<Operations[Name]>): ReactNode;
457
+ };
458
+ };
459
+ defineTimeView: <Name extends keyof Operations & string, const Additional extends VariableCollection = {}>(definition: {
460
+ operation: Name;
461
+ time: Omit<DateRangeVariableOptions, 'key'>;
462
+ variables?: Additional & {
463
+ period?: never;
464
+ };
465
+ bindings?: ViewBindings<{
466
+ period: ReturnType<typeof dateRangeVariable>;
467
+ } & NoInfer<Additional>, InputOf<Operations[Name]>>;
468
+ isEmpty: (data: OutputOf<Operations[Name]>) => boolean;
469
+ empty: Pick<EmptyStateProps, 'title' | 'description'>;
470
+ } & TimeInputMapping<NoInfer<Additional>, InputOf<Operations[Name]>>) => {
471
+ operation: Name;
472
+ input: (values: ResolvedVariables<{
473
+ period: import("../core/variables.js").DateRangeVariable;
474
+ } & Additional>) => InputOf<Operations[Name]>;
475
+ bindings?: Partial<{
476
+ period: import("../core/variables.js").DateRangeVariable;
477
+ } & Additional extends infer T extends VariableCollection ? { [Key in keyof T]: (input: Input) => ResolvedVariables<T>[Key]; } : never> | undefined;
478
+ isEmpty: (data: OutputOf<Operations[Name]>) => boolean;
479
+ empty: Pick<EmptyStateProps, 'title' | 'description'>;
480
+ date: import("./view.js").ViewDate<{
481
+ period: import("../core/variables.js").DateRangeVariable;
482
+ } & Additional, InputOf<Operations[Name]>>;
483
+ variables: {
484
+ period: import("../core/variables.js").DateRangeVariable;
485
+ } & Additional;
486
+ describeInput: (input: InputOf<Operations[Name]>) => string;
487
+ content(render: (state: DataContentState<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>) => ReactNode): {
488
+ loading: ReactNode;
489
+ children(data: OutputOf<Operations[Name]>, input: InputOf<Operations[Name]>): ReactNode;
490
+ };
491
+ } | {
492
+ operation: Name;
493
+ input: (values: ResolvedVariables<{
494
+ period: import("../core/variables.js").DateRangeVariable;
495
+ } & Additional>) => InputOf<Operations[Name]>;
496
+ bindings?: Partial<{
497
+ period: import("../core/variables.js").DateRangeVariable;
498
+ } & Additional extends infer T extends VariableCollection ? { [Key in keyof T]: (input: Input) => ResolvedVariables<T>[Key]; } : never> | undefined;
499
+ isEmpty: (data: OutputOf<Operations[Name]>) => boolean;
500
+ empty: Pick<EmptyStateProps, 'title' | 'description'>;
501
+ date?: never;
502
+ variables: {
503
+ period: import("../core/variables.js").DateRangeVariable;
504
+ } & Additional;
505
+ describeInput: (input: InputOf<Operations[Name]>) => string;
506
+ content(render: (state: DataContentState<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>) => ReactNode): {
507
+ loading: ReactNode;
508
+ children(data: OutputOf<Operations[Name]>, input: InputOf<Operations[Name]>): ReactNode;
509
+ };
510
+ };
511
+ defineFacetFilter: <Name extends keyof Operations & string, const T extends DimensionValue>(config: Omit<DimensionFilterOptions<T>, 'options' | 'facet'> & {
512
+ facet: {
513
+ operation: Name;
514
+ input: (values: Record<string, unknown>) => InputOf<Operations[Name]>;
515
+ };
516
+ } & (OutputOf<Operations[Name]> extends readonly DimensionOption<T>[] ? object : never)) => import("../core/dimension.js").DimensionVariable<T>;
517
+ useView: <Name extends keyof Operations & string, const Variables extends VariableCollection>(definition: DataViewDefinition<Name, Variables, InputOf<Operations[Name]>, OutputOf<Operations[Name]>>) => {
518
+ dataUpdatedAt: number;
519
+ errorUpdatedAt: number;
520
+ failureCount: number;
521
+ failureReason: Error | null;
522
+ errorUpdateCount: number;
523
+ isFetched: boolean;
524
+ isFetchedAfterMount: boolean;
525
+ isFetching: boolean;
526
+ isInitialLoading: boolean;
527
+ isPaused: boolean;
528
+ isRefetching: boolean;
529
+ isStale: boolean;
530
+ isEnabled: boolean;
531
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
532
+ data: undefined;
533
+ error: Error;
534
+ isError: true;
535
+ isPending: false;
536
+ isLoading: false;
537
+ isLoadingError: true;
538
+ isRefetchError: false;
539
+ isSuccess: false;
540
+ isPlaceholderData: false;
541
+ status: 'error';
542
+ /** Abort the current request and restore its prior query state. */
543
+ cancel(this: void): Promise<void>;
544
+ response: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
545
+ view: import("../core/data-view.js").DataView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
546
+ snapshot: import("../core/data-view.js").DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
547
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
548
+ refresh: {
549
+ refreshing: boolean;
550
+ onRefresh(): undefined;
551
+ onCancel: (this: void) => Promise<void>;
552
+ };
553
+ queries: import("../core/contract.js").DisclosedQuery[] | undefined;
554
+ empty: Pick<EmptyStateProps, "description" | "title">;
555
+ controls: ReactNode[] | null;
556
+ variables: {
557
+ values: import("../core/variables.js").AppVariableValues<Variables>;
558
+ set: <Key extends keyof Variables & string>(name: Key, value: import("../core/variables.js").AppVariableValues<Variables>[Key]) => void;
559
+ reset: <Key extends keyof Variables & string>(name: Key) => void;
560
+ update: (next: Partial<import("../core/variables.js").AppVariableValues<Variables>>, history?: import("../core/variables.js").HistoryMode) => void;
561
+ bind: <Key extends keyof Variables & string>(name: Key) => {
562
+ value: import("../core/variables.js").AppVariableValues<Variables>[Key];
563
+ onChange(value: import("../core/variables.js").AppVariableValues<Variables>[Key]): void;
564
+ resetValue: import("../core/variables.js").AppVariableValues<Variables>[Key];
565
+ };
566
+ resolved: ResolvedVariables<Variables>;
567
+ controls: ReactNode[] | null;
568
+ };
569
+ } | {
570
+ dataUpdatedAt: number;
571
+ errorUpdatedAt: number;
572
+ failureCount: number;
573
+ failureReason: Error | null;
574
+ errorUpdateCount: number;
575
+ isFetched: boolean;
576
+ isFetchedAfterMount: boolean;
577
+ isFetching: boolean;
578
+ isInitialLoading: boolean;
579
+ isPaused: boolean;
580
+ isRefetching: boolean;
581
+ isStale: boolean;
582
+ isEnabled: boolean;
583
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
584
+ data: undefined;
585
+ error: null;
586
+ isError: false;
587
+ isPending: true;
588
+ isLoading: true;
589
+ isLoadingError: false;
590
+ isRefetchError: false;
591
+ isSuccess: false;
592
+ isPlaceholderData: false;
593
+ status: 'pending';
594
+ /** Abort the current request and restore its prior query state. */
595
+ cancel(this: void): Promise<void>;
596
+ response: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
597
+ view: import("../core/data-view.js").DataView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
598
+ snapshot: import("../core/data-view.js").DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
599
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
600
+ refresh: {
601
+ refreshing: boolean;
602
+ onRefresh(): undefined;
603
+ onCancel: (this: void) => Promise<void>;
604
+ };
605
+ queries: import("../core/contract.js").DisclosedQuery[] | undefined;
606
+ empty: Pick<EmptyStateProps, "description" | "title">;
607
+ controls: ReactNode[] | null;
608
+ variables: {
609
+ values: import("../core/variables.js").AppVariableValues<Variables>;
610
+ set: <Key extends keyof Variables & string>(name: Key, value: import("../core/variables.js").AppVariableValues<Variables>[Key]) => void;
611
+ reset: <Key extends keyof Variables & string>(name: Key) => void;
612
+ update: (next: Partial<import("../core/variables.js").AppVariableValues<Variables>>, history?: import("../core/variables.js").HistoryMode) => void;
613
+ bind: <Key extends keyof Variables & string>(name: Key) => {
614
+ value: import("../core/variables.js").AppVariableValues<Variables>[Key];
615
+ onChange(value: import("../core/variables.js").AppVariableValues<Variables>[Key]): void;
616
+ resetValue: import("../core/variables.js").AppVariableValues<Variables>[Key];
617
+ };
618
+ resolved: ResolvedVariables<Variables>;
619
+ controls: ReactNode[] | null;
620
+ };
621
+ } | {
622
+ dataUpdatedAt: number;
623
+ errorUpdatedAt: number;
624
+ failureCount: number;
625
+ failureReason: Error | null;
626
+ errorUpdateCount: number;
627
+ isFetched: boolean;
628
+ isFetchedAfterMount: boolean;
629
+ isFetching: boolean;
630
+ isLoading: boolean;
631
+ isInitialLoading: boolean;
632
+ isPaused: boolean;
633
+ isRefetching: boolean;
634
+ isStale: boolean;
635
+ isEnabled: boolean;
636
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
637
+ data: undefined;
638
+ error: null;
639
+ isError: false;
640
+ isPending: true;
641
+ isLoadingError: false;
642
+ isRefetchError: false;
643
+ isSuccess: false;
644
+ isPlaceholderData: false;
645
+ status: 'pending';
646
+ /** Abort the current request and restore its prior query state. */
647
+ cancel(this: void): Promise<void>;
648
+ response: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
649
+ view: import("../core/data-view.js").DataView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
650
+ snapshot: import("../core/data-view.js").DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
651
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
652
+ refresh: {
653
+ refreshing: boolean;
654
+ onRefresh(): undefined;
655
+ onCancel: (this: void) => Promise<void>;
656
+ };
657
+ queries: import("../core/contract.js").DisclosedQuery[] | undefined;
658
+ empty: Pick<EmptyStateProps, "description" | "title">;
659
+ controls: ReactNode[] | null;
660
+ variables: {
661
+ values: import("../core/variables.js").AppVariableValues<Variables>;
662
+ set: <Key extends keyof Variables & string>(name: Key, value: import("../core/variables.js").AppVariableValues<Variables>[Key]) => void;
663
+ reset: <Key extends keyof Variables & string>(name: Key) => void;
664
+ update: (next: Partial<import("../core/variables.js").AppVariableValues<Variables>>, history?: import("../core/variables.js").HistoryMode) => void;
665
+ bind: <Key extends keyof Variables & string>(name: Key) => {
666
+ value: import("../core/variables.js").AppVariableValues<Variables>[Key];
667
+ onChange(value: import("../core/variables.js").AppVariableValues<Variables>[Key]): void;
668
+ resetValue: import("../core/variables.js").AppVariableValues<Variables>[Key];
669
+ };
670
+ resolved: ResolvedVariables<Variables>;
671
+ controls: ReactNode[] | null;
672
+ };
673
+ } | {
674
+ dataUpdatedAt: number;
675
+ errorUpdatedAt: number;
676
+ failureCount: number;
677
+ failureReason: Error | null;
678
+ errorUpdateCount: number;
679
+ isFetched: boolean;
680
+ isFetchedAfterMount: boolean;
681
+ isFetching: boolean;
682
+ isInitialLoading: boolean;
683
+ isPaused: boolean;
684
+ isRefetching: boolean;
685
+ isStale: boolean;
686
+ isEnabled: boolean;
687
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
688
+ data: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
689
+ isError: false;
690
+ error: null;
691
+ isPending: false;
692
+ isLoading: false;
693
+ isLoadingError: false;
694
+ isRefetchError: false;
695
+ isSuccess: true;
696
+ isPlaceholderData: true;
697
+ status: 'success';
698
+ /** Abort the current request and restore its prior query state. */
699
+ cancel(this: void): Promise<void>;
700
+ response: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
701
+ view: import("../core/data-view.js").DataView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
702
+ snapshot: import("../core/data-view.js").DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
703
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
704
+ refresh: {
705
+ refreshing: boolean;
706
+ onRefresh(): undefined;
707
+ onCancel: (this: void) => Promise<void>;
708
+ };
709
+ queries: import("../core/contract.js").DisclosedQuery[] | undefined;
710
+ empty: Pick<EmptyStateProps, "description" | "title">;
711
+ controls: ReactNode[] | null;
712
+ variables: {
713
+ values: import("../core/variables.js").AppVariableValues<Variables>;
714
+ set: <Key extends keyof Variables & string>(name: Key, value: import("../core/variables.js").AppVariableValues<Variables>[Key]) => void;
715
+ reset: <Key extends keyof Variables & string>(name: Key) => void;
716
+ update: (next: Partial<import("../core/variables.js").AppVariableValues<Variables>>, history?: import("../core/variables.js").HistoryMode) => void;
717
+ bind: <Key extends keyof Variables & string>(name: Key) => {
718
+ value: import("../core/variables.js").AppVariableValues<Variables>[Key];
719
+ onChange(value: import("../core/variables.js").AppVariableValues<Variables>[Key]): void;
720
+ resetValue: import("../core/variables.js").AppVariableValues<Variables>[Key];
721
+ };
722
+ resolved: ResolvedVariables<Variables>;
723
+ controls: ReactNode[] | null;
724
+ };
725
+ } | {
726
+ dataUpdatedAt: number;
727
+ errorUpdatedAt: number;
728
+ failureCount: number;
729
+ failureReason: Error | null;
730
+ errorUpdateCount: number;
731
+ isFetched: boolean;
732
+ isFetchedAfterMount: boolean;
733
+ isFetching: boolean;
734
+ isInitialLoading: boolean;
735
+ isPaused: boolean;
736
+ isRefetching: boolean;
737
+ isStale: boolean;
738
+ isEnabled: boolean;
739
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
740
+ data: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
741
+ error: Error;
742
+ isError: true;
743
+ isPending: false;
744
+ isLoading: false;
745
+ isLoadingError: false;
746
+ isRefetchError: true;
747
+ isSuccess: false;
748
+ isPlaceholderData: false;
749
+ status: 'error';
750
+ /** Abort the current request and restore its prior query state. */
751
+ cancel(this: void): Promise<void>;
752
+ response: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
753
+ view: import("../core/data-view.js").DataView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
754
+ snapshot: import("../core/data-view.js").DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
755
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
756
+ refresh: {
757
+ refreshing: boolean;
758
+ onRefresh(): undefined;
759
+ onCancel: (this: void) => Promise<void>;
760
+ };
761
+ queries: import("../core/contract.js").DisclosedQuery[] | undefined;
762
+ empty: Pick<EmptyStateProps, "description" | "title">;
763
+ controls: ReactNode[] | null;
764
+ variables: {
765
+ values: import("../core/variables.js").AppVariableValues<Variables>;
766
+ set: <Key extends keyof Variables & string>(name: Key, value: import("../core/variables.js").AppVariableValues<Variables>[Key]) => void;
767
+ reset: <Key extends keyof Variables & string>(name: Key) => void;
768
+ update: (next: Partial<import("../core/variables.js").AppVariableValues<Variables>>, history?: import("../core/variables.js").HistoryMode) => void;
769
+ bind: <Key extends keyof Variables & string>(name: Key) => {
770
+ value: import("../core/variables.js").AppVariableValues<Variables>[Key];
771
+ onChange(value: import("../core/variables.js").AppVariableValues<Variables>[Key]): void;
772
+ resetValue: import("../core/variables.js").AppVariableValues<Variables>[Key];
773
+ };
774
+ resolved: ResolvedVariables<Variables>;
775
+ controls: ReactNode[] | null;
776
+ };
777
+ } | {
778
+ dataUpdatedAt: number;
779
+ errorUpdatedAt: number;
780
+ failureCount: number;
781
+ failureReason: Error | null;
782
+ errorUpdateCount: number;
783
+ isFetched: boolean;
784
+ isFetchedAfterMount: boolean;
785
+ isFetching: boolean;
786
+ isInitialLoading: boolean;
787
+ isPaused: boolean;
788
+ isRefetching: boolean;
789
+ isStale: boolean;
790
+ isEnabled: boolean;
791
+ fetchStatus: import("@tanstack/react-query").FetchStatus;
792
+ data: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
793
+ error: null;
794
+ isError: false;
795
+ isPending: false;
796
+ isLoading: false;
797
+ isLoadingError: false;
798
+ isRefetchError: false;
799
+ isSuccess: true;
800
+ isPlaceholderData: false;
801
+ status: 'success';
802
+ /** Abort the current request and restore its prior query state. */
803
+ cancel(this: void): Promise<void>;
804
+ response: import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
805
+ view: import("../core/data-view.js").DataView<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>;
806
+ snapshot: import("../core/data-view.js").DisplayedSnapshot<OutputOf<Operations[Name]>, InputOf<Operations[Name]>> | undefined;
807
+ refetch: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<import("../client/index.js").DataResponse<OutputOf<Operations[Name]>, InputOf<Operations[Name]>>, Error>>;
808
+ refresh: {
809
+ refreshing: boolean;
810
+ onRefresh(): undefined;
811
+ onCancel: (this: void) => Promise<void>;
812
+ };
813
+ queries: import("../core/contract.js").DisclosedQuery[] | undefined;
814
+ empty: Pick<EmptyStateProps, "description" | "title">;
815
+ controls: ReactNode[] | null;
816
+ variables: {
817
+ values: import("../core/variables.js").AppVariableValues<Variables>;
818
+ set: <Key extends keyof Variables & string>(name: Key, value: import("../core/variables.js").AppVariableValues<Variables>[Key]) => void;
819
+ reset: <Key extends keyof Variables & string>(name: Key) => void;
820
+ update: (next: Partial<import("../core/variables.js").AppVariableValues<Variables>>, history?: import("../core/variables.js").HistoryMode) => void;
821
+ bind: <Key extends keyof Variables & string>(name: Key) => {
822
+ value: import("../core/variables.js").AppVariableValues<Variables>[Key];
823
+ onChange(value: import("../core/variables.js").AppVariableValues<Variables>[Key]): void;
824
+ resetValue: import("../core/variables.js").AppVariableValues<Variables>[Key];
825
+ };
826
+ resolved: ResolvedVariables<Variables>;
827
+ controls: ReactNode[] | null;
828
+ };
829
+ };
830
+ };
831
+ export {};