@veltdev/sdk 1.0.97 → 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/notification.model.d.ts +1 -1
- package/app/models/data/views.data.model.d.ts +24 -0
- package/app/models/element/views-element.model.d.ts +25 -0
- package/app/utils/constants.d.ts +1 -0
- package/app/utils/enums.d.ts +3 -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
|
*/
|
|
@@ -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
|
+
}
|
package/app/utils/constants.d.ts
CHANGED
package/app/utils/enums.d.ts
CHANGED
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';
|