@verdocs/js-sdk 3.0.1 → 3.0.2

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.
@@ -1,4 +1,5 @@
1
1
  import { IProfile } from '../Users/Types';
2
+ import { IPage } from '../Templates/Types';
2
3
  export declare type TRecipientAction = 'submit' | 'decline' | 'prepare' | 'update';
3
4
  export interface ISigningSessionRequest {
4
5
  envelopeId: string;
@@ -34,6 +35,10 @@ export interface IInPersonAccessKey {
34
35
  export declare type TEnvelopeStatus = 'complete' | 'pending' | 'in progress' | 'declined' | 'canceled';
35
36
  export declare type TRecipientStatus = 'invited' | 'opened' | 'signed' | 'submitted' | 'canceled' | 'pending' | 'declined';
36
37
  export declare type TRecipientType = 'signer' | 'cc' | 'approver';
38
+ /**
39
+ * One entry in an envelope search result.
40
+ * NOTE: Many of the fields here are undefined unless "summary=true" is included in the search terms
41
+ */
37
42
  export interface IEnvelopesSearchResultEntry {
38
43
  id: string;
39
44
  canceled_at: string;
@@ -119,6 +124,7 @@ export interface IEnvelopeDocument {
119
124
  page_numbers: number;
120
125
  updated_at: string;
121
126
  url: string;
127
+ pages?: IPage[];
122
128
  }
123
129
  export interface IDocumentFieldOptions {
124
130
  /** The unique ID of the field */
@@ -162,6 +162,7 @@ export interface ITemplateDocument {
162
162
  template_id: string;
163
163
  mime: string;
164
164
  thumbnail_url: string;
165
+ pages?: IPage[];
165
166
  }
166
167
  export interface ITemplateField {
167
168
  name: string;
@@ -189,10 +190,20 @@ export interface ITemplateFieldSetting {
189
190
  export interface IPage {
190
191
  template_id: string;
191
192
  document_id: string;
193
+ /** Note: Page numbers are 1-based */
192
194
  sequence: number;
195
+ /** @deprecated. New code should use `sequence` */
193
196
  page_number: number;
194
197
  thumbnail_url: string;
198
+ /**
199
+ * The storage location for the page once rendered server-side. This can be used to determine whether a page has
200
+ * finished rendering, but cannot be accessed directly - client applications should use display_uri instead.
201
+ */
195
202
  image_uri?: string | null;
203
+ /**
204
+ * If the page was rendered server-side and the caller has access to view it, this will contain the signed URI
205
+ * to access it. Note that these URIs include short expirations and should never be cached.
206
+ */
196
207
  display_uri?: string | null;
197
208
  template_document?: ITemplateDocument;
198
209
  fields?: ITemplateField[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",