@veltdev/sdk 1.0.97 → 1.0.99

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
  */
@@ -1,4 +1,4 @@
1
- export declare type StatusType = 'default' | 'ongoing' | 'terminal';
1
+ export type StatusType = 'default' | 'ongoing' | 'terminal';
2
2
  export interface CustomFilter {
3
3
  id: string;
4
4
  color: string;
@@ -1,6 +1,6 @@
1
1
  import { DocumentAccessType } from "../../utils/enums";
2
2
  import { UserIAM } from "./user-iam.data.model";
3
- export declare type DocumentIAMFeatures = {
3
+ export type DocumentIAMFeatures = {
4
4
  all?: {
5
5
  disabled?: boolean;
6
6
  restricted?: boolean;
@@ -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
  */
@@ -1,4 +1,3 @@
1
- /// <reference types="dom-mediacapture-record" />
2
1
  import { Observable } from "rxjs";
3
2
  export declare class RecorderConfig {
4
3
  type: {
@@ -1,3 +1,4 @@
1
+ import { Location } from "./location.model";
1
2
  export declare class Views {
2
3
  comment?: {
3
4
  [commentAnnotationId: string]: {
@@ -13,7 +14,30 @@ export declare class Views {
13
14
  };
14
15
  };
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
+ };
16
30
  }
17
31
  export declare class View {
18
32
  timestamp: any;
19
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
+ }
@@ -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
+ }
@@ -197,6 +197,7 @@ export declare class Constants {
197
197
  VELT_VIDEO_PLAYER: string;
198
198
  VELT_VIDEO_COMMENTS_TIMELINE: string;
199
199
  VELT_REACTION_TOOL: string;
200
+ VELT_DOCUMENT_VIEWER_TREND: string;
200
201
  };
201
202
  static ATTRIBUTES: {
202
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",
@@ -52,7 +55,7 @@ export declare enum Features {
52
55
  RECORDER = "recorder",
53
56
  REWRITER = "rewriter"
54
57
  }
55
- export declare type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag';
58
+ export type FeatureType = 'area' | 'arrow' | 'audioHuddle' | 'comment' | 'cursor' | 'huddle' | 'liveStateSync' | 'presence' | 'recorder' | 'rewriter' | 'tag';
56
59
  export declare enum DeviceType {
57
60
  DESKTOP = "Desktop",
58
61
  MOBILE = "Mobile",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "1.0.97",
3
+ "version": "1.0.99",
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';
package/velt.css CHANGED
@@ -1 +1 @@
1
- html{--velt-base-rem-unit:1}[data-snippyly-element=true],[data-velt-element=true]{font-family:var(--velt-default-font-family)}
1
+ html{--velt-base-rem-unit: 1}*[data-snippyly-element=true],*[data-velt-element=true]{font-family:var(--velt-default-font-family)}