Skip to content
SumOfficeSumOfficeSumOffice

Types: pivot tables

Compute Contract type definitions — cache, fields, layout, grouping, and value settings. Names: 125.

Definitions of the names from the “TypeScript type” column on the operation pages.

Other dictionary topics: session, workbook, and sheets · cells and ranges · formulas and calculation · formatting · data and sheet objects · pivot tables · charts and graphics · printing and page layout · Power Query · VBA and macros · protection and review · general and utility.

Types on this page — 125
type ContractPivotCacheOptionsAction =
| { action: "list"; cacheId?: string
| null; pivotTableName?: string
| null }
| { action: "apply";
cacheId: string;
pivotTableName: string;
settings: ContractPivotCacheOptionsSettings;
expectedCacheGeneration?: number
| null; expectedCohortPivotNames?: string[]; }
| { action: "refresh_current"; cacheId: string; expectedCacheGeneration?: number
| null; }
| { action: "start_refresh_current"; cacheId: string; expectedCacheGeneration?: number
| null; }
| { action: "start_refresh_all" }
| { action: "refresh_status"; generation?: number
| null; advance?: boolean }
| { action: "cancel_refresh"; generation: number }
| { action: "connection_properties"; cacheId: string; pivotTableName: string }
| { action: "change_source";
cacheId: string;
pivotTableName: string;
source: ContractPivotCacheSource;
expectedCacheGeneration?: number
| null; expectedCohortPivotNames?: string[]; }
| { action: "create_consolidation";
pivotTableName: string;
destinationSheetPath: string;
destinationAnchor: string;
ranges: ContractPivotConsolidationRangeInput[];
pageFieldMode: ContractPivotConsolidationPageFieldMode;
pageFieldNames?: string[];
}
| { action: "apply_consolidation";
cacheId: string;
pivotTableName: string;
ranges: ContractPivotConsolidationRangeInput[];
pageFieldMode: ContractPivotConsolidationPageFieldMode;
pageFieldNames?: string[];
expectedCacheGeneration?: number
| null; }
| { action: "refresh_consolidation"; cacheId: string; expectedCacheGeneration?: number
| null; }
| { action: "refresh_all" }
| { action: "cancel" }
| { action: "undo" }
| { action: "redo" };
interface ContractPivotCacheOptionsSettings {
refreshDataOnOpen: boolean;
saveSourceData: boolean;
enableShowDetails: boolean;
preserveFormatting?: boolean | null;
autofitColumnsOnUpdate?: boolean | null;
showItemsWithNoDataOnRows?: boolean | null;
showItemsWithNoDataOnColumns?: boolean | null;
showEmptyCells?: boolean | null;
emptyDisplayValue?: string | null;
showErrorValues?: boolean | null;
errorDisplayValue?: string | null;
classicLayout?: boolean | null;
mergeAndCenterLabels?: boolean | null;
printExpandCollapseButtons?: boolean | null;
repeatItemLabels?: boolean | null;
altTextTitle?: string | null;
altTextDescription?: string | null;
retainDeletedItems: ContractPivotDeletedItemsRetention;
retainedItemLimit?: number | null;
}
interface ContractPivotCacheOptionsView {
cacheId: string;
cacheGeneration: number;
pivotTableName: string;
pivotTablePath: string;
sheetPath: string;
cohortPivotNames: string[];
retainedDeletedItemCount: number;
refreshStatus: string;
refresh: ContractPivotRefreshStatusView;
connection: ContractPivotConnectionPropertiesView;
settings: ContractPivotCacheOptionsSettings;
hasRowFields: boolean;
hasColumnFields: boolean;
stale: boolean;
readOnly: boolean;
protected: boolean;
sourceAvailable: boolean;
source: ContractPivotCacheSource;
multipleConsolidation?: ContractPivotMultipleConsolidationView | null;
unsupportedReason?: string | null;
}
type ContractPivotCacheSource =
| { kind: "table"; tableName: string }
| { kind: "range"; sheetName: string; reference: string }
| { kind: "multiple_ranges";
ranges: ContractPivotConsolidationRangeInput[];
pageFieldMode: ContractPivotConsolidationPageFieldMode;
pageFieldNames?: string[];
};
interface ContractPivotCalculatedCacheView {
cacheId: string;
cacheIdentity: string;
pivotTableNames: string[];
sourceFields: ContractPivotCalculatedSourceFieldView[];
refreshGeneration: number;
refreshedRowCount: number;
stale: boolean;
readOnly: boolean;
protected: boolean;
}
interface ContractPivotCalculatedFieldView {
id: string;
cacheId: string;
name: string;
formula: string;
summaryFunction: ContractPivotCalculatedSummaryFunction;
dependencies: string[];
creationOrdinal: number;
refreshGeneration: number;
lastValue?: number | null;
lastError?: string | null;
rowErrorCount: number;
}
type ContractPivotCalculatedFieldsAction =
| { action: "list"; cacheId?: string
| null; pivotTableName?: string }
| { action: "register_pending";
cacheId: string;
sourceSheet: string;
sourceRef: string;
sourceFields: string[];
pivotTableName: string;
pivotTableSheetPath: string;
outputRef: string;
rowFields: string[];
columnFields: string[];
}
| { action: "create";
cacheId: string;
pivotTableName?: string;
name: string;
formula: string;
summaryFunction: ContractPivotCalculatedSummaryFunction;
}
| { action: "edit";
cacheId: string;
pivotTableName?: string;
fieldId: string;
name: string;
formula: string;
summaryFunction: ContractPivotCalculatedSummaryFunction;
}
| { action: "delete"; cacheId: string; fieldId: string }
| { action: "reorder";
cacheId: string;
fieldId: string;
direction: ContractPivotCalculationMoveDirection;
expectedRefreshGeneration: number;
}
| { action: "refresh_current"; cacheId: string }
| { action: "refresh_all" }
| { action: "rename_source_field"; cacheId: string; fieldOrdinal: number; name: string; }
| { action: "rename_pivot_table"; cacheId: string; oldName: string; newName: string; }
| { action: "undo" }
| { action: "redo" };
type ContractPivotCalculatedItemAxis = "row" | "column";
interface ContractPivotCalculatedItemFieldView {
cacheId: string;
fieldOrdinal: number;
fieldName: string;
axes: ContractPivotCalculatedItemAxis[];
memberNames: string[];
stale: boolean;
readOnly: boolean;
protected: boolean;
}
interface ContractPivotCalculatedItemView {
id: string;
cacheId: string;
fieldOrdinal: number;
fieldName: string;
axis: ContractPivotCalculatedItemAxis;
name: string;
formula: string;
dependencies: string[];
creationOrdinal: number;
refreshGeneration: number;
lastCountValue?: number | null;
lastError?: string | null;
pivotTableNames: string[];
}
type ContractPivotCalculatedItemsAction =
| { action: "list"; cacheId?: string
| null; fieldOrdinal?: number
| null; pivotTableName?: string
| null; }
| { action: "create";
cacheId: string;
fieldOrdinal: number;
axis: ContractPivotCalculatedItemAxis;
pivotTableName?: string
| null; name: string; formula: string; }
| { action: "edit"; cacheId: string; itemId: string; name: string; formula: string; }
| { action: "delete"; cacheId: string; itemId: string }
| { action: "reorder";
cacheId: string;
itemId: string;
direction: ContractPivotCalculationMoveDirection;
expectedRefreshGeneration: number;
}
| { action: "refresh_current"; cacheId: string }
| { action: "refresh_all" }
| { action: "rename_source_field"; cacheId: string; fieldOrdinal: number; name: string; }
| { action: "rename_pivot_table"; cacheId: string; oldName: string; newName: string; }
| { action: "undo" }
| { action: "redo" };
interface ContractPivotCalculatedSourceFieldView {
ordinal: number;
name: string;
scalarKind: string;
referenceText: string;
}
type ContractPivotCalculatedSummaryFunction = "sum" | "count" | "average";
type ContractPivotCalculationMoveDirection = "up" | "down";
type ContractPivotConditionalArea = "data" | "subtotal" | "rowGrandTotal" | "columnGrandTotal" | "grandTotal";
interface ContractPivotConditionalCellIdentity {
dataFieldIndex?: number | null;
rowItems: ContractPivotConditionalItemIdentity[];
columnItems: ContractPivotConditionalItemIdentity[];
area: ContractPivotConditionalArea;
}
interface ContractPivotConditionalItemIdentity {
fieldOrdinal: number;
itemId: string;
}
interface ContractPivotConditionalRuleScope {
cacheId: string;
pivotTableName: string;
expectedGeneration: number;
scope: ContractPivotConditionalScope;
}
type ContractPivotConditionalScope =
| { type: "selectedCells"; cells: ContractPivotConditionalCellIdentity[] }
| { type: "valueField"; dataFieldIndex: number }
| { type: "fieldCombination"; dataFieldIndex?: number
| null; rowItems: ContractPivotConditionalItemIdentity[]; columnItems: ContractPivotConditionalItemIdentity[]; includeSubtotals: boolean; includeGrandTotals: boolean; }
| { type: "area"; area: ContractPivotConditionalArea };
interface ContractPivotConnectionPropertiesView {
identity: string;
sourceKind: string;
properties: ContractPivotConnectionPropertyView[];
}
interface ContractPivotConnectionPropertyView {
key: string;
value: string;
applicable: boolean;
editable: boolean;
disabledReasonCode?: string | null;
disabledReasonDetail?: string | null;
}
type ContractPivotConsolidationPageFieldMode = "automatic" | "manual";
interface ContractPivotConsolidationRangeInput {
stableId?: string | null;
sheetName: string;
reference: string;
pageItems?: string[];
}
interface ContractPivotConsolidationRangeView {
stableId: string;
sheetName: string;
sheetPath: string;
reference: string;
pageItems: string[];
valueCount: number;
}
type ContractPivotCopyCacheOwnership = "share_source_cache" | "independent_cache";
interface ContractPivotDataModelOlapInventory {
connections: ContractPivotReadonlyConnection[];
pivotTables: ContractPivotReadonlyTable[];
cacheDefinitions: ContractPivotReadonlyCache[];
modelParts: ContractPivotReadonlyOpaquePart[];
slicerParts: ContractPivotReadonlyOpaquePart[];
unknownParts: ContractPivotReadonlyOpaquePart[];
signatureParts: ContractPivotReadonlyOpaquePart[];
relationships: ContractPivotReadonlyRelationship[];
unknownExtensionUris: string[];
entityCount: number;
}
type ContractPivotDataModelOlapReadonlyAction =
| { action: "inspect"; pivotTablePath?: string
| null }
| { action: "filter"; pivotTablePath: string }
| { action: "edit"; pivotTablePath: string }
| { action: "refresh"; pivotTablePath: string }
| { action: "drillthrough"; pivotTablePath: string }
| { action: "select"; entityStableId: string }
| { action: "navigate"; entityStableId: string }
| { action: "mutate"; entityStableId?: string
| null; mutation: ContractPivotReadonlyMutationKind; };
type ContractPivotDateGroupPeriod = "years" | "quarters" | "months" | "days";
type ContractPivotDeletedItemsRetention = "automatic" | "none" | "maximum";
interface ContractPivotDetailCellRef {
sheetPath: string;
row: number;
col: number;
}
interface ContractPivotDetailContextView {
cacheIdentity: string;
cacheGeneration: number;
showDetailsEnabled: boolean;
rowItems: ContractPivotGroupingItemKey[];
columnItems: ContractPivotGroupingItemKey[];
filterItems: ContractPivotGroupingItemKey[];
}
interface ContractPivotDetailLineageView {
id: string;
pivotTableName: string;
cacheId: string;
cacheGeneration: number;
sourceSheet: string;
sourceRef: string;
detailSheetName: string;
detailSheetPath: string;
selectedRowCount: number;
rowItems: ContractPivotGroupingItemKey[];
columnItems: ContractPivotGroupingItemKey[];
filterItems: ContractPivotGroupingItemKey[];
}
interface ContractPivotExpandedItemView {
cacheId: string;
pivotTableName: string;
fieldOrdinal: number;
itemId: string;
expanded: boolean;
}
type ContractPivotFieldAggregation = | "sum" | "count" | "average" | "max" | "min" | "product" | "count_numbers" | "std_dev" | "variance";
type ContractPivotFieldArea = "filters" | "columns" | "rows" | "values";
type ContractPivotFieldListAuthoringAction =
| { action: "list"; cacheId?: string
| null; pivotTableName?: string
| null }
| { action: "mutate";
cacheId: string;
pivotTableName: string;
expectedPivotTablePath: string;
expectedCacheIdentity: string;
expectedCacheGeneration: number;
expectedLayoutRevision: number;
deferLayoutUpdate: boolean;
mutations: ContractPivotFieldMutation[];
}
| { action: "apply_deferred";
cacheId: string;
pivotTableName: string;
expectedPivotTablePath: string;
expectedCacheIdentity: string;
expectedCacheGeneration: number;
expectedLayoutRevision: number;
}
| { action: "cancel_deferred";
cacheId: string;
pivotTableName: string;
expectedPivotTablePath: string;
expectedCacheIdentity: string;
expectedCacheGeneration: number;
expectedLayoutRevision: number;
}
| { action: "undo" }
| { action: "redo" };
interface ContractPivotFieldListFieldView {
ordinal: number;
name: string;
scalarKind: string;
calculated: boolean;
hasCalculatedItems: boolean;
}
interface ContractPivotFieldListView {
cacheId: string;
cacheIdentity: string;
cacheGeneration: number;
pivotTableName: string;
pivotTablePath: string;
sheetPath: string;
layoutRevision: number;
fields: ContractPivotFieldListFieldView[];
sourceRecords: string[][];
sourceRecordsTruncated: boolean;
filters: number[];
columns: number[];
rows: number[];
values: ContractPivotValueFieldView[];
valueCells: ContractPivotValueCellView[];
deferred: boolean;
stale: boolean;
readOnly: boolean;
protected: boolean;
unsupportedReason?: string | null;
}
type ContractPivotFieldMutation =
| { kind: "add"; fieldOrdinal: number; targetArea: ContractPivotFieldArea; targetIndex?: number
| null; aggregation?: ContractPivotFieldAggregation
| null; }
| { kind: "remove"; area: ContractPivotFieldArea; fieldOrdinal?: number
| null; occurrenceId?: string
| null; }
| { kind: "move"; fromArea: ContractPivotFieldArea; toArea: ContractPivotFieldArea; fieldOrdinal?: number
| null; occurrenceId?: string
| null; targetIndex: number; }
| { kind: "reorder"; area: ContractPivotFieldArea; fieldOrdinal?: number
| null; occurrenceId?: string
| null; targetIndex: number; }
| { kind: "duplicate_value"; occurrenceId: string; targetIndex?: number
| null; }
| { kind: "set_aggregation"; occurrenceId: string; aggregation: ContractPivotFieldAggregation; };
type ContractPivotFilter =
| { family: "label"; operator: ContractPivotFilterOperator; first: string; second?: string
| null; }
| { family: "value"; operator: ContractPivotFilterOperator; first: number; second?: number
| null; dataFieldIndex: number; }
| { family: "date"; operator: ContractPivotFilterOperator; first: number; second?: number
| null; }
| { family: "top";
mode: ContractPivotTopMode;
unit: ContractPivotTopUnit;
amount: number;
dataFieldIndex: number;
};
interface ContractPivotFilterConnectionView {
controlId: string;
caption: string;
name: string;
sheetName: string;
kind: ContractSlicerTimelineControlKind;
connected: boolean;
}
type ContractPivotFilterOperator = "equals" | "contains" | "begins_with" | "between";
interface ContractPivotGetPivotDataView {
formula: string;
cacheIdentity: string;
cacheGeneration: number;
pivotTableName: string;
pivotTablePath: string;
sheetPath: string;
dataFieldIndex: number;
valueFieldOrdinal: number;
valueFieldCaption: string;
rowItems: ContractPivotGroupingItemKey[];
columnItems: ContractPivotGroupingItemKey[];
filterItems: ContractPivotGroupingItemKey[];
area:
| "data"
| "subtotal"
| "row_grand_total"
| "column_grand_total"
| "grand_total";
}
interface ContractPivotGroupView {
id: string;
cacheId: string;
fieldOrdinal: number;
kind: string;
caption: string;
itemIds: string[];
start?: number | null;
end?: number | null;
by?: number | null;
datePeriods: ContractPivotDateGroupPeriod[];
datePeriod?: ContractPivotDateGroupPeriod | null;
dayInterval?: number | null;
}
interface ContractPivotGroupingCacheView {
cacheId: string;
cacheIdentity: string;
generation: number;
pivotTableNames: string[];
refreshedRowCount: number;
stale: boolean;
readOnly: boolean;
protected: boolean;
unsupportedReason?: string | null;
}
type ContractPivotGroupingDrilldownAction =
| { action: "list"; cacheId?: string
| null; pivotTableName?: string
| null; detailCell?: ContractPivotDetailCellRef
| null; }
| { action: "author_get_pivot_data"; detailCell: ContractPivotDetailCellRef }
| { action: "group_numeric";
cacheId: string;
fieldOrdinal: number;
start: number;
end: number;
by: number;
}
| { action: "group_date";
cacheId: string;
fieldOrdinal: number;
periods: ContractPivotDateGroupPeriod[];
dayInterval?: number
| null; }
| { action: "group_manual"; cacheId: string; fieldOrdinal: number; itemIds: string[]; caption: string; }
| { action: "ungroup"; cacheId: string; fieldOrdinal: number; groupId?: string
| null; }
| { action: "set_expanded";
cacheId: string;
pivotTableName: string;
fieldOrdinal: number;
itemId: string;
expanded: boolean;
}
| { action: "set_hierarchy_expanded"; cacheId: string; pivotTableName: string; axis: "row"
| "column"; itemPath: ContractPivotGroupingItemKey[]; expanded: boolean; expectedCacheIdentity: string; expectedCacheGeneration: number; expectedHierarchyRevision: number; requestGeneration: number; }
| { action: "set_hierarchy_field_expanded"; cacheId: string; pivotTableName: string; axis: "row"
| "column"; fieldOrdinal: number; expanded: boolean; expectedCacheIdentity: string; expectedCacheGeneration: number; expectedHierarchyRevision: number; requestGeneration: number; }
| { action: "show_details"; cacheId: string; pivotTableName: string; expectedCacheIdentity?: string
| null; expectedCacheGeneration?: number
| null; rowItems?: ContractPivotGroupingItemKey[]; columnItems?: ContractPivotGroupingItemKey[]; filterItems?: ContractPivotGroupingItemKey[]; }
| { action: "refresh_current"; cacheId: string }
| { action: "refresh_all" }
| { action: "undo" }
| { action: "redo" };
interface ContractPivotGroupingItemKey {
fieldOrdinal: number;
itemId: string;
}
interface ContractPivotGroupingItemView {
id: string;
cacheId: string;
fieldOrdinal: number;
fieldName: string;
label: string;
scalarKind: string;
retired: boolean;
groupId?: string | null;
groupIds: string[];
}
interface ContractPivotHierarchyNodeView {
cacheId: string;
pivotTableName: string;
cacheIdentity: string;
cacheGeneration: number;
hierarchyRevision: number;
pathId: string;
axis: "row" | "column";
level: number;
itemPath: ContractPivotGroupingItemKey[];
parentPath: ContractPivotGroupingItemKey[];
fieldOrdinal: number;
itemId: string;
label: string;
targetCell: ContractPivotDetailCellRef;
hasChildren: boolean;
expanded: boolean;
visible: boolean;
calculatedItem: boolean;
nextLevelFieldOrdinal?: number | null;
}
type ContractPivotLayoutFormatAction =
| { action: "list"; cacheId?: string
| null; pivotTableName?: string
| null }
| { action: "apply"; cacheId: string; pivotTableName: string; options: ContractPivotLayoutFormatOptions; }
| { action: "cancel"; cacheId: string; pivotTableName: string }
| { action: "refresh_current"; cacheId: string }
| { action: "refresh_all" }
| { action: "undo" }
| { action: "redo" };
interface ContractPivotLayoutFormatOptions {
reportLayout: ContractPivotReportLayout;
repeatItemLabels: boolean;
insertBlankRows: boolean;
pageBreakAfter: ContractPivotPageBreakAfter;
printTitles: boolean;
repeatHeaders: boolean;
subtotals: ContractPivotSubtotalPosition;
rowGrandTotals: boolean;
columnGrandTotals: boolean;
fieldHeaders: boolean;
showEmpty: boolean;
emptyCaption: string;
showError: boolean;
errorCaption: string;
preserveFormatting: boolean;
styleName: string;
}
interface ContractPivotLayoutFormatView {
cacheId: string;
cacheGeneration: number;
pivotTableName: string;
pivotTablePath: string;
sheetPath: string;
rowFieldOrdinals: number[];
options: ContractPivotLayoutFormatOptions;
printPreview: ContractPivotPrintPreviewProjection;
stale: boolean;
readOnly: boolean;
protected: boolean;
unsupportedReason?: string | null;
}
type ContractPivotMoveCopyAction =
| { action: "list"; cacheId?: string
| null; pivotTableName?: string
| null }
| { action: "move";
cacheId: string;
pivotTableName: string;
expectedGeneration: number;
destination: ContractPivotMoveCopyDestination;
}
| { action: "copy";
cacheId: string;
pivotTableName: string;
expectedGeneration: number;
destination: ContractPivotMoveCopyDestination;
cacheOwnership: ContractPivotCopyCacheOwnership;
}
| { action: "cross_workbook_copy";
cacheId: string;
pivotTableName: string;
targetSubsetId: string;
destination: ContractPivotMoveCopyDestination;
}
| { action: "cancel" }
| { action: "undo" }
| { action: "redo" };
type ContractPivotMoveCopyDestination =
| { kind: "existing_sheet"; sheetPath: string; anchor: string }
| { kind: "new_sheet"; sheetName: string; anchor: string };
interface ContractPivotMoveCopySheetView {
sheetName: string;
sheetPath: string;
loaded: boolean;
protected: boolean;
}
interface ContractPivotMoveCopyView {
cacheId: string;
cacheGeneration: number;
pivotTableName: string;
pivotTablePath: string;
sheetName: string;
sheetPath: string;
outputRef: string;
cohortPivotNames: string[];
cacheOwnership: ContractPivotCopyCacheOwnership;
stale: boolean;
readOnly: boolean;
protected: boolean;
unsupportedReason?: string | null;
}
interface ContractPivotMultipleConsolidationView {
pageFieldMode: ContractPivotConsolidationPageFieldMode;
pageFieldNames: string[];
ranges: ContractPivotConsolidationRangeView[];
recordCount: number;
}
type ContractPivotPageBreakAfter = "none" | "item" | "cohort";
type ContractPivotPrintAreaState = "none" | "disjoint" | "contains_pivot";
interface ContractPivotPrintPreviewProjection {
outputRef: string;
printAreaState: ContractPivotPrintAreaState;
fitToPage: boolean;
fitToWidth: number;
fitToHeight: number;
worksheetScalePercent: number;
effectiveScalePercent: number;
pagesAcross: number;
pagesDown: number;
pageCount: number;
rowBreaks: ContractPageBreakLine[];
columnBreaks: ContractPageBreakLine[];
repeatsFieldTitles: boolean;
repeatsItemHeaders: boolean;
}
type ContractPivotRankDirection = "small_to_large" | "large_to_small";
interface ContractPivotReadonlyCache {
partPath: string;
connectionId: string | null;
sourceKind: ContractPivotReadonlySourceKind;
recordCount: number | null;
extensionUris: string[];
hierarchies: ContractPivotReadonlyNamedItem[];
measures: ContractPivotReadonlyNamedItem[];
kpis: ContractPivotReadonlyNamedItem[];
namedSets: ContractPivotReadonlyNamedItem[];
cubeFields: ContractPivotReadonlyNamedItem[];
}
interface ContractPivotReadonlyCapability {
command: string;
state: ContractPivotReadonlyCapabilityState;
available: boolean;
reasonCode: string | null;
}
type ContractPivotReadonlyCapabilityState = "live" | "disabled" | "blocked";
interface ContractPivotReadonlyConnection {
stableId: string;
id: string;
name: string;
connectionType: number | null;
sourceKind: ContractPivotReadonlySourceKind;
credentialsPresent: boolean;
capabilities: ContractPivotReadonlyCapability[];
}
type ContractPivotReadonlyEntityKind = | "measure" | "kpi" | "named_set" | "cube_field" | "hierarchy" | "calculated_member";
interface ContractPivotReadonlyField {
stableId: string;
name: string;
caption: string;
hierarchyIndex: number | null;
capabilities: ContractPivotReadonlyCapability[];
}
type ContractPivotReadonlyMutationKind = "create" | "edit" | "rename" | "delete" | "author" | "evaluate";
interface ContractPivotReadonlyNamedItem {
stableId: string;
ownerPath: string;
entityKind: ContractPivotReadonlyEntityKind;
ordinal: number;
name: string;
caption: string;
expressionPresent: boolean;
capabilities: ContractPivotReadonlyCapability[];
}
interface ContractPivotReadonlyOpaquePart {
path: string;
byteCount: number;
sha256: string;
}
interface ContractPivotReadonlyRelationship {
sourcePath: string;
relationshipId: string;
relationshipType: string;
target: string;
external: boolean;
}
type ContractPivotReadonlySourceKind = "data_model" | "olap";
interface ContractPivotReadonlyTable {
partPath: string;
name: string;
cacheId: string | null;
sourceKind: ContractPivotReadonlySourceKind;
hierarchies: ContractPivotReadonlyNamedItem[];
measures: ContractPivotReadonlyNamedItem[];
kpis: ContractPivotReadonlyNamedItem[];
namedSets: ContractPivotReadonlyNamedItem[];
cubeFields: ContractPivotReadonlyNamedItem[];
calculatedMembers: ContractPivotReadonlyNamedItem[];
fields: ContractPivotReadonlyField[];
capabilities: ContractPivotReadonlyCapability[];
}
type ContractPivotRefreshState = "idle" | "queued" | "running" | "cancelling" | "committed" | "failed";
interface ContractPivotRefreshStatusView {
generation: number;
state: ContractPivotRefreshState;
target: string;
cacheIds: string[];
cohortPivotNames: string[];
completedUnits: number;
totalUnits: number;
progressPercent: number;
canCancel: boolean;
lastErrorCode?: string | null;
lastErrorDetail?: string | null;
}
interface ContractPivotReportFilterFieldView {
fieldOrdinal: number;
caption: string;
allSelected: boolean;
selectedItemIds: string[];
items: ContractPivotReportFilterItemView[];
}
interface ContractPivotReportFilterItemView {
itemId: string;
label: string;
scalarKind: string;
retired: boolean;
selected: boolean;
}
interface ContractPivotReportFilterPageView {
sheetName: string;
sheetPath: string;
pivotTableName: string;
pivotTablePath: string;
selections: ContractPivotReportFilterSelection[];
}
type ContractPivotReportFilterPagesAction =
| { action: "list"; cacheId?: string
| null; pivotTableName?: string
| null }
| { action: "apply";
cacheId: string;
pivotTableName: string;
expectedGeneration: number;
selections: ContractPivotReportFilterSelection[];
}
| { action: "show_report_filter_pages";
cacheId: string;
pivotTableName: string;
expectedGeneration: number;
fieldOrdinals: number[];
}
| { action: "refresh_current"; cacheId: string }
| { action: "refresh_all" }
| { action: "cancel" }
| { action: "undo" }
| { action: "redo" };
interface ContractPivotReportFilterSelection {
fieldOrdinal: number;
selectedItemIds: string[];
}
interface ContractPivotReportFilterView {
cacheId: string;
cacheGeneration: number;
pivotTableName: string;
pivotTablePath: string;
sheetPath: string;
cohortPivotNames: string[];
fields: ContractPivotReportFilterFieldView[];
stale: boolean;
readOnly: boolean;
protected: boolean;
unsupportedReason?: string | null;
}
type ContractPivotReportLayout = "compact" | "outline" | "tabular";
type ContractPivotShowValuesAs =
| "normal"
| "percent_grand_total"
| "percent_row_total"
| "percent_column_total"
| "percent_parent_row_total"
| "percent_parent_column_total"
| "percent_parent_total"
| "difference_from"
| "percent_difference_from"
| "running_total"
| "percent_running_total"
| "rank_small_to_large"
| "rank_large_to_small"
| "index";
type ContractPivotSortFilterAction =
| { action: "list"; cacheId?: string
| null; pivotTableName?: string
| null; fieldOrdinal?: number
| null; }
| { action: "apply";
cacheId: string;
pivotTableName: string;
expectedGeneration: number;
settings: ContractPivotSortFilterSettings;
}
| { action: "clear";
cacheId: string;
pivotTableName: string;
expectedGeneration: number;
fieldOrdinal?: number
| null; }
| { action: "reapply"; cacheId: string; pivotTableName: string; expectedGeneration: number; }
| { action: "refresh_current"; cacheId: string }
| { action: "refresh_all" }
| { action: "undo" }
| { action: "redo" };
interface ContractPivotSortFilterItemView {
itemId: string;
label: string;
scalarKind: string;
retired: boolean;
visible: boolean;
aggregate?: number | null;
rank?: number | null;
}
interface ContractPivotSortFilterSettings {
fieldOrdinal: number;
sort: ContractPivotSortMode;
filters: ContractPivotFilter[];
selectedItemIds?: string[] | null;
includeNewItems: boolean;
rankDirection: ContractPivotRankDirection;
}
interface ContractPivotSortFilterView {
cacheId: string;
cacheGeneration: number;
pivotTableName: string;
pivotTablePath: string;
sheetPath: string;
fieldCaption: string;
fieldAxis: "row" | "column" | "report" | "other";
settings: ContractPivotSortFilterSettings;
orderedItemIds: string[];
visibleItemIds: string[];
items: ContractPivotSortFilterItemView[];
stale: boolean;
readOnly: boolean;
protected: boolean;
unsupportedReason?: string | null;
}
type ContractPivotSortMode =
| { kind: "manual"; itemIds: string[] }
| { kind: "label_ascending" }
| { kind: "label_descending" }
| { kind: "value_ascending"; dataFieldIndex: number }
| { kind: "value_descending"; dataFieldIndex: number }
| { kind: "custom_list"; values: string[] };
type ContractPivotSubtotalPosition = "off" | "top" | "bottom";
type ContractPivotTopMode = "top" | "bottom";
type ContractPivotTopUnit = "items" | "percent" | "sum";
interface ContractPivotValueBaseFieldView {
ordinal: number;
caption: string;
items: ContractPivotValueBaseItemView[];
}
interface ContractPivotValueBaseItemView {
id: string;
index: number;
label: string;
retired: boolean;
}
interface ContractPivotValueCellView {
occurrenceId: string;
rowItems: string[];
columnItems: string[];
display: string;
}
interface ContractPivotValueFieldSettings {
fieldOrdinal: number;
dataFieldIndex: number;
fieldCaption: string;
customCaption: string;
summaryFunction: ContractPivotValueSummaryFunction;
showValuesAs: ContractPivotShowValuesAs;
baseFieldOrdinal?: number | null;
baseItemId?: string | null;
baseItemIndex?: number | null;
numberFormatId: number;
}
type ContractPivotValueFieldSettingsAction =
| { action: "list"; cacheId?: string
| null; pivotTableName?: string
| null }
| { action: "apply"; cacheId: string; pivotTableName: string; settings: ContractPivotValueFieldSettings; }
| { action: "refresh_current"; cacheId: string }
| { action: "refresh_all" }
| { action: "undo" }
| { action: "redo" };
interface ContractPivotValueFieldSettingsView {
cacheId: string;
cacheGeneration: number;
pivotTableName: string;
pivotTablePath: string;
sheetPath: string;
settings: ContractPivotValueFieldSettings;
baseFields: ContractPivotValueBaseFieldView[];
stale: boolean;
readOnly: boolean;
protected: boolean;
unsupportedReason?: string | null;
}
interface ContractPivotValueFieldView {
occurrenceId: string;
fieldOrdinal: number;
caption: string;
aggregation: ContractPivotFieldAggregation;
}
type ContractPivotValueSummaryFunction = | "sum" | "count" | "average" | "max" | "min" | "product" | "count_numbers" | "std_dev" | "variance";

ContractXlsxPivotCalculatedFieldMaterialization

Section titled “ContractXlsxPivotCalculatedFieldMaterialization”
interface ContractXlsxPivotCalculatedFieldMaterialization {
name: string;
formula: string;
summaryFunction: "sum" | "count" | "average" | "min" | "max";
}

ContractXlsxPivotCalculatedPresentationMaterialization

Section titled “ContractXlsxPivotCalculatedPresentationMaterialization”
interface ContractXlsxPivotCalculatedPresentationMaterialization {
columnLabelsCaption: string;
rowLabelsCaption: string;
grandTotalCaption: string;
columnWidths: ContractColumnWidth[];
}

ContractXlsxPivotCalculatedStateMaterialization

Section titled “ContractXlsxPivotCalculatedStateMaterialization”
interface ContractXlsxPivotCalculatedStateMaterialization {
calculatedFields: ContractXlsxPivotCalculatedFieldMaterialization[];
values: ContractXlsxPivotValueFieldMaterialization[];
valueCells: ContractXlsxPivotValueCellMaterialization[];
presentation?: ContractXlsxPivotCalculatedPresentationMaterialization | null;
}

ContractXlsxPivotTableCalculatedFieldPatch

Section titled “ContractXlsxPivotTableCalculatedFieldPatch”
interface ContractXlsxPivotTableCalculatedFieldPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
fieldName: "RevenuePerUnit";
formula: "'Revenue'/'Units'";
summaryFunction: "sum";
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableClearAllPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableClearFiltersPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
fieldName?: string | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableCreationPatch {
activeSheetPath: string;
ref: string;
name?: string | null;
sourceSheetName: string;
sourceTableName?: string | null;
sourceRef?: string | null;
rowField: string;
columnField: string;
valueField: string;
summaryFunction: "sum" | "count" | "average" | "min" | "max";
layout?: "compact" | "outline" | "tabular" | null;
subtotals?: "automatic" | "none" | "top" | "bottom" | null;
rowGrandTotals?: boolean | null;
columnGrandTotals?: boolean | null;
showDrill?: boolean | null;
showHeaders?: boolean | null;
newName?: string | null;
printDrill?: boolean | null;
showDataTips?: boolean | null;
classicLayout?: boolean | null;
showError?: boolean | null;
errorCaption?: string | null;
showMissing?: boolean | null;
missingCaption?: string | null;
itemPrintTitles?: boolean | null;
fieldPrintTitles?: boolean | null;
multipleFieldFilters?: boolean | null;
useAutoFormatting?: boolean | null;
preserveFormatting?: boolean | null;
mergeItem?: boolean | null;
indent?: number | null;
pageOverThenDown?: boolean | null;
pageWrap?: number | null;
customListSort?: boolean | null;
saveData?: boolean | null;
enableDrill?: boolean | null;
refreshOnLoad?: boolean | null;
missingItemsLimit?: "automatic" | "maximum" | null;
altText?: string | null;
altTextSummary?: string | null;
styleName?: "PivotStyleMedium9" | null;
showRowHeaders?: boolean | null;
showColumnHeaders?: boolean | null;
showRowStripes?: boolean | null;
showColumnStripes?: boolean | null;
shareCacheFromPivotName?: string | null;
calculatedState?: ContractXlsxPivotCalculatedStateMaterialization | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableDeletionPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableFieldAdditionPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
fieldName: string;
targetArea: "columns" | "rows" | "filters";
targetIndex?: number | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableFieldFilterPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
fieldName: string;
hiddenItems: string[];
filterKind?: "item" | "label" | "value" | null;
operator?:
| "equals"
| "notEquals"
| "beginsWith"
| "contains"
| "greaterThan"
| "greaterThanOrEqual"
| "lessThan"
| "lessThanOrEqual"
| null;
operand?: string | number | null;
valueFieldName?: string | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableFieldMovePatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
fieldName: string;
fromArea: "filters" | "columns" | "rows" | "values";
toArea: "filters" | "columns" | "rows" | "values";
targetIndex?: number | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableFieldRemovalPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
fieldName: string;
fromArea?: "filters" | "columns" | "rows" | "values" | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableFieldSettingsPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
fieldName: string;
setting: "showAllItems" | "fieldSettings";
customName?: string | null;
subtotals?: "automatic" | "custom" | "none" | null;
customSubtotals?: Array<"sum" | "count" | "average" | "max" | "min"> | null;
showAllItems?: boolean | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableFieldSortPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
fieldName: string;
direction: "ascending" | "descending";
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableItemDetailPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
fieldName: string;
itemLabel: string;
expanded: boolean;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableItemGroupPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
fieldName: string;
action: "group" | "ungroup";
groupingKind?: "numeric" | "date" | null;
startNumber?: number | null;
endNumber?: number | null;
interval?: number | null;
datePeriods?: Array<"month" | "quarter" | "year"> | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableMovePatch {
activeSheetPath: string;
destinationSheetPath: string;
pivotTablePath: string;
ref: string;
destinationRef: string;
destinationSheetName?: string | null;
createDestinationSheet?: boolean | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableRefreshPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableReportLayoutPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
layout?: "compact" | "outline" | "tabular" | null;
subtotals?: "automatic" | "none" | "top" | "bottom" | null;
rowGrandTotals?: boolean | null;
columnGrandTotals?: boolean | null;
showDrill?: boolean | null;
showHeaders?: boolean | null;
newName?: string | null;
printDrill?: boolean | null;
showDataTips?: boolean | null;
classicLayout?: boolean | null;
showError?: boolean | null;
errorCaption?: string | null;
showMissing?: boolean | null;
missingCaption?: string | null;
itemPrintTitles?: boolean | null;
fieldPrintTitles?: boolean | null;
multipleFieldFilters?: boolean | null;
useAutoFormatting?: boolean | null;
preserveFormatting?: boolean | null;
mergeItem?: boolean | null;
indent?: number | null;
pageOverThenDown?: boolean | null;
pageWrap?: number | null;
customListSort?: boolean | null;
saveData?: boolean | null;
enableDrill?: boolean | null;
refreshOnLoad?: boolean | null;
missingItemsLimit?: "automatic" | "maximum" | null;
altText?: string | null;
altTextSummary?: string | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableShowValuesAsPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
mode: "percentOfTotal" | "percentOfRow" | "runningTotal";
baseFieldName?: string | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableSourceChangePatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
sourceSheetName: string;
sourceRef: string;
sourceTableName?: string | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableStylePatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
styleName?: "PivotStyleMedium9" | null;
showRowHeaders?: boolean | null;
showColumnHeaders?: boolean | null;
showRowStripes?: boolean | null;
showColumnStripes?: boolean | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}

ContractXlsxPivotTableValueFieldAdditionPatch

Section titled “ContractXlsxPivotTableValueFieldAdditionPatch”
interface ContractXlsxPivotTableValueFieldAdditionPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
fieldName: string;
summaryFunction: "sum" | "count" | "average" | "min" | "max";
targetIndex?: number | null;
customName?: string | null;
numberFormatCode?: string | null;
name?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotTableValueSummaryPatch {
activeSheetPath: string;
pivotTablePath: string;
ref: string;
summaryFunction: "sum" | "count" | "average" | "min" | "max";
name?: string | null;
customName?: string | null;
runtimeOwner?: "rust" | null;
}
interface ContractXlsxPivotValueCellMaterialization {
occurrenceId: string;
rowItems: string[];
columnItems: string[];
numericValue?: string | null;
}

ContractXlsxPivotValueFieldMaterialization

Section titled “ContractXlsxPivotValueFieldMaterialization”
interface ContractXlsxPivotValueFieldMaterialization {
occurrenceId: string;
fieldName: string;
caption: string;
summaryFunction: "sum" | "count" | "average" | "min" | "max";
}

Documentation assistant

Answers are assembled from the documentation and may be inaccurate — check the sources.