@veltdev/sdk 2.0.21 → 2.0.23
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.
- package/app/models/data/autocomplete.data.model.d.ts +1 -1
- package/app/models/data/comment-annotation.data.model.d.ts +22 -0
- package/app/models/data/cursor-user.data.model.d.ts +1 -0
- package/app/models/data/custom-chip-dropdown.data.model.d.ts +9 -0
- package/app/models/data/notification.model.d.ts +26 -0
- package/app/models/data/presence-user.data.model.d.ts +1 -0
- package/app/models/data/user-contact.data.model.d.ts +1 -0
- package/app/models/data/user-iam.data.model.d.ts +3 -0
- package/app/models/data/user.data.model.d.ts +1 -0
- package/app/models/element/comment-element.model.d.ts +27 -0
- package/app/models/element/notification-element.model.d.ts +10 -0
- package/app/utils/enums.d.ts +6 -1
- package/models.d.ts +1 -0
- package/package.json +1 -1
- package/velt.js +2 -2
|
@@ -7,6 +7,7 @@ import { PageInfo } from "./page-info.model";
|
|
|
7
7
|
import { TargetElement } from "./target-element.data.model";
|
|
8
8
|
import { TargetTextRange } from "./target-text-range.data.model";
|
|
9
9
|
import { User } from "./user.data.model";
|
|
10
|
+
import { CustomAnnotationDropdownItem } from "./custom-chip-dropdown.data.model";
|
|
10
11
|
export declare class CommentAnnotation {
|
|
11
12
|
/**
|
|
12
13
|
* Unique identifier for the comment pin annotation.
|
|
@@ -160,6 +161,10 @@ export declare class CommentAnnotation {
|
|
|
160
161
|
isPageAnnotation?: boolean;
|
|
161
162
|
targetInlineCommentElementId?: string;
|
|
162
163
|
inlineCommentSectionConfig?: InlineCommentSectionConfig;
|
|
164
|
+
customList?: CustomAnnotationDropdownItem[];
|
|
165
|
+
subscribedUsers?: CommentAnnotationSubscribedUsers;
|
|
166
|
+
unsubscribedUsers?: CommentAnnotationUnsubscribedUsers;
|
|
167
|
+
subscribedGroups?: CommentAnnotationSubscribedGroups;
|
|
163
168
|
}
|
|
164
169
|
export declare class GhostComment {
|
|
165
170
|
targetElement?: TargetElement | null;
|
|
@@ -204,3 +209,20 @@ export declare class InlineCommentSectionConfig {
|
|
|
204
209
|
export declare class ManualCommentAnnotationConfig {
|
|
205
210
|
context?: any;
|
|
206
211
|
}
|
|
212
|
+
export declare class CommentAnnotationSubscribedUsers {
|
|
213
|
+
[userIdHash: string]: {
|
|
214
|
+
user: User;
|
|
215
|
+
type: 'manual' | 'auto';
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
export declare class CommentAnnotationUnsubscribedUsers {
|
|
219
|
+
[userIdHash: string]: {
|
|
220
|
+
user: User;
|
|
221
|
+
type: 'manual' | 'auto';
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
export declare class CommentAnnotationSubscribedGroups {
|
|
225
|
+
[groupId: string]: {
|
|
226
|
+
type: 'manual' | 'auto';
|
|
227
|
+
};
|
|
228
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export type CustomAnnotationDropdownType = 'multi' | 'single';
|
|
2
|
+
export declare class CustomAnnotationDropdownItem {
|
|
3
|
+
id: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class CustomAnnotationDropdownData {
|
|
7
|
+
type: CustomAnnotationDropdownType;
|
|
8
|
+
data: CustomAnnotationDropdownItem[];
|
|
9
|
+
}
|
|
@@ -127,6 +127,20 @@ export declare class Notification {
|
|
|
127
127
|
* Notification body message
|
|
128
128
|
*/
|
|
129
129
|
displayBodyMessage?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Display message template
|
|
132
|
+
*/
|
|
133
|
+
displayHeadlineMessageTemplate?: string;
|
|
134
|
+
/**
|
|
135
|
+
* Display message template data
|
|
136
|
+
*/
|
|
137
|
+
displayHeadlineMessageTemplateData?: {
|
|
138
|
+
actionUser: User;
|
|
139
|
+
recipientUser: User;
|
|
140
|
+
actionMessage: string;
|
|
141
|
+
project: string;
|
|
142
|
+
[key: string]: any;
|
|
143
|
+
};
|
|
130
144
|
/**
|
|
131
145
|
* Is notification for you
|
|
132
146
|
*/
|
|
@@ -143,6 +157,18 @@ export declare class Notification {
|
|
|
143
157
|
* Notification metadata
|
|
144
158
|
*/
|
|
145
159
|
metadata?: NotificationMetadata;
|
|
160
|
+
/**
|
|
161
|
+
* Notification notify users map by email hash
|
|
162
|
+
*/
|
|
163
|
+
notifyUsers?: {
|
|
164
|
+
[email: string]: boolean;
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* Notification notify users map by user id hash
|
|
168
|
+
*/
|
|
169
|
+
notifyUsersByUserId?: {
|
|
170
|
+
[userId: string]: boolean;
|
|
171
|
+
};
|
|
146
172
|
}
|
|
147
173
|
export declare class NotificationMetadata {
|
|
148
174
|
/**
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
import { Observable } from "rxjs";
|
|
3
3
|
import { CommentAnnotation, CommentOnElementConfig, CommentSelectionChangeData, ManualCommentAnnotationConfig } from "../data/comment-annotation.data.model";
|
|
4
4
|
import { CustomCategory, CustomPriority, CustomStatus } from "../data/custom-filter.data.model";
|
|
5
|
+
import { CustomAnnotationDropdownData } from "../data/custom-chip-dropdown.data.model";
|
|
6
|
+
import { AutocompleteData } from "../data/autocomplete.data.model";
|
|
7
|
+
|
|
5
8
|
export { ReactionMap } from '../data/reaction-annotation.data.model';
|
|
6
9
|
export declare class CommentElement {
|
|
7
10
|
/**
|
|
@@ -700,6 +703,18 @@ export declare class CommentElement {
|
|
|
700
703
|
* @param config manual comment annotation config
|
|
701
704
|
*/
|
|
702
705
|
public addManualComment: (config: ManualCommentAnnotationConfig) => void;
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* To add custom list dropdown on comment annotation.
|
|
709
|
+
* @param data custom list data
|
|
710
|
+
*/
|
|
711
|
+
public createCustomListDataOnAnnotation: (data: CustomAnnotationDropdownData) => void;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* To add custom list dropdown on comment.
|
|
715
|
+
* @param data custom list data
|
|
716
|
+
*/
|
|
717
|
+
public createCustomListDataOnComment: (data: AutocompleteData) => void;
|
|
703
718
|
constructor();
|
|
704
719
|
/**
|
|
705
720
|
* Subscribe to comments on the current document.
|
|
@@ -1391,4 +1406,16 @@ export declare class CommentElement {
|
|
|
1391
1406
|
* @param config manual comment annotation config
|
|
1392
1407
|
*/
|
|
1393
1408
|
private _addManualComment;
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* To add custom list dropdown on comment annotation.
|
|
1412
|
+
* @param data custom list data
|
|
1413
|
+
*/
|
|
1414
|
+
private _createCustomListDataOnAnnotation;
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* To add custom list dropdown on comment.
|
|
1418
|
+
* @param data custom list data
|
|
1419
|
+
*/
|
|
1420
|
+
private _createCustomListDataOnComment;
|
|
1394
1421
|
}
|
|
@@ -22,6 +22,11 @@ export declare class NotificationElement {
|
|
|
22
22
|
* To get notifications data
|
|
23
23
|
*/
|
|
24
24
|
getNotificationsData: () => Observable<Notification[]>;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* To set max days for notification history
|
|
28
|
+
*/
|
|
29
|
+
setMaxDays: (days: number) => void;
|
|
25
30
|
constructor();
|
|
26
31
|
|
|
27
32
|
/**
|
|
@@ -43,4 +48,9 @@ export declare class NotificationElement {
|
|
|
43
48
|
* To get notifications data
|
|
44
49
|
*/
|
|
45
50
|
private _getNotificationsData;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* To set max days for notification history
|
|
54
|
+
*/
|
|
55
|
+
private _setMaxDays;
|
|
46
56
|
}
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -8,8 +8,13 @@ export declare enum CommentStatus {
|
|
|
8
8
|
STATUS_CHANGED = "statusChanged",
|
|
9
9
|
PRIORITY_CHANGED = "priorityChanged",
|
|
10
10
|
ACCESS_MODE_CHANGED = "accessModeChanged",
|
|
11
|
+
CUSTOM_LIST_CHANGED = "customListChanged",
|
|
11
12
|
ACCEPTED = "accepted",
|
|
12
|
-
REJECTED = "rejected"
|
|
13
|
+
REJECTED = "rejected",
|
|
14
|
+
REACTION_ADDED = "reactionAdded",
|
|
15
|
+
REACTION_DELETED = "reactionDeleted",
|
|
16
|
+
SUBSCRIBED = "subscribed",
|
|
17
|
+
UNSUBSCRIBED = "unsubscribed"
|
|
13
18
|
}
|
|
14
19
|
export declare enum TagStatus {
|
|
15
20
|
ADDED = "added",
|
package/models.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './app/models/data/config.data.model';
|
|
|
8
8
|
export * from './app/models/data/cursor-position.data.model';
|
|
9
9
|
export * from './app/models/data/cursor-user.data.model';
|
|
10
10
|
export * from './app/models/data/custom-css.data.model';
|
|
11
|
+
export * from './app/models/data/custom-chip-dropdown.data.model';
|
|
11
12
|
export * from './app/models/data/device-info.model';
|
|
12
13
|
export * from './app/models/data/document-iam.data.model';
|
|
13
14
|
export * from './app/models/data/document-metadata.model';
|