@veltdev/sdk 1.0.96 → 1.0.98
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 +1 -1
- package/app/models/data/views.data.model.d.ts +43 -0
- package/app/models/element/comment-element.model.d.ts +24 -0
- package/app/models/element/views-element.model.d.ts +25 -0
- package/app/utils/constants.d.ts +3 -0
- package/app/utils/enums.d.ts +3 -0
- package/models.d.ts +1 -0
- package/package.json +1 -1
- package/types.d.ts +1 -0
- package/velt.js +2 -2
|
@@ -14,6 +14,7 @@ import { PresenceElement } from "../models/element/presence-element.model";
|
|
|
14
14
|
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
|
+
import { ViewsElement } from "../models/element/views-element.model";
|
|
17
18
|
import { TagElement } from "../models/element/tag-element.model";
|
|
18
19
|
import { FeatureType } from "../utils/enums";
|
|
19
20
|
export declare class Snippyly {
|
|
@@ -110,6 +111,10 @@ export declare class Snippyly {
|
|
|
110
111
|
* Get the Arrow Object.
|
|
111
112
|
*/
|
|
112
113
|
getArrowElement: () => ArrowElement;
|
|
114
|
+
/**
|
|
115
|
+
* Get the Views Object.
|
|
116
|
+
*/
|
|
117
|
+
getViewsElement: () => ViewsElement;
|
|
113
118
|
/**
|
|
114
119
|
* To signout a user
|
|
115
120
|
*/
|
|
@@ -11,7 +11,7 @@ export declare class Notification {
|
|
|
11
11
|
/**
|
|
12
12
|
* Source of a notification
|
|
13
13
|
*/
|
|
14
|
-
notificationSource?: 'area' | 'arrow' | 'comment' | 'tag' | 'huddle' | 'userInvite' | 'user' | 'recorder' | 'huddleInvite' | 'userFeedback' | 'userContactUs' | 'userReportBug';
|
|
14
|
+
notificationSource?: 'area' | 'arrow' | 'comment' | 'tag' | 'huddle' | 'userInvite' | 'user' | 'recorder' | 'huddleInvite' | 'userFeedback' | 'userContactUs' | 'userReportBug' | 'documentViews';
|
|
15
15
|
/**
|
|
16
16
|
* Type of notification like 'Added', 'Updated' etc.
|
|
17
17
|
*/
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Location } from "./location.model";
|
|
2
|
+
export declare class Views {
|
|
3
|
+
comment?: {
|
|
4
|
+
[commentAnnotationId: string]: {
|
|
5
|
+
views: {
|
|
6
|
+
[userSnippylyId: string]: View;
|
|
7
|
+
};
|
|
8
|
+
comments: {
|
|
9
|
+
[commentId: string]: {
|
|
10
|
+
views: {
|
|
11
|
+
[userSnippylyId: string]: View;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
documentViews?: {
|
|
18
|
+
[documentId: string]: {
|
|
19
|
+
users: ViewsByUser;
|
|
20
|
+
day: ViewsByDate;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
locationViews?: {
|
|
24
|
+
[locationId: string]: {
|
|
25
|
+
location: Location;
|
|
26
|
+
users: ViewsByUser;
|
|
27
|
+
day: ViewsByDate;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export declare class View {
|
|
32
|
+
timestamp: any;
|
|
33
|
+
}
|
|
34
|
+
export declare class ViewsByDate {
|
|
35
|
+
[date: string]: {
|
|
36
|
+
[userSnippylyId: string]: View;
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
export declare class ViewsByUser {
|
|
40
|
+
[userSnippylyId: string]: {
|
|
41
|
+
[date: string]: View;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
@@ -31,6 +31,18 @@ export declare class CommentElement {
|
|
|
31
31
|
*/
|
|
32
32
|
allowedElementIds: (elementIds: string[]) => any;
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* To allow adding comments in specific elements only
|
|
36
|
+
* @param classNames Element class names to be allowed for adding comments
|
|
37
|
+
*/
|
|
38
|
+
allowedElementClassNames: (classNames: string[]) => any;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* To allow adding comments in specific elements only
|
|
42
|
+
* @param querySelectors Element query selectors to be allowed for adding comments
|
|
43
|
+
*/
|
|
44
|
+
allowedElementQuerySelectors: (querySelectors: string[]) => any;
|
|
45
|
+
|
|
34
46
|
/**
|
|
35
47
|
* To enable floating comment dialog
|
|
36
48
|
*/
|
|
@@ -531,6 +543,18 @@ export declare class CommentElement {
|
|
|
531
543
|
*/
|
|
532
544
|
private _allowedElementIds;
|
|
533
545
|
|
|
546
|
+
/**
|
|
547
|
+
* To allow adding comments in specific elements only
|
|
548
|
+
* @param classNames Element class names to be allowed for adding comments
|
|
549
|
+
*/
|
|
550
|
+
private _allowedElementClassNames;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* To allow adding comments in specific elements only
|
|
554
|
+
* @param querySelectors Element query selectors to be allowed for adding comments
|
|
555
|
+
*/
|
|
556
|
+
private _allowedElementQuerySelectors;
|
|
557
|
+
|
|
534
558
|
/**
|
|
535
559
|
* To enable floating comment dialog
|
|
536
560
|
*/
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
import { ViewsByUser, ViewsByDate } from "../data/views.data.model";
|
|
3
|
+
|
|
4
|
+
export declare class ViewsElement {
|
|
5
|
+
/**
|
|
6
|
+
* To get unique views by user
|
|
7
|
+
*/
|
|
8
|
+
getUniqueViewsByUser: (clientLocationId?: string) => Observable<ViewsByUser>;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* To get unique views by date
|
|
12
|
+
*/
|
|
13
|
+
getUniqueViewsByDate: (clientLocationId?: string) => Observable<ViewsByDate>;
|
|
14
|
+
constructor();
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* To get unique views by user
|
|
18
|
+
*/
|
|
19
|
+
private _getUniqueViewsByUser;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* To get unique views by date
|
|
23
|
+
*/
|
|
24
|
+
private _getUniqueViewsByDate;
|
|
25
|
+
}
|
package/app/utils/constants.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export declare class Constants {
|
|
|
28
28
|
static FIREBASE_PARTIAL_PATH_LIVE_STATE: string;
|
|
29
29
|
static FIREBASE_PARTIAL_PATH_IAM: string;
|
|
30
30
|
static FIREBASE_PARTIAL_PATH_REACTION: string;
|
|
31
|
+
static FIREBASE_PARTIAL_PATH_VIEWS: string;
|
|
31
32
|
static FIREBASE_PARTIAL_PATH_USERS: string;
|
|
32
33
|
static FIREBASE_PARTIAL_PATH_USER_REQUESTS: string;
|
|
33
34
|
static FIREBASE_PARTIAL_PATH_FEEDBACK: string;
|
|
@@ -41,6 +42,7 @@ export declare class Constants {
|
|
|
41
42
|
static IMG_CLASS_NOT_FOUND: string;
|
|
42
43
|
static AVATAR_COLOR_LIST: string[];
|
|
43
44
|
static TEXT_COLOR_MAP: any;
|
|
45
|
+
static UNREAD_COMMENTS_CHECK_FROM_DATE: string;
|
|
44
46
|
static DEFAULT_ANNOTATION_COLOR: string;
|
|
45
47
|
static REGEX_EMAIL: RegExp;
|
|
46
48
|
static REGEX_URL: RegExp;
|
|
@@ -195,6 +197,7 @@ export declare class Constants {
|
|
|
195
197
|
VELT_VIDEO_PLAYER: string;
|
|
196
198
|
VELT_VIDEO_COMMENTS_TIMELINE: string;
|
|
197
199
|
VELT_REACTION_TOOL: string;
|
|
200
|
+
VELT_DOCUMENT_VIEWER_TREND: string;
|
|
198
201
|
};
|
|
199
202
|
static ATTRIBUTES: {
|
|
200
203
|
VELT_ID: string;
|
package/app/utils/enums.d.ts
CHANGED
package/models.d.ts
CHANGED
|
@@ -46,3 +46,4 @@ export * from './app/models/data/workspace-iam.data.model';
|
|
|
46
46
|
export * from './app/models/data/flock-options.model';
|
|
47
47
|
export * from './app/models/data/customer-metadata.data.model';
|
|
48
48
|
export * from './app/models/data/comment-sidebar-config.model';
|
|
49
|
+
export * from './app/models/data/views.data.model';
|
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -11,4 +11,5 @@ export * from './app/models/element/recorder-element.model';
|
|
|
11
11
|
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
|
+
export * from './app/models/element/views-element.model';
|
|
14
15
|
export * from './models';
|