@veltdev/sdk 4.3.0-beta.6 → 4.3.0

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.
@@ -132,7 +132,7 @@ export interface GetCommentAnnotationsResponse {
132
132
  data: Record<string, CommentAnnotation[]> | null;
133
133
  }
134
134
  export interface FetchCommentAnnotationsResponse extends GetCommentAnnotationsResponse {
135
- nextPageToken: string;
135
+ nextPageToken?: string;
136
136
  }
137
137
  export interface GetCommentAnnotationsCountResponse {
138
138
  data: Record<string, CommentAnnotationsCount> | null;
@@ -9,8 +9,8 @@ export declare class OrganizationUserGroup {
9
9
  [userIdHash: string]: boolean;
10
10
  };
11
11
  }
12
- export declare class UserGroup {
12
+ export interface UserGroup {
13
13
  groupId: string;
14
14
  groupName: string;
15
- users?: User[];
15
+ users: User[];
16
16
  }
@@ -197,6 +197,8 @@ declare class RecorderDataAsset {
197
197
  thumbnailUrl?: string;
198
198
  }
199
199
  export declare class RecorderData {
200
+ recorderId: string;
201
+ metadata?: RecorderMetadata;
200
202
  assets: RecorderDataAsset[];
201
203
  transcription: RecorderDataTranscription;
202
204
  }
@@ -206,11 +208,6 @@ export interface RecorderRequestQuery {
206
208
  export interface GetRecordingDataResponse {
207
209
  data: Record<string, RecorderData> | null;
208
210
  }
209
- export interface GetRecordingsResponse {
210
- data: Record<string, RecorderAnnotationData> | null;
211
- }
212
- export declare class RecorderAnnotationData extends RecorderAnnotation {
213
- transcriptionData: RecorderDataTranscription;
214
- assets: RecorderDataAsset[];
211
+ export interface GetRecordingsResponse extends RecorderData {
215
212
  }
216
213
  export {};
@@ -1,14 +1,10 @@
1
- import { RecordedData } from "../../models/data/recorder.model";
2
- import { RecorderAnnotation, RecorderData } from "../../models/data/recorder-annotation.data.model";
1
+ import { RecorderData } from "../../models/data/recorder-annotation.data.model";
3
2
  import { RecorderEventTypes } from "../../utils/enums";
4
- export interface TranscriptionDoneEvent {
5
- data: Record<string, RecorderData> | null;
3
+ export interface TranscriptionDoneEvent extends RecorderData {
6
4
  }
7
- export interface RecordingDoneEvent {
8
- data: Record<string, RecordedData> | null;
5
+ export interface RecordingDoneEvent extends RecorderData {
9
6
  }
10
- export interface RecordingDeleteEvent {
11
- data: Record<string, RecorderAnnotation> | null;
7
+ export interface RecordingDeleteEvent extends RecorderData {
12
8
  }
13
9
  export type RecorderEventTypesMap = {
14
10
  [RecorderEventTypes.TRANSCRIPTION_DONE]: TranscriptionDoneEvent;
@@ -1103,6 +1103,15 @@ export declare class CommentElement {
1103
1103
  */
1104
1104
  public disableSvgAsImg: () => void;
1105
1105
 
1106
+ /**
1107
+ * To enable full expanded
1108
+ */
1109
+ public enableFullExpanded: () => void;
1110
+
1111
+ /**
1112
+ * To disable full expanded
1113
+ */
1114
+ public disableFullExpanded: () => void;
1106
1115
  constructor();
1107
1116
  /**
1108
1117
  * Subscribe to comments on the current document.
@@ -2187,4 +2196,14 @@ export declare class CommentElement {
2187
2196
  * To disable svg as img
2188
2197
  */
2189
2198
  private _disableSvgAsImg;
2190
- }
2199
+
2200
+ /**
2201
+ * To enable full expanded
2202
+ */
2203
+ private _enableFullExpanded;
2204
+
2205
+ /**
2206
+ * To disable full expanded
2207
+ */
2208
+ private _disableFullExpanded;
2209
+ }
@@ -45,7 +45,7 @@ export declare class RecorderElement {
45
45
  public on: <T extends keyof RecorderEventTypesMap>(action: T) => Observable<RecorderEventTypesMap[T]>;
46
46
 
47
47
  /**
48
- * To get recording data by recorder ids
48
+ * @deprecated Use fetchRecordings() method instead
49
49
  */
50
50
  getRecordingData: (query: RecorderRequestQuery) => Promise<GetRecordingDataResponse>;
51
51
 
@@ -62,7 +62,12 @@ export declare class RecorderElement {
62
62
  /**
63
63
  * To get recordings
64
64
  */
65
- getRecordings: (query?: RecorderRequestQuery) => Observable<GetRecordingsResponse>;
65
+ getRecordings: (query?: RecorderRequestQuery) => Observable<GetRecordingsResponse[]>;
66
+
67
+ /**
68
+ * To fetch recordings
69
+ */
70
+ fetchRecordings: (query: RecorderRequestQuery) => Promise<GetRecordingsResponse[]>;
66
71
 
67
72
  constructor();
68
73
 
@@ -123,4 +128,9 @@ export declare class RecorderElement {
123
128
  * To get recordings
124
129
  */
125
130
  private _getRecordings;
131
+
132
+ /**
133
+ * To fetch recordings
134
+ */
135
+ private _fetchRecordings;
126
136
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.3.0-beta.6",
3
+ "version": "4.3.0",
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": [