@verdocs/js-sdk
Advanced tools
Comparing version 1.1.10 to 1.1.11
@@ -111,5 +111,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}); }; | ||
// {"name":"textboxP2-0","recipient_role":"Recipient 1","envelope_id":"29b99d0b-8079-4e98-827c-28c375e5ecb7","page":2,"type":"textbox", | ||
// "required":true,"settings":{"x":0,"y":772.0000000000001,"width":150,"height":15,"result":"Text 1","leading":0,"alignment":0,"upperCase":false}, | ||
// "validator":null,"label":null,"prepared":false} | ||
export var updateDocumentField = function (documentId, fieldName, value) { return __awaiter(void 0, void 0, void 0, function () { | ||
@@ -116,0 +113,0 @@ return __generator(this, function (_a) { |
@@ -61,2 +61,14 @@ /** | ||
/** | ||
* Set the auth token used for signing sessions. Separating user from signing auth allows the same endpoint to be | ||
* used for multiple operations, although it is recommended that a separate endpoint be created for each operation. | ||
* | ||
* ```typescript | ||
* import {Endpoint} from '@verdocs/js-sdk/HTTP'; | ||
* | ||
* const endpoint = new Endpoint(); | ||
* endpoint.setSigningAuthorization(accessToken); | ||
* ``` | ||
*/ | ||
setSigningAuthorization(accessToken: string | null): void; | ||
/** | ||
* Set the base URL for API calls. May also be set via the constructor. | ||
@@ -63,0 +75,0 @@ * |
@@ -79,2 +79,21 @@ /** | ||
/** | ||
* Set the auth token used for signing sessions. Separating user from signing auth allows the same endpoint to be | ||
* used for multiple operations, although it is recommended that a separate endpoint be created for each operation. | ||
* | ||
* ```typescript | ||
* import {Endpoint} from '@verdocs/js-sdk/HTTP'; | ||
* | ||
* const endpoint = new Endpoint(); | ||
* endpoint.setSigningAuthorization(accessToken); | ||
* ``` | ||
*/ | ||
VerdocsEndpoint.prototype.setSigningAuthorization = function (accessToken) { | ||
if (accessToken) { | ||
this.api.defaults.headers.signer = "Bearer ".concat(accessToken); | ||
} | ||
else { | ||
delete this.api.defaults.headers.signer; | ||
} | ||
}; | ||
/** | ||
* Set the base URL for API calls. May also be set via the constructor. | ||
@@ -81,0 +100,0 @@ * |
{ | ||
"name": "@verdocs/js-sdk", | ||
"version": "1.1.10", | ||
"version": "1.1.11", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/Verdocs/js-sdk", |
168888
4886