@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.
@@ -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 recipients act. Note that it is the workflow "level" not the
110
- * recipient's individual index in the list. There may be multiple recipients with the same sequence. Recipients
111
- * with the same sequence number may act independently, in parallel to each other (co-signers), as long as all
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;
@@ -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
  };
@@ -1,6 +1,10 @@
1
- import { IReminder, ITemplate } from './Types';
2
1
  import { VerdocsEndpoint } from '../VerdocsEndpoint';
3
- export declare const createReminder: (endpoint: VerdocsEndpoint, templateId: string, params: any) => Promise<ITemplate>;
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 editReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string) => Promise<IReminder>;
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>;
@@ -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 editReminder = function (endpoint, templateId, reminderId) {
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) {
@@ -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
- * An individual recipient, CC, or other party in a signing flow.
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: string;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.0.24",
3
+ "version": "3.0.26",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",