@bilig/protocol 0.14.12 → 0.14.13
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/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ErrorCode, type FormulaMode, type ValueTag } from './enums.js';
|
|
2
|
-
import type { WorkbookDataModelArtifactsSnapshot, WorkbookDocumentPropertiesArtifactsSnapshot, WorkbookControlArtifactsSnapshot, WorkbookDrawingArtifactsSnapshot, WorkbookExternalLinkArtifactsSnapshot,
|
|
2
|
+
import type { WorkbookDataModelArtifactsSnapshot, WorkbookDocumentPropertiesArtifactsSnapshot, WorkbookControlArtifactsSnapshot, WorkbookDrawingArtifactsSnapshot, WorkbookExternalLinkArtifactsSnapshot, WorkbookSheetArrayFormulasSnapshot, WorkbookSheetDataTableFormulasSnapshot, WorkbookSheetControlArtifactsSnapshot, WorkbookSheetDrawingArtifactsSnapshot, WorkbookSheetThreadedCommentArtifactsSnapshot, WorkbookSlicerConnectionArtifactsSnapshot, WorkbookStyleArtifactsSnapshot, WorkbookThreadedCommentArtifactsSnapshot } from './package-artifacts.js';
|
|
3
|
+
import type { WorkbookPivotArtifactsSnapshot, WorkbookPivotSnapshot, WorkbookSheetPivotArtifactsSnapshot, WorkbookUnsupportedFormulaDependencySnapshot, WorkbookUnsupportedPivotSnapshot } from './workbook-pivot-types.js';
|
|
4
|
+
export type { PivotAggregation, WorkbookPivotArtifactsSnapshot, WorkbookPivotPackagePartSnapshot, WorkbookPivotSnapshot, WorkbookPivotValueSnapshot, WorkbookSheetPivotArtifactsSnapshot, WorkbookUnsupportedFormulaDependencySnapshot, WorkbookUnsupportedPivotSnapshot, } from './workbook-pivot-types.js';
|
|
3
5
|
export type CellIndex = number;
|
|
4
6
|
export type FormulaId = number;
|
|
5
7
|
export type RangeIndex = number;
|
|
@@ -194,22 +196,6 @@ export interface WorkbookSpillSnapshot {
|
|
|
194
196
|
rows: number;
|
|
195
197
|
cols: number;
|
|
196
198
|
}
|
|
197
|
-
export type PivotAggregation = 'sum' | 'count';
|
|
198
|
-
export interface WorkbookPivotValueSnapshot {
|
|
199
|
-
sourceColumn: string;
|
|
200
|
-
summarizeBy: PivotAggregation;
|
|
201
|
-
outputLabel?: string;
|
|
202
|
-
}
|
|
203
|
-
export interface WorkbookPivotSnapshot {
|
|
204
|
-
name: string;
|
|
205
|
-
sheetName: string;
|
|
206
|
-
address: string;
|
|
207
|
-
source: CellRangeRef;
|
|
208
|
-
groupBy: string[];
|
|
209
|
-
values: WorkbookPivotValueSnapshot[];
|
|
210
|
-
rows: number;
|
|
211
|
-
cols: number;
|
|
212
|
-
}
|
|
213
199
|
export interface WorkbookSheetCellStyleIndexSnapshot {
|
|
214
200
|
address: string;
|
|
215
201
|
styleIndex: number;
|
|
@@ -218,19 +204,6 @@ export interface WorkbookSheetStyleArtifactsSnapshot {
|
|
|
218
204
|
cellStyleIndexes: WorkbookSheetCellStyleIndexSnapshot[];
|
|
219
205
|
blankCellAddresses?: string[];
|
|
220
206
|
}
|
|
221
|
-
export interface WorkbookPivotPackagePartSnapshot {
|
|
222
|
-
path: string;
|
|
223
|
-
xml: string;
|
|
224
|
-
}
|
|
225
|
-
export interface WorkbookPivotArtifactsSnapshot {
|
|
226
|
-
parts: WorkbookPivotPackagePartSnapshot[];
|
|
227
|
-
workbookPivotCachesXml?: string;
|
|
228
|
-
workbookRelationships?: WorkbookPackageRelationshipSnapshot[];
|
|
229
|
-
}
|
|
230
|
-
export interface WorkbookSheetPivotArtifactsSnapshot {
|
|
231
|
-
relationships: WorkbookPackageRelationshipSnapshot[];
|
|
232
|
-
pivotTableDefinitionsXml?: string;
|
|
233
|
-
}
|
|
234
207
|
export type WorkbookChartType = 'column' | 'bar' | 'line' | 'area' | 'pie' | 'scatter';
|
|
235
208
|
export type WorkbookChartSeriesOrientation = 'rows' | 'columns';
|
|
236
209
|
export type WorkbookChartLegendPosition = 'top' | 'right' | 'bottom' | 'left' | 'hidden';
|
|
@@ -702,6 +675,8 @@ export interface WorkbookMetadataSnapshot {
|
|
|
702
675
|
tables?: WorkbookTableSnapshot[];
|
|
703
676
|
spills?: WorkbookSpillSnapshot[];
|
|
704
677
|
pivots?: WorkbookPivotSnapshot[];
|
|
678
|
+
unsupportedFormulaDependencies?: WorkbookUnsupportedFormulaDependencySnapshot[];
|
|
679
|
+
unsupportedPivots?: WorkbookUnsupportedPivotSnapshot[];
|
|
705
680
|
pivotArtifacts?: WorkbookPivotArtifactsSnapshot;
|
|
706
681
|
drawingArtifacts?: WorkbookDrawingArtifactsSnapshot;
|
|
707
682
|
chartArtifacts?: WorkbookDrawingArtifactsSnapshot;
|
package/dist/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmC,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAmC,MAAM,YAAY,CAAA;AAiDvE,MAAM,UAAU,eAAe,CAAC,IAAe;IAC7C,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,SAAS,CAAC,IAAI;YACjB,OAAO,SAAS,CAAA;QAClB,KAAK,SAAS,CAAC,IAAI;YACjB,OAAO,SAAS,CAAA;QAClB,KAAK,SAAS,CAAC,GAAG;YAChB,OAAO,OAAO,CAAA;QAChB,KAAK,SAAS,CAAC,KAAK;YAClB,OAAO,SAAS,CAAA;QAClB,KAAK,SAAS,CAAC,IAAI;YACjB,OAAO,QAAQ,CAAA;QACjB,KAAK,SAAS,CAAC,EAAE;YACf,OAAO,MAAM,CAAA;QACf,KAAK,SAAS,CAAC,KAAK;YAClB,OAAO,SAAS,CAAA;QAClB,KAAK,SAAS,CAAC,KAAK;YAClB,OAAO,SAAS,CAAA;QAClB,KAAK,SAAS,CAAC,OAAO;YACpB,OAAO,WAAW,CAAA;QACpB;YACE,OAAO,SAAS,CAAA;IACpB,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { WorkbookPackageRelationshipSnapshot } from './package-artifacts.js';
|
|
2
|
+
import type { CellRangeRef } from './types.js';
|
|
3
|
+
export type PivotAggregation = 'sum' | 'count';
|
|
4
|
+
export interface WorkbookPivotValueSnapshot {
|
|
5
|
+
sourceColumn: string;
|
|
6
|
+
summarizeBy: PivotAggregation;
|
|
7
|
+
outputLabel?: string;
|
|
8
|
+
}
|
|
9
|
+
export interface WorkbookPivotSnapshot {
|
|
10
|
+
name: string;
|
|
11
|
+
sheetName: string;
|
|
12
|
+
address: string;
|
|
13
|
+
source: CellRangeRef;
|
|
14
|
+
groupBy: string[];
|
|
15
|
+
values: WorkbookPivotValueSnapshot[];
|
|
16
|
+
rows: number;
|
|
17
|
+
cols: number;
|
|
18
|
+
}
|
|
19
|
+
export interface WorkbookUnsupportedFormulaDependencySnapshot {
|
|
20
|
+
kind: 'external-workbook-reference';
|
|
21
|
+
sheetName: string;
|
|
22
|
+
address: string;
|
|
23
|
+
formula: string;
|
|
24
|
+
importedFormula: string;
|
|
25
|
+
resolvedExternalReferenceCount: number;
|
|
26
|
+
unresolvedExternalReferenceCount: number;
|
|
27
|
+
reason: string;
|
|
28
|
+
}
|
|
29
|
+
export interface WorkbookUnsupportedPivotSnapshot {
|
|
30
|
+
kind: 'external-cache' | 'raw-part';
|
|
31
|
+
reason: string;
|
|
32
|
+
cacheId?: number;
|
|
33
|
+
sourceType?: string;
|
|
34
|
+
sheetName?: string;
|
|
35
|
+
address?: string;
|
|
36
|
+
name?: string;
|
|
37
|
+
packagePart?: string;
|
|
38
|
+
}
|
|
39
|
+
export interface WorkbookPivotPackagePartSnapshot {
|
|
40
|
+
path: string;
|
|
41
|
+
xml: string;
|
|
42
|
+
}
|
|
43
|
+
export interface WorkbookPivotArtifactsSnapshot {
|
|
44
|
+
parts: WorkbookPivotPackagePartSnapshot[];
|
|
45
|
+
workbookPivotCachesXml?: string;
|
|
46
|
+
workbookRelationships?: WorkbookPackageRelationshipSnapshot[];
|
|
47
|
+
}
|
|
48
|
+
export interface WorkbookSheetPivotArtifactsSnapshot {
|
|
49
|
+
relationships: WorkbookPackageRelationshipSnapshot[];
|
|
50
|
+
pivotTableDefinitionsXml?: string;
|
|
51
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workbook-pivot-types.js","sourceRoot":"","sources":["../src/workbook-pivot-types.ts"],"names":[],"mappings":""}
|