@veltdev/sdk-staging 4.3.0-beta.8 → 4.3.0-beta.9
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/models/data/contact-utils.data.model.d.ts +2 -2
- package/app/models/data/core-events.data.model.d.ts +10 -0
- package/app/models/data/organization-groups.data.model.d.ts +1 -1
- package/app/models/element/recorder-element.model.d.ts +6 -0
- package/app/utils/enums.d.ts +3 -0
- package/package.json +1 -1
- package/velt.js +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { UserGroup } from "./organization-groups.data.model";
|
|
2
2
|
import { User } from "./user.data.model";
|
|
3
3
|
export interface GetContactListResponse {
|
|
4
4
|
organizationUsers?: User[];
|
|
5
5
|
folderUsers?: User[];
|
|
6
6
|
documentUsers?: User[];
|
|
7
|
-
userGroups?:
|
|
7
|
+
userGroups?: UserGroup[];
|
|
8
8
|
updatedContactList?: User[];
|
|
9
9
|
}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
import { CoreEventTypes } from "../../utils/enums";
|
|
2
2
|
import { VeltButtonClickEvent } from "./button.data.model";
|
|
3
|
+
import { User } from "./user.data.model";
|
|
3
4
|
export type CoreEventTypesMap = {
|
|
4
5
|
[CoreEventTypes.VELT_BUTTON_CLICK]: VeltButtonClickEvent;
|
|
6
|
+
[CoreEventTypes.USER_UPDATE]: UserUpdateEvent;
|
|
7
|
+
[CoreEventTypes.DOCUMENT_INIT]: DocumentInitEvent;
|
|
8
|
+
[CoreEventTypes.ERROR]: ErrorEvent;
|
|
9
|
+
};
|
|
10
|
+
export type UserUpdateEvent = User | null;
|
|
11
|
+
export type DocumentInitEvent = boolean | undefined;
|
|
12
|
+
export type ErrorEvent = {
|
|
13
|
+
code: string;
|
|
14
|
+
message?: string;
|
|
5
15
|
};
|
|
@@ -7,6 +7,9 @@ export declare class RecorderElement {
|
|
|
7
7
|
|
|
8
8
|
initRecording: (type: string, panelId?: string) => any;
|
|
9
9
|
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated Use on('recordingDone') method instead
|
|
12
|
+
*/
|
|
10
13
|
onRecordedData: () => Observable<any>;
|
|
11
14
|
|
|
12
15
|
/**
|
|
@@ -64,6 +67,9 @@ export declare class RecorderElement {
|
|
|
64
67
|
|
|
65
68
|
private _initRecording;
|
|
66
69
|
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated Use on('recordingDone') method instead
|
|
72
|
+
*/
|
|
67
73
|
private _onRecordedData;
|
|
68
74
|
|
|
69
75
|
/**
|
package/app/utils/enums.d.ts
CHANGED
|
@@ -60,6 +60,9 @@ export declare const RecorderEventTypes: {
|
|
|
60
60
|
};
|
|
61
61
|
export declare const CoreEventTypes: {
|
|
62
62
|
readonly VELT_BUTTON_CLICK: "veltButtonClick";
|
|
63
|
+
readonly USER_UPDATE: "userUpdate";
|
|
64
|
+
readonly DOCUMENT_INIT: "documentInit";
|
|
65
|
+
readonly ERROR: "error";
|
|
63
66
|
};
|
|
64
67
|
export type CommentEventType = typeof CommentEventTypes[keyof typeof CommentEventTypes];
|
|
65
68
|
export type RecorderEventType = typeof RecorderEventTypes[keyof typeof RecorderEventTypes];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veltdev/sdk-staging",
|
|
3
|
-
"version": "4.3.0-beta.
|
|
3
|
+
"version": "4.3.0-beta.9",
|
|
4
4
|
"description": "Velt is an SDK to add collaborative features to your product within minutes. Example: Comments like Figma, Frame.io, Google docs or sheets, Recording like Loom, Huddles like Slack and much more.",
|
|
5
5
|
"homepage": "https://velt.dev",
|
|
6
6
|
"keywords": [
|