serverside_pivot 0.0.0-stage → 0.0.91

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 (185) hide show
  1. package/README.md +182 -3
  2. package/dist/react/chunks/ContextMenu-Bt5_3bmD.mjs +192 -0
  3. package/dist/react/chunks/DetailDrawer-Eb4EpVHG.mjs +37 -0
  4. package/dist/react/chunks/DetailSidePanel-BTcHOiKr.mjs +36 -0
  5. package/dist/react/chunks/DetailSurfaceContent-B3ZNKh7q.mjs +200 -0
  6. package/dist/react/chunks/ECharts2dRenderer-C3Qv0uAa.mjs +3299 -0
  7. package/dist/react/chunks/ECharts3dRenderer-BB_7-fOt.mjs +21573 -0
  8. package/dist/react/chunks/EditSidePanel-C2cAvxlK.mjs +298 -0
  9. package/dist/react/chunks/InlineDetailPanel-BXLAw1o3.mjs +41 -0
  10. package/dist/react/chunks/PivotCharts-Bw6Swoa3.mjs +4252 -0
  11. package/dist/react/chunks/ReportEditor-D4V0ry2B.mjs +1726 -0
  12. package/dist/react/chunks/SidebarPanel-xO59p_2o.mjs +3339 -0
  13. package/dist/react/chunks/SparklineDetailGraph-Bu85X7OJ.mjs +200 -0
  14. package/dist/react/chunks/installCanvasRenderer-B7sfDGoL.mjs +21281 -0
  15. package/dist/react/chunks/react-CPZZxtSo.mjs +26999 -0
  16. package/dist/react/chunks/xlsx.mini.min-vfxHk3Ry.mjs +7996 -0
  17. package/dist/react/components/Charts/ChartRenderers.d.ts +73 -0
  18. package/dist/react/components/Charts/ChartWorkspace.d.ts +38 -0
  19. package/dist/react/components/Charts/ECharts2dRenderer.d.ts +5 -0
  20. package/dist/react/components/Charts/ECharts3dRenderer.d.ts +6 -0
  21. package/dist/react/components/Charts/PivotCharts.d.ts +9 -0
  22. package/dist/react/components/Charts/chartEnhancements.d.ts +66 -0
  23. package/dist/react/components/Charts/chartExportPresentation.d.ts +19 -0
  24. package/dist/react/components/Charts/chartMath.d.ts +4 -0
  25. package/dist/react/components/Charts/useChartExportMenu.d.ts +12 -0
  26. package/dist/react/components/DashTanstackPivot.react.d.ts +372 -0
  27. package/dist/react/components/Filters/ColumnFilter.d.ts +13 -0
  28. package/dist/react/components/Filters/DateRangeFilter.d.ts +8 -0
  29. package/dist/react/components/Filters/FilterPopover.d.ts +14 -0
  30. package/dist/react/components/Filters/MultiSelectFilter.d.ts +12 -0
  31. package/dist/react/components/Filters/NumericRangeFilter.d.ts +8 -0
  32. package/dist/react/components/Notification.d.ts +7 -0
  33. package/dist/react/components/PivotAppBar.d.ts +2 -0
  34. package/dist/react/components/PivotErrorBoundary.d.ts +15 -0
  35. package/dist/react/components/PivotSmallComponents.d.ts +6 -0
  36. package/dist/react/components/PivotWorkspace.d.ts +19 -0
  37. package/dist/react/components/PivotWorkspaceCanvas.d.ts +5 -0
  38. package/dist/react/components/PivotWorkspaceControls.d.ts +12 -0
  39. package/dist/react/components/PivotWorkspaceShell.d.ts +12 -0
  40. package/dist/react/components/RuntimeDataError.d.ts +7 -0
  41. package/dist/react/components/Sidebar/ColumnTreeItem.d.ts +14 -0
  42. package/dist/react/components/Sidebar/ReportEditor.d.ts +21 -0
  43. package/dist/react/components/Sidebar/SidebarFilterItem.d.ts +14 -0
  44. package/dist/react/components/Sidebar/SidebarPanel.d.ts +2 -0
  45. package/dist/react/components/Sidebar/ToolPanelSection.d.ts +14 -0
  46. package/dist/react/components/Sidebar/customCategoryUtils.d.ts +62 -0
  47. package/dist/react/components/Sidebar/formulaUtils.d.ts +22 -0
  48. package/dist/react/components/SkeletonRow.d.ts +6 -0
  49. package/dist/react/components/Table/ContextMenu.d.ts +9 -0
  50. package/dist/react/components/Table/DetailDrawer.d.ts +12 -0
  51. package/dist/react/components/Table/DetailSidePanel.d.ts +12 -0
  52. package/dist/react/components/Table/DetailSurfaceContent.d.ts +12 -0
  53. package/dist/react/components/Table/EditSidePanel.d.ts +21 -0
  54. package/dist/react/components/Table/EditableCell.d.ts +29 -0
  55. package/dist/react/components/Table/InlineDetailPanel.d.ts +14 -0
  56. package/dist/react/components/Table/PivotTableBody.d.ts +9 -0
  57. package/dist/react/components/Table/SparklineCell.d.ts +17 -0
  58. package/dist/react/components/Table/SparklineDetailGraph.d.ts +5 -0
  59. package/dist/react/components/Table/StatusBar.d.ts +8 -0
  60. package/dist/react/contexts/PivotConfigContext.d.ts +34 -0
  61. package/dist/react/contexts/PivotThemeContext.d.ts +7 -0
  62. package/dist/react/contexts/PivotValueDisplayContext.d.ts +10 -0
  63. package/dist/react/hooks/useCellInteraction.d.ts +31 -0
  64. package/dist/react/hooks/useChartState.d.ts +76 -0
  65. package/dist/react/hooks/useColumnDefs.d.ts +82 -0
  66. package/dist/react/hooks/useColumnVirtualizer.d.ts +30 -0
  67. package/dist/react/hooks/useDetailDrillThrough.d.ts +38 -0
  68. package/dist/react/hooks/useFilteredData.d.ts +2 -0
  69. package/dist/react/hooks/useFormatState.d.ts +44 -0
  70. package/dist/react/hooks/usePersistence.d.ts +5 -0
  71. package/dist/react/hooks/usePivotFieldInteractions.d.ts +28 -0
  72. package/dist/react/hooks/usePivotNormalization.d.ts +483 -0
  73. package/dist/react/hooks/usePivotRenderCounter.d.ts +1 -0
  74. package/dist/react/hooks/usePivotTransactions.d.ts +29 -0
  75. package/dist/react/hooks/useRenderHelpers.d.ts +85 -0
  76. package/dist/react/hooks/useReportMode.d.ts +32 -0
  77. package/dist/react/hooks/useRowCache.d.ts +19 -0
  78. package/dist/react/hooks/useRuntimeDataCommit.d.ts +26 -0
  79. package/dist/react/hooks/useRuntimeProfiling.d.ts +19 -0
  80. package/dist/react/hooks/useRuntimeTransport.d.ts +24 -0
  81. package/dist/react/hooks/useServerSideRowModel.d.ts +50 -0
  82. package/dist/react/hooks/useServerSideViewportController.d.ts +64 -0
  83. package/dist/react/hooks/useSidebarUI.d.ts +37 -0
  84. package/dist/react/hooks/useStickyStyles.d.ts +24 -0
  85. package/dist/react/index.mjs +16 -0
  86. package/dist/react/presentation/headerFormatting.d.ts +13 -0
  87. package/dist/react/presentation/safeCellContent.d.ts +16 -0
  88. package/dist/react/react.d.ts +8 -0
  89. package/dist/react/runtime/PivotRuntimeRoot.d.ts +7 -0
  90. package/dist/react/runtime/cellSelectionAnchor.d.ts +45 -0
  91. package/dist/react/runtime/client/clientPivotTransport.d.ts +28 -0
  92. package/dist/react/runtime/client/clientResponsePostProcessor.d.ts +20 -0
  93. package/dist/react/runtime/client/clientSqlPlanner.d.ts +5 -0
  94. package/dist/react/runtime/client/duckdbWasmExecutor.d.ts +36 -0
  95. package/dist/react/runtime/client/index.d.ts +6 -0
  96. package/dist/react/runtime/client/modeResolver.d.ts +16 -0
  97. package/dist/react/runtime/client/types.d.ts +202 -0
  98. package/dist/react/runtime/createRuntimeCellPresentation.d.ts +7 -0
  99. package/dist/react/runtime/createRuntimeExportCommands.d.ts +77 -0
  100. package/dist/react/runtime/createRuntimeRowPinCommand.d.ts +9 -0
  101. package/dist/react/runtime/createWorkspacePresentation.d.ts +7 -0
  102. package/dist/react/runtime/displayColumnOrder.d.ts +4 -0
  103. package/dist/react/runtime/httpTransport.d.ts +65 -0
  104. package/dist/react/runtime/runtime-contract.generated.d.ts +48 -0
  105. package/dist/react/runtime/runtime-response-contract.generated.d.ts +34 -0
  106. package/dist/react/runtime/runtimeContract.d.ts +115 -0
  107. package/dist/react/runtime/runtimeDomains.d.ts +642 -0
  108. package/dist/react/runtime/runtimeDomains.type-test.d.ts +1 -0
  109. package/dist/react/runtime/runtimeResponseDedup.d.ts +36 -0
  110. package/dist/react/runtime/useChartWorkspacePresentation.d.ts +50 -0
  111. package/dist/react/runtime/useCommandRuntime.d.ts +3 -0
  112. package/dist/react/runtime/useCommandRuntimeStage.d.ts +1 -0
  113. package/dist/react/runtime/useCoreRuntime.d.ts +3 -0
  114. package/dist/react/runtime/useCoreRuntimeStage.d.ts +3 -0
  115. package/dist/react/runtime/useRuntimeCellSelection.d.ts +44 -0
  116. package/dist/react/runtime/useRuntimeChartCanvasCommands.d.ts +36 -0
  117. package/dist/react/runtime/useRuntimeChartCanvasResize.d.ts +13 -0
  118. package/dist/react/runtime/useRuntimeChartCanvasVerticalResize.d.ts +9 -0
  119. package/dist/react/runtime/useRuntimeChartDefinitionCommands.d.ts +14 -0
  120. package/dist/react/runtime/useRuntimeChartFloatingInteractions.d.ts +28 -0
  121. package/dist/react/runtime/useRuntimeChartModels.d.ts +69 -0
  122. package/dist/react/runtime/useRuntimeChartPanelSizing.d.ts +12 -0
  123. package/dist/react/runtime/useRuntimeChartRequestDispatch.d.ts +7 -0
  124. package/dist/react/runtime/useRuntimeClipboardExportPresentation.d.ts +159 -0
  125. package/dist/react/runtime/useRuntimeClipboardPaste.d.ts +7 -0
  126. package/dist/react/runtime/useRuntimeColorScalePresentation.d.ts +55 -0
  127. package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +26 -0
  128. package/dist/react/runtime/useRuntimeColumnCommands.d.ts +22 -0
  129. package/dist/react/runtime/useRuntimeColumnMeasurement.d.ts +16 -0
  130. package/dist/react/runtime/useRuntimeDataRetry.d.ts +12 -0
  131. package/dist/react/runtime/useRuntimeDisplayNavigation.d.ts +17 -0
  132. package/dist/react/runtime/useRuntimeEditCellIdentity.d.ts +22 -0
  133. package/dist/react/runtime/useRuntimeEditChangeTracking.d.ts +28 -0
  134. package/dist/react/runtime/useRuntimeEditComparisonState.d.ts +35 -0
  135. package/dist/react/runtime/useRuntimeEditDispatch.d.ts +47 -0
  136. package/dist/react/runtime/useRuntimeEditOwnership.d.ts +32 -0
  137. package/dist/react/runtime/useRuntimeEditPresentation.d.ts +32 -0
  138. package/dist/react/runtime/useRuntimeEditStatePersistence.d.ts +28 -0
  139. package/dist/react/runtime/useRuntimeExportState.d.ts +20 -0
  140. package/dist/react/runtime/useRuntimeFilterPopover.d.ts +23 -0
  141. package/dist/react/runtime/useRuntimeLayoutHistory.d.ts +44 -0
  142. package/dist/react/runtime/useRuntimeOptimisticCellState.d.ts +27 -0
  143. package/dist/react/runtime/useRuntimeRequestSession.d.ts +79 -0
  144. package/dist/react/runtime/useRuntimeResponseLifecycle.d.ts +47 -0
  145. package/dist/react/runtime/useRuntimeResponsePostCommit.d.ts +15 -0
  146. package/dist/react/runtime/useRuntimeRowEditSessions.d.ts +28 -0
  147. package/dist/react/runtime/useRuntimeRowEditing.d.ts +18 -0
  148. package/dist/react/runtime/useRuntimeRowSelection.d.ts +14 -0
  149. package/dist/react/runtime/useRuntimeSelectionFormatting.d.ts +36 -0
  150. package/dist/react/runtime/useRuntimeStructuralSync.d.ts +65 -0
  151. package/dist/react/runtime/useRuntimeViewRestoreScroll.d.ts +9 -0
  152. package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +203 -0
  153. package/dist/react/runtime/useRuntimeViewportTableData.d.ts +23 -0
  154. package/dist/react/runtime/useTransportRuntime.d.ts +12 -0
  155. package/dist/react/runtime/useViewportRuntime.d.ts +3 -0
  156. package/dist/react/runtime/useViewportRuntimeStage.d.ts +1 -0
  157. package/dist/react/runtime/useWorkspaceRuntime.d.ts +3 -0
  158. package/dist/react/runtime/useWorkspaceRuntimeStage.d.ts +1 -0
  159. package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +115 -0
  160. package/dist/react/runtime/workspaceViewModel.d.ts +7 -0
  161. package/dist/react/utils/Icons.d.ts +46 -0
  162. package/dist/react/utils/chartModelBuilders.d.ts +236 -0
  163. package/dist/react/utils/columnOrder.d.ts +12 -0
  164. package/dist/react/utils/dataBars.d.ts +7 -0
  165. package/dist/react/utils/domEvents.d.ts +1 -0
  166. package/dist/react/utils/editing.d.ts +47 -0
  167. package/dist/react/utils/exportUtils.d.ts +121 -0
  168. package/dist/react/utils/fieldPanelLayout.d.ts +61 -0
  169. package/dist/react/utils/filterOptions.d.ts +4 -0
  170. package/dist/react/utils/formatting.d.ts +1 -0
  171. package/dist/react/utils/helpers.d.ts +20 -0
  172. package/dist/react/utils/horizontalViewport.d.ts +12 -0
  173. package/dist/react/utils/layoutRows.d.ts +3 -0
  174. package/dist/react/utils/measureAxis.d.ts +22 -0
  175. package/dist/react/utils/pivotLayoutUtils.d.ts +2 -0
  176. package/dist/react/utils/pivotProfiler.d.ts +4 -0
  177. package/dist/react/utils/rawTableTsv.d.ts +21 -0
  178. package/dist/react/utils/reportEditorSelection.d.ts +23 -0
  179. package/dist/react/utils/rowSpanning.d.ts +6 -0
  180. package/dist/react/utils/savedReports.d.ts +7 -0
  181. package/dist/react/utils/sorting.d.ts +14 -0
  182. package/dist/react/utils/sparklineDetail.d.ts +8 -0
  183. package/dist/react/utils/sparklines.d.ts +78 -0
  184. package/dist/react/utils/styles.d.ts +957 -0
  185. package/package.json +114 -6
@@ -0,0 +1,642 @@
1
+ import type React from 'react';
2
+ import type { JsonObject, RuntimeCommandKind, RuntimeRequestV1, RuntimeResponseV1 } from './runtimeContract';
3
+ /** Public Dash props accepted by the runtime root. */
4
+ export interface PivotRuntimeProps {
5
+ id?: string;
6
+ table?: string;
7
+ pivotTitle?: string;
8
+ data?: readonly PivotRuntimeRow[];
9
+ setProps?: (nextProps: Partial<PivotRuntimeProps>) => void;
10
+ style?: React.CSSProperties;
11
+ serverSide?: boolean;
12
+ rowFields?: readonly string[];
13
+ colFields?: readonly string[];
14
+ valConfigs?: readonly (ValConfig | PivotValueConfig)[];
15
+ measureAxis?: PivotObject;
16
+ filters?: PivotFiltersMap | PivotObject;
17
+ sorting?: readonly (SortConfig | PivotObject)[];
18
+ expanded?: boolean | PivotObject;
19
+ immersiveMode?: boolean;
20
+ showRowTotals?: boolean;
21
+ showColTotals?: boolean;
22
+ showSubtotals?: boolean;
23
+ grandTotalPosition?: 'top' | 'bottom';
24
+ runtimeRequest?: PivotObject;
25
+ runtimeResponse?: RuntimeResponseV1 | PivotObject;
26
+ viewMode?: 'pivot' | 'report' | 'tree' | 'table';
27
+ detailMode?: 'none' | 'inline' | 'sidepanel' | 'drawer';
28
+ treeConfig?: PivotObject;
29
+ detailConfig?: PivotObject;
30
+ chartEvent?: PivotObject;
31
+ chartDefinitions?: readonly (ChartDefinition | PivotObject)[];
32
+ chartDefaults?: PivotObject;
33
+ chartCanvasPanes?: readonly PivotObject[];
34
+ tableCanvasSize?: number;
35
+ performanceConfig?: PivotObject;
36
+ chartServerWindow?: PivotObject;
37
+ rowMove?: PivotObject;
38
+ drillEndpoint?: string;
39
+ viewState?: PivotObject;
40
+ saveViewTrigger?: unknown;
41
+ savedView?: PivotObject;
42
+ conditionalFormatting?: readonly PivotObject[];
43
+ headerFormatting?: PivotObject | readonly PivotObject[];
44
+ validationRules?: PivotObject;
45
+ uiConfig?: PivotObject;
46
+ paginationConfig?: PivotObject;
47
+ mergedHeaderSeparator?: string;
48
+ columnPinning?: PivotObject;
49
+ rowPinning?: PivotObject;
50
+ columnPinned?: PivotObject;
51
+ rowPinned?: PivotObject;
52
+ columnVisibility?: PivotObject;
53
+ columnOrder?: readonly string[];
54
+ columnSizing?: PivotObject;
55
+ localeText?: PivotObject;
56
+ decimalPlaces?: number;
57
+ defaultValueFormat?: string;
58
+ fieldPanelSizes?: PivotObject;
59
+ numberGroupSeparator?: 'comma' | 'space' | 'thin_space' | 'apostrophe' | 'none';
60
+ reset?: unknown;
61
+ persistence?: boolean | string | number;
62
+ persistence_type?: 'local' | 'session' | 'memory';
63
+ pinningOptions?: PivotObject;
64
+ pinningPresets?: readonly PivotObject[];
65
+ sortOptions?: PivotObject;
66
+ sortLock?: boolean;
67
+ defaultTheme?: PivotThemeName;
68
+ theme?: PivotThemeName;
69
+ sortEvent?: PivotObject;
70
+ availableFieldList?: readonly string[];
71
+ sparklineFields?: PivotObject;
72
+ customDimensions?: readonly PivotObject[];
73
+ reportDef?: PivotObject;
74
+ savedReports?: readonly PivotObject[];
75
+ activeReportId?: string;
76
+ rowSelection?: 'single' | 'multiple' | boolean;
77
+ selectedRows?: readonly string[];
78
+ }
79
+ export interface PivotRuntimeRow {
80
+ readonly id?: string | number;
81
+ readonly _id?: string | number;
82
+ readonly [field: string]: unknown;
83
+ }
84
+ export type PivotThemeName = 'flash' | 'dark' | 'bloomberg_black' | 'bloomberg' | 'light' | 'material' | 'balham' | 'strata' | 'crystal' | 'alabaster' | 'satin' | (string & {});
85
+ export interface ValConfig {
86
+ field?: string;
87
+ agg?: 'sum' | 'avg' | 'count' | 'min' | 'max' | 'weighted_avg' | 'wavg' | 'weighted_mean' | 'array_agg' | 'formula' | (string & {});
88
+ weightField?: string;
89
+ windowFn?: 'percent_of_row' | 'percent_of_col' | 'percent_of_grand_total' | (string & {});
90
+ format?: string;
91
+ percentile?: number;
92
+ separator?: string;
93
+ formula?: string;
94
+ label?: string;
95
+ formulaRef?: string;
96
+ formulaScope?: 'measures' | 'columns';
97
+ headerStyle?: React.CSSProperties | PivotObject;
98
+ headerBg?: string;
99
+ headerColor?: string;
100
+ headerTextColor?: string;
101
+ sparkline?: boolean | PivotObject;
102
+ [key: string]: unknown;
103
+ }
104
+ export type PivotValueConfig = ValConfig;
105
+ export interface FilterCondition {
106
+ type?: string;
107
+ value?: unknown;
108
+ value2?: unknown;
109
+ values?: unknown[];
110
+ operator?: 'AND' | 'OR';
111
+ [key: string]: unknown;
112
+ }
113
+ export interface FilterConfig {
114
+ operator?: 'AND' | 'OR';
115
+ conditions?: FilterCondition[];
116
+ type?: string;
117
+ value?: unknown;
118
+ value2?: unknown;
119
+ values?: unknown[];
120
+ [key: string]: unknown;
121
+ }
122
+ export interface PivotFiltersMap {
123
+ readonly [field: string]: FilterConfig | unknown;
124
+ }
125
+ export interface SortConfig {
126
+ id: string;
127
+ desc?: boolean;
128
+ absoluteSort?: boolean;
129
+ sortType?: string;
130
+ sortMode?: string;
131
+ sortKeyField?: string;
132
+ semanticType?: string;
133
+ sortSemantic?: string;
134
+ nulls?: 'first' | 'last';
135
+ [key: string]: unknown;
136
+ }
137
+ export interface ChartDefinition {
138
+ id?: string;
139
+ name?: string;
140
+ chartTitle?: string;
141
+ source?: 'pivot' | 'selection' | (string & {});
142
+ chartType?: string;
143
+ barLayout?: 'grouped' | 'stacked' | (string & {});
144
+ axisMode?: 'vertical' | 'horizontal' | (string & {});
145
+ orientation?: 'rows' | 'columns' | (string & {});
146
+ hierarchyLevel?: number | 'all' | (string & {});
147
+ rowLimit?: number;
148
+ columnLimit?: number;
149
+ width?: number;
150
+ chartHeight?: number;
151
+ sortMode?: string;
152
+ interactionMode?: string;
153
+ serverScope?: 'viewport' | 'root' | (string & {});
154
+ chartLayers?: unknown[];
155
+ [key: string]: unknown;
156
+ }
157
+ /** JSON-compatible object passed through the public Dash API. */
158
+ export interface PivotObject {
159
+ readonly [field: string]: unknown;
160
+ }
161
+ export interface PivotRuntimeConfiguration {
162
+ readonly componentId: string | null;
163
+ readonly tableName: string | null;
164
+ readonly serverSide: boolean;
165
+ readonly viewMode: string;
166
+ readonly detailMode: string;
167
+ readonly persistence: boolean | string | number | undefined;
168
+ readonly props: PivotRuntimeProps;
169
+ }
170
+ export interface CoreRuntimeState {
171
+ readonly rowFields: readonly string[];
172
+ readonly colFields: readonly string[];
173
+ readonly valConfigs: readonly PivotValueConfig[];
174
+ readonly filters: PivotObject;
175
+ readonly sorting: readonly PivotObject[];
176
+ readonly expanded: boolean | PivotObject;
177
+ readonly columnOrder: readonly string[];
178
+ readonly columnVisibility: PivotObject;
179
+ readonly columnSizing: PivotObject;
180
+ readonly columnPinning: PivotObject;
181
+ readonly rowPinning: PivotObject;
182
+ }
183
+ export interface CoreRuntimeRefs {
184
+ readonly table: React.MutableRefObject<unknown>;
185
+ readonly setProps: React.MutableRefObject<PivotRuntimeProps['setProps']>;
186
+ readonly clientInstance: React.MutableRefObject<string | null>;
187
+ readonly session: React.MutableRefObject<string | null>;
188
+ }
189
+ export interface CorePersistencePort {
190
+ readonly save: (state: PivotObject) => void;
191
+ readonly load: () => PivotObject | null;
192
+ }
193
+ /** Immutable core domain: normalized configuration, React state, stable refs. */
194
+ export interface CoreRuntimeDomain {
195
+ readonly configuration: PivotRuntimeConfiguration;
196
+ readonly state: CoreRuntimeState;
197
+ readonly refs: CoreRuntimeRefs;
198
+ readonly persistence: CorePersistencePort;
199
+ }
200
+ export interface TransportDispatchPort {
201
+ readonly emit: (kind: RuntimeCommandKind, payload: JsonObject) => unknown;
202
+ }
203
+ /** Host-owned controlled state. Dash implements this with ``setProps``. */
204
+ export interface HostStatePort {
205
+ readonly publish: (nextState: PivotObject) => void;
206
+ }
207
+ export interface TransportRuntimeDomain {
208
+ readonly request: {
209
+ readonly current: PivotObject | undefined;
210
+ readonly emit: TransportDispatchPort['emit'];
211
+ readonly normalize: (request: PivotObject) => RuntimeRequestV1 | null;
212
+ };
213
+ readonly response: {
214
+ readonly current: RuntimeResponseV1 | PivotObject | undefined;
215
+ readonly pending: boolean;
216
+ };
217
+ readonly profiling: {
218
+ readonly enabled: boolean;
219
+ readonly recordQueued: (request: PivotObject) => void;
220
+ readonly recordRequestStart: (request: PivotObject) => void;
221
+ readonly recordResponse: (response: PivotObject) => void;
222
+ };
223
+ readonly port: TransportDispatchPort;
224
+ readonly host: HostStatePort;
225
+ }
226
+ export type RuntimeCommand = (...args: unknown[]) => unknown;
227
+ export interface ExportJobProgress {
228
+ readonly phase: 'queued' | 'running' | 'cancelling' | 'cancelled' | 'completed' | 'failed' | 'interrupted';
229
+ readonly rowsWritten: number;
230
+ readonly bytesWritten: number;
231
+ readonly totalRows: number | null;
232
+ readonly percent: number | null;
233
+ readonly delivery?: 'pending' | 'delivered' | 'failed';
234
+ readonly deliveryFailed?: boolean;
235
+ }
236
+ /** Imperative lifecycle port; job state stays private to its owner. */
237
+ export interface ExportJobController {
238
+ readonly configure: RuntimeCommand;
239
+ readonly start: RuntimeCommand;
240
+ readonly poll: RuntimeCommand;
241
+ readonly cancel: RuntimeCommand;
242
+ readonly retry: RuntimeCommand;
243
+ readonly dismiss: RuntimeCommand;
244
+ readonly dispose: () => void;
245
+ readonly handleResponse: RuntimeCommand;
246
+ }
247
+ /** Renderer callbacks are intentionally opaque at the domain boundary. */
248
+ export type WorkspaceRenderer = (...args: unknown[]) => React.ReactNode;
249
+ export type WorkspaceCollection = readonly PivotObject[];
250
+ export type WorkspaceRecord = PivotObject;
251
+ export interface CommandRuntimeDomain {
252
+ readonly fields: {
253
+ readonly move: RuntimeCommand;
254
+ readonly expandAll: RuntimeCommand;
255
+ readonly pinColumn: RuntimeCommand;
256
+ readonly pinRow: RuntimeCommand;
257
+ };
258
+ readonly layout: {
259
+ readonly undo: RuntimeCommand;
260
+ readonly redo: RuntimeCommand;
261
+ readonly setRowFields: RuntimeCommand;
262
+ readonly setColFields: RuntimeCommand;
263
+ readonly setValues: RuntimeCommand;
264
+ };
265
+ readonly editing: {
266
+ readonly dispatchCellEdit: RuntimeCommand;
267
+ readonly revertCell: RuntimeCommand;
268
+ readonly revertAll: RuntimeCommand;
269
+ };
270
+ readonly selection: {
271
+ readonly applyValueFormat: RuntimeCommand;
272
+ readonly copy: RuntimeCommand;
273
+ };
274
+ readonly export: {
275
+ readonly exportPivot: RuntimeCommand;
276
+ readonly cancel: RuntimeCommand;
277
+ };
278
+ readonly charts: {
279
+ readonly addPane: RuntimeCommand;
280
+ readonly updatePane: RuntimeCommand;
281
+ readonly removePane: RuntimeCommand;
282
+ readonly openSelectionChart: RuntimeCommand;
283
+ };
284
+ }
285
+ /** Event-time viewport operations. They deliberately contain no state or render data. */
286
+ export interface ViewportNavigationPort {
287
+ readonly scrollToRow: (index: number) => void;
288
+ readonly scrollToColumn: (index: number) => void;
289
+ readonly refresh: () => void;
290
+ }
291
+ /**
292
+ * Imperative delivery callbacks are constructed by viewport presentation but
293
+ * consumed by the transport response lifecycle. They deliberately carry no
294
+ * renderer state: a runtime response can only ask to copy text or start a
295
+ * browser download.
296
+ */
297
+ export interface ViewportDeliveryPort {
298
+ readonly copy: RuntimeCommand;
299
+ readonly download: RuntimeCommand;
300
+ }
301
+ export interface ViewportRuntimeDomain {
302
+ readonly table: {
303
+ readonly instance: unknown;
304
+ readonly renderCell: RuntimeCommand;
305
+ readonly renderHeaderCell: RuntimeCommand;
306
+ };
307
+ readonly rows: {
308
+ readonly count: number;
309
+ readonly height: number;
310
+ readonly visible: readonly unknown[];
311
+ readonly virtual: readonly unknown[];
312
+ };
313
+ readonly columns: {
314
+ readonly visible: readonly unknown[];
315
+ readonly left: readonly unknown[];
316
+ readonly center: readonly unknown[];
317
+ readonly right: readonly unknown[];
318
+ readonly totalCenter: number | null;
319
+ };
320
+ readonly virtualization: {
321
+ readonly parent: React.RefObject<HTMLElement>;
322
+ readonly navigation: ViewportNavigationPort;
323
+ };
324
+ readonly delivery: ViewportDeliveryPort;
325
+ }
326
+ /** Renderer-ready presentation model. Internal JavaScript renderers remain untyped consumers. */
327
+ export interface WorkspacePresentation {
328
+ readonly COPY_ROW_LIMIT: number;
329
+ readonly EXPORT_ROW_LIMIT: number;
330
+ readonly activateChartCategory: RuntimeCommand;
331
+ readonly activeChartDefinitionId: string | null;
332
+ readonly activeColumnSkeletonCount: number;
333
+ readonly activeDetailDisplayMode: string;
334
+ readonly activeFilterCol: string | null;
335
+ readonly activeReportId: string | null;
336
+ readonly activeRowVirtualizer: object;
337
+ readonly afterWidth: number;
338
+ readonly announcement: string;
339
+ readonly applyFieldZoneMove: RuntimeCommand;
340
+ readonly applySelectionValueFormat: RuntimeCommand;
341
+ readonly autoSizeIncludesHeaderNext: boolean;
342
+ readonly availableFieldsWithCustomDimensions: WorkspaceCollection;
343
+ readonly beforeWidth: number;
344
+ readonly bodyRowsTopOffset: number;
345
+ readonly canApplySelectionValueFormat: boolean;
346
+ readonly cancelActiveExportRequest: RuntimeCommand;
347
+ readonly retryExportJob: RuntimeCommand;
348
+ readonly dismissExportJob: RuntimeCommand;
349
+ readonly cellFormatRules: WorkspaceCollection;
350
+ readonly centerColIndexMap: Readonly<Record<string, number>>;
351
+ readonly centerCols: WorkspaceCollection;
352
+ readonly centerHeaderGroups: WorkspaceCollection;
353
+ readonly chartCanvasLayoutRef: React.MutableRefObject<HTMLElement | null>;
354
+ readonly chartCanvasPaneModels: WorkspaceCollection;
355
+ readonly chartCanvasPaneWidthHints: WorkspaceRecord;
356
+ readonly chartCanvasPanes: WorkspaceCollection;
357
+ readonly chartLayoutRef: React.MutableRefObject<HTMLElement | null>;
358
+ readonly chartPaneDataById: WorkspaceRecord;
359
+ readonly clientFilterOptionMap: WorkspaceRecord;
360
+ readonly closeFilterPopover: RuntimeCommand;
361
+ readonly colFields: readonly string[];
362
+ readonly colSearch: string;
363
+ readonly colTypeFilter: string;
364
+ readonly colorPalette: string;
365
+ readonly colorScaleMode: string;
366
+ readonly columnDecimalOverrides: WorkspaceRecord;
367
+ readonly columnFormatOverrides: WorkspaceRecord;
368
+ readonly columnGroupSeparatorOverrides: WorkspaceRecord;
369
+ readonly columnPinning: WorkspaceRecord;
370
+ readonly columnSkeletonWidth: number;
371
+ readonly columnVisibility: WorkspaceRecord;
372
+ readonly comparisonValueState: WorkspaceRecord;
373
+ readonly contextMenu: WorkspaceRecord | null;
374
+ readonly customAwareData: WorkspaceCollection;
375
+ readonly customDimensions: WorkspaceCollection;
376
+ readonly dataBarsColumns: readonly string[];
377
+ readonly dataBarMaximums: WorkspaceRecord;
378
+ readonly decimalPlaces: number;
379
+ readonly defaultValueFormat: string;
380
+ readonly detailConfig: WorkspaceRecord | null;
381
+ readonly detailSurface: React.ReactNode | null;
382
+ readonly dispatchExportPart: RuntimeCommand;
383
+ readonly displayedFormulaColumnOptions: WorkspaceCollection;
384
+ readonly dockedChartCanvasPanesByPosition: WorkspaceRecord;
385
+ readonly dropLine: WorkspaceRecord | null;
386
+ readonly editPanelCells: WorkspaceCollection;
387
+ readonly editPanelEnabled: boolean;
388
+ readonly editPanelOpen: boolean;
389
+ readonly editValueDisplayMode: string;
390
+ readonly effectiveBottomRows: WorkspaceCollection;
391
+ readonly effectiveCenterRows: WorkspaceCollection;
392
+ readonly effectiveTopRows: WorkspaceCollection;
393
+ readonly exportPivot: RuntimeCommand;
394
+ readonly exportProgress: ExportJobProgress | number | null;
395
+ readonly fieldPanelSizes: WorkspaceRecord;
396
+ readonly filterAnchorEl: HTMLElement | null;
397
+ readonly filterOptionMeta: WorkspaceRecord;
398
+ readonly filterOptions: WorkspaceRecord;
399
+ readonly filters: WorkspaceRecord;
400
+ readonly fixedSparklineValueKeys: readonly string[];
401
+ readonly floatingChartCanvasPanes: WorkspaceCollection;
402
+ readonly fontFamily: string;
403
+ readonly fontSize: number;
404
+ readonly formulaErrors: WorkspaceRecord;
405
+ readonly getRow: RuntimeCommand;
406
+ readonly grandTotalPosition: 'top' | 'bottom';
407
+ readonly handleAddChartCanvasPane: RuntimeCommand;
408
+ readonly handleAutoSizeToolbarClick: RuntimeCommand;
409
+ readonly handleCancelPreviewChartPane: RuntimeCommand;
410
+ readonly handleCancelPropagation: RuntimeCommand;
411
+ readonly handleConfirmPreviewChartPane: RuntimeCommand;
412
+ readonly handleConfirmPropagation: RuntimeCommand;
413
+ readonly handleDetailClose: RuntimeCommand;
414
+ readonly handleDetailFilter: RuntimeCommand;
415
+ readonly handleDetailPageChange: RuntimeCommand;
416
+ readonly handleDetailSort: RuntimeCommand;
417
+ readonly handleExpandAllRows: RuntimeCommand;
418
+ readonly handleFilterClick: RuntimeCommand;
419
+ readonly handleHeaderFilter: RuntimeCommand;
420
+ readonly handleKeyDown: RuntimeCommand;
421
+ readonly handlePinColumn: RuntimeCommand;
422
+ readonly handlePropagationMethodChange: RuntimeCommand;
423
+ readonly handleReapplyPropagation: RuntimeCommand;
424
+ readonly handleRedo: RuntimeCommand;
425
+ readonly handleRevertAll: RuntimeCommand;
426
+ readonly handleRevertCell: RuntimeCommand;
427
+ readonly handleRevertSelected: RuntimeCommand;
428
+ readonly handleSaveView: RuntimeCommand;
429
+ readonly handleSetPivotMode: RuntimeCommand;
430
+ readonly handleStartChartCanvasResize: RuntimeCommand;
431
+ readonly handleStartChartCanvasVerticalResize: RuntimeCommand;
432
+ readonly handleTransposePivot: RuntimeCommand;
433
+ readonly handleUndo: RuntimeCommand;
434
+ readonly hasComparedValues: boolean;
435
+ readonly id: string | null;
436
+ readonly immersiveMode: boolean;
437
+ readonly immersiveModeHovering: boolean;
438
+ readonly isCopying: boolean;
439
+ readonly isExporting: boolean;
440
+ readonly isRequestPending: boolean;
441
+ readonly runtimeDataError: {
442
+ readonly retrying: boolean;
443
+ readonly failedRequest: {
444
+ readonly requestId: string | null;
445
+ readonly windowSeq: number | null;
446
+ readonly stateEpoch: number | null;
447
+ readonly clientInstance: string | null;
448
+ };
449
+ } | null;
450
+ readonly retryRuntimeData: RuntimeCommand;
451
+ readonly layoutMode: string;
452
+ readonly leftCols: WorkspaceCollection;
453
+ readonly leftHeaderGroups: WorkspaceCollection;
454
+ readonly loadingCssVars: React.CSSProperties;
455
+ readonly measureAxis: WorkspaceRecord;
456
+ readonly notification: WorkspaceRecord | null;
457
+ readonly numberGroupSeparator: string;
458
+ readonly onCreateSelectionChart: RuntimeCommand;
459
+ readonly onDragOver: RuntimeCommand;
460
+ readonly onDragStart: RuntimeCommand;
461
+ readonly onDrop: RuntimeCommand;
462
+ readonly onHeaderDragEnd: RuntimeCommand;
463
+ readonly paginationConfig: WorkspaceRecord;
464
+ readonly paginationState: WorkspaceRecord;
465
+ readonly parentRef: React.RefObject<HTMLElement>;
466
+ readonly partModal: WorkspaceRecord | null;
467
+ readonly pendingPropagationUpdates: WorkspaceCollection;
468
+ readonly pendingRowTransitions: WorkspaceRecord;
469
+ readonly pinningPresets: WorkspaceCollection;
470
+ readonly pivotMode: boolean;
471
+ readonly pivotTitle: string;
472
+ readonly previewChartPaneId: string | null;
473
+ readonly propagationLogRef: React.MutableRefObject<WorkspaceCollection>;
474
+ readonly propagationMethodUI: string;
475
+ readonly renderCell: WorkspaceRenderer;
476
+ readonly renderChartCanvasPane: WorkspaceRenderer;
477
+ readonly renderChartWorkspaceModal: WorkspaceRenderer;
478
+ readonly renderFloatingChartCanvasPane: WorkspaceRenderer;
479
+ readonly renderHeaderCell: WorkspaceRenderer;
480
+ readonly renderVirtualColumnCell: WorkspaceRenderer;
481
+ readonly reportDef: WorkspaceRecord | null;
482
+ readonly reportEditorSelection: WorkspaceRecord | null;
483
+ readonly requestFilterOptions: RuntimeCommand;
484
+ readonly resolveCurrentCellValue: RuntimeCommand;
485
+ readonly resolveDisplayedCellValue: RuntimeCommand;
486
+ readonly rightCols: WorkspaceCollection;
487
+ readonly rightHeaderGroups: WorkspaceCollection;
488
+ readonly rowCount: number;
489
+ readonly rowFields: readonly string[];
490
+ readonly rowHeight: number;
491
+ readonly rowModelLookup: WorkspaceRecord;
492
+ readonly rows: WorkspaceCollection;
493
+ readonly savedReports: WorkspaceCollection;
494
+ readonly selectedCells: WorkspaceRecord;
495
+ readonly selectedCols: readonly string[];
496
+ readonly selectionValueFormat: string;
497
+ readonly serverSide: boolean;
498
+ readonly serverSidePinsGrandTotal: boolean;
499
+ readonly setActiveReportId: RuntimeCommand;
500
+ readonly setCellFormatRules: RuntimeCommand;
501
+ readonly setColFieldsWithHistory: RuntimeCommand;
502
+ readonly setColSearch: RuntimeCommand;
503
+ readonly setColTypeFilter: RuntimeCommand;
504
+ readonly setColorPalette: RuntimeCommand;
505
+ readonly setColorScaleMode: RuntimeCommand;
506
+ readonly setColumnDecimalOverrides: RuntimeCommand;
507
+ readonly setColumnFormatOverrides: RuntimeCommand;
508
+ readonly setColumnGroupSeparatorOverrides: RuntimeCommand;
509
+ readonly setColumnPinningWithHistory: RuntimeCommand;
510
+ readonly setColumnVisibility: RuntimeCommand;
511
+ readonly setContextMenu: RuntimeCommand;
512
+ readonly setCustomDimensions: RuntimeCommand;
513
+ readonly setDataBarsColumns: RuntimeCommand;
514
+ readonly setDataBarMaximums: RuntimeCommand;
515
+ readonly setDecimalPlaces: RuntimeCommand;
516
+ readonly setDefaultValueFormat: RuntimeCommand;
517
+ readonly setDetailSurface: RuntimeCommand;
518
+ readonly setEditPanelOpen: RuntimeCommand;
519
+ readonly setEditValueDisplayMode: RuntimeCommand;
520
+ readonly setFieldPanelSizes: RuntimeCommand;
521
+ readonly setFilterAnchorEl: RuntimeCommand;
522
+ readonly setFilters: RuntimeCommand;
523
+ readonly setFontFamily: RuntimeCommand;
524
+ readonly setFontSize: RuntimeCommand;
525
+ readonly setImmersiveMode: RuntimeCommand;
526
+ readonly setImmersiveModeHovering: RuntimeCommand;
527
+ readonly setLayoutMode: RuntimeCommand;
528
+ readonly setMeasureAxis: RuntimeCommand;
529
+ readonly setNotification: RuntimeCommand;
530
+ readonly setNumberGroupSeparator: RuntimeCommand;
531
+ readonly setPaginationState: RuntimeCommand;
532
+ readonly setPartModal: RuntimeCommand;
533
+ readonly setReportDef: RuntimeCommand;
534
+ readonly setRowFieldsWithHistory: RuntimeCommand;
535
+ readonly setSavedReports: RuntimeCommand;
536
+ readonly setSelectedCols: RuntimeCommand;
537
+ readonly setShowColTotals: RuntimeCommand;
538
+ readonly setShowFloatingFilters: RuntimeCommand;
539
+ readonly setShowReportConfigColumn: RuntimeCommand;
540
+ readonly setShowRowNumbers: RuntimeCommand;
541
+ readonly setShowRowTotals: RuntimeCommand;
542
+ readonly setShowSubtotals: RuntimeCommand;
543
+ readonly setSidebarOpen: RuntimeCommand;
544
+ readonly setSidebarTab: RuntimeCommand;
545
+ readonly setSidebarWidth: RuntimeCommand;
546
+ readonly setSpacingMode: RuntimeCommand;
547
+ readonly setSparklineDataModal: RuntimeCommand;
548
+ readonly setStickyHeaders: RuntimeCommand;
549
+ readonly setThemeName: RuntimeCommand;
550
+ readonly setThemeOverrides: RuntimeCommand;
551
+ readonly setValConfigsWithHistory: RuntimeCommand;
552
+ readonly setZoomLevel: RuntimeCommand;
553
+ readonly showColTotals: boolean;
554
+ readonly showColumnLoadingSkeletons: boolean;
555
+ readonly showFloatingFilters: boolean;
556
+ readonly showNotification: RuntimeCommand;
557
+ readonly showReportConfigColumn: boolean;
558
+ readonly showRowNumbers: boolean;
559
+ readonly showRowTotals: boolean;
560
+ readonly showSubtotals: boolean;
561
+ readonly sidebarOpen: boolean;
562
+ readonly sidebarTab: string;
563
+ readonly sidebarWidth: number;
564
+ readonly spacingLabels: WorkspaceRecord;
565
+ readonly spacingMode: string;
566
+ readonly sparklineDataModal: WorkspaceRecord | null;
567
+ readonly sparklineFields: WorkspaceRecord;
568
+ readonly srOnly: React.CSSProperties;
569
+ readonly statusAccessoryActions: WorkspaceCollection;
570
+ readonly statusAccessoryModel: WorkspaceRecord | null;
571
+ readonly statusRowCount: number;
572
+ readonly stickyHeaderHeight: number;
573
+ readonly stickyHeaders: boolean;
574
+ readonly style: React.CSSProperties;
575
+ readonly styles: WorkspaceRecord;
576
+ readonly table: object;
577
+ readonly tableCanvasSize: number;
578
+ readonly theme: WorkspaceRecord;
579
+ readonly themeName: string;
580
+ readonly themeOverrides: WorkspaceRecord;
581
+ readonly toggleAllColumnsPinned: RuntimeCommand;
582
+ readonly totalCenterCols: number | null;
583
+ readonly totalLayoutWidth: number;
584
+ readonly transactionHistoryState: WorkspaceRecord;
585
+ readonly treeConfig: WorkspaceRecord | null;
586
+ readonly uiConfig: WorkspaceRecord;
587
+ readonly updateChartCanvasPane: RuntimeCommand;
588
+ readonly valConfigs: readonly PivotValueConfig[];
589
+ readonly viewMode: PivotRuntimeProps['viewMode'];
590
+ readonly virtualCenterCols: WorkspaceCollection;
591
+ readonly virtualRows: WorkspaceCollection;
592
+ readonly visibleLeafColumns: WorkspaceCollection;
593
+ readonly zoomLevel: number;
594
+ }
595
+ /** Narrow workspace-to-transport port for server chart request scheduling. */
596
+ export interface WorkspaceChartRequestPort {
597
+ readonly abortGeneration: number;
598
+ readonly activeRequest: React.MutableRefObject<PivotObject | null>;
599
+ readonly candidates: readonly PivotObject[];
600
+ readonly requestSequence: React.MutableRefObject<number>;
601
+ readonly clientInstance: React.MutableRefObject<string | null>;
602
+ readonly completedSignatures: React.MutableRefObject<PivotObject>;
603
+ readonly needsColumnSchema: boolean;
604
+ readonly requestVersion: React.MutableRefObject<number>;
605
+ readonly serverSide: boolean;
606
+ readonly session: React.MutableRefObject<string | null>;
607
+ readonly setProps: React.MutableRefObject<unknown>;
608
+ readonly stateEpoch: number;
609
+ readonly structuralInFlight: boolean;
610
+ readonly totalCenterColumns: number | null;
611
+ }
612
+ export interface WorkspaceRuntimeDomain {
613
+ readonly presentation: WorkspacePresentation;
614
+ readonly toolbar: WorkspacePresentation;
615
+ readonly sidebar: WorkspacePresentation;
616
+ readonly canvas: WorkspacePresentation;
617
+ readonly charts: {
618
+ readonly panes: readonly unknown[];
619
+ readonly renderPane: RuntimeCommand;
620
+ readonly renderWorkspaceModal: RuntimeCommand;
621
+ };
622
+ readonly detail: {
623
+ readonly surface: unknown;
624
+ readonly close: RuntimeCommand;
625
+ };
626
+ readonly chartRequest: WorkspaceChartRequestPort;
627
+ }
628
+ export interface PivotRuntimeDomains {
629
+ readonly core: CoreRuntimeDomain;
630
+ readonly transport: TransportRuntimeDomain;
631
+ readonly commands: CommandRuntimeDomain;
632
+ readonly viewport: ViewportRuntimeDomain;
633
+ readonly workspace: WorkspaceRuntimeDomain;
634
+ }
635
+ export interface WorkspaceViewModel {
636
+ readonly presentation: WorkspacePresentation;
637
+ readonly controls: {
638
+ readonly toolbar: WorkspacePresentation;
639
+ readonly sidebar: WorkspacePresentation;
640
+ };
641
+ readonly canvas: WorkspacePresentation;
642
+ }
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Pure response idempotency rules for the transport boundary.
3
+ *
4
+ * Responses may be replayed by Dash prop updates; only one state transition is
5
+ * permitted for a request/status pair. Keeping this outside workspace
6
+ * presentation makes the policy reusable by the eventual response domain.
7
+ */
8
+ /**
9
+ * @param {{kind?: string, status?: string, requestId?: string | number, request_id?: string | number} | null | undefined} response
10
+ * @param {{requestId?: string | number, request_id?: string | number, columnId?: string, column_id?: string, search?: unknown, offset?: number, options?: unknown[], jobId?: string, phase?: string} | null | undefined} payload
11
+ * @returns {string | null}
12
+ */
13
+ export function buildRuntimeResponseProcessingKey(response: {
14
+ kind?: string;
15
+ status?: string;
16
+ requestId?: string | number;
17
+ request_id?: string | number;
18
+ } | null | undefined, payload: {
19
+ requestId?: string | number;
20
+ request_id?: string | number;
21
+ columnId?: string;
22
+ column_id?: string;
23
+ search?: unknown;
24
+ offset?: number;
25
+ options?: unknown[];
26
+ jobId?: string;
27
+ phase?: string;
28
+ } | null | undefined): string | null;
29
+ /**
30
+ * @param {{current: Set<string>}} handledKeysRef
31
+ * @param {string | null | undefined} responseKey
32
+ * @returns {boolean}
33
+ */
34
+ export function markRuntimeResponseHandled(handledKeysRef: {
35
+ current: Set<string>;
36
+ }, responseKey: string | null | undefined): boolean;