@veltdev/types 6.0.8-beta.2 → 6.0.8

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.
@@ -291,3 +291,16 @@ export interface CrossOrganizationConfig {
291
291
  /** Feeds the merge applies to. Only `'forYou'` is supported; `'all'` is ignored with a warning. */
292
292
  feeds?: ('forYou' | 'all')[];
293
293
  }
294
+ /**
295
+ * Config for the user-scoped "For You" notifications fetch
296
+ * (`enableUserScopedNotifications`). When enabled, the SDK fetches the user's
297
+ * newest notifications for the current organization directly — independent of
298
+ * the recently-active-documents window — so unread notifications on documents
299
+ * outside that window stay visible in the For You tab and unread count.
300
+ *
301
+ * @see specs/org-notifications-top15-document-window/spec.md
302
+ */
303
+ export interface UserScopedNotificationsConfig {
304
+ /** Max user-scoped notifications fetched. Default 25; clamped to [1, 200]. */
305
+ limit?: number;
306
+ }
@@ -1,6 +1,6 @@
1
1
  import { Observable } from "rxjs";
2
2
 
3
- import { CrossOrganizationConfig, GetNotificationsDataQuery, Notification, NotificationInitialSettingsConfig, NotificationSettingsConfig, NotificationTabConfig } from "../data/notification.model";
3
+ import { CrossOrganizationConfig, GetNotificationsDataQuery, Notification, NotificationInitialSettingsConfig, NotificationSettingsConfig, NotificationTabConfig, UserScopedNotificationsConfig } from "../data/notification.model";
4
4
  import { NotificationEventTypesMap } from "../data/notifications-events.data.model";
5
5
 
6
6
  export declare class NotificationElement {
@@ -139,6 +139,19 @@ export declare class NotificationElement {
139
139
  */
140
140
  disableCrossOrganization: () => void;
141
141
 
142
+ /**
143
+ * To enable the user-scoped "For You" notifications fetch: fetches the user's newest
144
+ * notifications for the current organization independent of the recently-active-documents
145
+ * window, so unread notifications on older documents stay visible in the For You tab and
146
+ * unread count. Default limit 25; clamped to [1, 200].
147
+ */
148
+ enableUserScopedNotifications: (config?: UserScopedNotificationsConfig) => void;
149
+
150
+ /**
151
+ * To disable the user-scoped "For You" notifications fetch (restores windowed behavior)
152
+ */
153
+ disableUserScopedNotifications: () => void;
154
+
142
155
  /**
143
156
  * Subscribe to notification events
144
157
  */
@@ -281,6 +294,16 @@ export declare class NotificationElement {
281
294
  */
282
295
  private _disableCrossOrganization;
283
296
 
297
+ /**
298
+ * To enable the user-scoped "For You" notifications fetch
299
+ */
300
+ private _enableUserScopedNotifications;
301
+
302
+ /**
303
+ * To disable the user-scoped "For You" notifications fetch
304
+ */
305
+ private _disableUserScopedNotifications;
306
+
284
307
  /**
285
308
  * Subscribe to notification events
286
309
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types",
3
- "version": "6.0.8-beta.2",
3
+ "version": "6.0.8",
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": [