@bilig/protocol 0.1.50 → 0.1.52

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 +53 -0
  2. package/package.json +1 -1
package/dist/types.d.ts CHANGED
@@ -354,6 +354,56 @@ export interface WorkbookDataValidationSnapshot {
354
354
  errorTitle?: string;
355
355
  errorMessage?: string;
356
356
  }
357
+ export interface WorkbookConditionalFormatCellIsRuleSnapshot {
358
+ kind: "cellIs";
359
+ operator: WorkbookValidationComparisonOperator;
360
+ values: LiteralInput[];
361
+ }
362
+ export interface WorkbookConditionalFormatTextContainsRuleSnapshot {
363
+ kind: "textContains";
364
+ text: string;
365
+ caseSensitive?: boolean;
366
+ }
367
+ export interface WorkbookConditionalFormatFormulaRuleSnapshot {
368
+ kind: "formula";
369
+ formula: string;
370
+ }
371
+ export interface WorkbookConditionalFormatBlanksRuleSnapshot {
372
+ kind: "blanks";
373
+ }
374
+ export interface WorkbookConditionalFormatNotBlanksRuleSnapshot {
375
+ kind: "notBlanks";
376
+ }
377
+ export type WorkbookConditionalFormatRuleSnapshot = WorkbookConditionalFormatCellIsRuleSnapshot | WorkbookConditionalFormatTextContainsRuleSnapshot | WorkbookConditionalFormatFormulaRuleSnapshot | WorkbookConditionalFormatBlanksRuleSnapshot | WorkbookConditionalFormatNotBlanksRuleSnapshot;
378
+ export interface WorkbookConditionalFormatSnapshot {
379
+ id: string;
380
+ range: CellRangeRef;
381
+ rule: WorkbookConditionalFormatRuleSnapshot;
382
+ style: CellStylePatch;
383
+ stopIfTrue?: boolean;
384
+ priority?: number;
385
+ }
386
+ export interface WorkbookCommentEntrySnapshot {
387
+ id: string;
388
+ body: string;
389
+ authorUserId?: string;
390
+ authorDisplayName?: string;
391
+ createdAtUnixMs?: number;
392
+ }
393
+ export interface WorkbookCommentThreadSnapshot {
394
+ threadId: string;
395
+ sheetName: string;
396
+ address: string;
397
+ comments: WorkbookCommentEntrySnapshot[];
398
+ resolved?: boolean;
399
+ resolvedByUserId?: string;
400
+ resolvedAtUnixMs?: number;
401
+ }
402
+ export interface WorkbookNoteSnapshot {
403
+ sheetName: string;
404
+ address: string;
405
+ text: string;
406
+ }
357
407
  export interface WorkbookMetadataSnapshot {
358
408
  properties?: WorkbookPropertySnapshot[];
359
409
  definedNames?: WorkbookDefinedNameSnapshot[];
@@ -376,6 +426,9 @@ export interface SheetMetadataSnapshot {
376
426
  filters?: CellRangeRef[];
377
427
  sorts?: WorkbookSortSnapshot[];
378
428
  validations?: WorkbookDataValidationSnapshot[];
429
+ conditionalFormats?: WorkbookConditionalFormatSnapshot[];
430
+ commentThreads?: WorkbookCommentThreadSnapshot[];
431
+ notes?: WorkbookNoteSnapshot[];
379
432
  }
380
433
  export interface WorkbookSnapshot {
381
434
  version: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bilig/protocol",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "description": "Shared protocol types, enums, opcodes, and spreadsheet limits for bilig.",
5
5
  "keywords": [
6
6
  "bilig",