@verdocs/js-sdk 3.6.5 → 3.6.7

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.
@@ -69,6 +69,8 @@ export interface IEnvelopeSearchParams {
69
69
  recipient_name?: string;
70
70
  /** At least one of the envelope's recipients must match the specified email address. */
71
71
  recipient_email?: string;
72
+ /** Match against envelope_name, recipient_name, or recipient_email all at once. */
73
+ name?: string;
72
74
  /** At least one of the envelope's recipients must match the specified ID. */
73
75
  recipient_id?: string;
74
76
  /** The date-range in which the envelope was created. Values should be specified in ISO8601 "UTC" format. */
@@ -0,0 +1,23 @@
1
+ import { VerdocsEndpoint } from '../VerdocsEndpoint';
2
+ import { IReminder } from '../Templates/Types';
3
+ export interface ICreateEnvelopeReminderRequest {
4
+ setup_time: number;
5
+ interval_time: number;
6
+ }
7
+ /**
8
+ * Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
9
+ * should be sent. interval_time is the number of days between reminders.
10
+ */
11
+ export declare const createReminder: (endpoint: VerdocsEndpoint, envelopeId: string, params: ICreateEnvelopeReminderRequest) => Promise<IReminder>;
12
+ /**
13
+ * Get the reminder configuration for an envelope.
14
+ */
15
+ export declare const getReminder: (endpoint: VerdocsEndpoint, envelopeId: string, reminderId: string) => Promise<IReminder>;
16
+ /**
17
+ * Update the reminder configuration for an envelope.
18
+ */
19
+ export declare const updateReminder: (endpoint: VerdocsEndpoint, envelopeId: string, reminderId: string, params: ICreateEnvelopeReminderRequest) => Promise<IReminder>;
20
+ /**
21
+ * Delete the reminder configuration for an envelope.
22
+ */
23
+ export declare const deleteReminder: (endpoint: VerdocsEndpoint, envelopeId: string, reminderId: string) => Promise<any>;
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
3
+ * should be sent. interval_time is the number of days between reminders.
4
+ */
5
+ export var createReminder = function (endpoint, envelopeId, params) {
6
+ return endpoint.api //
7
+ .post("/envelopes/".concat(envelopeId, "/reminder/"), params)
8
+ .then(function (r) { return r.data; });
9
+ };
10
+ /**
11
+ * Get the reminder configuration for an envelope.
12
+ */
13
+ export var getReminder = function (endpoint, envelopeId, reminderId) {
14
+ return endpoint.api //
15
+ .get("/envelopes/".concat(envelopeId, "/reminder/").concat(reminderId))
16
+ .then(function (r) { return r.data; });
17
+ };
18
+ /**
19
+ * Update the reminder configuration for an envelope.
20
+ */
21
+ export var updateReminder = function (endpoint, envelopeId, reminderId, params) {
22
+ return endpoint.api //
23
+ .put("/envelopes/".concat(envelopeId, "/reminder/").concat(reminderId), params)
24
+ .then(function (r) { return r.data; });
25
+ };
26
+ /**
27
+ * Delete the reminder configuration for an envelope.
28
+ */
29
+ export var deleteReminder = function (endpoint, envelopeId, reminderId) {
30
+ return endpoint.api //
31
+ .delete("/envelopes/".concat(envelopeId, "/reminder/").concat(reminderId))
32
+ .then(function (r) { return r.data; });
33
+ };
@@ -1,6 +1,7 @@
1
1
  export * as Envelopes from './Envelopes';
2
2
  export * as Permissions from './Permissions';
3
3
  export * as Recipients from './Recipients';
4
+ export * as Reminders from './Reminders';
4
5
  export * as Signatures from './Signatures';
5
6
  export * as Initials from './Initials';
6
7
  export * as Types from './Types';
@@ -1,6 +1,7 @@
1
1
  export * as Envelopes from './Envelopes';
2
2
  export * as Permissions from './Permissions';
3
3
  export * as Recipients from './Recipients';
4
+ export * as Reminders from './Reminders';
4
5
  export * as Signatures from './Signatures';
5
6
  export * as Initials from './Initials';
6
7
  export * as Types from './Types';
@@ -4,7 +4,20 @@ export interface ICreateTemplateReminderRequest {
4
4
  setup_time: number;
5
5
  interval_time: number;
6
6
  }
7
+ /**
8
+ * Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
9
+ * should be sent. interval_time is the number of days between reminders.
10
+ */
7
11
  export declare const createReminder: (endpoint: VerdocsEndpoint, templateId: string, params: ICreateTemplateReminderRequest) => Promise<ITemplate>;
12
+ /**
13
+ * Get the reminder configuration for a template.
14
+ */
8
15
  export declare const getReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string) => Promise<IReminder>;
16
+ /**
17
+ * Update the reminder configuration for a template.
18
+ */
9
19
  export declare const updateReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string, params: ICreateTemplateReminderRequest) => Promise<IReminder>;
20
+ /**
21
+ * Delete the reminder configuration for a template.
22
+ */
10
23
  export declare const deleteReminder: (endpoint: VerdocsEndpoint, templateId: string, reminderId: string) => Promise<any>;
@@ -1,18 +1,31 @@
1
+ /**
2
+ * Enable automatic reminders. setup_time is the number of days after the envelope is sent that the first reminder
3
+ * should be sent. interval_time is the number of days between reminders.
4
+ */
1
5
  export var createReminder = function (endpoint, templateId, params) {
2
6
  return endpoint.api //
3
7
  .post("/templates/".concat(templateId, "/reminder/"), params)
4
8
  .then(function (r) { return r.data; });
5
9
  };
10
+ /**
11
+ * Get the reminder configuration for a template.
12
+ */
6
13
  export var getReminder = function (endpoint, templateId, reminderId) {
7
14
  return endpoint.api //
8
15
  .get("/templates/".concat(templateId, "/reminder/").concat(reminderId))
9
16
  .then(function (r) { return r.data; });
10
17
  };
18
+ /**
19
+ * Update the reminder configuration for a template.
20
+ */
11
21
  export var updateReminder = function (endpoint, templateId, reminderId, params) {
12
22
  return endpoint.api //
13
23
  .put("/templates/".concat(templateId, "/reminder/").concat(reminderId), params)
14
24
  .then(function (r) { return r.data; });
15
25
  };
26
+ /**
27
+ * Delete the reminder configuration for a template.
28
+ */
16
29
  export var deleteReminder = function (endpoint, templateId, reminderId) {
17
30
  return endpoint.api //
18
31
  .delete("/templates/".concat(templateId, "/reminder/").concat(reminderId))
@@ -142,6 +142,7 @@ export interface ISearchTimeRange {
142
142
  start_time: string;
143
143
  end_time: string;
144
144
  }
145
+ export type IGetTemplateSummarySortBy = 'created_at' | 'updated_at' | 'name' | 'last_used_at' | 'counter' | 'star_counter';
145
146
  export interface IGetTemplateSummaryParams {
146
147
  id?: string;
147
148
  name?: string;
@@ -154,7 +155,7 @@ export interface IGetTemplateSummaryParams {
154
155
  last_used_at?: ISearchTimeRange;
155
156
  is_personal?: boolean;
156
157
  is_public?: boolean;
157
- sort_by?: 'created_at' | 'updated_at' | 'name' | 'last_used_at' | 'counter' | 'star_counter';
158
+ sort_by?: IGetTemplateSummarySortBy;
158
159
  ascending?: boolean;
159
160
  row?: number;
160
161
  page?: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.6.5",
3
+ "version": "3.6.7",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",