@veltdev/types-dev 4.2.2-beta.15 → 4.2.2-beta.16

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.
@@ -18,6 +18,7 @@ export interface GetCommentRequest {
18
18
  export interface DeleteCommentRequest {
19
19
  commentAnnotationId: string;
20
20
  metadata?: BaseMetadata;
21
+ event?: ResolverActions;
21
22
  }
22
23
  export interface SaveCommentRequest {
23
24
  commentAnnotation: {
@@ -1,6 +1,7 @@
1
1
  import { BaseMetadata } from "./base-metadata.data.model";
2
2
  import { ReactionAnnotation } from "./reaction-annotation.data.model";
3
3
  import { ResolverResponse, ResolverConfig } from "./resolver.data.model";
4
+ import { ResolverActions } from "../../utils/enums";
4
5
  export interface ReactionAnnotationDataProvider {
5
6
  get: (request: GetReactionRequest) => Promise<ResolverResponse<Record<string, PartialReactionAnnotation>>>;
6
7
  save: (request: SaveReactionRequest) => Promise<ResolverResponse<undefined>>;
@@ -18,11 +19,13 @@ export interface GetReactionRequest {
18
19
  export interface DeleteReactionRequest {
19
20
  reactionAnnotationId: string;
20
21
  metadata?: BaseMetadata;
22
+ event?: ResolverActions;
21
23
  }
22
24
  export interface SaveReactionRequest {
23
25
  reactionAnnotation: {
24
26
  [key: string]: PartialReactionAnnotation;
25
27
  };
28
+ event?: ResolverActions;
26
29
  }
27
30
  export interface PartialReactionAnnotationResult {
28
31
  strippedData: {
@@ -1,5 +1,5 @@
1
1
  import { User } from "./user.data.model";
2
2
  export interface UserDataProvider {
3
- getUsers(userIds: string[]): Promise<Record<string, User>>;
3
+ get(userIds: string[]): Promise<Record<string, User>>;
4
4
  resolveTimeout?: number;
5
5
  }
@@ -21,7 +21,9 @@ export declare enum ResolverActions {
21
21
  COMMENT_ANNOTATION_DELETE = "comment_annotation.delete",
22
22
  COMMENT_ADD = "comment.add",
23
23
  COMMENT_DELETE = "comment.delete",
24
- COMMENT_UPDATE = "comment.update"
24
+ COMMENT_UPDATE = "comment.update",
25
+ REACTION_ADD = "reaction.add",
26
+ REACTION_DELETE = "reaction.delete"
25
27
  }
26
28
  export declare const CommentEventTypes: {
27
29
  readonly ADD_COMMENT_ANNOTATION: "addCommentAnnotation";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/types-dev",
3
- "version": "4.2.2-beta.15",
3
+ "version": "4.2.2-beta.16",
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": [