@veltdev/sdk 4.3.0-beta.4 → 4.3.0-beta.5

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.
@@ -180,4 +180,7 @@ export interface FetchCommentAnnotationsRequest {
180
180
  locationId?: string;
181
181
  documentIds?: string[];
182
182
  folderId?: string;
183
+ resolvedBy?: string;
184
+ userIds?: string[];
185
+ mentionedUserIds?: string[];
183
186
  }
@@ -0,0 +1,9 @@
1
+ import { ClientOrganizationUserGroup } from "./organization-groups.data.model";
2
+ import { User } from "./user.data.model";
3
+ export interface GetContactListResponse {
4
+ organizationUsers?: User[];
5
+ folderUsers?: User[];
6
+ documentUsers?: User[];
7
+ userGroups?: ClientOrganizationUserGroup[];
8
+ updatedContactList?: User[];
9
+ }
@@ -1,3 +1,4 @@
1
+ import { User } from "./user.data.model";
1
2
  export declare class OrganizationUserGroup {
2
3
  metadata: {
3
4
  groupId: string;
@@ -8,3 +9,8 @@ export declare class OrganizationUserGroup {
8
9
  [userIdHash: string]: boolean;
9
10
  };
10
11
  }
12
+ export declare class ClientOrganizationUserGroup {
13
+ groupId: string;
14
+ groupName: string;
15
+ users?: User[];
16
+ }
@@ -1,7 +1,9 @@
1
1
  // @ts-nocheck
2
2
  import { Observable } from "rxjs";
3
- import { SelectedUserContact } from "../data/user-contact.data.model";
4
3
  import { ContactListScopeForOrganizationUsers } from "../../utils/enums";
4
+ import { GetContactListResponse } from "../data/contact-utils.data.model";
5
+ import { SelectedUserContact } from "../data/user-contact.data.model";
6
+
5
7
  export declare class ContactElement {
6
8
  /**
7
9
  * Get if user is part of global contact or not.
@@ -45,6 +47,11 @@ export declare class ContactElement {
45
47
  * @param config {merge: boolean}
46
48
  */
47
49
  public updateContactList: (userContacts: UserContact[], config?: { merge: boolean }) => void;
50
+
51
+ /**
52
+ * Get contact list.
53
+ */
54
+ public getContactList: () => Observable<GetContactListResponse | null>;
48
55
  constructor();
49
56
  /**
50
57
  * Get if user is part of global contact or not.
@@ -88,4 +95,9 @@ export declare class ContactElement {
88
95
  * @param config {merge: boolean}
89
96
  */
90
97
  private _updateContactList;
98
+
99
+ /**
100
+ * Get contact list.
101
+ */
102
+ private _getContactList;
91
103
  }
@@ -174,5 +174,6 @@ export declare enum ContactListScopeForOrganizationUsers {
174
174
  ALL = "all",
175
175
  ORGANIZATION = "organization",
176
176
  ORGANIZATION_USER_GROUP = "organizationUserGroup",
177
- DOCUMENT = "document"
177
+ DOCUMENT = "document",
178
+ FOLDER = "folder"
178
179
  }
package/models.d.ts CHANGED
@@ -10,6 +10,7 @@ export * from './app/models/data/comment-events.data.model';
10
10
  export * from './app/models/data/comment.data.model';
11
11
  export * from './app/models/data/comment-actions.data.model';
12
12
  export * from './app/models/data/comment-utils.data.model';
13
+ export * from './app/models/data/contact-utils.data.model';
13
14
  export * from './app/models/data/config.data.model';
14
15
  export * from './app/models/data/core-events.data.model';
15
16
  export * from './app/models/data/cursor-position.data.model';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veltdev/sdk",
3
- "version": "4.3.0-beta.4",
3
+ "version": "4.3.0-beta.5",
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": [