@veltdev/sdk 4.0.0-beta.3 → 4.0.0-beta.4
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.
|
@@ -59,17 +59,10 @@ export interface DeleteCommentAnnotationRequest {
|
|
|
59
59
|
annotationId: string;
|
|
60
60
|
options?: RequestOptions;
|
|
61
61
|
}
|
|
62
|
-
export interface
|
|
62
|
+
export interface CommentRequestQuery {
|
|
63
63
|
documentIds?: string[];
|
|
64
64
|
locationIds?: string[];
|
|
65
65
|
statusIds?: string[];
|
|
66
|
-
options?: RequestOptions;
|
|
67
|
-
}
|
|
68
|
-
export interface GetCommentAnnotationsCountRequest {
|
|
69
|
-
documentIds?: string[];
|
|
70
|
-
locationIds?: string[];
|
|
71
|
-
statusIds?: string[];
|
|
72
|
-
options?: RequestOptions;
|
|
73
66
|
}
|
|
74
67
|
export interface SubscribeCommentAnnotationRequest {
|
|
75
68
|
annotationId: string;
|
|
@@ -126,10 +126,6 @@ export interface DeleteCommentAnnotationEvent {
|
|
|
126
126
|
commentAnnotation: CommentAnnotation;
|
|
127
127
|
metadata: VeltEventMetadata;
|
|
128
128
|
}
|
|
129
|
-
export interface GetCommentAnnotationsEvent {
|
|
130
|
-
commentAnnotations: CommentAnnotation[];
|
|
131
|
-
metadata: VeltEventMetadata;
|
|
132
|
-
}
|
|
133
129
|
export interface GetCommentAnnotationsResponse {
|
|
134
130
|
data: Record<string, CommentAnnotation[]> | null;
|
|
135
131
|
}
|
|
@@ -7,7 +7,7 @@ import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.
|
|
|
7
7
|
import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
8
8
|
import { CommentSidebarCustomActionEventData, CommentSidebarData, CommentSidebarDataOptions } from "../data/comment-sidebar-config.model";
|
|
9
9
|
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
10
|
-
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest,
|
|
10
|
+
import { AcceptCommentAnnotationRequest, AddAttachmentRequest, AddAttachmentResponse, AddCommentAnnotationRequest, AddCommentRequest, AddReactionRequest, ApproveCommentAnnotationRequest, AssignUserRequest, AssignUserEvent, CopyLinkRequest, DeleteAttachmentRequest, DeleteCommentAnnotationRequest, CommentRequestQuery, CommentRequestQuery, DeleteCommentRequest, DeleteReactionRequest, DeleteRecordingRequest, GetAttachmentRequest, GetCommentRequest, GetLinkRequest, GetRecordingRequest, RejectCommentAnnotationRequest, ResolveCommentAnnotationRequest, SubscribeCommentAnnotationRequest, UnsubscribeCommentAnnotationRequest, ToggleReactionRequest, UpdateAccessRequest, UpdateCommentRequest, UpdatePriorityRequest, UpdateStatusRequest } from "../data/comment-actions.data.model";
|
|
11
11
|
import { UnreadCommentsCount } from "../data/comment-utils.data.model";
|
|
12
12
|
export declare class CommentElement {
|
|
13
13
|
/**
|
|
@@ -921,142 +921,142 @@ export declare class CommentElement {
|
|
|
921
921
|
/**
|
|
922
922
|
* To add comment annotation
|
|
923
923
|
*/
|
|
924
|
-
public addCommentAnnotation: (
|
|
924
|
+
public addCommentAnnotation: (request: AddCommentAnnotationRequest) => Promise<AddCommentAnnotationEvent | null>;
|
|
925
925
|
|
|
926
926
|
/**
|
|
927
927
|
* To approve comment annotation
|
|
928
928
|
*/
|
|
929
|
-
public approveCommentAnnotation: (
|
|
929
|
+
public approveCommentAnnotation: (request: ApproveCommentAnnotationRequest) => Promise<ApproveCommentAnnotationEvent | null>;
|
|
930
930
|
|
|
931
931
|
/**
|
|
932
932
|
* To accept comment annotation
|
|
933
933
|
*/
|
|
934
|
-
public acceptCommentAnnotation: (
|
|
934
|
+
public acceptCommentAnnotation: (request: AcceptCommentAnnotationRequest) => Promise<AcceptCommentAnnotationEvent | null>;
|
|
935
935
|
|
|
936
936
|
/**
|
|
937
937
|
* To reject comment annotation
|
|
938
938
|
*/
|
|
939
|
-
public rejectCommentAnnotation: (
|
|
939
|
+
public rejectCommentAnnotation: (request: RejectCommentAnnotationRequest) => Promise<RejectCommentAnnotationEvent | null>;
|
|
940
940
|
|
|
941
941
|
/**
|
|
942
942
|
* To subscribe comment annotation
|
|
943
943
|
*/
|
|
944
|
-
public subscribeCommentAnnotation: (
|
|
944
|
+
public subscribeCommentAnnotation: (request: SubscribeCommentAnnotationRequest) => Promise<SubscribeCommentAnnotationEvent | null>;
|
|
945
945
|
|
|
946
946
|
/**
|
|
947
947
|
* To unsubscribe comment annotation
|
|
948
948
|
*/
|
|
949
|
-
public unsubscribeCommentAnnotation: (
|
|
949
|
+
public unsubscribeCommentAnnotation: (request: UnsubscribeCommentAnnotationRequest) => Promise<UnsubscribeCommentAnnotationEvent | null>;
|
|
950
950
|
|
|
951
951
|
/**
|
|
952
952
|
* To delete comment annotation
|
|
953
953
|
*/
|
|
954
|
-
public deleteCommentAnnotation: (
|
|
954
|
+
public deleteCommentAnnotation: (request: DeleteCommentAnnotationRequest) => Promise<DeleteCommentAnnotationEvent | null>;
|
|
955
955
|
|
|
956
956
|
/**
|
|
957
957
|
* To get comment annotations
|
|
958
958
|
*/
|
|
959
|
-
public getCommentAnnotations: (
|
|
959
|
+
public getCommentAnnotations: (query?: CommentRequestQuery) => Observable<GetCommentAnnotationsResponse>;
|
|
960
960
|
|
|
961
961
|
/**
|
|
962
962
|
* To get comment annotations count
|
|
963
963
|
*/
|
|
964
|
-
public getCommentAnnotationsCount: (
|
|
964
|
+
public getCommentAnnotationsCount: (query?: CommentRequestQuery) => Observable<GetCommentAnnotationsCountResponse>;
|
|
965
965
|
|
|
966
966
|
/**
|
|
967
967
|
* To assign user to comment annotation
|
|
968
968
|
*/
|
|
969
|
-
public assignUser: (
|
|
969
|
+
public assignUser: (request: AssignUserRequest) => Promise<AssignUserEvent | null>;
|
|
970
970
|
|
|
971
971
|
/**
|
|
972
972
|
* To update priority
|
|
973
973
|
*/
|
|
974
|
-
public updatePriority: (
|
|
974
|
+
public updatePriority: (request: UpdatePriorityRequest) => Promise<UpdatePriorityEvent | null>;
|
|
975
975
|
|
|
976
976
|
/**
|
|
977
977
|
* To update status
|
|
978
978
|
*/
|
|
979
|
-
public updateStatus: (
|
|
979
|
+
public updateStatus: (request: UpdateStatusRequest) => Promise<UpdateStatusEvent | null>;
|
|
980
980
|
|
|
981
981
|
/**
|
|
982
982
|
* To update access
|
|
983
983
|
*/
|
|
984
|
-
public updateAccess: (
|
|
984
|
+
public updateAccess: (request: UpdateAccessRequest) => Promise<UpdateAccessEvent | null>;
|
|
985
985
|
|
|
986
986
|
/**
|
|
987
987
|
* To resolve comment annotation
|
|
988
988
|
*/
|
|
989
|
-
public resolveCommentAnnotation: (
|
|
989
|
+
public resolveCommentAnnotation: (request: ResolveCommentAnnotationRequest) => Promise<any>;
|
|
990
990
|
|
|
991
991
|
/**
|
|
992
992
|
* To get link
|
|
993
993
|
*/
|
|
994
|
-
public getLink: (
|
|
994
|
+
public getLink: (request: GetLinkRequest) => Promise<GetLinkEvent | null>;
|
|
995
995
|
|
|
996
996
|
/**
|
|
997
997
|
* To copy link
|
|
998
998
|
*/
|
|
999
|
-
public copyLink: (
|
|
999
|
+
public copyLink: (request: CopyLinkRequest) => Promise<CopyLinkEvent | null>;
|
|
1000
1000
|
|
|
1001
1001
|
/**
|
|
1002
1002
|
* To add comment
|
|
1003
1003
|
*/
|
|
1004
|
-
public addComment: (
|
|
1004
|
+
public addComment: (request: AddCommentRequest) => Promise<AddCommentEvent | null>;
|
|
1005
1005
|
|
|
1006
1006
|
/**
|
|
1007
1007
|
* To update comment
|
|
1008
1008
|
*/
|
|
1009
|
-
public updateComment: (
|
|
1009
|
+
public updateComment: (request: UpdateCommentRequest) => Promise<UpdateCommentEvent | null>;
|
|
1010
1010
|
|
|
1011
1011
|
/**
|
|
1012
1012
|
* To delete comment
|
|
1013
1013
|
*/
|
|
1014
|
-
public deleteComment: (
|
|
1014
|
+
public deleteComment: (request: DeleteCommentRequest) => Promise<DeleteCommentEvent | null>;
|
|
1015
1015
|
|
|
1016
1016
|
/**
|
|
1017
1017
|
* To get comment
|
|
1018
1018
|
*/
|
|
1019
|
-
public getComment: (
|
|
1019
|
+
public getComment: (request: GetCommentRequest) => Promise<Comment[]>;
|
|
1020
1020
|
|
|
1021
1021
|
/**
|
|
1022
1022
|
* To add attachment
|
|
1023
1023
|
*/
|
|
1024
|
-
public addAttachment: (
|
|
1024
|
+
public addAttachment: (request: AddAttachmentRequest) => Promise<AddAttachmentResponse[]>;
|
|
1025
1025
|
|
|
1026
1026
|
/**
|
|
1027
1027
|
* To get attachment
|
|
1028
1028
|
*/
|
|
1029
|
-
public getAttachment: (
|
|
1029
|
+
public getAttachment: (request: GetAttachmentRequest) => Promise<Attachment[]>;
|
|
1030
1030
|
|
|
1031
1031
|
/**
|
|
1032
1032
|
* To delete attachment
|
|
1033
1033
|
*/
|
|
1034
|
-
public deleteAttachment: (
|
|
1034
|
+
public deleteAttachment: (request: DeleteAttachmentRequest) => Promise<DeleteAttachmentEvent | null>;
|
|
1035
1035
|
|
|
1036
1036
|
/**
|
|
1037
1037
|
* To get recording
|
|
1038
1038
|
*/
|
|
1039
|
-
public getRecording: (
|
|
1039
|
+
public getRecording: (request: GetRecordingRequest) => Promise<RecordedData[]>;
|
|
1040
1040
|
|
|
1041
1041
|
/**
|
|
1042
1042
|
* To delete recording
|
|
1043
1043
|
*/
|
|
1044
|
-
public deleteRecording: (
|
|
1044
|
+
public deleteRecording: (request: DeleteRecordingRequest) => Promise<DeleteRecordingEvent | null>;
|
|
1045
1045
|
|
|
1046
1046
|
/**
|
|
1047
1047
|
* To add reaction
|
|
1048
1048
|
*/
|
|
1049
|
-
public addReaction: (
|
|
1049
|
+
public addReaction: (request: AddReactionRequest) => Promise<AddReactionEvent | null>;
|
|
1050
1050
|
|
|
1051
1051
|
/**
|
|
1052
1052
|
* To delete reaction
|
|
1053
1053
|
*/
|
|
1054
|
-
public deleteReaction: (
|
|
1054
|
+
public deleteReaction: (request: DeleteReactionRequest) => Promise<DeleteReactionEvent | null>;
|
|
1055
1055
|
|
|
1056
1056
|
/**
|
|
1057
1057
|
* To toggle reaction
|
|
1058
1058
|
*/
|
|
1059
|
-
public toggleReaction: (
|
|
1059
|
+
public toggleReaction: (request: ToggleReactionRequest) => Promise<ToggleReactionEvent | null>;
|
|
1060
1060
|
|
|
1061
1061
|
/**
|
|
1062
1062
|
* Subscribe to comment actions
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.4",
|
|
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": [
|