@veltdev/sdk-staging 4.0.0-beta.97 → 4.0.0-beta.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.
@@ -166,7 +166,7 @@ export interface ToggleReactionRequest {
166
166
  };
167
167
  options?: RequestOptions;
168
168
  }
169
- export interface GetCommentAnnotationsRequest {
169
+ export interface FetchCommentAnnotationsRequest {
170
170
  createdAfter?: number;
171
171
  createdBefore?: number;
172
172
  updatedAfter?: number;
@@ -174,8 +174,10 @@ export interface GetCommentAnnotationsRequest {
174
174
  statusIds?: string[];
175
175
  order?: 'asc' | 'desc';
176
176
  pageToken?: string;
177
- groupByDocumentId?: boolean;
178
177
  allDocuments?: boolean;
179
178
  pageSize?: number;
180
- options?: RequestOptions;
179
+ organizationId?: string;
180
+ locationId?: string;
181
+ documentIds?: string[];
182
+ folderId?: string;
181
183
  }
@@ -5,7 +5,9 @@ import { AddAttachmentResponse } from "./comment-actions.data.model";
5
5
  import { CommentAnnotation, UpdateContextConfig } from "./comment-annotation.data.model";
6
6
  import { Comment } from "./comment.data.model";
7
7
  import { CustomPriority, CustomStatus } from "./custom-filter.data.model";
8
+ import { DocumentMetadata } from "./document-metadata.model";
8
9
  import { VeltEventMetadata } from "./event-metadata.data.model";
10
+ import { FolderMetadata } from "./folder-metadata.model";
9
11
  import { Location } from "./location.model";
10
12
  import { ReactionAnnotation } from "./reaction-annotation.data.model";
11
13
  import { RecordedData } from "./recorder.model";
@@ -129,6 +131,17 @@ export interface DeleteCommentAnnotationEvent {
129
131
  export interface GetCommentAnnotationsResponse {
130
132
  data: Record<string, CommentAnnotation[]> | null;
131
133
  }
134
+ export interface FetchCommentAnnotationsResponse extends GetCommentAnnotationsResponse {
135
+ nextPageToken: string;
136
+ }
137
+ export interface FetchDocumentsResponse {
138
+ data: Record<string, DocumentMetadata[]> | null;
139
+ nextPageToken: string;
140
+ }
141
+ export interface FetchFoldersResponse {
142
+ data: Record<string, FolderMetadata[]> | null;
143
+ nextPageToken: string;
144
+ }
132
145
  export interface GetCommentAnnotationsCountResponse {
133
146
  data: Record<string, CommentAnnotationsCount> | null;
134
147
  }
@@ -1,4 +1,3 @@
1
- import { RequestOptions } from "./comment-actions.data.model";
2
1
  import { DocumentMetadata } from "./document-metadata.model";
3
2
  export interface Document {
4
3
  id: string;
@@ -10,11 +9,15 @@ export interface SetDocumentsRequestOptions {
10
9
  allDocuments?: boolean;
11
10
  locationId?: string;
12
11
  }
13
- export interface GetDocumentsRequest {
14
- options?: RequestOptions;
12
+ export interface FetchDocumentsRequest {
13
+ organizationId?: string;
14
+ documentIds?: string[];
15
+ folderId?: string;
16
+ allDocuments?: boolean;
15
17
  }
16
- export interface GetFoldersRequest {
17
- options?: RequestOptions;
18
+ export interface FetchFoldersRequest {
19
+ organizationId?: string;
20
+ folderId?: string;
18
21
  }
19
22
  export interface FolderConfig {
20
23
  folderId?: string;
@@ -0,0 +1,40 @@
1
+ export declare class FolderMetadata {
2
+ folderId?: string;
3
+ /**
4
+ * Velt folder id
5
+ */
6
+ veltFolderId?: string;
7
+ /**
8
+ * Parent folder id
9
+ */
10
+ parentFolderId?: string;
11
+ /**
12
+ * Velt parent folder id
13
+ */
14
+ veltParentFolderId?: string;
15
+ /**
16
+ * Created at
17
+ */
18
+ createdAt?: number;
19
+ /**
20
+ * Last updated
21
+ */
22
+ lastUpdated?: number;
23
+ /**
24
+ * API key
25
+ */
26
+ apiKey?: string;
27
+ /**
28
+ * Organization id
29
+ */
30
+ organizationId?: string;
31
+ /**
32
+ * Client organization id
33
+ */
34
+ clientOrganizationId?: string;
35
+ /**
36
+ * Folder name
37
+ */
38
+ folderName?: string;
39
+ [key: string]: any;
40
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk-staging",
3
- "version": "4.0.0-beta.97",
3
+ "version": "4.0.0-beta.99",
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": [