@veltdev/types-dev 6.0.8-beta.4 → 6.0.9-beta.1

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
+ }
@@ -4,9 +4,9 @@ import { Observable } from "rxjs";
4
4
  import { AssignToType, CommentSidebarSystemFiltersOperator, DetectionStrategy, SidebarButtonCountType } from "../../utils/enums";
5
5
  import { UploadFileData, Attachment } from "../data/attachment.model";
6
6
  import { AutocompleteData } from "../data/autocomplete.data.model";
7
- import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, CommentRequestQuery, CommentVisibilityConfig, ClearComposerRequest, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, FetchCommentAnnotationsRequest, FormatConfig, GetAttachmentRequest, GetCommentRequest, GetComposerDataRequest, GetLinkRequest, GetRecordingRequest, PrivateModeConfig, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubmitCommentRequest, SubscribeCommentAnnotationRequest, ToggleReactionRequest, UnsubscribeCommentAnnotationRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
7
+ import { AcceptSuggestionRequest, RejectSuggestionRequest, AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, CommentRequestQuery, CommentVisibilityConfig, ClearComposerRequest, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, FetchCommentAnnotationsRequest, FormatConfig, GetAttachmentRequest, GetCommentRequest, GetComposerDataRequest, GetLinkRequest, GetRecordingRequest, PrivateModeConfig, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubmitCommentRequest, SubscribeCommentAnnotationRequest, ToggleReactionRequest, UnsubscribeCommentAnnotationRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
8
8
  import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig, UpdateContextConfig } from "../data/comment-annotation.data.model";
9
- import { AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, AssignToConfig, AssignUserEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, ComposerTextChangeEvent, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, FetchCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetLinkResponse, PageModeComposerConfig, RejectCommentAnnotationEvent, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent } from "../data/comment-events.data.model";
9
+ import { SuggestionAcceptEvent, SuggestionRejectEvent, AcceptCommentAnnotationEvent, AddCommentAnnotationEvent, AddCommentEvent, AddReactionEvent, ApproveCommentAnnotationEvent, AssignToConfig, AssignUserEvent, CommentAddEventData, CommentEventTypesMap, CommentUpdateEventData, ComposerTextChangeEvent, CopyLinkEvent, DeleteAttachmentEvent, DeleteCommentAnnotationEvent, DeleteCommentEvent, DeleteReactionEvent, DeleteRecordingEvent, FetchCommentAnnotationsResponse, GetCommentAnnotationsCountResponse, GetCommentAnnotationsResponse, GetLinkResponse, PageModeComposerConfig, RejectCommentAnnotationEvent, SubscribeCommentAnnotationEvent, UnsubscribeCommentAnnotationEvent, ToggleReactionEvent, UpdateAccessEvent, UpdateCommentEvent, UpdatePriorityEvent, UpdateStatusEvent } from "../data/comment-events.data.model";
10
10
  import { CommentSidebarCustomActionEventData, CommentSidebarCustomActionsState, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
11
11
  import { CommentContextProvider, TransformContext, UnreadCommentsCount } from "../data/comment-utils.data.model";
12
12
  import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
@@ -1151,6 +1151,21 @@ export declare class CommentElement {
1151
1151
  */
1152
1152
  public rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
1153
1153
 
1154
+ /**
1155
+ * Accept a `type: 'suggestion'` annotation — the same operation the suggestion
1156
+ * card's built-in accept button performs: writes `suggestion.status` AND flips
1157
+ * `type` to `'comment'`, which retires the card into a normal thread.
1158
+ *
1159
+ * Distinct from `acceptCommentAnnotation`, which is the legacy
1160
+ * comments-as-suggestions flow and writes `annotation.status` instead.
1161
+ */
1162
+ public acceptSuggestion: (request: AcceptSuggestionRequest) => Promise<SuggestionAcceptEvent | null>;
1163
+
1164
+ /**
1165
+ * Reject a `type: 'suggestion'` annotation. See `acceptSuggestion`.
1166
+ */
1167
+ public rejectSuggestion: (request: RejectSuggestionRequest) => Promise<SuggestionRejectEvent | null>;
1168
+
1154
1169
  /**
1155
1170
  * To subscribe comment annotation
1156
1171
  */
@@ -2541,6 +2556,8 @@ export declare class CommentElement {
2541
2556
  * To reject comment annotation
2542
2557
  */
2543
2558
  private _rejectCommentAnnotation;
2559
+ private _acceptSuggestion;
2560
+ private _rejectSuggestion;
2544
2561
 
2545
2562
  /**
2546
2563
  * To subscribe to comment annotation
@@ -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-dev",
3
- "version": "6.0.8-beta.4",
3
+ "version": "6.0.9-beta.1",
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": [