@verdocs/js-sdk 2.0.1 → 2.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.
- package/VerdocsEndpoint.d.ts +2 -2
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +1 -1
package/VerdocsEndpoint.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import * as Documents from './Documents';
|
|
|
5
5
|
export declare type TEnvironment = 'verdocs' | 'verdocs-stage';
|
|
6
6
|
export declare type TSessionType = 'user' | 'signing';
|
|
7
7
|
export declare type TSession = IActiveSession | ISigningSession | null;
|
|
8
|
-
export declare type
|
|
8
|
+
export declare type TSessionChangedListener = (endpoint: VerdocsEndpoint, session: IActiveSession | ISigningSession | null) => void;
|
|
9
9
|
export interface VerdocsEndpointOptions {
|
|
10
10
|
baseURL?: string;
|
|
11
11
|
timeout?: number;
|
|
@@ -184,7 +184,7 @@ export declare class VerdocsEndpoint {
|
|
|
184
184
|
/**
|
|
185
185
|
* Subscribe to session state change events.
|
|
186
186
|
*/
|
|
187
|
-
onSessionChanged(listener:
|
|
187
|
+
onSessionChanged(listener: TSessionChangedListener): () => void;
|
|
188
188
|
/**
|
|
189
189
|
* Load a persisted session from localStorage. Typically called once after the endpoint is configured when the app
|
|
190
190
|
* or component starts.
|
package/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* - Documents - An individual document to be signed. Documents are created from templates.
|
|
5
5
|
* - HTTP - General support functionality for Verdocs' REST endpoints. Typically not used directly.
|
|
6
6
|
* - Organizations - An Organization is a container for user profiles, templates, documents, billing, and other related objects.
|
|
7
|
+
* - Search - Various methods used to retrieve lists of documents and templtes.
|
|
7
8
|
* - Templates - A template for a document containing a PDF file, metadata for signature fields, and other information.
|
|
8
9
|
* - Users - All operations related to authentication and user-related operations.
|
|
9
10
|
* - Utils - General support functions used by the other modules and exported for convenience.
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
export * as Documents from './Documents';
|
|
14
15
|
export * as Templates from './Templates';
|
|
15
16
|
export * as Organizations from './Organizations';
|
|
17
|
+
export * as Search from './Search';
|
|
16
18
|
export * as Users from './Users';
|
|
17
19
|
export * as Utils from './Utils';
|
|
18
20
|
export * from './VerdocsEndpoint';
|
package/index.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* - Documents - An individual document to be signed. Documents are created from templates.
|
|
5
5
|
* - HTTP - General support functionality for Verdocs' REST endpoints. Typically not used directly.
|
|
6
6
|
* - Organizations - An Organization is a container for user profiles, templates, documents, billing, and other related objects.
|
|
7
|
+
* - Search - Various methods used to retrieve lists of documents and templtes.
|
|
7
8
|
* - Templates - A template for a document containing a PDF file, metadata for signature fields, and other information.
|
|
8
9
|
* - Users - All operations related to authentication and user-related operations.
|
|
9
10
|
* - Utils - General support functions used by the other modules and exported for convenience.
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
export * as Documents from './Documents';
|
|
14
15
|
export * as Templates from './Templates';
|
|
15
16
|
export * as Organizations from './Organizations';
|
|
17
|
+
export * as Search from './Search';
|
|
16
18
|
export * as Users from './Users';
|
|
17
19
|
export * as Utils from './Utils';
|
|
18
20
|
export * from './VerdocsEndpoint';
|