@veltdev/types-dev 5.0.0-beta.22 → 5.0.0-beta.24

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.
@@ -85,6 +85,24 @@ export interface DeleteCommentAnnotationRequest {
85
85
  annotationId: string;
86
86
  options?: RequestOptions;
87
87
  }
88
+ /**
89
+ * Query parameters for fetching comment annotation counts.
90
+ *
91
+ * @property organizationId - Filter by organization (enables org-wide aggregation when used alone)
92
+ * @property documentIds - Filter by specific document IDs
93
+ * @property locationIds - Filter by location IDs within documents
94
+ * @property statusIds - Filter by comment status IDs (e.g., "open", "resolved")
95
+ * @property folderId - Filter by folder ID (use with allDocuments for folder-wide counts)
96
+ * @property allDocuments - When true with folderId, aggregates all documents in folder
97
+ * @property locationId - Single location filter (deprecated, use locationIds)
98
+ * @property aggregateDocuments - When true, combines all documentIds into single count
99
+ * @property filterGhostComments - When true, excludes orphaned/deleted comments from counts
100
+ * @property batchedPerDocument - When true, uses efficient batched listeners (4 instead of 100)
101
+ * but still returns per-document counts. Best for large document lists (50+).
102
+ * Trade-off: slight delay on updates due to debouncing.
103
+ * @property debounceMs - Debounce time in milliseconds for batchedPerDocument mode (default: 5000ms).
104
+ * Prevents rapid re-fetches when multiple documents update in quick succession.
105
+ */
88
106
  export interface CommentRequestQuery {
89
107
  organizationId?: string;
90
108
  documentIds?: string[];
@@ -95,6 +113,10 @@ export interface CommentRequestQuery {
95
113
  locationId?: string;
96
114
  aggregateDocuments?: boolean;
97
115
  filterGhostComments?: boolean;
116
+ /** Enable batched listeners with per-document counts. Uses 4 listeners instead of N listeners. */
117
+ batchedPerDocument?: boolean;
118
+ /** Debounce time in ms for batchedPerDocument mode (default: 5000). */
119
+ debounceMs?: number;
98
120
  }
99
121
  export interface SubscribeCommentAnnotationRequest {
100
122
  annotationId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "5.0.0-beta.22",
3
+ "version": "5.0.0-beta.24",
4
4
  "description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
5
5
  "homepage": "https://velt.dev",
6
6
  "keywords": [