Skip to content

Commit

Permalink
Version 5.5.0-rc1-v2.1-20.2.00 release (#199)
Browse files Browse the repository at this point in the history
Co-authored-by: automation <automation@docusign.com>
  • Loading branch information
annesophien and automation authored Jun 30, 2020
1 parent 5e3d52a commit 9f5e3c6
Show file tree
Hide file tree
Showing 13 changed files with 164 additions and 33 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ auth-info.json
config.json
.idea/
npm-debug.log
package-lock.json
.swagger-codegen/
2 changes: 1 addition & 1 deletion .swagger-codegen-ignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ git_push.sh

# Project files
LICENSE
package.json
.travis.yml
mocha.opts

# Specific src and test files
docs/*.md
test/*/*.spec.js
test/assert-equals.js
src/OAuth.js
src/RestApi.js
src/ApiClient.js
Expand Down
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ sudo: false
branches:
only:
- master
- APIv2-master
- v2-master

language: node_js

Expand All @@ -29,3 +29,4 @@ cache:
- "node_modules"

after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The Official DocuSign Node Client
# The Official DocuSign Node Client

[![NPM version][npm-image]][npm-url]
[![NPM downloads][downloads-image]][downloads-url]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docusign-esign",
"version": "5.4.0",
"version": "5.5.0-rc1",
"description": "DocuSign Node.js API client.",
"license": "MIT",
"main": "src/index.js",
Expand Down
1 change: 1 addition & 0 deletions src/api/BulkEnvelopesApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,7 @@ The REST API does not support modifying individual rows or values in the bulk re
* @param {String} envelopeId The envelope's GUID.
Example: `93be49ab-xxxx-xxxx-xxxx-f752070d71ec`
* @param {String} recipientId A local reference that senders use to map recipients to other objects, such as specific document tabs. Within an envelope, each `recipientId` must be unique, but there is no uniqueness requirement across envelopes. For example, many envelopes assign the first recipient a `recipientId` of `1`.
* @param {Blob} bulkRecipientsRequest
* @param {module:api/BulkEnvelopesApi~updateRecipientsCallback} callback The callback function, accepting three arguments: error, data, response
Expand Down
107 changes: 107 additions & 0 deletions src/api/TrustServiceProvidersApi.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/**
* DocuSign REST API
* The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
*
* OpenAPI spec version: v2.1
* Contact: devcenter@docusign.com
*
* NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead.
*
*/

(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['Configuration', 'ApiClient', 'model/AccountSeals', 'model/ErrorDetails'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../Configuration'), require('../ApiClient'), require('../model/AccountSeals'), require('../model/ErrorDetails'));
} else {
// Browser globals (root is window)
if (!root.Docusign) {
root.Docusign = {};
}
root.Docusign.TrustServiceProvidersApi = factory(root.Docusign.Configuration, root.Docusign.ApiClient, root.Docusign.AccountSeals, root.Docusign.ErrorDetails);
}
}(this, function(Configuration, ApiClient, AccountSeals, ErrorDetails) {
'use strict';

/**
* TrustServiceProviders service.
* @module api/TrustServiceProvidersApi
*/

/**
* Constructs a new TrustServiceProvidersApi.
* @alias module:api/TrustServiceProvidersApi
* @class
* @param {module:ApiClient} apiClient Optional API client implementation to use,
* default to {@link module:ApiClient#instance} if unspecified.
*/
var exports = function(apiClient) {
this.apiClient = apiClient || Configuration.default.getDefaultApiClient() || ApiClient.instance;


this.setApiClient = function(apiClient) {
this.apiClient = apiClient;
};

this.getApiClient = function() {
return this.apiClient;
};


/**
* (Optional) Callback function to receive the result of the getSealProviders operation. If none specified a Promise will be returned.
* @callback module:api/TrustServiceProvidersApi~getSealProvidersCallback
* @param {String} error Error message, if any.
* @param {module:model/AccountSeals} data The data returned by the service call.
* @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.
*/

/**
* Returns Account available seals for specified account.
* @param {String} accountId The external account number (int) or account ID Guid.
* @param {module:api/TrustServiceProvidersApi~getSealProvidersCallback} callback The callback function, accepting three arguments: error, data, response
* data is of type: {@link module:model/AccountSeals}
*/
this.getSealProviders = function(accountId, callback) {
var postBody = null;

// verify the required parameter 'accountId' is set
if (accountId === undefined || accountId === null) {
throw new Error("Missing the required parameter 'accountId' when calling getSealProviders");
}

if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){
if (typeof optsOrCallback !== 'undefined') {
optsOrCallback = callback;
}
callback = arguments[arguments.length-1];
}

var pathParams = {
'accountId': accountId
};
var queryParams = {
};
var headerParams = {
};
var formParams = {
};

var authNames = ['docusignAccessCode'];
var contentTypes = [];
var accepts = ['application/json'];
var returnType = AccountSeals;

return this.apiClient.callApi(
'/v2.1/accounts/{accountId}/seals', 'GET',
pathParams, queryParams, headerParams, formParams, postBody,
authNames, contentTypes, accepts, returnType, callback
);
};
};

return exports;
}));
13 changes: 9 additions & 4 deletions src/index.js

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions src/model/BulkSendResponse.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
if (data.hasOwnProperty('batchId')) {
obj['batchId'] = ApiClient.convertToType(data['batchId'], 'String');
}
if (data.hasOwnProperty('batchSize')) {
obj['batchSize'] = ApiClient.convertToType(data['batchSize'], 'String');
}
if (data.hasOwnProperty('envelopeOrTemplateId')) {
obj['envelopeOrTemplateId'] = ApiClient.convertToType(data['envelopeOrTemplateId'], 'String');
}
Expand All @@ -66,6 +69,12 @@
if (data.hasOwnProperty('errors')) {
obj['errors'] = ApiClient.convertToType(data['errors'], ['String']);
}
if (data.hasOwnProperty('queueLimit')) {
obj['queueLimit'] = ApiClient.convertToType(data['queueLimit'], 'String');
}
if (data.hasOwnProperty('totalQueued')) {
obj['totalQueued'] = ApiClient.convertToType(data['totalQueued'], 'String');
}
}
return obj;
}
Expand All @@ -75,6 +84,11 @@
* @member {String} batchId
*/
exports.prototype['batchId'] = undefined;
/**
*
* @member {String} batchSize
*/
exports.prototype['batchSize'] = undefined;
/**
*
* @member {String} envelopeOrTemplateId
Expand All @@ -90,6 +104,16 @@
* @member {Array.<String>} errors
*/
exports.prototype['errors'] = undefined;
/**
*
* @member {String} queueLimit
*/
exports.prototype['queueLimit'] = undefined;
/**
*
* @member {String} totalQueued
*/
exports.prototype['totalQueued'] = undefined;



Expand Down
4 changes: 2 additions & 2 deletions src/model/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
obj['noteTabs'] = ApiClient.convertToType(data['noteTabs'], [Note]);
}
if (data.hasOwnProperty('numberTabs')) {
obj['numberTabs'] = ApiClient.convertToType(data['numberTabs'], ['ModelNumber']);
obj['numberTabs'] = ApiClient.convertToType(data['numberTabs'], [ModelNumber]);
}
if (data.hasOwnProperty('polyLineOverlayTabs')) {
obj['polyLineOverlayTabs'] = ApiClient.convertToType(data['polyLineOverlayTabs'], [PolyLineOverlay]);
Expand Down Expand Up @@ -248,7 +248,7 @@
exports.prototype['noteTabs'] = undefined;
/**
* Specifies a tag on the document where you want the recipient to enter a number. It uses the same parameters as a Text tab, with the validation message and pattern set for number information. When getting information that includes this tab type, the original value of the tab when the associated envelope was sent is included in the response.
* @member {Array.<Number>} numberTabs
* @member {Array.<module:model/ModelNumber>} numberTabs
*/
exports.prototype['numberTabs'] = undefined;
/**
Expand Down
12 changes: 6 additions & 6 deletions src/model/TemplateTabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@
(function(root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['ApiClient', 'model/Approve', 'model/Checkbox', 'model/CommentThread', 'model/Company', 'model/DateSigned', 'model/Decline', 'model/Draw', 'model/Email', 'model/EmailAddress', 'model/EnvelopeId', 'model/FirstName', 'model/FormulaTab', 'model/FullName', 'model/InitialHere', 'model/LastName', 'model/List', 'model/ModelDate', 'model/Notarize', 'model/Note', 'model/PolyLineOverlay', 'model/RadioGroup', 'model/SignHere', 'model/SignerAttachment', 'model/SmartSection', 'model/Ssn', 'model/TabGroup', 'model/Text', 'model/Title', 'model/View', 'model/Zip'], factory);
define(['ApiClient', 'model/Approve', 'model/Checkbox', 'model/CommentThread', 'model/Company', 'model/DateSigned', 'model/Decline', 'model/Draw', 'model/Email', 'model/EmailAddress', 'model/EnvelopeId', 'model/FirstName', 'model/FormulaTab', 'model/FullName', 'model/InitialHere', 'model/LastName', 'model/List', 'model/ModelDate', 'model/ModelNumber', 'model/Notarize', 'model/Note', 'model/PolyLineOverlay', 'model/RadioGroup', 'model/SignHere', 'model/SignerAttachment', 'model/SmartSection', 'model/Ssn', 'model/TabGroup', 'model/Text', 'model/Title', 'model/View', 'model/Zip'], factory);
} else if (typeof module === 'object' && module.exports) {
// CommonJS-like environments that support module.exports, like Node.
module.exports = factory(require('../ApiClient'), require('./Approve'), require('./Checkbox'), require('./CommentThread'), require('./Company'), require('./DateSigned'), require('./Decline'), require('./Draw'), require('./Email'), require('./EmailAddress'), require('./EnvelopeId'), require('./FirstName'), require('./FormulaTab'), require('./FullName'), require('./InitialHere'), require('./LastName'), require('./List'), require('./ModelDate'), require('./Notarize'), require('./Note'), require('./PolyLineOverlay'), require('./RadioGroup'), require('./SignHere'), require('./SignerAttachment'), require('./SmartSection'), require('./Ssn'), require('./TabGroup'), require('./Text'), require('./Title'), require('./View'), require('./Zip'));
module.exports = factory(require('../ApiClient'), require('./Approve'), require('./Checkbox'), require('./CommentThread'), require('./Company'), require('./DateSigned'), require('./Decline'), require('./Draw'), require('./Email'), require('./EmailAddress'), require('./EnvelopeId'), require('./FirstName'), require('./FormulaTab'), require('./FullName'), require('./InitialHere'), require('./LastName'), require('./List'), require('./ModelDate'), require('./ModelNumber'), require('./Notarize'), require('./Note'), require('./PolyLineOverlay'), require('./RadioGroup'), require('./SignHere'), require('./SignerAttachment'), require('./SmartSection'), require('./Ssn'), require('./TabGroup'), require('./Text'), require('./Title'), require('./View'), require('./Zip'));
} else {
// Browser globals (root is window)
if (!root.Docusign) {
root.Docusign = {};
}
root.Docusign.TemplateTabs = factory(root.Docusign.ApiClient, root.Docusign.Approve, root.Docusign.Checkbox, root.Docusign.CommentThread, root.Docusign.Company, root.Docusign.DateSigned, root.Docusign.Decline, root.Docusign.Draw, root.Docusign.Email, root.Docusign.EmailAddress, root.Docusign.EnvelopeId, root.Docusign.FirstName, root.Docusign.FormulaTab, root.Docusign.FullName, root.Docusign.InitialHere, root.Docusign.LastName, root.Docusign.List, root.Docusign.ModelDate, root.Docusign.Notarize, root.Docusign.Note, root.Docusign.PolyLineOverlay, root.Docusign.RadioGroup, root.Docusign.SignHere, root.Docusign.SignerAttachment, root.Docusign.SmartSection, root.Docusign.Ssn, root.Docusign.TabGroup, root.Docusign.Text, root.Docusign.Title, root.Docusign.View, root.Docusign.Zip);
root.Docusign.TemplateTabs = factory(root.Docusign.ApiClient, root.Docusign.Approve, root.Docusign.Checkbox, root.Docusign.CommentThread, root.Docusign.Company, root.Docusign.DateSigned, root.Docusign.Decline, root.Docusign.Draw, root.Docusign.Email, root.Docusign.EmailAddress, root.Docusign.EnvelopeId, root.Docusign.FirstName, root.Docusign.FormulaTab, root.Docusign.FullName, root.Docusign.InitialHere, root.Docusign.LastName, root.Docusign.List, root.Docusign.ModelDate, root.Docusign.ModelNumber, root.Docusign.Notarize, root.Docusign.Note, root.Docusign.PolyLineOverlay, root.Docusign.RadioGroup, root.Docusign.SignHere, root.Docusign.SignerAttachment, root.Docusign.SmartSection, root.Docusign.Ssn, root.Docusign.TabGroup, root.Docusign.Text, root.Docusign.Title, root.Docusign.View, root.Docusign.Zip);
}
}(this, function(ApiClient, Approve, Checkbox, CommentThread, Company, DateSigned, Decline, Draw, Email, EmailAddress, EnvelopeId, FirstName, FormulaTab, FullName, InitialHere, LastName, List, ModelDate, Notarize, Note, PolyLineOverlay, RadioGroup, SignHere, SignerAttachment, SmartSection, Ssn, TabGroup, Text, Title, View, Zip) {
}(this, function(ApiClient, Approve, Checkbox, CommentThread, Company, DateSigned, Decline, Draw, Email, EmailAddress, EnvelopeId, FirstName, FormulaTab, FullName, InitialHere, LastName, List, ModelDate, ModelNumber, Notarize, Note, PolyLineOverlay, RadioGroup, SignHere, SignerAttachment, SmartSection, Ssn, TabGroup, Text, Title, View, Zip) {
'use strict';


Expand Down Expand Up @@ -112,7 +112,7 @@
obj['noteTabs'] = ApiClient.convertToType(data['noteTabs'], [Note]);
}
if (data.hasOwnProperty('numberTabs')) {
obj['numberTabs'] = ApiClient.convertToType(data['numberTabs'], ['Number']);
obj['numberTabs'] = ApiClient.convertToType(data['numberTabs'], [ModelNumber]);
}
if (data.hasOwnProperty('polyLineOverlayTabs')) {
obj['polyLineOverlayTabs'] = ApiClient.convertToType(data['polyLineOverlayTabs'], [PolyLineOverlay]);
Expand Down Expand Up @@ -248,7 +248,7 @@
exports.prototype['noteTabs'] = undefined;
/**
* Specifies a tag on the document where you want the recipient to enter a number. It uses the same parameters as a Text tab, with the validation message and pattern set for number information. When getting information that includes this tab type, the original value of the tab when the associated envelope was sent is included in the response.
* @member {Array.<Number>} numberTabs
* @member {Array.<module:model/ModelNumber>} numberTabs
*/
exports.prototype['numberTabs'] = undefined;
/**
Expand Down
16 changes: 8 additions & 8 deletions test/SdkUnitTestsWithCallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ describe('SDK Unit Tests With Callbacks:', function (done) {

var envelopesApi = new docusign.EnvelopesApi(apiClient);

envelopesApi.createEnvelope(accountId, {'envelopeDefinition': envDef}, function (error, envelopeSummary, response) {
envelopesApi.createEnvelope(accountId, { envelopeDefinition: envDef }, function (error, envelopeSummary, response) {
if (error) {
return done(error);
}
Expand Down Expand Up @@ -341,7 +341,7 @@ describe('SDK Unit Tests With Callbacks:', function (done) {

var envelopesApi = new docusign.EnvelopesApi(apiClient);

envelopesApi.createEnvelope(accountId, {'envelopeDefinition': envDef}, function (error, envelopeSummary, response) {
envelopesApi.createEnvelope(accountId, { envelopeDefinition: envDef }, function (error, envelopeSummary, response) {
if (error) {
return done(error);
}
Expand Down Expand Up @@ -417,7 +417,7 @@ describe('SDK Unit Tests With Callbacks:', function (done) {

var envelopesApi = new docusign.EnvelopesApi(apiClient);

envelopesApi.createEnvelope(accountId, {'envelopeDefinition': envDef}, function (error, envelopeSummary, response) {
envelopesApi.createEnvelope(accountId, { envelopeDefinition: envDef }, function (error, envelopeSummary, response) {
if (error) {
return done(error);
}
Expand All @@ -431,7 +431,7 @@ describe('SDK Unit Tests With Callbacks:', function (done) {
recipientView.authenticationMethod = 'email';
recipientView.userName = name;
recipientView.email = userName;
envelopesApi.createRecipientView(accountId, envelopeSummary.envelopeId, {'recipientViewRequest': recipientView}, function (error, viewUrl, response) {
envelopesApi.createRecipientView(accountId, envelopeSummary.envelopeId, { recipientViewRequest: recipientView }, function (error, viewUrl, response) {
if (error) {
return done(error);
}
Expand Down Expand Up @@ -503,7 +503,7 @@ describe('SDK Unit Tests With Callbacks:', function (done) {

var templatesApi = new docusign.TemplatesApi(apiClient);

templatesApi.createTemplate(accountId, {'envelopeTemplate': template}, function (error, templateSummary, response) {
templatesApi.createTemplate(accountId, { envelopeTemplate: template }, function (error, templateSummary, response) {
if (error) {
return done(error);
}
Expand Down Expand Up @@ -579,7 +579,7 @@ describe('SDK Unit Tests With Callbacks:', function (done) {

var envelopesApi = new docusign.EnvelopesApi(apiClient);

envelopesApi.createEnvelope(accountId, {'envelopeDefinition': envDef}, function (error, envelopeSummary, response) {
envelopesApi.createEnvelope(accountId, { envelopeDefinition: envDef }, function (error, envelopeSummary, response) {
if (error) {
return done(error);
}
Expand Down Expand Up @@ -702,7 +702,7 @@ describe('SDK Unit Tests With Callbacks:', function (done) {

var diagSettings = new docusign.DiagnosticsSettingsInformation();
diagSettings.apiRequestLogging = 'true';
diagApi.updateRequestLogSettings({'diagnosticsSettingsInformation': diagSettings}, function (error, diagnosticsSettingsInformation, response) {
diagApi.updateRequestLogSettings({ diagnosticsSettingsInformation: diagSettings }, function (error, diagnosticsSettingsInformation, response) {
if (error) {
return done(error);
}
Expand All @@ -712,7 +712,7 @@ describe('SDK Unit Tests With Callbacks:', function (done) {

var envelopesApi = new docusign.EnvelopesApi(apiClient);

envelopesApi.createEnvelope(accountId, {'envelopeDefinition': envDef}, function (error, envelopeSummary, response) {
envelopesApi.createEnvelope(accountId, { envelopeDefinition: envDef }, function (error, envelopeSummary, response) {
if (error) {
return done(error);
}
Expand Down
9 changes: 0 additions & 9 deletions test/keys/docusign_public_key.txt
Original file line number Diff line number Diff line change
@@ -1,9 +0,0 @@
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAh0VLAZe6m36tbthAom/I
Rzxvm/i66mEpow9AsrFP3EAybtVw2s13RJ1f0ZJA4sB7SbOtRymIxLlVUWkZLW4N
qtECrObqOuke+G2ROWfOhcAyMuiBlW44mvl8Gil+n6Lwif2+OtUQ88iwPuE6I7jK
nBV82lNGDx3H1hqHl7wpQZRyRPCdzPCrh6TRHj1D40mvrUwqAptj5m71QKA9tWVA
QQ1DGKJZVZI4mdz3+I1XCinF8zrxIUJyEtaJfCHiS086XF3Sw7DkU2o/QIIYbpxl
f9Zdjr1QT6/ow7pwJbX2/GSQW2mVGSY0KSiPFVjbpjKBpVpd4vgnQqn10BzLvLNy
SwIDAQAB
-----END PUBLIC KEY-----

0 comments on commit 9f5e3c6

Please sign in to comment.