Skip to content

Commit 93ac807

Browse files
author
acooper4960
authored
Merge pull request #131 from docusign/v4.3.0-rc1
V4.3.0 rc1
2 parents 8c29884 + 8440236 commit 93ac807

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1689
-33
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@
22

33
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
44

5+
## [v4.3.0] - eSignature API v19.1.02
6+
### Changed
7+
- The SDK now supports version 19.1.02 of the DocuSign eSignature API.
8+
- SDK Release Version updated.
9+
### Added
10+
- Cache-control and Pragma headers to the oAuth calls. (DCM-2244)
11+
- *tabGroupLabels* field to all Tabs models
12+
- Witnesses field to all Recipients models
13+
- Models for Smart Sections feature
14+
- Initial support of HMAC to DocuSign Connect
15+
### Fixed
16+
- A bug where API response for 'moveEnvelopes' was improperly documented as a non-undefined value. (DCM-3085)
17+
- A bug where dateTabs and numberTabs were not being able to be initialized by the docusign.Tabs object. (DCM-3226)
18+
519
##[v4.2.2] eSignature API v18.4.02
620
### Added
721
- Support for the **latest DocuSign API** (18.4.02.00).

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docusign-esign",
3-
"version": "4.2.2",
3+
"version": "4.3.0",
44
"description": "DocuSign Node.js API client.",
55
"license": "MIT",
66
"main": "src/index.js",
@@ -52,7 +52,6 @@
5252
},
5353
"dependencies": {
5454
"csv-stringify": "^1.0.0",
55-
"express": "^4.16.4",
5655
"jsonwebtoken": "8.2.0",
5756
"passport-oauth2": "1.4.0",
5857
"superagent": "3.8.2"

src/ApiClient.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
var request = superagent.post("https://" + oAuthBasePath + "/oauth/token")
6767
.timeout(exports.prototype.timeout)
6868
.set('Content-Type', 'application/x-www-form-urlencoded')
69+
.set('Cache-Control', 'no-store')
70+
.set('Pragma', 'no-cache')
6971
.send({
7072
'assertion': assertion,
7173
'grant_type': 'urn:ietf:params:oauth:grant-type:jwt-bearer'
@@ -99,6 +101,7 @@
99101
if (basePath.includes('https://www.docusign')) {
100102
return exports.prototype.OAuth.BasePath.PRODUCTION;
101103
}
104+
return exports.prototype.OAuth.BasePath.PRODUCTION;
102105
};
103106

104107
/**
@@ -724,6 +727,8 @@
724727
},
725728
headers = {
726729
"Authorization": "Basic " + (new Buffer(clientString).toString('base64')),
730+
"Cache-Control": "no-store",
731+
"Pragma": "no-cache"
727732
},
728733
OAuthToken = require('./OAuth').OAuthToken,
729734
request = superagent.post("https://" + this.getOAuthBasePath() + "/oauth/token")
@@ -763,6 +768,8 @@
763768

764769
var headers = {
765770
"Authorization": "Bearer " + accessToken,
771+
"Cache-Control": "no-store",
772+
"Pragma": "no-cache"
766773
}
767774

768775
var request = superagent.get("https://" + this.getOAuthBasePath() + "/oauth/userinfo").set(headers);
@@ -848,6 +855,8 @@
848855
superagent('post', 'https://' + this.getOAuthBasePath() + '/oauth/token')
849856
.timeout(this.timeout)
850857
.set('Content-Type', 'application/x-www-form-urlencoded')
858+
.set('Cache-Control', 'no-store')
859+
.set('Pragma', 'no-cache')
851860
.send({
852861
'assertion': assertion,
853862
'grant_type': 'urn:ietf:params:oauth:grant-type:jwt-bearer'

src/api/BulkEnvelopesApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ After using this, the `bulkRecipientsUri` property is not returned in subsequent
135135
* @param {String} batchId
136136
* @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely.
137137
* @param {String} optsOrCallback.count Specifies the number of entries to return.
138-
* @param {String} optsOrCallback.include Specifies which entries are included in the response. Multiple entries can be included by using commas in the query string (example: ?include=\"failed,queued\") Valid values are: * all - Returns all entries. If present, overrides all other query settings. This is the default if no query string is provided. * failed - This only returns entries with a failed status. * queued - This only returns entries with a queued status. * sent - This only returns entries with a sent status.
138+
* @param {String} optsOrCallback.include Specifies which entries are included in the response. Multiple entries can be included by using commas in the query string (example: ?include=”failed,queued”) Valid values are: * all - Returns all entries. If present, overrides all other query settings. This is the default if no query string is provided. * failed - This only returns entries with a failed status. * queued - This only returns entries with a queued status. * sent – This only returns entries with a sent status.
139139
* @param {String} optsOrCallback.startPosition Specifies the location in the list of envelopes from which to start.
140140
* @param {module:api/BulkEnvelopesApi~getCallback} callback The callback function, accepting three arguments: error, data, response
141141
* data is of type: {@link module:model/BulkEnvelopeStatus}

src/api/FoldersApi.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@
205205
* (Optional)Callback function to receive the result of the moveEnvelopes operation. If none specified a Promise will be returned.
206206
* @callback module:api/FoldersApi~moveEnvelopesCallback
207207
* @param {String} error Error message, if any.
208-
* @param {module:model/FoldersResponse} data The data returned by the service call.
208+
* @param data This operation does not return a value.
209209
* @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.
210210
*/
211211

@@ -217,7 +217,6 @@
217217
* @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely.
218218
* @param {module:model/FoldersRequest} optsOrCallback.foldersRequest
219219
* @param {module:api/FoldersApi~moveEnvelopesCallback} callback The callback function, accepting three arguments: error, data, response
220-
* data is of type: {@link module:model/FoldersResponse}
221220
*/
222221
this.moveEnvelopes = function(accountId, folderId, optsOrCallback, callback) {
223222
optsOrCallback = optsOrCallback || {};
@@ -260,7 +259,7 @@
260259
var authNames = [];
261260
var contentTypes = [];
262261
var accepts = ['application/json'];
263-
var returnType = FoldersResponse;
262+
var returnType = null;
264263

265264
return this.apiClient.callApi(
266265
'/v2/accounts/{accountId}/folders/{folderId}', 'PUT',

src/index.js

Lines changed: 28 additions & 3 deletions
Large diffs are not rendered by default.

src/model/Approve.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@
127127
if (data.hasOwnProperty('status')) {
128128
obj['status'] = ApiClient.convertToType(data['status'], 'String');
129129
}
130+
if (data.hasOwnProperty('tabGroupLabels')) {
131+
obj['tabGroupLabels'] = ApiClient.convertToType(data['tabGroupLabels'], ['String']);
132+
}
130133
if (data.hasOwnProperty('tabId')) {
131134
obj['tabId'] = ApiClient.convertToType(data['tabId'], 'String');
132135
}
@@ -279,6 +282,11 @@
279282
* @member {String} status
280283
*/
281284
exports.prototype['status'] = undefined;
285+
/**
286+
*
287+
* @member {Array.<String>} tabGroupLabels
288+
*/
289+
exports.prototype['tabGroupLabels'] = undefined;
282290
/**
283291
* The unique identifier for the tab. The tabid can be retrieved with the [ML:GET call].
284292
* @member {String} tabId

src/model/Checkbox.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@
124124
if (data.hasOwnProperty('status')) {
125125
obj['status'] = ApiClient.convertToType(data['status'], 'String');
126126
}
127+
if (data.hasOwnProperty('tabGroupLabels')) {
128+
obj['tabGroupLabels'] = ApiClient.convertToType(data['tabGroupLabels'], ['String']);
129+
}
127130
if (data.hasOwnProperty('tabId')) {
128131
obj['tabId'] = ApiClient.convertToType(data['tabId'], 'String');
129132
}
@@ -265,6 +268,11 @@
265268
* @member {String} status
266269
*/
267270
exports.prototype['status'] = undefined;
271+
/**
272+
*
273+
* @member {Array.<String>} tabGroupLabels
274+
*/
275+
exports.prototype['tabGroupLabels'] = undefined;
268276
/**
269277
* The unique identifier for the tab. The tabid can be retrieved with the [ML:GET call].
270278
* @member {String} tabId

src/model/Company.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@
142142
if (data.hasOwnProperty('status')) {
143143
obj['status'] = ApiClient.convertToType(data['status'], 'String');
144144
}
145+
if (data.hasOwnProperty('tabGroupLabels')) {
146+
obj['tabGroupLabels'] = ApiClient.convertToType(data['tabGroupLabels'], ['String']);
147+
}
145148
if (data.hasOwnProperty('tabId')) {
146149
obj['tabId'] = ApiClient.convertToType(data['tabId'], 'String');
147150
}
@@ -322,6 +325,11 @@
322325
* @member {String} status
323326
*/
324327
exports.prototype['status'] = undefined;
328+
/**
329+
*
330+
* @member {Array.<String>} tabGroupLabels
331+
*/
332+
exports.prototype['tabGroupLabels'] = undefined;
325333
/**
326334
* The unique identifier for the tab. The tabid can be retrieved with the [ML:GET call].
327335
* @member {String} tabId

src/model/ConnectCustomConfiguration.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@
8888
if (data.hasOwnProperty('includeEnvelopeVoidReason')) {
8989
obj['includeEnvelopeVoidReason'] = ApiClient.convertToType(data['includeEnvelopeVoidReason'], 'String');
9090
}
91+
if (data.hasOwnProperty('includeHMAC')) {
92+
obj['includeHMAC'] = ApiClient.convertToType(data['includeHMAC'], 'String');
93+
}
9194
if (data.hasOwnProperty('includeSenderAccountasCustomField')) {
9295
obj['includeSenderAccountasCustomField'] = ApiClient.convertToType(data['includeSenderAccountasCustomField'], 'String');
9396
}
@@ -177,6 +180,11 @@
177180
* @member {String} includeEnvelopeVoidReason
178181
*/
179182
exports.prototype['includeEnvelopeVoidReason'] = undefined;
183+
/**
184+
*
185+
* @member {String} includeHMAC
186+
*/
187+
exports.prototype['includeHMAC'] = undefined;
180188
/**
181189
* When set to **true**, Connect will include the sender account as Custom Field in the data.
182190
* @member {String} includeSenderAccountasCustomField

0 commit comments

Comments
 (0)