@veltdev/sdk 1.0.108 → 1.0.110
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/client/snippyly.model.d.ts +5 -0
- package/app/models/data/document-paths.data.model.d.ts +1 -0
- package/app/models/data/notification.model.d.ts +62 -3
- package/app/models/data/views.data.model.d.ts +7 -0
- package/app/models/element/notification-element.model.d.ts +46 -0
- package/app/utils/constants.d.ts +4 -0
- package/app/utils/enums.d.ts +3 -2
- package/package.json +1 -1
- package/types.d.ts +1 -0
- package/velt.js +2 -2
|
@@ -15,6 +15,7 @@ import { RecorderElement } from "../models/element/recorder-element.model";
|
|
|
15
15
|
import { RewriterElement } from "../models/element/rewriter-element.model";
|
|
16
16
|
import { SelectionElement } from "../models/element/selection-element.model";
|
|
17
17
|
import { ViewsElement } from "../models/element/views-element.model";
|
|
18
|
+
import { NotificationElement } from "../models/element/notification-element.model";
|
|
18
19
|
import { TagElement } from "../models/element/tag-element.model";
|
|
19
20
|
import { FeatureType } from "../utils/enums";
|
|
20
21
|
export declare class Snippyly {
|
|
@@ -115,6 +116,10 @@ export declare class Snippyly {
|
|
|
115
116
|
* Get the Views Object.
|
|
116
117
|
*/
|
|
117
118
|
getViewsElement: () => ViewsElement;
|
|
119
|
+
/**
|
|
120
|
+
* Get the Notification Object.
|
|
121
|
+
*/
|
|
122
|
+
getNotificationElement: () => NotificationElement;
|
|
118
123
|
/**
|
|
119
124
|
* To signout a user
|
|
120
125
|
*/
|
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
import { AreaStatus, ArrowStatus, CommentStatus, TagStatus, UserActionTypes } from "../../utils/enums";
|
|
2
2
|
import { DocumentMetadata } from "./document-metadata.model";
|
|
3
3
|
import { DocumentUser } from "./document-user.data.model";
|
|
4
|
+
import { Location } from "./location.model";
|
|
4
5
|
import { UserContactUs } from "./user-contact-us.data.model";
|
|
5
6
|
import { UserContact } from "./user-contact.data.model";
|
|
6
7
|
import { UserFeedback } from "./user-feedback.data.model";
|
|
7
8
|
import { UserReportBug } from "./user-report-bug.data.model";
|
|
8
9
|
import { User } from "./user.data.model";
|
|
9
|
-
export declare class
|
|
10
|
+
export declare class NotificationRawData {
|
|
11
|
+
/**
|
|
12
|
+
* Notification ID
|
|
13
|
+
*/
|
|
14
|
+
id?: string;
|
|
10
15
|
actionUser?: User;
|
|
16
|
+
location?: Location;
|
|
17
|
+
locationId?: number;
|
|
18
|
+
timestamp?: number;
|
|
11
19
|
/**
|
|
12
20
|
* Source of a notification
|
|
13
21
|
*/
|
|
14
|
-
notificationSource?: 'area' | 'arrow' | 'comment' | 'tag' | 'huddle' | 'userInvite' | 'user' | 'recorder' | 'huddleInvite' | 'userFeedback' | 'userContactUs' | 'userReportBug' | 'documentViews';
|
|
22
|
+
notificationSource?: 'area' | 'arrow' | 'comment' | 'tag' | 'huddle' | 'userInvite' | 'user' | 'recorder' | 'huddleInvite' | 'userFeedback' | 'userContactUs' | 'userReportBug' | 'documentViews' | 'custom';
|
|
15
23
|
/**
|
|
16
24
|
* Type of notification like 'Added', 'Updated' etc.
|
|
17
25
|
*/
|
|
@@ -35,7 +43,7 @@ export declare class Notification {
|
|
|
35
43
|
documentUser?: DocumentUser;
|
|
36
44
|
oldAccess?: string;
|
|
37
45
|
newAccess?: string;
|
|
38
|
-
platform?: 'sf' | 'sdk';
|
|
46
|
+
platform?: 'sf' | 'sdk' | 'custom';
|
|
39
47
|
userFeedback?: UserFeedback;
|
|
40
48
|
userReportBug?: UserReportBug;
|
|
41
49
|
userContactUs?: UserContactUs;
|
|
@@ -67,4 +75,55 @@ export declare class Notification {
|
|
|
67
75
|
documentViews?: {
|
|
68
76
|
emails: string[];
|
|
69
77
|
};
|
|
78
|
+
displayHeadlineMessageTemplate?: string;
|
|
79
|
+
displayHeadlineMessageTemplateData?: {
|
|
80
|
+
actionUser: User;
|
|
81
|
+
recipientUser: User;
|
|
82
|
+
actionMessage: string;
|
|
83
|
+
project: string;
|
|
84
|
+
[key: string]: any;
|
|
85
|
+
};
|
|
86
|
+
displayBodyMessage?: string;
|
|
87
|
+
customData?: any;
|
|
88
|
+
notifyUsers?: {
|
|
89
|
+
[email: string]: boolean;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
export declare class Notification {
|
|
93
|
+
/**
|
|
94
|
+
* Notification ID
|
|
95
|
+
*/
|
|
96
|
+
id: string;
|
|
97
|
+
/**
|
|
98
|
+
* Notification source
|
|
99
|
+
*/
|
|
100
|
+
notificationSource?: string;
|
|
101
|
+
/**
|
|
102
|
+
* Notification type
|
|
103
|
+
*/
|
|
104
|
+
actionType?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Notification is read or not for the user
|
|
107
|
+
*/
|
|
108
|
+
isUnread?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Action user of the notification
|
|
111
|
+
*/
|
|
112
|
+
actionUser?: User;
|
|
113
|
+
/**
|
|
114
|
+
* Timestamp of the notification
|
|
115
|
+
*/
|
|
116
|
+
timestamp?: number;
|
|
117
|
+
/**
|
|
118
|
+
* Notification headline message
|
|
119
|
+
*/
|
|
120
|
+
displayHeadlineMessage?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Notification body message
|
|
123
|
+
*/
|
|
124
|
+
displayBodyMessage?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Is notification for you
|
|
127
|
+
*/
|
|
128
|
+
forYou?: boolean;
|
|
70
129
|
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
|
|
3
|
+
import { Notification } from "../data/notification.model";
|
|
4
|
+
|
|
5
|
+
export declare class NotificationElement {
|
|
6
|
+
/**
|
|
7
|
+
* To open notification history panel
|
|
8
|
+
*/
|
|
9
|
+
openHistoryPanel: () => void;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* To close notification history panel
|
|
13
|
+
*/
|
|
14
|
+
closeHistoryPanel: () => void;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* To toggle notification history panel
|
|
18
|
+
*/
|
|
19
|
+
toggleHistoryPanel: () => void;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* To get notifications data
|
|
23
|
+
*/
|
|
24
|
+
getNotificationsData: () => Observable<Notification[]>;
|
|
25
|
+
constructor();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* To open notification history panel
|
|
29
|
+
*/
|
|
30
|
+
private _openHistoryPanel;
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* To close notification history panel
|
|
34
|
+
*/
|
|
35
|
+
private _closeHistoryPanel;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* To toggle notification history panel
|
|
39
|
+
*/
|
|
40
|
+
private _toggleHistoryPanel;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* To get notifications data
|
|
44
|
+
*/
|
|
45
|
+
private _getNotificationsData;
|
|
46
|
+
}
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare class Constants {
|
|
|
29
29
|
static FIREBASE_PARTIAL_PATH_IAM: string;
|
|
30
30
|
static FIREBASE_PARTIAL_PATH_REACTION: string;
|
|
31
31
|
static FIREBASE_PARTIAL_PATH_VIEWS: string;
|
|
32
|
+
static FIREBASE_PARTIAL_PATH_NOTIFICATIONS: string;
|
|
32
33
|
static FIREBASE_PARTIAL_PATH_USERS: string;
|
|
33
34
|
static FIREBASE_PARTIAL_PATH_USER_REQUESTS: string;
|
|
34
35
|
static FIREBASE_PARTIAL_PATH_FEEDBACK: string;
|
|
@@ -199,6 +200,9 @@ export declare class Constants {
|
|
|
199
200
|
VELT_VIDEO_COMMENTS_TIMELINE: string;
|
|
200
201
|
VELT_REACTION_TOOL: string;
|
|
201
202
|
VELT_VIEW_ANALYTICS: string;
|
|
203
|
+
VELT_NOTIFICATIONS_TOOL: string;
|
|
204
|
+
VELT_NOTIFICATIONS_PANEL: string;
|
|
205
|
+
VELT_NOTIFICATIONS_HISTORY_PANEL: string;
|
|
202
206
|
};
|
|
203
207
|
static ATTRIBUTES: {
|
|
204
208
|
VELT_ID: string;
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -53,9 +53,10 @@ export declare enum Features {
|
|
|
53
53
|
PRESENCE = "presence",
|
|
54
54
|
TAG = "tag",
|
|
55
55
|
RECORDER = "recorder",
|
|
56
|
-
REWRITER = "rewriter"
|
|
56
|
+
REWRITER = "rewriter",
|
|
57
|
+
LIVE_SELECTION = "liveSelection"
|
|
57
58
|
}
|
|
58
|
-
export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag';
|
|
59
|
+
export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag' | 'liveSelection';
|
|
59
60
|
export declare enum DeviceType {
|
|
60
61
|
DESKTOP = "Desktop",
|
|
61
62
|
MOBILE = "Mobile",
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -12,4 +12,5 @@ export * from './app/models/element/rewriter-element.model';
|
|
|
12
12
|
export * from './app/models/element/selection-element.model';
|
|
13
13
|
export * from './app/models/element/tag-element.model';
|
|
14
14
|
export * from './app/models/element/views-element.model';
|
|
15
|
+
export * from './app/models/element/notification-element.model';
|
|
15
16
|
export * from './models';
|