@veltdev/types-dev 3.0.212 → 3.0.214
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.
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { CommentAccessMode } from "../../utils/enums";
|
|
2
|
+
import { Attachment } from "./attachment.model";
|
|
3
|
+
import { CommentAnnotation } from "./comment-annotation.data.model";
|
|
4
|
+
import { Comment } from "./comment.data.model";
|
|
5
|
+
import { CustomPriority, CustomStatus } from "./custom-filter.data.model";
|
|
6
|
+
import { ReactionItem } from "./reaction-annotation.data.model";
|
|
7
|
+
export declare class ActionOptions {
|
|
8
|
+
organizationId?: string;
|
|
9
|
+
documentId?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class UpdatePriorityConfig {
|
|
12
|
+
annotationId: string;
|
|
13
|
+
priority?: CustomPriority;
|
|
14
|
+
options?: ActionOptions;
|
|
15
|
+
}
|
|
16
|
+
export declare class UpdateStatusConfig {
|
|
17
|
+
annotationId: string;
|
|
18
|
+
status: CustomStatus;
|
|
19
|
+
options?: ActionOptions;
|
|
20
|
+
}
|
|
21
|
+
export declare class UpdateAccessConfig {
|
|
22
|
+
annotationId: string;
|
|
23
|
+
accessMode: CommentAccessMode;
|
|
24
|
+
options?: ActionOptions;
|
|
25
|
+
}
|
|
26
|
+
export declare class ResolveCommentAnnotationConfig {
|
|
27
|
+
annotationId: string;
|
|
28
|
+
options?: ActionOptions;
|
|
29
|
+
}
|
|
30
|
+
export declare class GetLinkConfig {
|
|
31
|
+
annotationId: string;
|
|
32
|
+
options?: ActionOptions;
|
|
33
|
+
}
|
|
34
|
+
export declare class CopyLinkConfig {
|
|
35
|
+
annotationId: string;
|
|
36
|
+
options?: ActionOptions;
|
|
37
|
+
}
|
|
38
|
+
export declare class AddCommentAnnotationConfig {
|
|
39
|
+
annotation: CommentAnnotation;
|
|
40
|
+
options?: ActionOptions;
|
|
41
|
+
}
|
|
42
|
+
export declare class ApproveCommentAnnotationConfig {
|
|
43
|
+
annotationId: string;
|
|
44
|
+
options?: ActionOptions;
|
|
45
|
+
}
|
|
46
|
+
export declare class AcceptCommentAnnotationConfig {
|
|
47
|
+
annotationId: string;
|
|
48
|
+
options?: ActionOptions;
|
|
49
|
+
}
|
|
50
|
+
export declare class RejectCommentAnnotationConfig {
|
|
51
|
+
annotationId: string;
|
|
52
|
+
options?: ActionOptions;
|
|
53
|
+
}
|
|
54
|
+
export declare class DeleteCommentAnnotationConfig {
|
|
55
|
+
annotationId: string;
|
|
56
|
+
options?: ActionOptions;
|
|
57
|
+
}
|
|
58
|
+
export declare class AddCommentConfig {
|
|
59
|
+
annotationId: string;
|
|
60
|
+
comment: Comment;
|
|
61
|
+
options?: ActionOptions;
|
|
62
|
+
}
|
|
63
|
+
export declare class UpdateCommentConfig {
|
|
64
|
+
annotationId: string;
|
|
65
|
+
comment: Comment;
|
|
66
|
+
skipDeleteThreadConfirmation?: boolean;
|
|
67
|
+
merge?: boolean;
|
|
68
|
+
options?: ActionOptions;
|
|
69
|
+
}
|
|
70
|
+
export declare class DeleteCommentConfig {
|
|
71
|
+
annotationId: string;
|
|
72
|
+
commentId: number;
|
|
73
|
+
skipDeleteThreadConfirmation?: boolean;
|
|
74
|
+
options?: ActionOptions;
|
|
75
|
+
}
|
|
76
|
+
export declare class GetCommentConfig {
|
|
77
|
+
annotationId: string;
|
|
78
|
+
options?: ActionOptions;
|
|
79
|
+
}
|
|
80
|
+
export declare class AddAttachmentConfig {
|
|
81
|
+
annotationId: string;
|
|
82
|
+
files: File[];
|
|
83
|
+
options?: ActionOptions;
|
|
84
|
+
}
|
|
85
|
+
export declare class AddAttachmentResponse {
|
|
86
|
+
valid: boolean;
|
|
87
|
+
file?: File;
|
|
88
|
+
maxAllowedSize: number;
|
|
89
|
+
error?: string;
|
|
90
|
+
attachment?: Attachment;
|
|
91
|
+
}
|
|
92
|
+
export declare class DeleteAttachmentConfig {
|
|
93
|
+
annotationId: string;
|
|
94
|
+
commentId: number;
|
|
95
|
+
attachmentId: number;
|
|
96
|
+
options?: ActionOptions;
|
|
97
|
+
}
|
|
98
|
+
export declare class GetAttachmentConfig {
|
|
99
|
+
annotationId: string;
|
|
100
|
+
commentId: number;
|
|
101
|
+
options?: ActionOptions;
|
|
102
|
+
}
|
|
103
|
+
export declare class GetRecordingConfig {
|
|
104
|
+
annotationId: string;
|
|
105
|
+
commentId: number;
|
|
106
|
+
options?: ActionOptions;
|
|
107
|
+
}
|
|
108
|
+
export declare class DeleteRecordingConfig {
|
|
109
|
+
annotationId: string;
|
|
110
|
+
commentId: number;
|
|
111
|
+
recorderId: string;
|
|
112
|
+
options?: ActionOptions;
|
|
113
|
+
}
|
|
114
|
+
export declare class AddReactionConfig {
|
|
115
|
+
annotationId: string;
|
|
116
|
+
commentId: number;
|
|
117
|
+
reaction: {
|
|
118
|
+
reactionId: string;
|
|
119
|
+
customReaction?: ReactionItem;
|
|
120
|
+
};
|
|
121
|
+
options?: ActionOptions;
|
|
122
|
+
}
|
|
123
|
+
export declare class DeleteReactionConfig {
|
|
124
|
+
annotationId: string;
|
|
125
|
+
commentId: number;
|
|
126
|
+
reaction: {
|
|
127
|
+
reactionId: string;
|
|
128
|
+
customReaction?: ReactionItem;
|
|
129
|
+
};
|
|
130
|
+
options?: ActionOptions;
|
|
131
|
+
}
|
|
132
|
+
export declare class ToggleReactionConfig {
|
|
133
|
+
annotationId: string;
|
|
134
|
+
commentId: number;
|
|
135
|
+
reaction: {
|
|
136
|
+
reactionId: string;
|
|
137
|
+
customReaction?: ReactionItem;
|
|
138
|
+
};
|
|
139
|
+
options?: ActionOptions;
|
|
140
|
+
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { CommentStatus } from "../../utils/enums";
|
|
1
|
+
import { CommentAccessMode, CommentStatus } from "../../utils/enums";
|
|
2
|
+
import { Attachment } from "./attachment.model";
|
|
3
|
+
import { AddAttachmentResponse } from "./comment-actions.data.model";
|
|
2
4
|
import { CommentAnnotation, UpdateContextConfig } from "./comment-annotation.data.model";
|
|
5
|
+
import { CustomPriority, CustomStatus } from "./custom-filter.data.model";
|
|
3
6
|
import { Location } from "./location.model";
|
|
4
7
|
import { User } from "./user.data.model";
|
|
5
8
|
export interface CommentAddEventData {
|
|
@@ -31,3 +34,92 @@ export interface CommentSuggestionEventData {
|
|
|
31
34
|
replaceContentText?: string;
|
|
32
35
|
annotation?: any;
|
|
33
36
|
}
|
|
37
|
+
export interface AddReactionEvent {
|
|
38
|
+
}
|
|
39
|
+
export interface DeleteReactionEvent {
|
|
40
|
+
}
|
|
41
|
+
export interface AddAttachmentEvent {
|
|
42
|
+
attachments: AddAttachmentResponse[];
|
|
43
|
+
}
|
|
44
|
+
export interface DeleteAttachmentEvent {
|
|
45
|
+
deletedAttachment: Attachment;
|
|
46
|
+
annotationId: string;
|
|
47
|
+
commentId: number;
|
|
48
|
+
annotation: CommentAnnotation;
|
|
49
|
+
}
|
|
50
|
+
export interface AddCommentAnnotationEvent {
|
|
51
|
+
annotation: CommentAnnotation;
|
|
52
|
+
}
|
|
53
|
+
export interface ApproveCommentAnnotationEvent {
|
|
54
|
+
annotationId: string;
|
|
55
|
+
annotation: CommentAnnotation;
|
|
56
|
+
}
|
|
57
|
+
export interface AcceptCommentAnnotationEvent {
|
|
58
|
+
annotationId: string;
|
|
59
|
+
annotation: CommentAnnotation;
|
|
60
|
+
}
|
|
61
|
+
export interface RejectCommentAnnotationEvent {
|
|
62
|
+
annotationId: string;
|
|
63
|
+
annotation: CommentAnnotation;
|
|
64
|
+
}
|
|
65
|
+
export interface DeleteCommentAnnotationEvent {
|
|
66
|
+
annotationId: string;
|
|
67
|
+
annotation: CommentAnnotation;
|
|
68
|
+
}
|
|
69
|
+
export interface AddCommentEvent {
|
|
70
|
+
}
|
|
71
|
+
export interface UpdateCommentEvent {
|
|
72
|
+
annotationId: string;
|
|
73
|
+
comment: Comment;
|
|
74
|
+
annotation: CommentAnnotation;
|
|
75
|
+
}
|
|
76
|
+
export interface DeleteCommentEvent {
|
|
77
|
+
annotationId: string;
|
|
78
|
+
commentId: number;
|
|
79
|
+
annotation: CommentAnnotation;
|
|
80
|
+
}
|
|
81
|
+
export interface DeleteRecordingEvent {
|
|
82
|
+
annotationId: string;
|
|
83
|
+
commentId: number;
|
|
84
|
+
recorderId: string;
|
|
85
|
+
annotation: CommentAnnotation;
|
|
86
|
+
}
|
|
87
|
+
export interface ReactionEvent {
|
|
88
|
+
annotationId: string;
|
|
89
|
+
commentId: number;
|
|
90
|
+
annotation: CommentAnnotation;
|
|
91
|
+
}
|
|
92
|
+
export interface AddReactionEvent extends ReactionEvent {
|
|
93
|
+
}
|
|
94
|
+
export interface DeleteReactionEvent extends ReactionEvent {
|
|
95
|
+
}
|
|
96
|
+
export interface ToggleReactionEvent extends ReactionEvent {
|
|
97
|
+
}
|
|
98
|
+
export interface UpdateStatusEvent {
|
|
99
|
+
newStatus: CustomStatus;
|
|
100
|
+
oldStatus: CustomStatus;
|
|
101
|
+
annotationId: string;
|
|
102
|
+
annotation: CommentAnnotation;
|
|
103
|
+
}
|
|
104
|
+
export interface UpdatePriorityEvent {
|
|
105
|
+
newPriority?: CustomPriority;
|
|
106
|
+
oldPriority?: CustomPriority;
|
|
107
|
+
annotationId: string;
|
|
108
|
+
annotation: CommentAnnotation;
|
|
109
|
+
}
|
|
110
|
+
export interface UpdateAccessEvent {
|
|
111
|
+
newAccessMode: CommentAccessMode;
|
|
112
|
+
oldAccessMode: CommentAccessMode;
|
|
113
|
+
annotationId: string;
|
|
114
|
+
annotation: CommentAnnotation;
|
|
115
|
+
}
|
|
116
|
+
export interface GetLinkEvent {
|
|
117
|
+
link: string | null;
|
|
118
|
+
annotationId: string;
|
|
119
|
+
annotation: CommentAnnotation;
|
|
120
|
+
}
|
|
121
|
+
export interface CopyLinkEvent {
|
|
122
|
+
link: string;
|
|
123
|
+
annotationId: string;
|
|
124
|
+
annotation: CommentAnnotation;
|
|
125
|
+
}
|
|
@@ -52,9 +52,10 @@ export declare class ReactionAnnotation {
|
|
|
52
52
|
iconEmoji?: string;
|
|
53
53
|
}
|
|
54
54
|
export declare class ReactionMap {
|
|
55
|
-
[reactionId: string]:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
55
|
+
[reactionId: string]: ReactionItem;
|
|
56
|
+
}
|
|
57
|
+
export declare class ReactionItem {
|
|
58
|
+
url?: string;
|
|
59
|
+
svg?: string;
|
|
60
|
+
emoji?: string;
|
|
60
61
|
}
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -16,6 +16,29 @@ export declare enum CommentStatus {
|
|
|
16
16
|
SUBSCRIBED = "subscribed",
|
|
17
17
|
UNSUBSCRIBED = "unsubscribed"
|
|
18
18
|
}
|
|
19
|
+
export declare enum CommentActionTypes {
|
|
20
|
+
ADD_COMMENT_ANNOTATION = "addCommentAnnotation",
|
|
21
|
+
UPDATE_COMMENT_ANNOTATION = "updateCommentAnnotation",
|
|
22
|
+
DELETE_COMMENT_ANNOTATION = "deleteCommentAnnotation",
|
|
23
|
+
APPROVE_COMMENT_ANNOTATION = "approveCommentAnnotation",
|
|
24
|
+
ACCEPT_COMMENT_ANNOTATION = "acceptCommentAnnotation",
|
|
25
|
+
REJECT_COMMENT_ANNOTATION = "rejectCommentAnnotation",
|
|
26
|
+
UPDATE_STATUS = "updateStatus",
|
|
27
|
+
UPDATE_PRIORITY = "updatePriority",
|
|
28
|
+
UPDATE_ACCESS = "updateAccess",
|
|
29
|
+
RESOLVE_COMMENT = "resolveComment",
|
|
30
|
+
ADD_COMMENT = "addComment",
|
|
31
|
+
UPDATE_COMMENT = "updateComment",
|
|
32
|
+
DELETE_COMMENT = "deleteComment",
|
|
33
|
+
ADD_ATTACHMENT = "addAttachment",
|
|
34
|
+
DELETE_ATTACHMENT = "deleteAttachment",
|
|
35
|
+
DELETE_RECORDING = "deleteRecording",
|
|
36
|
+
GET_LINK = "getLink",
|
|
37
|
+
COPY_LINK = "copyLink",
|
|
38
|
+
ADD_REACTION = "addReaction",
|
|
39
|
+
DELETE_REACTION = "deleteReaction",
|
|
40
|
+
TOGGLE_REACTION = "toggleReaction"
|
|
41
|
+
}
|
|
19
42
|
export declare enum TagStatus {
|
|
20
43
|
ADDED = "added",
|
|
21
44
|
UPDATED = "updated",
|
package/models.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './app/models/data/chatgpt.data.model';
|
|
|
5
5
|
export * from './app/models/data/comment-annotation.data.model';
|
|
6
6
|
export * from './app/models/data/comment-events.data.model';
|
|
7
7
|
export * from './app/models/data/comment.data.model';
|
|
8
|
+
export * from './app/models/data/comment-actions.data.model';
|
|
8
9
|
export * from './app/models/data/config.data.model';
|
|
9
10
|
export * from './app/models/data/cursor-position.data.model';
|
|
10
11
|
export * from './app/models/data/cursor-user.data.model';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/types-dev",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.214",
|
|
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": [
|