@verdocs/js-sdk 3.0.24 → 3.0.26
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.
- package/Envelopes/Types.d.ts +9 -4
- package/Templates/Fields.js +0 -1
- package/Templates/Reminders.d.ts +7 -3
- package/Templates/Reminders.js +2 -2
- package/Templates/Types.d.ts +17 -2
- package/package.json +1 -1
package/Envelopes/Types.d.ts
CHANGED
|
@@ -106,12 +106,17 @@ export interface IRecipient {
|
|
|
106
106
|
profile_id: string;
|
|
107
107
|
role_name: string;
|
|
108
108
|
/**
|
|
109
|
-
* The sequence number indicates the order in which
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
* Recipients with an earlier sequence number have completed their tasks.
|
|
109
|
+
* The sequence number indicates the order in which Recipients act. Multiple recipients may have the same sequence
|
|
110
|
+
* number, in which case they may act in parallel. (e.g. all Recipients at sequence 2 will receive invites once
|
|
111
|
+
* all Recipients at sequence 1 have signed.)
|
|
113
112
|
*/
|
|
114
113
|
sequence: number;
|
|
114
|
+
/**
|
|
115
|
+
* The order indicates the order in which recipients are listed in a single "level" of the workflow. Note that
|
|
116
|
+
* recipients at the same level may act in parallel despite this value. However, it can often be useful to visually
|
|
117
|
+
* arrange recipients to match related business processes so this field allows for that.
|
|
118
|
+
*/
|
|
119
|
+
order: number;
|
|
115
120
|
status: TRecipientStatus;
|
|
116
121
|
type: TRecipientType;
|
|
117
122
|
updated_at: string;
|
package/Templates/Fields.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export var createField = function (endpoint, templateId, params) {
|
|
5
5
|
return endpoint.api //
|
|
6
|
-
// curl -X POST 'https://api.verdocs.com/templates/d2338742-f3a1-465b-8592-806587413cc1/fields' \
|
|
7
6
|
.post("/templates/".concat(templateId, "/fields"), params)
|
|
8
7
|
.then(function (r) { return r.data; });
|
|
9
8
|
};
|
package/Templates/Reminders.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
import { IReminder, ITemplate } from './Types';
|
|
2
1
|
import { VerdocsEndpoint } from '../VerdocsEndpoint';
|
|
3
|
-
|
|
2
|
+
import { IReminder, ITemplate } from './Types';
|
|
3
|
+
export interface ICreateTemplateReminderRequest {
|
|
4
|
+
setup_time: number;
|
|
5
|
+
interval_time: number;
|
|
6
|
+
}
|
|
7
|
+
export declare const createReminder: (endpoint: VerdocsEndpoint, templateId: string, params: ICreateTemplateReminderRequest) => Promise<ITemplate>;
|
|
4
8
|
export declare const getReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string) => Promise<IReminder>;
|
|
5
|
-
export declare const
|
|
9
|
+
export declare const updateReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string, params: ICreateTemplateReminderRequest) => Promise<IReminder>;
|
|
6
10
|
export declare const deleteReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string) => Promise<any>;
|
package/Templates/Reminders.js
CHANGED
|
@@ -8,9 +8,9 @@ export var getReminder = function (endpoint, templateId, reminderId) {
|
|
|
8
8
|
.get("/templates/".concat(templateId, "/reminder/").concat(reminderId))
|
|
9
9
|
.then(function (r) { return r.data; });
|
|
10
10
|
};
|
|
11
|
-
export var
|
|
11
|
+
export var updateReminder = function (endpoint, templateId, reminderId, params) {
|
|
12
12
|
return endpoint.api //
|
|
13
|
-
.put("/templates/".concat(templateId, "/reminder/").concat(reminderId))
|
|
13
|
+
.put("/templates/".concat(templateId, "/reminder/").concat(reminderId), params)
|
|
14
14
|
.then(function (r) { return r.data; });
|
|
15
15
|
};
|
|
16
16
|
export var deleteReminder = function (endpoint, templateId, reminderId) {
|
package/Templates/Types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { IOrganization } from '../Organizations/Types';
|
|
2
|
+
import { TRecipientType } from '../Envelopes/Types';
|
|
2
3
|
/**
|
|
3
4
|
* A reusable template for creating signable instruments. Templates are used to create Envelopes which contain
|
|
4
5
|
* Documents to sign.
|
|
@@ -201,15 +202,29 @@ export interface IStar {
|
|
|
201
202
|
profile_id: string;
|
|
202
203
|
}
|
|
203
204
|
/**
|
|
204
|
-
*
|
|
205
|
+
* A placeholder for an individual recipient, CC, or other party in a signing flow. Roles may be "known" or "unknown."
|
|
206
|
+
* "Known" roles will have their email address supplied in the template which will get copied to envelopes created from
|
|
207
|
+
* it. This is used when a certain party will always be the same, e.g. a leasing agent counter-signing a lease.
|
|
208
|
+
* "Unknown" roles are dynamic, and will be filled in later when the envelope is created.
|
|
205
209
|
*/
|
|
206
210
|
export interface IRole {
|
|
207
211
|
template_id: string;
|
|
208
212
|
name: string;
|
|
209
213
|
full_name?: string;
|
|
210
214
|
email?: string;
|
|
211
|
-
type:
|
|
215
|
+
type: TRecipientType;
|
|
216
|
+
/**
|
|
217
|
+
* The sequence number indicates the order in which Roles act. Multiple roles may have the same sequence
|
|
218
|
+
* number, in which case they may act in parallel. (e.g. all Roles at sequence 2 will receive invites once
|
|
219
|
+
* all Recipients at sequence 1 have signed.)
|
|
220
|
+
*/
|
|
212
221
|
sequence: number;
|
|
222
|
+
/**
|
|
223
|
+
* The order indicates the order in which recipients are listed in a single "level" of the workflow. Note that
|
|
224
|
+
* recipients at the same level may act in parallel despite this value. However, it can often be useful to visually
|
|
225
|
+
* arrange recipients to match related business processes so this field allows for that.
|
|
226
|
+
*/
|
|
227
|
+
order: number;
|
|
213
228
|
fields?: ITemplateField[];
|
|
214
229
|
delegator?: boolean;
|
|
215
230
|
message?: string;
|