@verdocs/js-sdk 2.0.18 → 2.0.20
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,7 +8,7 @@ export interface IUpdateRecipientParams {
|
|
|
8
8
|
/**
|
|
9
9
|
* Update a recipient's status block
|
|
10
10
|
*/
|
|
11
|
-
export declare const updateRecipientStatus: (endpoint: VerdocsEndpoint, documentId: string, roleName: string, action: TRecipientAction, params?: IUpdateRecipientParams
|
|
11
|
+
export declare const updateRecipientStatus: (endpoint: VerdocsEndpoint, documentId: string, roleName: string, action: TRecipientAction, params?: IUpdateRecipientParams) => Promise<IRecipient>;
|
|
12
12
|
export interface ISignerTokenResponse {
|
|
13
13
|
recipient: IRecipient;
|
|
14
14
|
envelope: IDocument;
|
|
@@ -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
|
|
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
|
*
|
package/Templates/Templates.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export interface IGetTemplatesParams {
|
|
|
23
23
|
* await Templates.getTemplates({ is_organization: true });
|
|
24
24
|
* ```
|
|
25
25
|
*/
|
|
26
|
-
export declare const getTemplates: (endpoint: VerdocsEndpoint, params?: IGetTemplatesParams
|
|
26
|
+
export declare const getTemplates: (endpoint: VerdocsEndpoint, params?: IGetTemplatesParams) => Promise<ITemplate[]>;
|
|
27
27
|
/**
|
|
28
28
|
* Get one template by its ID.
|
|
29
29
|
*
|
package/Templates/Templates.js
CHANGED
|
@@ -54,7 +54,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
54
54
|
*/
|
|
55
55
|
export var getTemplates = function (endpoint, params) {
|
|
56
56
|
return endpoint.api //
|
|
57
|
-
.
|
|
57
|
+
.post('/templates', { params: params })
|
|
58
58
|
.then(function (r) { return r.data; });
|
|
59
59
|
};
|
|
60
60
|
/**
|