@bilig/protocol 0.1.49 → 0.1.50

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 (2) hide show
  1. package/dist/types.d.ts +51 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -304,6 +304,56 @@ 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
+ }
307
357
  export interface WorkbookMetadataSnapshot {
308
358
  properties?: WorkbookPropertySnapshot[];
309
359
  definedNames?: WorkbookDefinedNameSnapshot[];
@@ -325,6 +375,7 @@ export interface SheetMetadataSnapshot {
325
375
  freezePane?: WorkbookFreezePaneSnapshot;
326
376
  filters?: CellRangeRef[];
327
377
  sorts?: WorkbookSortSnapshot[];
378
+ validations?: WorkbookDataValidationSnapshot[];
328
379
  }
329
380
  export interface WorkbookSnapshot {
330
381
  version: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bilig/protocol",
3
- "version": "0.1.49",
3
+ "version": "0.1.50",
4
4
  "description": "Shared protocol types, enums, opcodes, and spreadsheet limits for bilig.",
5
5
  "keywords": [
6
6
  "bilig",