serverside_pivot 0.0.0-stage → 0.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +165 -3
- package/dist/react/chunks/ContextMenu-Bt5_3bmD.mjs +192 -0
- package/dist/react/chunks/DetailDrawer-DtsvdhO4.mjs +37 -0
- package/dist/react/chunks/DetailSidePanel-v_7iU73g.mjs +36 -0
- package/dist/react/chunks/DetailSurfaceContent-BOXVc58A.mjs +200 -0
- package/dist/react/chunks/ECharts2dRenderer-BGL_NVGU.mjs +3299 -0
- package/dist/react/chunks/ECharts3dRenderer-BF2YWlsP.mjs +21573 -0
- package/dist/react/chunks/EditSidePanel-CuvtsKTK.mjs +298 -0
- package/dist/react/chunks/InlineDetailPanel-Bmtlu3lc.mjs +41 -0
- package/dist/react/chunks/PivotCharts-CA3_0bB8.mjs +4252 -0
- package/dist/react/chunks/ReportEditor-DYBr0HDz.mjs +1726 -0
- package/dist/react/chunks/SidebarPanel-B64bhrUW.mjs +3339 -0
- package/dist/react/chunks/SparklineDetailGraph-90WjWkhg.mjs +200 -0
- package/dist/react/chunks/installCanvasRenderer-C8gE9ttC.mjs +21281 -0
- package/dist/react/chunks/react-52jgz-em.mjs +25301 -0
- package/dist/react/chunks/xlsx.mini.min-BwwnBtoK.mjs +7996 -0
- package/dist/react/components/Charts/ChartRenderers.d.ts +73 -0
- package/dist/react/components/Charts/ChartWorkspace.d.ts +38 -0
- package/dist/react/components/Charts/ECharts2dRenderer.d.ts +5 -0
- package/dist/react/components/Charts/ECharts3dRenderer.d.ts +6 -0
- package/dist/react/components/Charts/PivotCharts.d.ts +9 -0
- package/dist/react/components/Charts/chartEnhancements.d.ts +66 -0
- package/dist/react/components/Charts/chartExportPresentation.d.ts +19 -0
- package/dist/react/components/Charts/chartMath.d.ts +4 -0
- package/dist/react/components/Charts/useChartExportMenu.d.ts +12 -0
- package/dist/react/components/DashTanstackPivot.react.d.ts +365 -0
- package/dist/react/components/Filters/ColumnFilter.d.ts +13 -0
- package/dist/react/components/Filters/DateRangeFilter.d.ts +8 -0
- package/dist/react/components/Filters/FilterPopover.d.ts +14 -0
- package/dist/react/components/Filters/MultiSelectFilter.d.ts +12 -0
- package/dist/react/components/Filters/NumericRangeFilter.d.ts +8 -0
- package/dist/react/components/Notification.d.ts +7 -0
- package/dist/react/components/PivotAppBar.d.ts +2 -0
- package/dist/react/components/PivotErrorBoundary.d.ts +15 -0
- package/dist/react/components/PivotSmallComponents.d.ts +6 -0
- package/dist/react/components/PivotWorkspace.d.ts +19 -0
- package/dist/react/components/PivotWorkspaceCanvas.d.ts +5 -0
- package/dist/react/components/PivotWorkspaceControls.d.ts +12 -0
- package/dist/react/components/PivotWorkspaceShell.d.ts +12 -0
- package/dist/react/components/RuntimeDataError.d.ts +7 -0
- package/dist/react/components/Sidebar/ColumnTreeItem.d.ts +14 -0
- package/dist/react/components/Sidebar/ReportEditor.d.ts +21 -0
- package/dist/react/components/Sidebar/SidebarFilterItem.d.ts +14 -0
- package/dist/react/components/Sidebar/SidebarPanel.d.ts +2 -0
- package/dist/react/components/Sidebar/ToolPanelSection.d.ts +14 -0
- package/dist/react/components/Sidebar/customCategoryUtils.d.ts +62 -0
- package/dist/react/components/Sidebar/formulaUtils.d.ts +22 -0
- package/dist/react/components/SkeletonRow.d.ts +6 -0
- package/dist/react/components/Table/ContextMenu.d.ts +9 -0
- package/dist/react/components/Table/DetailDrawer.d.ts +12 -0
- package/dist/react/components/Table/DetailSidePanel.d.ts +12 -0
- package/dist/react/components/Table/DetailSurfaceContent.d.ts +12 -0
- package/dist/react/components/Table/EditSidePanel.d.ts +21 -0
- package/dist/react/components/Table/EditableCell.d.ts +29 -0
- package/dist/react/components/Table/InlineDetailPanel.d.ts +14 -0
- package/dist/react/components/Table/PivotTableBody.d.ts +9 -0
- package/dist/react/components/Table/SparklineCell.d.ts +17 -0
- package/dist/react/components/Table/SparklineDetailGraph.d.ts +5 -0
- package/dist/react/components/Table/StatusBar.d.ts +8 -0
- package/dist/react/contexts/PivotConfigContext.d.ts +34 -0
- package/dist/react/contexts/PivotThemeContext.d.ts +7 -0
- package/dist/react/contexts/PivotValueDisplayContext.d.ts +10 -0
- package/dist/react/hooks/useCellInteraction.d.ts +31 -0
- package/dist/react/hooks/useChartState.d.ts +76 -0
- package/dist/react/hooks/useColumnDefs.d.ts +82 -0
- package/dist/react/hooks/useColumnVirtualizer.d.ts +30 -0
- package/dist/react/hooks/useDetailDrillThrough.d.ts +38 -0
- package/dist/react/hooks/useFilteredData.d.ts +2 -0
- package/dist/react/hooks/useFormatState.d.ts +44 -0
- package/dist/react/hooks/usePersistence.d.ts +5 -0
- package/dist/react/hooks/usePivotFieldInteractions.d.ts +28 -0
- package/dist/react/hooks/usePivotNormalization.d.ts +473 -0
- package/dist/react/hooks/usePivotRenderCounter.d.ts +1 -0
- package/dist/react/hooks/usePivotTransactions.d.ts +29 -0
- package/dist/react/hooks/useRenderHelpers.d.ts +85 -0
- package/dist/react/hooks/useReportMode.d.ts +32 -0
- package/dist/react/hooks/useRowCache.d.ts +19 -0
- package/dist/react/hooks/useRuntimeDataCommit.d.ts +26 -0
- package/dist/react/hooks/useRuntimeProfiling.d.ts +19 -0
- package/dist/react/hooks/useRuntimeTransport.d.ts +24 -0
- package/dist/react/hooks/useServerSideRowModel.d.ts +50 -0
- package/dist/react/hooks/useServerSideViewportController.d.ts +64 -0
- package/dist/react/hooks/useSidebarUI.d.ts +37 -0
- package/dist/react/hooks/useStickyStyles.d.ts +24 -0
- package/dist/react/index.mjs +8 -0
- package/dist/react/presentation/headerFormatting.d.ts +13 -0
- package/dist/react/presentation/safeCellContent.d.ts +16 -0
- package/dist/react/react.d.ts +7 -0
- package/dist/react/runtime/PivotRuntimeRoot.d.ts +7 -0
- package/dist/react/runtime/cellSelectionAnchor.d.ts +45 -0
- package/dist/react/runtime/createRuntimeCellPresentation.d.ts +7 -0
- package/dist/react/runtime/createRuntimeExportCommands.d.ts +77 -0
- package/dist/react/runtime/createRuntimeRowPinCommand.d.ts +9 -0
- package/dist/react/runtime/createWorkspacePresentation.d.ts +7 -0
- package/dist/react/runtime/displayColumnOrder.d.ts +4 -0
- package/dist/react/runtime/httpTransport.d.ts +65 -0
- package/dist/react/runtime/runtime-contract.generated.d.ts +48 -0
- package/dist/react/runtime/runtime-response-contract.generated.d.ts +34 -0
- package/dist/react/runtime/runtimeContract.d.ts +115 -0
- package/dist/react/runtime/runtimeDomains.d.ts +642 -0
- package/dist/react/runtime/runtimeDomains.type-test.d.ts +1 -0
- package/dist/react/runtime/runtimeResponseDedup.d.ts +36 -0
- package/dist/react/runtime/useChartWorkspacePresentation.d.ts +50 -0
- package/dist/react/runtime/useCommandRuntime.d.ts +3 -0
- package/dist/react/runtime/useCommandRuntimeStage.d.ts +1 -0
- package/dist/react/runtime/useCoreRuntime.d.ts +3 -0
- package/dist/react/runtime/useCoreRuntimeStage.d.ts +3 -0
- package/dist/react/runtime/useRuntimeCellSelection.d.ts +44 -0
- package/dist/react/runtime/useRuntimeChartCanvasCommands.d.ts +36 -0
- package/dist/react/runtime/useRuntimeChartCanvasResize.d.ts +13 -0
- package/dist/react/runtime/useRuntimeChartCanvasVerticalResize.d.ts +9 -0
- package/dist/react/runtime/useRuntimeChartDefinitionCommands.d.ts +14 -0
- package/dist/react/runtime/useRuntimeChartFloatingInteractions.d.ts +28 -0
- package/dist/react/runtime/useRuntimeChartModels.d.ts +69 -0
- package/dist/react/runtime/useRuntimeChartPanelSizing.d.ts +12 -0
- package/dist/react/runtime/useRuntimeChartRequestDispatch.d.ts +7 -0
- package/dist/react/runtime/useRuntimeClipboardExportPresentation.d.ts +159 -0
- package/dist/react/runtime/useRuntimeClipboardPaste.d.ts +7 -0
- package/dist/react/runtime/useRuntimeColorScalePresentation.d.ts +55 -0
- package/dist/react/runtime/useRuntimeColumnAutoSizing.d.ts +26 -0
- package/dist/react/runtime/useRuntimeColumnCommands.d.ts +22 -0
- package/dist/react/runtime/useRuntimeColumnMeasurement.d.ts +16 -0
- package/dist/react/runtime/useRuntimeDataRetry.d.ts +12 -0
- package/dist/react/runtime/useRuntimeDisplayNavigation.d.ts +17 -0
- package/dist/react/runtime/useRuntimeEditCellIdentity.d.ts +22 -0
- package/dist/react/runtime/useRuntimeEditChangeTracking.d.ts +28 -0
- package/dist/react/runtime/useRuntimeEditComparisonState.d.ts +35 -0
- package/dist/react/runtime/useRuntimeEditDispatch.d.ts +47 -0
- package/dist/react/runtime/useRuntimeEditOwnership.d.ts +32 -0
- package/dist/react/runtime/useRuntimeEditPresentation.d.ts +32 -0
- package/dist/react/runtime/useRuntimeEditStatePersistence.d.ts +28 -0
- package/dist/react/runtime/useRuntimeExportState.d.ts +20 -0
- package/dist/react/runtime/useRuntimeFilterPopover.d.ts +23 -0
- package/dist/react/runtime/useRuntimeLayoutHistory.d.ts +44 -0
- package/dist/react/runtime/useRuntimeOptimisticCellState.d.ts +27 -0
- package/dist/react/runtime/useRuntimeRequestSession.d.ts +79 -0
- package/dist/react/runtime/useRuntimeResponseLifecycle.d.ts +47 -0
- package/dist/react/runtime/useRuntimeResponsePostCommit.d.ts +15 -0
- package/dist/react/runtime/useRuntimeRowEditSessions.d.ts +28 -0
- package/dist/react/runtime/useRuntimeRowEditing.d.ts +18 -0
- package/dist/react/runtime/useRuntimeRowSelection.d.ts +14 -0
- package/dist/react/runtime/useRuntimeSelectionFormatting.d.ts +36 -0
- package/dist/react/runtime/useRuntimeStructuralSync.d.ts +62 -0
- package/dist/react/runtime/useRuntimeViewRestoreScroll.d.ts +9 -0
- package/dist/react/runtime/useRuntimeViewSnapshot.d.ts +203 -0
- package/dist/react/runtime/useRuntimeViewportTableData.d.ts +23 -0
- package/dist/react/runtime/useTransportRuntime.d.ts +12 -0
- package/dist/react/runtime/useViewportRuntime.d.ts +3 -0
- package/dist/react/runtime/useViewportRuntimeStage.d.ts +1 -0
- package/dist/react/runtime/useWorkspaceRuntime.d.ts +3 -0
- package/dist/react/runtime/useWorkspaceRuntimeStage.d.ts +1 -0
- package/dist/react/runtime/useWorkspaceStatusPresentation.d.ts +115 -0
- package/dist/react/runtime/workspaceViewModel.d.ts +7 -0
- package/dist/react/utils/Icons.d.ts +46 -0
- package/dist/react/utils/chartModelBuilders.d.ts +236 -0
- package/dist/react/utils/columnOrder.d.ts +12 -0
- package/dist/react/utils/dataBars.d.ts +7 -0
- package/dist/react/utils/domEvents.d.ts +1 -0
- package/dist/react/utils/editing.d.ts +47 -0
- package/dist/react/utils/exportUtils.d.ts +121 -0
- package/dist/react/utils/fieldPanelLayout.d.ts +61 -0
- package/dist/react/utils/filterOptions.d.ts +4 -0
- package/dist/react/utils/formatting.d.ts +1 -0
- package/dist/react/utils/helpers.d.ts +20 -0
- package/dist/react/utils/horizontalViewport.d.ts +12 -0
- package/dist/react/utils/layoutRows.d.ts +3 -0
- package/dist/react/utils/measureAxis.d.ts +22 -0
- package/dist/react/utils/pivotLayoutUtils.d.ts +2 -0
- package/dist/react/utils/pivotProfiler.d.ts +4 -0
- package/dist/react/utils/rawTableTsv.d.ts +21 -0
- package/dist/react/utils/reportEditorSelection.d.ts +23 -0
- package/dist/react/utils/rowSpanning.d.ts +6 -0
- package/dist/react/utils/savedReports.d.ts +7 -0
- package/dist/react/utils/sorting.d.ts +14 -0
- package/dist/react/utils/sparklineDetail.d.ts +8 -0
- package/dist/react/utils/sparklines.d.ts +78 -0
- package/dist/react/utils/styles.d.ts +957 -0
- package/package.json +89 -6
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Owns the client-to-Dash runtime request envelope.
|
|
3
|
+
*
|
|
4
|
+
* This hook deliberately stops at prop dispatch. Response handling, payload
|
|
5
|
+
* fetching, row-cache updates, and profiler response commits remain in their
|
|
6
|
+
* existing owners so request transport does not become a second data model.
|
|
7
|
+
*/
|
|
8
|
+
export function useRuntimeTransport({ clientInstanceRef, detailConfig, detailMode, profilingEnabledRef, recordProfilerRequestStart, sessionIdRef, setProps, tableName, treeConfig, viewMode, }: {
|
|
9
|
+
clientInstanceRef: any;
|
|
10
|
+
detailConfig: any;
|
|
11
|
+
detailMode: any;
|
|
12
|
+
profilingEnabledRef: any;
|
|
13
|
+
recordProfilerRequestStart: any;
|
|
14
|
+
sessionIdRef: any;
|
|
15
|
+
setProps: any;
|
|
16
|
+
tableName: any;
|
|
17
|
+
treeConfig: any;
|
|
18
|
+
viewMode: any;
|
|
19
|
+
}): {
|
|
20
|
+
dispatchSetProps: (nextProps: any) => void;
|
|
21
|
+
emitRuntimeRequest: (kind: any, payload: any) => void;
|
|
22
|
+
normalizeOutgoingRuntimeRequest: (runtimeRequest: any) => import("../runtime/runtimeContract").RuntimeRequestV1 | null;
|
|
23
|
+
setPropsRef: import("react").RefObject<(nextProps: any) => void>;
|
|
24
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export function useServerSideRowModel({ parentRef, serverSide, rowCount, rowHeight, data, dataOffset, dataVersion, dataStateEpoch, setProps, blockSize, maxBlocksInCache, blockLoadDebounceMs, rowOverscan, prefetchColumns, estimateRowHeight, keyMapper, cacheKey, excludeGrandTotal, immersiveMode, stateEpoch, sessionId, clientInstance, tableName, abortGeneration, structuralInFlight, requestVersionRef: externalRequestVersionRef, colStart, colEnd, responseColStart, responseColEnd, needsColSchema, columnRangeUrgencyToken, onViewportRequest, layoutMode, showSubtotals, layoutRequestFields, }: {
|
|
2
|
+
parentRef: any;
|
|
3
|
+
serverSide: any;
|
|
4
|
+
rowCount: any;
|
|
5
|
+
rowHeight: any;
|
|
6
|
+
data: any;
|
|
7
|
+
dataOffset?: number | undefined;
|
|
8
|
+
dataVersion?: number | undefined;
|
|
9
|
+
dataStateEpoch?: null | undefined;
|
|
10
|
+
setProps: any;
|
|
11
|
+
blockSize?: number | undefined;
|
|
12
|
+
maxBlocksInCache?: number | undefined;
|
|
13
|
+
blockLoadDebounceMs?: null | undefined;
|
|
14
|
+
rowOverscan?: null | undefined;
|
|
15
|
+
prefetchColumns?: null | undefined;
|
|
16
|
+
estimateRowHeight: any;
|
|
17
|
+
keyMapper: any;
|
|
18
|
+
cacheKey: any;
|
|
19
|
+
excludeGrandTotal?: boolean | undefined;
|
|
20
|
+
immersiveMode?: boolean | undefined;
|
|
21
|
+
stateEpoch?: number | undefined;
|
|
22
|
+
sessionId?: string | undefined;
|
|
23
|
+
clientInstance?: string | undefined;
|
|
24
|
+
tableName?: null | undefined;
|
|
25
|
+
abortGeneration?: number | undefined;
|
|
26
|
+
structuralInFlight?: boolean | undefined;
|
|
27
|
+
requestVersionRef?: null | undefined;
|
|
28
|
+
colStart?: null | undefined;
|
|
29
|
+
colEnd?: null | undefined;
|
|
30
|
+
responseColStart?: null | undefined;
|
|
31
|
+
responseColEnd?: null | undefined;
|
|
32
|
+
needsColSchema?: boolean | undefined;
|
|
33
|
+
columnRangeUrgencyToken?: number | undefined;
|
|
34
|
+
onViewportRequest?: null | undefined;
|
|
35
|
+
layoutMode?: string | undefined;
|
|
36
|
+
showSubtotals?: boolean | undefined;
|
|
37
|
+
layoutRequestFields?: null | undefined;
|
|
38
|
+
}): {
|
|
39
|
+
rowVirtualizer: import("@tanstack/virtual-core").Virtualizer<any, Element>;
|
|
40
|
+
getRow: (rowIndex: any) => any;
|
|
41
|
+
clearCache: () => void;
|
|
42
|
+
invalidateFromBlock: (blockIndex: any) => void;
|
|
43
|
+
softInvalidateFromBlock: (blockIndex: any) => void;
|
|
44
|
+
grandTotalRow: null;
|
|
45
|
+
loadedRows: any[];
|
|
46
|
+
renderedData: any;
|
|
47
|
+
renderedOffset: number;
|
|
48
|
+
requestUrgentColumnViewport: (overrideColStart: any, overrideColEnd: any) => boolean;
|
|
49
|
+
requestVisibleViewportRefresh: (overrideColStart?: null, overrideColEnd?: null, options?: {}) => boolean;
|
|
50
|
+
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export function useServerSideViewportController({ serverSide, effectiveRowCount, responseColumns, responseColSchema, dataVersion, stateEpoch, structuralInFlight, structuralPendingVersionRef, filteredData, rowFields, colFields, schemaFallbackWidth, requestVersionRef, latestDataVersionRef, requestUrgentColumnViewportRef, coerceTransportNumber, mergeSparseColSchema, isSparseSchemaRangeLoaded, performanceConfig, }: {
|
|
2
|
+
serverSide: any;
|
|
3
|
+
effectiveRowCount: any;
|
|
4
|
+
responseColumns: any;
|
|
5
|
+
responseColSchema?: null | undefined;
|
|
6
|
+
dataVersion: any;
|
|
7
|
+
stateEpoch: any;
|
|
8
|
+
structuralInFlight: any;
|
|
9
|
+
structuralPendingVersionRef: any;
|
|
10
|
+
filteredData: any;
|
|
11
|
+
rowFields: any;
|
|
12
|
+
colFields: any;
|
|
13
|
+
schemaFallbackWidth?: number | undefined;
|
|
14
|
+
requestVersionRef: any;
|
|
15
|
+
latestDataVersionRef: any;
|
|
16
|
+
requestUrgentColumnViewportRef?: null | undefined;
|
|
17
|
+
coerceTransportNumber: any;
|
|
18
|
+
mergeSparseColSchema: any;
|
|
19
|
+
isSparseSchemaRangeLoaded: any;
|
|
20
|
+
performanceConfig?: null | undefined;
|
|
21
|
+
}): {
|
|
22
|
+
cachedColSchema: null;
|
|
23
|
+
colRequestEnd: number | null;
|
|
24
|
+
colRequestStart: number | null;
|
|
25
|
+
colRequestEndRef: import("react").RefObject<null>;
|
|
26
|
+
colRequestStartRef: import("react").RefObject<null>;
|
|
27
|
+
colSchemaEpochRef: import("react").RefObject<number>;
|
|
28
|
+
columnRangeUrgencyToken: number;
|
|
29
|
+
handleHorizontalScrollMetrics: (metrics: any) => void;
|
|
30
|
+
isHorizontalColumnRequestPending: boolean;
|
|
31
|
+
isRequestPending: boolean;
|
|
32
|
+
latestRequestedColumnWindowRef: import("react").RefObject<{
|
|
33
|
+
start: null;
|
|
34
|
+
end: null;
|
|
35
|
+
}>;
|
|
36
|
+
latestRequestedViewportRef: import("react").RefObject<null>;
|
|
37
|
+
markRequestPending: (requestMeta: any) => void;
|
|
38
|
+
resolvePendingRequest: (requestMeta: any) => boolean;
|
|
39
|
+
needsColSchema: boolean;
|
|
40
|
+
needsColSchemaRef: import("react").RefObject<boolean>;
|
|
41
|
+
pendingHorizontalColumnCount: number;
|
|
42
|
+
resetVisibleColRange: (visibleCountHint?: null) => void;
|
|
43
|
+
responseSchemaWindow: {
|
|
44
|
+
start: null;
|
|
45
|
+
end: null;
|
|
46
|
+
} | {
|
|
47
|
+
start: number;
|
|
48
|
+
end: number;
|
|
49
|
+
};
|
|
50
|
+
resolveStableRequestedColumnWindow: () => {
|
|
51
|
+
start: null;
|
|
52
|
+
end: null;
|
|
53
|
+
} | {
|
|
54
|
+
start: number;
|
|
55
|
+
end: number;
|
|
56
|
+
};
|
|
57
|
+
serverSideBlockSize: number;
|
|
58
|
+
syncPreciseVisibleColRange: (nextPreciseRange: any, options?: {}) => void;
|
|
59
|
+
totalCenterCols: any;
|
|
60
|
+
visibleColRange: {
|
|
61
|
+
start: number;
|
|
62
|
+
end: number;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* useSidebarUI — extracts sidebar/field-panel UI state from DashTanstackPivot.
|
|
3
|
+
*
|
|
4
|
+
* Covers: sidebar open/width, field panel sizes, filter column, sidebar tab,
|
|
5
|
+
* floating filters, sticky headers, column search/type filter, selected columns.
|
|
6
|
+
*/
|
|
7
|
+
export function useSidebarUI({ loadPersistedState, clampSidebarWidth, externalFieldPanelSizes, normalizedInitialFieldPanelSizes, sanitizeFieldPanelSizes, DEFAULT_FIELD_PANEL_SIZES, }: {
|
|
8
|
+
loadPersistedState: any;
|
|
9
|
+
clampSidebarWidth: any;
|
|
10
|
+
externalFieldPanelSizes: any;
|
|
11
|
+
normalizedInitialFieldPanelSizes: any;
|
|
12
|
+
sanitizeFieldPanelSizes: any;
|
|
13
|
+
DEFAULT_FIELD_PANEL_SIZES: any;
|
|
14
|
+
}): {
|
|
15
|
+
sidebarOpen: boolean;
|
|
16
|
+
setSidebarOpen: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
17
|
+
sidebarWidth: any;
|
|
18
|
+
setSidebarWidth: import("react").Dispatch<any>;
|
|
19
|
+
fieldPanelSizes: any;
|
|
20
|
+
setFieldPanelSizes: import("react").Dispatch<any>;
|
|
21
|
+
activeFilterCol: null;
|
|
22
|
+
setActiveFilterCol: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
23
|
+
filterAnchorEl: null;
|
|
24
|
+
setFilterAnchorEl: import("react").Dispatch<import("react").SetStateAction<null>>;
|
|
25
|
+
sidebarTab: string;
|
|
26
|
+
setSidebarTab: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
27
|
+
showFloatingFilters: boolean;
|
|
28
|
+
setShowFloatingFilters: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
29
|
+
stickyHeaders: boolean;
|
|
30
|
+
setStickyHeaders: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
31
|
+
colSearch: string;
|
|
32
|
+
setColSearch: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
33
|
+
colTypeFilter: string;
|
|
34
|
+
setColTypeFilter: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
35
|
+
selectedCols: Set<any>;
|
|
36
|
+
setSelectedCols: import("react").Dispatch<import("react").SetStateAction<Set<any>>>;
|
|
37
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default useStickyStyles;
|
|
2
|
+
declare function useStickyStyles(theme: any, leftCols: any, rightCols: any): {
|
|
3
|
+
getHeaderStickyStyle: (header: any, level: any, renderSection: string | undefined, backgroundOverride: any) => {
|
|
4
|
+
position: string;
|
|
5
|
+
left: string | undefined;
|
|
6
|
+
right: string | undefined;
|
|
7
|
+
zIndex: number;
|
|
8
|
+
background: any;
|
|
9
|
+
} | {
|
|
10
|
+
background: any;
|
|
11
|
+
};
|
|
12
|
+
getStickyStyle: (column: any, bg: any) => {
|
|
13
|
+
background: any;
|
|
14
|
+
} | {
|
|
15
|
+
boxShadow?: string | undefined;
|
|
16
|
+
borderRight?: string | undefined;
|
|
17
|
+
borderLeft?: string | undefined;
|
|
18
|
+
position: string;
|
|
19
|
+
left: string | undefined;
|
|
20
|
+
right: string | undefined;
|
|
21
|
+
zIndex: number;
|
|
22
|
+
background: any;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Pure header-formatting policy; deliberately independent of React state. */
|
|
2
|
+
export function normalizeHeaderStyle(rawStyle: any): {
|
|
3
|
+
background: any;
|
|
4
|
+
color: any;
|
|
5
|
+
} | {
|
|
6
|
+
background?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
background: string;
|
|
9
|
+
};
|
|
10
|
+
export function hasHeaderStyleKeys(value: any): boolean;
|
|
11
|
+
export function addHeaderCandidate(candidates: any, rawValue: any): void;
|
|
12
|
+
export function headerRuleTargetMatches(rule: any, candidateKeys: any): boolean;
|
|
13
|
+
export function headerRuleKindMatches(rule: any, level: any, headerKind: any): boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export function SafeCellContent({ render }: {
|
|
2
|
+
render: any;
|
|
3
|
+
}): any;
|
|
4
|
+
/** Renderer safety boundary, independent from cell selection/runtime state. */
|
|
5
|
+
export class CellErrorBoundary extends React.Component<any, any, any> {
|
|
6
|
+
static getDerivedStateFromError(): {
|
|
7
|
+
hasError: boolean;
|
|
8
|
+
};
|
|
9
|
+
constructor(props: any);
|
|
10
|
+
state: {
|
|
11
|
+
hasError: boolean;
|
|
12
|
+
};
|
|
13
|
+
componentDidUpdate(prevProps: any): void;
|
|
14
|
+
render(): any;
|
|
15
|
+
}
|
|
16
|
+
import React from 'react';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Public entry point for a standalone React host. */
|
|
2
|
+
export { PivotWorkspace } from './components/PivotWorkspace';
|
|
3
|
+
export { HttpPivotTransport, LatestViewportScheduler, type PayloadReference, type PivotTransport, } from './runtime/httpTransport';
|
|
4
|
+
export { themes, injectThemeCssVars } from './utils/styles';
|
|
5
|
+
export type { PivotWorkspaceProps } from './components/PivotWorkspace';
|
|
6
|
+
export type { PivotRuntimeProps, PivotThemeName, PivotValueConfig, ValConfig, FilterCondition, FilterConfig, SortConfig, ChartDefinition, } from './runtime/runtimeDomains';
|
|
7
|
+
export type { RuntimeRequestV1, RuntimeResponseV1, RuntimeRequestSchemaV1, RuntimeResponseSchemaV1, } from './runtime/runtimeContract';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PivotRuntimeProps } from './runtimeDomains';
|
|
3
|
+
import type { RuntimePayloadTransport } from './httpTransport';
|
|
4
|
+
/** Typed runtime composition boundary for the public Dash component. */
|
|
5
|
+
export declare function PivotRuntimeRoot({ payloadTransport, ...props }: PivotRuntimeProps & {
|
|
6
|
+
readonly payloadTransport?: RuntimePayloadTransport;
|
|
7
|
+
}): React.JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** @typedef {{rowIndex:number, colIndex:number, rowId?:string, colId?:string, virtualIndex?:number, scopeKey?:string}} CellSelectionAnchor */
|
|
2
|
+
/** @typedef {{id:string, original?:{__virtualIndex?:number}, getValue:(columnId:string)=>unknown}} SelectionRow */
|
|
3
|
+
/** @typedef {{id:string}} SelectionColumn */
|
|
4
|
+
/**
|
|
5
|
+
* Positions are rendering hints only. IDs survive a server cache-window change;
|
|
6
|
+
* virtualIndex orders an absent endpoint without allocating missing rows.
|
|
7
|
+
* @param {SelectionRow[]} rows
|
|
8
|
+
* @param {SelectionColumn[]} columns
|
|
9
|
+
* @param {number} rowIndex
|
|
10
|
+
* @param {number} colIndex
|
|
11
|
+
* @param {string} scopeKey
|
|
12
|
+
* @returns {CellSelectionAnchor}
|
|
13
|
+
*/
|
|
14
|
+
export function captureCellAnchor(rows: SelectionRow[], columns: SelectionColumn[], rowIndex: number, colIndex: number, scopeKey: string): CellSelectionAnchor;
|
|
15
|
+
/** @param {CellSelectionAnchor} anchor @param {SelectionRow[]} rows */
|
|
16
|
+
export function resolveAnchorRow(anchor: CellSelectionAnchor, rows: SelectionRow[]): number;
|
|
17
|
+
/** @param {CellSelectionAnchor} anchor @param {SelectionColumn[]} columns */
|
|
18
|
+
export function resolveAnchorColumn(anchor: CellSelectionAnchor, columns: SelectionColumn[]): number;
|
|
19
|
+
/**
|
|
20
|
+
* Semantic scope only: callers must not pass viewport windows or response versions.
|
|
21
|
+
* @param {boolean} serverSide
|
|
22
|
+
* @param {string|null} dataset
|
|
23
|
+
* @param {string} rowStructureKey
|
|
24
|
+
* @param {unknown} expanded
|
|
25
|
+
* @param {unknown[]} viewDefinition
|
|
26
|
+
*/
|
|
27
|
+
export function cellSelectionScopeKey(serverSide: boolean, dataset: string | null, rowStructureKey: string, expanded: unknown, viewDefinition: unknown[]): string;
|
|
28
|
+
export type CellSelectionAnchor = {
|
|
29
|
+
rowIndex: number;
|
|
30
|
+
colIndex: number;
|
|
31
|
+
rowId?: string;
|
|
32
|
+
colId?: string;
|
|
33
|
+
virtualIndex?: number;
|
|
34
|
+
scopeKey?: string;
|
|
35
|
+
};
|
|
36
|
+
export type SelectionRow = {
|
|
37
|
+
id: string;
|
|
38
|
+
original?: {
|
|
39
|
+
__virtualIndex?: number;
|
|
40
|
+
};
|
|
41
|
+
getValue: (columnId: string) => unknown;
|
|
42
|
+
};
|
|
43
|
+
export type SelectionColumn = {
|
|
44
|
+
id: string;
|
|
45
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Creates pure cell validation and conditional-format presentation helpers. */
|
|
2
|
+
export function createRuntimeCellPresentation({ conditionalFormatting }: {
|
|
3
|
+
conditionalFormatting: any;
|
|
4
|
+
}): {
|
|
5
|
+
getRuleBasedStyle: (colId: any, value: any) => {};
|
|
6
|
+
validateCell: (value: any, rule: any) => boolean;
|
|
7
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates the export request and download commands for the workspace.
|
|
3
|
+
*
|
|
4
|
+
* Payload construction lives in useRuntimeClipboardExportPresentation. This
|
|
5
|
+
* module owns only command flow: request IDs, cancellation, part scheduling,
|
|
6
|
+
* and the client-side XLSX/CSV fallback.
|
|
7
|
+
*/
|
|
8
|
+
export function createRuntimeExportCommands({ abortGenerationRef, activeExportRequestIdRef, buildExportStyleProfile, cancelledExportRequestIdsRef, clientInstanceRef, COPY_ROW_LIMIT, dispatchServerSideRuntimeSetProps, EXPORT_ROW_LIMIT, exportRequestSequenceRef, exportJobControllerRef, getDisplayHeaderTextForColumn, getDisplayHeaderTextStackForColumn, getDisplayRows, getExportCellDisplayValue, getExportColumns, getExportHeaderLabel, getExportRawCellValue, getServerExportColumnTarget, layoutMode, mergedHeaderSeparator, partModal, pendingCopyIntentRef, rowCount, serverSide, setExportProgress, setIsCopying, setIsExporting, setPartModal, table, tableName, theme, }: {
|
|
9
|
+
abortGenerationRef: any;
|
|
10
|
+
activeExportRequestIdRef: any;
|
|
11
|
+
buildExportStyleProfile: any;
|
|
12
|
+
cancelledExportRequestIdsRef: any;
|
|
13
|
+
clientInstanceRef: any;
|
|
14
|
+
COPY_ROW_LIMIT: any;
|
|
15
|
+
dispatchServerSideRuntimeSetProps: any;
|
|
16
|
+
EXPORT_ROW_LIMIT: any;
|
|
17
|
+
exportRequestSequenceRef: any;
|
|
18
|
+
exportJobControllerRef?: {
|
|
19
|
+
current: null;
|
|
20
|
+
} | undefined;
|
|
21
|
+
getDisplayHeaderTextForColumn: any;
|
|
22
|
+
getDisplayHeaderTextStackForColumn: any;
|
|
23
|
+
getDisplayRows: any;
|
|
24
|
+
getExportCellDisplayValue: any;
|
|
25
|
+
getExportColumns: any;
|
|
26
|
+
getExportHeaderLabel: any;
|
|
27
|
+
getExportRawCellValue: any;
|
|
28
|
+
getServerExportColumnTarget: any;
|
|
29
|
+
layoutMode: any;
|
|
30
|
+
mergedHeaderSeparator: any;
|
|
31
|
+
partModal: any;
|
|
32
|
+
pendingCopyIntentRef: any;
|
|
33
|
+
rowCount: any;
|
|
34
|
+
serverSide: any;
|
|
35
|
+
setExportProgress: any;
|
|
36
|
+
setIsCopying: any;
|
|
37
|
+
setIsExporting: any;
|
|
38
|
+
setPartModal: any;
|
|
39
|
+
table: any;
|
|
40
|
+
tableName: any;
|
|
41
|
+
theme: any;
|
|
42
|
+
}): {
|
|
43
|
+
buildServerExportPayload: ({ format, includeHeaders, rowStart, rowEnd, columnTarget, styleOptions, partId, partLabel, colStart, colEnd, allRows, }: {
|
|
44
|
+
format: any;
|
|
45
|
+
includeHeaders: any;
|
|
46
|
+
rowStart: any;
|
|
47
|
+
rowEnd: any;
|
|
48
|
+
columnTarget: any;
|
|
49
|
+
styleOptions: any;
|
|
50
|
+
partId: any;
|
|
51
|
+
partLabel: any;
|
|
52
|
+
colStart?: null | undefined;
|
|
53
|
+
colEnd?: null | undefined;
|
|
54
|
+
allRows?: boolean | undefined;
|
|
55
|
+
}) => {
|
|
56
|
+
format: any;
|
|
57
|
+
includeHeaders: any;
|
|
58
|
+
table: any;
|
|
59
|
+
layout_mode: any;
|
|
60
|
+
rowStart: any;
|
|
61
|
+
rowEnd: any;
|
|
62
|
+
allRows: boolean;
|
|
63
|
+
style: any;
|
|
64
|
+
};
|
|
65
|
+
cancelActiveExportRequest: () => void;
|
|
66
|
+
copyAllRecordsToClipboard: (withHeaders?: boolean, mergedHeaders?: boolean) => void;
|
|
67
|
+
copyCurrentTableToClipboard: (withHeaders?: boolean, mergedHeaders?: boolean) => void;
|
|
68
|
+
dispatchExportPart: (rowBatch: any, colBatch: any) => void;
|
|
69
|
+
dispatchServerExportRequest: (payload: any, runtimeFields?: {}, replayRequestId?: null) => string;
|
|
70
|
+
exportPivot: (format?: string) => void;
|
|
71
|
+
getServerExportStyleIds: (columnTarget: any) => any;
|
|
72
|
+
startExportJob: (format?: string, scope?: {}) => any;
|
|
73
|
+
pollExportJob: any;
|
|
74
|
+
cancelExportJob: any;
|
|
75
|
+
retryExportJob: any;
|
|
76
|
+
dismissExportJob: any;
|
|
77
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Creates the single UI command that updates row pinning and emits Dash state. */
|
|
2
|
+
export function createRuntimeRowPinCommand({ requestLayoutHistoryCapture, setGrandTotalPinOverride, setProps, setRowPinningWithHistory, }: {
|
|
3
|
+
requestLayoutHistoryCapture: any;
|
|
4
|
+
setGrandTotalPinOverride: any;
|
|
5
|
+
setProps: any;
|
|
6
|
+
setRowPinningWithHistory: any;
|
|
7
|
+
}): {
|
|
8
|
+
handlePinRow: (rowId: any, pinState: any) => void;
|
|
9
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WorkspacePresentation } from './runtimeDomains';
|
|
2
|
+
/**
|
|
3
|
+
* Copy only the renderer contract from the workspace coordinator. This is an
|
|
4
|
+
* explicit, immutable boundary: state bags and future coordinator fields
|
|
5
|
+
* cannot become renderer inputs without being deliberately added here.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createWorkspacePresentation(source: WorkspacePresentation): WorkspacePresentation;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Rendered positional axis, including non-data gutters: left, center, right. */
|
|
2
|
+
export function getDisplayOrderedLeafColumns(table: any): any;
|
|
3
|
+
/** A gutter occupies display space but cannot become a selected data cell. */
|
|
4
|
+
export function isSelectableDisplayColumn(column: any): boolean;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { type JsonObject, type RuntimeRequestV1, type RuntimeResponseV1 } from './runtimeContract';
|
|
2
|
+
export interface PayloadReference {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly url: string;
|
|
5
|
+
readonly bytes?: number;
|
|
6
|
+
readonly contentType?: string;
|
|
7
|
+
readonly expiresAt?: number;
|
|
8
|
+
}
|
|
9
|
+
export interface RuntimeTransportRequestOptions {
|
|
10
|
+
readonly signal?: AbortSignal;
|
|
11
|
+
}
|
|
12
|
+
/** The framework-neutral runtime transport implemented by every host. */
|
|
13
|
+
export interface PivotTransport {
|
|
14
|
+
request(request: RuntimeRequestV1, options?: RuntimeTransportRequestOptions): Promise<RuntimeResponseV1>;
|
|
15
|
+
fetchPayload(reference: PayloadReference, options?: RuntimeTransportRequestOptions): Promise<JsonObject>;
|
|
16
|
+
/** Binary completed-export delivery, retaining the transport's auth context. */
|
|
17
|
+
fetchExportPayload?(reference: PayloadReference, options?: RuntimeTransportRequestOptions): Promise<Blob>;
|
|
18
|
+
}
|
|
19
|
+
export type RuntimePayloadTransport = Pick<PivotTransport, 'fetchPayload' | 'fetchExportPayload'>;
|
|
20
|
+
export interface HttpPivotTransportOptions {
|
|
21
|
+
readonly endpoint?: string;
|
|
22
|
+
readonly fetchImpl?: typeof fetch;
|
|
23
|
+
readonly headers?: Readonly<Record<string, string>>;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Direct HTTP transport for React, Streamlit, and any non-Dash host.
|
|
27
|
+
*
|
|
28
|
+
* It transfers compact V1 envelopes only. Oversized row blocks are fetched
|
|
29
|
+
* through `fetchPayload`, where the browser can cache and abort independently.
|
|
30
|
+
*/
|
|
31
|
+
export declare class HttpPivotTransport implements PivotTransport {
|
|
32
|
+
private readonly endpoint;
|
|
33
|
+
private readonly fetchImpl;
|
|
34
|
+
private readonly headers;
|
|
35
|
+
constructor(options?: HttpPivotTransportOptions);
|
|
36
|
+
/**
|
|
37
|
+
* Runtime gateways intentionally return path-relative payload references
|
|
38
|
+
* so same-origin deployments remain portable. Resolve them against the
|
|
39
|
+
* configured runtime endpoint here: an embedded Streamlit host may live
|
|
40
|
+
* on a different origin and must never turn ``/v1/runtime/payload/...``
|
|
41
|
+
* into a request to the Streamlit server.
|
|
42
|
+
*/
|
|
43
|
+
private resolvePayloadUrl;
|
|
44
|
+
private resolvePayloadReference;
|
|
45
|
+
private bindRequestIdentity;
|
|
46
|
+
request(request: RuntimeRequestV1, options?: RuntimeTransportRequestOptions): Promise<RuntimeResponseV1>;
|
|
47
|
+
fetchPayload(reference: PayloadReference, options?: RuntimeTransportRequestOptions): Promise<JsonObject>;
|
|
48
|
+
fetchExportPayload(reference: PayloadReference, options?: RuntimeTransportRequestOptions): Promise<Blob>;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Coalesces a burst of viewport events into the latest request and aborts the
|
|
52
|
+
* in-flight request as soon as a newer window supersedes it. Structural,
|
|
53
|
+
* export, chart, and detail requests bypass this scheduler.
|
|
54
|
+
*/
|
|
55
|
+
export declare class LatestViewportScheduler implements PivotTransport {
|
|
56
|
+
private readonly transport;
|
|
57
|
+
private active;
|
|
58
|
+
private queued;
|
|
59
|
+
private flushScheduled;
|
|
60
|
+
constructor(transport: PivotTransport);
|
|
61
|
+
request(request: RuntimeRequestV1, options?: RuntimeTransportRequestOptions): Promise<RuntimeResponseV1>;
|
|
62
|
+
fetchPayload(reference: PayloadReference, options?: RuntimeTransportRequestOptions): Promise<JsonObject>;
|
|
63
|
+
fetchExportPayload(reference: PayloadReference, options?: RuntimeTransportRequestOptions): Promise<Blob>;
|
|
64
|
+
private flush;
|
|
65
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
export type PivotRuntimeProtocolRequestV1 = unknown & {
|
|
7
|
+
schemaVersion: 1;
|
|
8
|
+
kind: "data" | "filter_options" | "chart" | "detail" | "drill" | "update" | "transaction" | "export";
|
|
9
|
+
requestId: string;
|
|
10
|
+
table?: string;
|
|
11
|
+
sessionId?: string;
|
|
12
|
+
clientInstance?: string;
|
|
13
|
+
stateEpoch?: number;
|
|
14
|
+
windowSeq?: number;
|
|
15
|
+
abortGeneration?: number;
|
|
16
|
+
cacheKey?: string;
|
|
17
|
+
state?: ViewState;
|
|
18
|
+
payload: ExportPayload | JsonObject;
|
|
19
|
+
};
|
|
20
|
+
export type JsonValue = null | boolean | number | string | JsonValue[] | JsonObject;
|
|
21
|
+
export type ExportPayload = JsonObject & unknown & {
|
|
22
|
+
action?: "start" | "status" | "cancel";
|
|
23
|
+
jobId?: string;
|
|
24
|
+
[k: string]: unknown;
|
|
25
|
+
};
|
|
26
|
+
export interface ViewState {
|
|
27
|
+
rowFields?: string[];
|
|
28
|
+
colFields?: string[];
|
|
29
|
+
valConfigs?: JsonObject[];
|
|
30
|
+
filters?: JsonObject;
|
|
31
|
+
customDimensions?: JsonObject[];
|
|
32
|
+
measureAxis?: JsonObject;
|
|
33
|
+
sorting?: JsonObject[];
|
|
34
|
+
sortOptions?: JsonObject;
|
|
35
|
+
expanded?: boolean | JsonObject;
|
|
36
|
+
immersiveMode?: boolean;
|
|
37
|
+
showRowTotals?: boolean;
|
|
38
|
+
showColTotals?: boolean;
|
|
39
|
+
showSubtotals?: boolean;
|
|
40
|
+
viewMode?: string;
|
|
41
|
+
detailMode?: string;
|
|
42
|
+
treeConfig?: JsonObject | null;
|
|
43
|
+
detailConfig?: JsonObject | null;
|
|
44
|
+
reportDef?: JsonObject | null;
|
|
45
|
+
}
|
|
46
|
+
export interface JsonObject {
|
|
47
|
+
[k: string]: JsonValue;
|
|
48
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
3
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
4
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
5
|
+
*/
|
|
6
|
+
export type PivotRuntimeProtocolResponseV1 = unknown & {
|
|
7
|
+
schemaVersion: 1;
|
|
8
|
+
kind: "data" | "filter_options" | "chart" | "detail" | "drill" | "update" | "transaction" | "export";
|
|
9
|
+
status: string;
|
|
10
|
+
requestId?: string;
|
|
11
|
+
table?: string;
|
|
12
|
+
sessionId?: string;
|
|
13
|
+
clientInstance?: string;
|
|
14
|
+
stateEpoch?: number;
|
|
15
|
+
windowSeq?: number;
|
|
16
|
+
message?: string;
|
|
17
|
+
payload: ExportJobPayload | JsonObject1;
|
|
18
|
+
profile?: JsonObject1;
|
|
19
|
+
};
|
|
20
|
+
export type ExportJobPayload = unknown & {
|
|
21
|
+
jobId: string;
|
|
22
|
+
phase: "queued" | "running" | "cancelling" | "cancelled" | "completed" | "failed" | "interrupted";
|
|
23
|
+
rowsWritten: number;
|
|
24
|
+
bytesWritten: number;
|
|
25
|
+
totalRows: number | null;
|
|
26
|
+
payloadRef?: JsonObject;
|
|
27
|
+
};
|
|
28
|
+
export type JsonValue = null | boolean | number | string | JsonValue[] | JsonObject1;
|
|
29
|
+
export interface JsonObject {
|
|
30
|
+
[k: string]: JsonValue;
|
|
31
|
+
}
|
|
32
|
+
export interface JsonObject1 {
|
|
33
|
+
[k: string]: JsonValue;
|
|
34
|
+
}
|