@verdocs/js-sdk 2.0.9 → 2.0.10

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.
@@ -8,9 +8,17 @@ export declare type TRecipientType = 'signer' | 'cc' | 'approver';
8
8
  export interface IDocumentsSearchResultEntry {
9
9
  id: string;
10
10
  canceled_at: string;
11
+ certificate_document_id: string;
11
12
  created_at: string;
13
+ envelope_document_id: string;
14
+ histories: IHistory[];
15
+ indexed_at: string;
12
16
  name: string;
17
+ no_contact: boolean;
18
+ organization_id: string;
13
19
  profile_id: string;
20
+ recipients: string;
21
+ reminder_id: string | null;
14
22
  status: TDocumentStatus;
15
23
  next_recipient: {
16
24
  claimed: boolean;
@@ -28,7 +28,7 @@ export declare const getGroups: (endpoint: VerdocsEndpoint, organizationId: stri
28
28
  * const groups = await Groups.getGroups(ORGID);
29
29
  * ```
30
30
  */
31
- export declare const getGroupByName: (endpoint: VerdocsEndpoint, organizationId: string, name?: string) => Promise<IGroup>;
31
+ export declare const getGroupByName: (endpoint: VerdocsEndpoint, organizationId: string, name?: string) => Promise<IGroupDetail>;
32
32
  /**
33
33
  * Get the details for a group.
34
34
  *
@@ -51,8 +51,25 @@ export interface IGroup {
51
51
  /** Some operations will additionally return a list of profiles. */
52
52
  profiles?: IProfile[];
53
53
  }
54
- export interface IGroupDetail extends IGroup {
55
- permissions: TPermission[];
56
- roles: TRole[];
54
+ export interface IPermissionDetail {
55
+ id: string;
56
+ name: string;
57
+ client_id: string;
58
+ }
59
+ export interface IRoleDetail {
60
+ id: string;
61
+ name: string;
62
+ client_id: string;
63
+ }
64
+ export interface IGroupDetail {
65
+ id: string;
66
+ name: string;
67
+ organization_id: string;
68
+ permissions: IPermissionDetail[];
69
+ roles: IRoleDetail[];
57
70
  profiles: IProfile[];
71
+ /** For future expansion. In the future, Verdocs may support group hierarchies. Until then this field is always null. */
72
+ parent: IGroup | null;
73
+ /** For future expansion. In the future, Verdocs may support group hierarchies. Until then this field is always null. */
74
+ parent_id: string | null;
58
75
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "2.0.9",
3
+ "version": "2.0.10",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",