@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.
@@ -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
  */
@@ -96,4 +96,5 @@ export declare class DocumentPaths {
96
96
  liveStateSingleEditorMode?: string;
97
97
  reaction?: string;
98
98
  customerMetadata?: string;
99
+ views?: string;
99
100
  }
@@ -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
+ }
@@ -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;
@@ -39,6 +39,9 @@ export declare enum AreaStatus {
39
39
  UPDATED = "updated",
40
40
  DELETED = "deleted"
41
41
  }
42
+ export declare enum DocumentViewsStatus {
43
+ FIRST_VIEWED = "firstViewed"
44
+ }
42
45
  export declare enum Features {
43
46
  AREA = "area",
44
47
  ARROW = "arrow",
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
4
4
  "description": "",
5
5
  "main": "velt.js",
6
6
  "scripts": {
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';