@verdocs/js-sdk 3.0.3 → 3.0.4
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/Envelopes.d.ts +5 -1
- package/Envelopes/Envelopes.js +10 -0
- package/package.json +1 -1
package/Envelopes/Envelopes.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IEnvelope, IEnvelopesSummary, IRecipient, ISigningSession, TEnvelopeUpdateResult, IDocumentFieldSettings } from './Types';
|
|
1
|
+
import { IEnvelope, IEnvelopesSummary, IRecipient, ISigningSession, TEnvelopeUpdateResult, IDocumentFieldSettings, IEnvelopeDocument } from './Types';
|
|
2
2
|
import { ICreateEnvelopeRole, IEnvelopesSearchResult, ISigningSessionRequest } from './Types';
|
|
3
3
|
import { VerdocsEndpoint } from '../VerdocsEndpoint';
|
|
4
4
|
export interface ICreateEnvelopeRequest {
|
|
@@ -76,6 +76,10 @@ export declare const getEnvelopeRecipients: (endpoint: VerdocsEndpoint, envelope
|
|
|
76
76
|
* Get all metadata for an Envelope.
|
|
77
77
|
*/
|
|
78
78
|
export declare const getEnvelope: (endpoint: VerdocsEndpoint, envelopeId: string) => Promise<IEnvelope>;
|
|
79
|
+
/**
|
|
80
|
+
* Get all metadata for an Envelope.
|
|
81
|
+
*/
|
|
82
|
+
export declare const getEnvelopeDocument: (endpoint: VerdocsEndpoint, envelopeId: string, documentId: string) => Promise<IEnvelopeDocument>;
|
|
79
83
|
/**
|
|
80
84
|
* Cancel an Envelope.
|
|
81
85
|
*/
|
package/Envelopes/Envelopes.js
CHANGED
|
@@ -143,6 +143,16 @@ export var getEnvelope = function (endpoint, envelopeId) { return __awaiter(void
|
|
|
143
143
|
.then(function (r) { return r.data; })];
|
|
144
144
|
});
|
|
145
145
|
}); };
|
|
146
|
+
/**
|
|
147
|
+
* Get all metadata for an Envelope.
|
|
148
|
+
*/
|
|
149
|
+
export var getEnvelopeDocument = function (endpoint, envelopeId, documentId) { return __awaiter(void 0, void 0, void 0, function () {
|
|
150
|
+
return __generator(this, function (_a) {
|
|
151
|
+
return [2 /*return*/, endpoint.api //
|
|
152
|
+
.get("/envelopes/".concat(envelopeId, "/envelope_documents/").concat(documentId))
|
|
153
|
+
.then(function (r) { return r.data; })];
|
|
154
|
+
});
|
|
155
|
+
}); };
|
|
146
156
|
/**
|
|
147
157
|
* Cancel an Envelope.
|
|
148
158
|
*/
|