@veltdev/types 1.0.1

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.
Files changed (63) hide show
  1. package/app/client/snippyly.model.d.ts +141 -0
  2. package/app/client/velt.model.d.ts +5 -0
  3. package/app/models/data/annotation-property.data.model.d.ts +30 -0
  4. package/app/models/data/area-annotation.data.model.d.ts +74 -0
  5. package/app/models/data/attachment.model.d.ts +40 -0
  6. package/app/models/data/chatgpt.data.model.d.ts +10 -0
  7. package/app/models/data/comment-annotation.data.model.d.ts +161 -0
  8. package/app/models/data/comment.data.model.d.ts +71 -0
  9. package/app/models/data/config.data.model.d.ts +45 -0
  10. package/app/models/data/cursor-position.data.model.d.ts +10 -0
  11. package/app/models/data/cursor-user.data.model.d.ts +118 -0
  12. package/app/models/data/custom-filter.data.model.d.ts +26 -0
  13. package/app/models/data/device-info.model.d.ts +75 -0
  14. package/app/models/data/document-iam.data.model.d.ts +14 -0
  15. package/app/models/data/document-metadata.model.d.ts +22 -0
  16. package/app/models/data/document-paths.data.model.d.ts +94 -0
  17. package/app/models/data/document-user.data.model.d.ts +33 -0
  18. package/app/models/data/flock-options.model.d.ts +7 -0
  19. package/app/models/data/huddle.model.d.ts +17 -0
  20. package/app/models/data/live-state-data-map.data.model.d.ts +7 -0
  21. package/app/models/data/live-state-data.data.model.d.ts +11 -0
  22. package/app/models/data/localstorage.data.model.d.ts +4 -0
  23. package/app/models/data/location-metadata.model.d.ts +16 -0
  24. package/app/models/data/location.model.d.ts +15 -0
  25. package/app/models/data/media-preview-config.data.model.d.ts +14 -0
  26. package/app/models/data/notification.model.d.ts +41 -0
  27. package/app/models/data/page-info.model.d.ts +46 -0
  28. package/app/models/data/permission.data.model.d.ts +14 -0
  29. package/app/models/data/presence-user.data.model.d.ts +79 -0
  30. package/app/models/data/recorder-annotation.data.model.d.ts +120 -0
  31. package/app/models/data/recorder.model.d.ts +74 -0
  32. package/app/models/data/rewriter-annotation.data.model.d.ts +62 -0
  33. package/app/models/data/screen-size.data.model.d.ts +14 -0
  34. package/app/models/data/selection.model.d.ts +22 -0
  35. package/app/models/data/tag-annotation.data.model.d.ts +113 -0
  36. package/app/models/data/target-element.data.model.d.ts +18 -0
  37. package/app/models/data/target-text-range.data.model.d.ts +14 -0
  38. package/app/models/data/toast.data.model.d.ts +19 -0
  39. package/app/models/data/transcription.data.model.d.ts +35 -0
  40. package/app/models/data/user-contact-us.data.model.d.ts +3 -0
  41. package/app/models/data/user-contact.data.model.d.ts +29 -0
  42. package/app/models/data/user-feedback.data.model.d.ts +3 -0
  43. package/app/models/data/user-iam.data.model.d.ts +33 -0
  44. package/app/models/data/user-report-bug.data.model.d.ts +3 -0
  45. package/app/models/data/user-request.data.model.d.ts +37 -0
  46. package/app/models/data/user-role.data.model.d.ts +19 -0
  47. package/app/models/data/user.data.model.d.ts +60 -0
  48. package/app/models/data/workspace-iam.data.model.d.ts +14 -0
  49. package/app/models/element/area-element.model.d.ts +51 -0
  50. package/app/models/element/comment-element.model.d.ts +808 -0
  51. package/app/models/element/contact-element.model.d.ts +13 -0
  52. package/app/models/element/cursor-element.model.d.ts +60 -0
  53. package/app/models/element/presence-element.model.d.ts +53 -0
  54. package/app/models/element/recorder-element.model.d.ts +15 -0
  55. package/app/models/element/rewriter-element.model.d.ts +23 -0
  56. package/app/models/element/selection-element.model.d.ts +23 -0
  57. package/app/models/element/tag-element.model.d.ts +68 -0
  58. package/app/utils/constants.d.ts +349 -0
  59. package/app/utils/enums.d.ts +95 -0
  60. package/models.d.ts +44 -0
  61. package/package.json +12 -0
  62. package/types.d.ts +5 -0
  63. package/velt.d.ts +20 -0
@@ -0,0 +1,118 @@
1
+ import { CursorPosition } from "./cursor-position.data.model";
2
+ import { Location } from "./location.model";
3
+ import { PageInfo } from "./page-info.model";
4
+ import { TargetElement } from "./target-element.data.model";
5
+ export declare class CursorUser {
6
+ /**
7
+ * Unique user identifier that you use to identify your user.
8
+ */
9
+ userId: string;
10
+ /**
11
+ * Your user's full name.
12
+ *
13
+ * Default: Random avatar name.
14
+ */
15
+ name?: string;
16
+ /**
17
+ * Your user's email address.
18
+ */
19
+ email?: string;
20
+ /**
21
+ * Your user's display picture URL.
22
+ *
23
+ * Default: Random avatar image.
24
+ */
25
+ photoUrl?: string;
26
+ /**
27
+ * This field is used for the short comment that user can add to their live cursor.
28
+ *
29
+ */
30
+ comment?: string;
31
+ /**
32
+ * User’s live mouse position on the X axis.
33
+ *
34
+ * Auto generated.
35
+ */
36
+ positionX?: number;
37
+ /**
38
+ * User’s live mouse position on the Y axis.
39
+ *
40
+ * Auto generated.
41
+ */
42
+ positionY?: number;
43
+ /**
44
+ * User’s screen width.
45
+ *
46
+ * Auto generated.
47
+ */
48
+ screenWidth?: number;
49
+ /**
50
+ * User’s screen height.
51
+ *
52
+ * Auto generated.
53
+ */
54
+ screenHeight?: number;
55
+ /**
56
+ * User’s screen scroll height.
57
+ *
58
+ * Auto generated.
59
+ */
60
+ screenScrollHeight?: number;
61
+ /**
62
+ * Auto updated when the user has their tab focused, inactive or closed.
63
+ * Values: active, inactive or offline.
64
+ *
65
+ * Auto generated.
66
+ */
67
+ onlineStatus: string;
68
+ /**
69
+ * Auto generated unique user id that is linked with your app's user ID.
70
+ * This is needed by us for internal processing.
71
+ */
72
+ userSnippylyId?: string;
73
+ /**
74
+ * A random color is assigned to the user for the current session.
75
+ * This is the color on the avatar border and live cursor, if these features are enabled.
76
+ */
77
+ color?: string;
78
+ /**
79
+ * Server Timestamp.
80
+ *
81
+ */
82
+ timestamp: any;
83
+ /**
84
+ * User type.
85
+ *
86
+ */
87
+ type?: string;
88
+ selections?: any;
89
+ /**
90
+ * Unique document params id generated from prvoided document params
91
+ * @deprecated `documentParamsId` is deprecated and will be removed in next release, use `locationId` instead.
92
+ */
93
+ documentParamsId?: number | null;
94
+ /**
95
+ * Set document params to identify user on sub document
96
+ * @deprecated `documentParams` is deprecated and will be removed in next release, use `location` instead.
97
+ */
98
+ documentParams?: object | null;
99
+ /**
100
+ * Unique location id generated from prvoided location
101
+ */
102
+ locationId?: number | null;
103
+ /**
104
+ * Set location to identify user on sub document
105
+ */
106
+ location?: Location | null;
107
+ targetElement?: TargetElement | null;
108
+ position?: CursorPosition | null;
109
+ /**
110
+ * Readonly user
111
+ */
112
+ isReadOnly?: boolean;
113
+ /**
114
+ * Anonymous user can only view the comments
115
+ */
116
+ isAnonymous?: boolean;
117
+ pageInfo: PageInfo;
118
+ }
@@ -0,0 +1,26 @@
1
+ export declare type StatusType = 'default' | 'ongoing' | 'terminal';
2
+ export interface CustomFilter {
3
+ id: string;
4
+ color: string;
5
+ name: string;
6
+ }
7
+ export interface CustomPriority extends CustomFilter {
8
+ lightColor?: string;
9
+ }
10
+ export interface CustomStatus extends CustomFilter {
11
+ type: StatusType;
12
+ lightColor?: string;
13
+ svg?: string;
14
+ iconUrl?: string;
15
+ }
16
+ export interface CustomCategory extends CustomFilter {
17
+ }
18
+ export interface CustomCategoryMap {
19
+ [key: string]: CustomCategory;
20
+ }
21
+ export interface CustomStatusMap {
22
+ [key: string]: CustomStatus;
23
+ }
24
+ export interface CustomPriorityMap {
25
+ [key: string]: CustomPriority;
26
+ }
@@ -0,0 +1,75 @@
1
+ export interface IDeviceInfo {
2
+ userAgent?: string;
3
+ browserName?: string;
4
+ browserVersion?: string;
5
+ deviceType?: string;
6
+ osName?: string;
7
+ osVersion?: string;
8
+ screenWidth?: number;
9
+ screenHeight?: number;
10
+ }
11
+ export declare class DeviceInfo {
12
+ /**
13
+ * User’s user agent string.
14
+ */
15
+ userAgent?: string;
16
+ /**
17
+ * User’s browser name.
18
+ */
19
+ browserName?: string;
20
+ /**
21
+ * User’s browser version.
22
+ */
23
+ browserVersion?: string;
24
+ /**
25
+ * User’s device type.
26
+ */
27
+ deviceType?: string;
28
+ /**
29
+ * User’s device orientation.
30
+ */
31
+ orientation?: string;
32
+ /**
33
+ * User’s operating system name.
34
+ */
35
+ osName?: string;
36
+ /**
37
+ * User’s operating system version.
38
+ */
39
+ osVersion?: string;
40
+ /**
41
+ * User’s screen width.
42
+ */
43
+ screenWidth?: number;
44
+ /**
45
+ * User’s screen height.
46
+ */
47
+ screenHeight?: number;
48
+ /**
49
+ * Breakpoints stored with key as breakpoint media query and value as boolean.
50
+ */
51
+ static Breakpoints: {
52
+ [key: string]: boolean;
53
+ };
54
+ /**
55
+ * Orientations stored with key as orientation media query and value as boolean.
56
+ */
57
+ static Orientations: {
58
+ [key: string]: boolean;
59
+ };
60
+ constructor();
61
+ getBrowserName(): string;
62
+ getDeviceType(): string;
63
+ getOrientation(): string;
64
+ getOSName(): string;
65
+ getOSVersion(): string;
66
+ getBrowserVersion(): string;
67
+ getOperaVersion(): string;
68
+ getChromeVersion(): string;
69
+ getSafariVersion(): string;
70
+ getFirefoxVersion(): string;
71
+ getIEVersion(): string;
72
+ getScreenWidth(): number;
73
+ getScreenHeight(): number;
74
+ getDeviceInfo(): IDeviceInfo;
75
+ }
@@ -0,0 +1,14 @@
1
+ import { DocumentAccessType } from "../../utils/enums";
2
+ import { UserIAM } from "./user-iam.data.model";
3
+ export declare class DocumentIAM {
4
+ /**
5
+ * The document access type
6
+ */
7
+ documentAccessType: DocumentAccessType;
8
+ /**
9
+ * Users with access to the document
10
+ */
11
+ users: {
12
+ [userId: string]: UserIAM;
13
+ };
14
+ }
@@ -0,0 +1,22 @@
1
+ import { LocationMetadata } from "./location-metadata.model";
2
+ import { PageInfo } from "./page-info.model";
3
+ export declare class DocumentMetadata {
4
+ /**
5
+ * Unique document id generated from client document id
6
+ */
7
+ documentId?: string;
8
+ /**
9
+ * Document id provided by client
10
+ */
11
+ clientDocumentId?: string | number;
12
+ /**
13
+ * Page metadata
14
+ */
15
+ pageInfo?: PageInfo;
16
+ /**
17
+ *
18
+ */
19
+ locations?: {
20
+ [locationId: number]: LocationMetadata;
21
+ };
22
+ }
@@ -0,0 +1,94 @@
1
+ export declare class DocumentPaths {
2
+ /**
3
+ * The document's unique identifier.
4
+ */
5
+ documentId?: string;
6
+ /**
7
+ * Presence path.
8
+ */
9
+ presence?: string;
10
+ /**
11
+ * Cursor path.
12
+ */
13
+ cursor?: string;
14
+ /**
15
+ * Area path.
16
+ */
17
+ area?: string;
18
+ /**
19
+ * Arrow path.
20
+ */
21
+ arrow?: string;
22
+ /**
23
+ * Comment path.
24
+ */
25
+ comment?: string;
26
+ /**
27
+ * Huddle path.
28
+ */
29
+ audioHuddle?: string;
30
+ /**
31
+ * Document Id provided by the user.
32
+ */
33
+ clientDocumentId?: string;
34
+ /**
35
+ * Group contacts path.
36
+ */
37
+ groupContacts?: string;
38
+ /**
39
+ * Global contacts path.
40
+ */
41
+ globalContacts?: string;
42
+ /**
43
+ * User login path.
44
+ */
45
+ logins?: string;
46
+ /**
47
+ * Selection path.
48
+ */
49
+ selection?: string;
50
+ /**
51
+ * Tag path.
52
+ */
53
+ tag?: string;
54
+ /**
55
+ * Huddle path.
56
+ */
57
+ huddle?: string;
58
+ /**
59
+ * Document metadata path.
60
+ */
61
+ metadata?: string;
62
+ /**
63
+ * Recorder path.
64
+ */
65
+ recorder?: string;
66
+ /**
67
+ * IAM (Identity and Access Management) path.
68
+ */
69
+ iam?: string;
70
+ /**
71
+ * Document IAM (Identity and Access Management) path.
72
+ */
73
+ documentIam?: string;
74
+ /**
75
+ * Document users path.
76
+ */
77
+ users?: string;
78
+ /**
79
+ * User feedback path.
80
+ */
81
+ userFeedback?: string;
82
+ /**
83
+ * User report bugs path.
84
+ */
85
+ userReportBugs?: string;
86
+ /**
87
+ * User contact us path.
88
+ */
89
+ userContactUs?: string;
90
+ /**
91
+ * User follow along path.
92
+ */
93
+ flock?: string;
94
+ }
@@ -0,0 +1,33 @@
1
+ import { UserContact } from "./user-contact.data.model";
2
+ import { UserRole } from "./user-role.data.model";
3
+ import { User } from "./user.data.model";
4
+ export declare class DocumentUser {
5
+ /**
6
+ * The user's id (Email id of the user)
7
+ */
8
+ id: string;
9
+ /**
10
+ * The user's contact details
11
+ */
12
+ user: UserContact;
13
+ /**
14
+ * The user's role in the document
15
+ */
16
+ role: UserRole;
17
+ /**
18
+ * User who invited this user
19
+ */
20
+ invitedBy?: User;
21
+ /**
22
+ * Date when this user was invited
23
+ */
24
+ invitedDate?: any;
25
+ /**
26
+ * User who updated this user
27
+ */
28
+ updatedBy?: User;
29
+ /**
30
+ * Date when this user was updated
31
+ */
32
+ updatedDate?: any;
33
+ }
@@ -0,0 +1,7 @@
1
+ import { PageInfo } from './page-info.model';
2
+ export declare class FlockOptions {
3
+ useHistoryAPI: boolean;
4
+ onNavigate?: (url: PageInfo) => void;
5
+ disableDefaultNavigation: boolean;
6
+ darkMode: boolean;
7
+ }
@@ -0,0 +1,17 @@
1
+ import { User } from "./user.data.model";
2
+ export declare class Attendee extends User {
3
+ state?: {
4
+ audioState: boolean;
5
+ videoState: boolean;
6
+ screenSharingState: boolean;
7
+ };
8
+ timestamp?: number;
9
+ initialHuddleMode?: {
10
+ audioState?: boolean;
11
+ videoState?: boolean;
12
+ screenSharing?: boolean;
13
+ };
14
+ streamMetadata?: any;
15
+ initialHuddleType?: 'audio' | 'video' | 'presentation';
16
+ huddleOnCursorMode?: boolean;
17
+ }
@@ -0,0 +1,7 @@
1
+ import { LiveStateData } from "./live-state-data.data.model";
2
+ export declare class LiveStateDataMap {
3
+ /**
4
+ * Map of all unique LiveStateData set by you on the given document.
5
+ */
6
+ [liveStateDataId: string]: LiveStateData;
7
+ }
@@ -0,0 +1,11 @@
1
+ export declare class LiveStateData {
2
+ /**
3
+ * Unique identifier to identify the state data you are syncing.
4
+ */
5
+ liveStateDataId: string;
6
+ /**
7
+ * The data that you want to be synced across clients on the given document.
8
+ *
9
+ */
10
+ data: string | number | boolean | JSON;
11
+ }
@@ -0,0 +1,4 @@
1
+ import { User } from "./user.data.model";
2
+ export declare class LocalStorageData {
3
+ snippylyAvatar?: User;
4
+ }
@@ -0,0 +1,16 @@
1
+ import { Location } from "./location.model";
2
+ import { PageInfo } from "./page-info.model";
3
+ export declare class LocationMetadata {
4
+ /**
5
+ * Unique location id generated from client location information
6
+ */
7
+ locationId?: number;
8
+ /**
9
+ * Location object provided by a client
10
+ */
11
+ location?: Location | null;
12
+ /**
13
+ * Page metadata
14
+ */
15
+ pageInfo?: PageInfo;
16
+ }
@@ -0,0 +1,15 @@
1
+ export declare class Location {
2
+ /**
3
+ * Name of the location.
4
+ */
5
+ locationName?: string;
6
+ /**
7
+ * Version provided by the user.
8
+ */
9
+ version?: string;
10
+ /**
11
+ * View mode, possible values are 'internal', 'external' and 'all'.
12
+ */
13
+ view?: string;
14
+ [key: string]: any;
15
+ }
@@ -0,0 +1,14 @@
1
+ export declare class MediaPreviewConfig {
2
+ audio?: {
3
+ enabled?: boolean;
4
+ deviceId?: string;
5
+ };
6
+ video?: {
7
+ enabled?: boolean;
8
+ deviceId?: string;
9
+ };
10
+ screen?: {
11
+ enabled?: boolean;
12
+ stream?: MediaStream;
13
+ };
14
+ }
@@ -0,0 +1,41 @@
1
+ import { AreaStatus, ArrowStatus, CommentStatus, TagStatus } from "../../utils/enums";
2
+ import { DocumentMetadata } from "./document-metadata.model";
3
+ import { DocumentUser } from "./document-user.data.model";
4
+ import { UserContactUs } from "./user-contact-us.data.model";
5
+ import { UserContact } from "./user-contact.data.model";
6
+ import { UserFeedback } from "./user-feedback.data.model";
7
+ import { UserReportBug } from "./user-report-bug.data.model";
8
+ import { User } from "./user.data.model";
9
+ export declare class Notification {
10
+ actionUser?: User;
11
+ /**
12
+ * Source of a notification
13
+ */
14
+ notificationSource?: 'area' | 'arrow' | 'comment' | 'tag' | 'huddle' | 'userInvite' | 'recorder' | 'huddleInvite' | 'userFeedback' | 'userContactUs' | 'userReportBug';
15
+ /**
16
+ * Type of notification like 'Added', 'Updated' etc.
17
+ */
18
+ actionType?: AreaStatus | ArrowStatus | CommentStatus | TagStatus;
19
+ /**
20
+ * Annotation object
21
+ */
22
+ annotationData?: any;
23
+ /**
24
+ * Comment object for comment annotation
25
+ */
26
+ targetAnnotationData?: any;
27
+ recordingType?: string;
28
+ huddleType?: string;
29
+ huddleInvitees?: UserContact[];
30
+ oldStatus?: string;
31
+ newStatus?: string;
32
+ metadata?: DocumentMetadata & {
33
+ apiKey?: string;
34
+ } | null;
35
+ documentUser?: DocumentUser;
36
+ oldAccess?: string;
37
+ newAccess?: string;
38
+ userFeedback?: UserFeedback;
39
+ userReportBug?: UserReportBug;
40
+ userContactUs?: UserContactUs;
41
+ }
@@ -0,0 +1,46 @@
1
+ import { IDeviceInfo } from "./device-info.model";
2
+ export declare class PageInfo {
3
+ /**
4
+ * URL of the webpage
5
+ */
6
+ url?: string;
7
+ /**
8
+ * Path of the webpage excluding base url
9
+ */
10
+ path?: string;
11
+ /**
12
+ * Base URL (domain) of a webpage
13
+ */
14
+ baseUrl?: string;
15
+ /**
16
+ * Title of the webpage
17
+ */
18
+ title?: string;
19
+ /**
20
+ * Reference url of a arrow annotation
21
+ */
22
+ arrowUrl?: string;
23
+ /**
24
+ * Reference url of a area annotation
25
+ */
26
+ areaUrl?: string;
27
+ /**
28
+ * Reference url of a comment annotation
29
+ */
30
+ commentUrl?: string;
31
+ /**
32
+ * Reference url of a tag annotation
33
+ */
34
+ tagUrl?: string;
35
+ /**
36
+ * Reference url of a recorder annotation
37
+ */
38
+ recorderUrl?: string;
39
+ /**
40
+ * User’s screen width.
41
+ *
42
+ * Auto generated.
43
+ */
44
+ screenWidth?: number;
45
+ deviceInfo?: IDeviceInfo;
46
+ }
@@ -0,0 +1,14 @@
1
+ export declare class Permission {
2
+ /**
3
+ * Unique id of the permission
4
+ */
5
+ id: string;
6
+ /**
7
+ * Name of the permission
8
+ */
9
+ name: string;
10
+ /**
11
+ * Description of the permission
12
+ */
13
+ description: string;
14
+ }
@@ -0,0 +1,79 @@
1
+ import { Location } from "./location.model";
2
+ import { PageInfo } from "./page-info.model";
3
+ export declare class PresenceUser {
4
+ /**
5
+ * Unique user identifier that you use to identify your user.
6
+ */
7
+ userId: string;
8
+ /**
9
+ * Your user's full name.
10
+ *
11
+ * Default: Random avatar name.
12
+ */
13
+ name?: string;
14
+ /**
15
+ * Your user's email address.
16
+ */
17
+ email?: string;
18
+ /**
19
+ * Your user's display picture URL.
20
+ *
21
+ * Default: Random avatar image.
22
+ */
23
+ photoUrl?: string;
24
+ /**
25
+ * Auto updated when the user has their tab focused, inactive or closed.
26
+ * Values: active, inactive or offline.
27
+ *
28
+ * Auto generated.
29
+ */
30
+ onlineStatus: string;
31
+ /**
32
+ * Auto generated unique user id that is linked with your app's user ID.
33
+ * This is needed by us for internal processing.
34
+ */
35
+ userSnippylyId?: string;
36
+ /**
37
+ * A random color is assigned to the user for the current session.
38
+ * This is the color on the avatar border and live cursor, if these features are enabled.
39
+ */
40
+ color?: string;
41
+ /**
42
+ * Server Timestamp.
43
+ *
44
+ */
45
+ timestamp: any;
46
+ /**
47
+ * User type.
48
+ *
49
+ */
50
+ type?: string;
51
+ selections?: any;
52
+ /**
53
+ * Unique document params id generated from prvoided document params
54
+ * @deprecated `documentParamsId` is deprecated and will be removed in next release, use `locationId` instead.
55
+ */
56
+ documentParamsId?: number | null;
57
+ /**
58
+ * Set document params to identify user on sub document
59
+ * @deprecated `documentParams` is deprecated and will be removed in next release, use `location` instead.
60
+ */
61
+ documentParams?: object | null;
62
+ /**
63
+ * Unique location id generated from prvoided location
64
+ */
65
+ locationId?: number | null;
66
+ /**
67
+ * Set location to identify user on sub document
68
+ */
69
+ location?: Location | null;
70
+ /**
71
+ * Readonly user
72
+ */
73
+ isReadOnly?: boolean;
74
+ /**
75
+ * Anonymous user can only view the comments
76
+ */
77
+ isAnonymous?: boolean;
78
+ pageInfo: PageInfo;
79
+ }