@bilig/protocol 0.1.49 → 0.1.51
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 +74 -0
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -304,6 +304,77 @@ export interface WorkbookSortSnapshot {
|
|
|
304
304
|
range: CellRangeRef;
|
|
305
305
|
keys: WorkbookSortKeySnapshot[];
|
|
306
306
|
}
|
|
307
|
+
export type WorkbookValidationComparisonOperator = "between" | "notBetween" | "equal" | "notEqual" | "greaterThan" | "greaterThanOrEqual" | "lessThan" | "lessThanOrEqual";
|
|
308
|
+
export type WorkbookValidationErrorStyle = "stop" | "warning" | "information";
|
|
309
|
+
export interface WorkbookValidationNamedRangeSourceSnapshot {
|
|
310
|
+
kind: "named-range";
|
|
311
|
+
name: string;
|
|
312
|
+
}
|
|
313
|
+
export interface WorkbookValidationCellRefSourceSnapshot {
|
|
314
|
+
kind: "cell-ref";
|
|
315
|
+
sheetName: string;
|
|
316
|
+
address: string;
|
|
317
|
+
}
|
|
318
|
+
export interface WorkbookValidationRangeRefSourceSnapshot {
|
|
319
|
+
kind: "range-ref";
|
|
320
|
+
sheetName: string;
|
|
321
|
+
startAddress: string;
|
|
322
|
+
endAddress: string;
|
|
323
|
+
}
|
|
324
|
+
export interface WorkbookValidationStructuredRefSourceSnapshot {
|
|
325
|
+
kind: "structured-ref";
|
|
326
|
+
tableName: string;
|
|
327
|
+
columnName: string;
|
|
328
|
+
}
|
|
329
|
+
export type WorkbookValidationListSourceSnapshot = WorkbookValidationNamedRangeSourceSnapshot | WorkbookValidationCellRefSourceSnapshot | WorkbookValidationRangeRefSourceSnapshot | WorkbookValidationStructuredRefSourceSnapshot;
|
|
330
|
+
export interface WorkbookListValidationRuleSnapshot {
|
|
331
|
+
kind: "list";
|
|
332
|
+
values?: LiteralInput[];
|
|
333
|
+
source?: WorkbookValidationListSourceSnapshot;
|
|
334
|
+
}
|
|
335
|
+
export interface WorkbookCheckboxValidationRuleSnapshot {
|
|
336
|
+
kind: "checkbox";
|
|
337
|
+
checkedValue?: LiteralInput;
|
|
338
|
+
uncheckedValue?: LiteralInput;
|
|
339
|
+
}
|
|
340
|
+
export interface WorkbookScalarValidationRuleSnapshot {
|
|
341
|
+
kind: "whole" | "decimal" | "date" | "time" | "textLength";
|
|
342
|
+
operator: WorkbookValidationComparisonOperator;
|
|
343
|
+
values: LiteralInput[];
|
|
344
|
+
}
|
|
345
|
+
export type WorkbookDataValidationRuleSnapshot = WorkbookListValidationRuleSnapshot | WorkbookCheckboxValidationRuleSnapshot | WorkbookScalarValidationRuleSnapshot;
|
|
346
|
+
export interface WorkbookDataValidationSnapshot {
|
|
347
|
+
range: CellRangeRef;
|
|
348
|
+
rule: WorkbookDataValidationRuleSnapshot;
|
|
349
|
+
allowBlank?: boolean;
|
|
350
|
+
showDropdown?: boolean;
|
|
351
|
+
promptTitle?: string;
|
|
352
|
+
promptMessage?: string;
|
|
353
|
+
errorStyle?: WorkbookValidationErrorStyle;
|
|
354
|
+
errorTitle?: string;
|
|
355
|
+
errorMessage?: string;
|
|
356
|
+
}
|
|
357
|
+
export interface WorkbookCommentEntrySnapshot {
|
|
358
|
+
id: string;
|
|
359
|
+
body: string;
|
|
360
|
+
authorUserId?: string;
|
|
361
|
+
authorDisplayName?: string;
|
|
362
|
+
createdAtUnixMs?: number;
|
|
363
|
+
}
|
|
364
|
+
export interface WorkbookCommentThreadSnapshot {
|
|
365
|
+
threadId: string;
|
|
366
|
+
sheetName: string;
|
|
367
|
+
address: string;
|
|
368
|
+
comments: WorkbookCommentEntrySnapshot[];
|
|
369
|
+
resolved?: boolean;
|
|
370
|
+
resolvedByUserId?: string;
|
|
371
|
+
resolvedAtUnixMs?: number;
|
|
372
|
+
}
|
|
373
|
+
export interface WorkbookNoteSnapshot {
|
|
374
|
+
sheetName: string;
|
|
375
|
+
address: string;
|
|
376
|
+
text: string;
|
|
377
|
+
}
|
|
307
378
|
export interface WorkbookMetadataSnapshot {
|
|
308
379
|
properties?: WorkbookPropertySnapshot[];
|
|
309
380
|
definedNames?: WorkbookDefinedNameSnapshot[];
|
|
@@ -325,6 +396,9 @@ export interface SheetMetadataSnapshot {
|
|
|
325
396
|
freezePane?: WorkbookFreezePaneSnapshot;
|
|
326
397
|
filters?: CellRangeRef[];
|
|
327
398
|
sorts?: WorkbookSortSnapshot[];
|
|
399
|
+
validations?: WorkbookDataValidationSnapshot[];
|
|
400
|
+
commentThreads?: WorkbookCommentThreadSnapshot[];
|
|
401
|
+
notes?: WorkbookNoteSnapshot[];
|
|
328
402
|
}
|
|
329
403
|
export interface WorkbookSnapshot {
|
|
330
404
|
version: 1;
|