Skip to content

Commit f18e860

Browse files
harsharahulroot
andauthored
Version 5.18.0-v2.1-22.2.00.00 release (#301)
Co-authored-by: root <root@devcenteradmin.docusigntest.com>
1 parent 4094b2a commit f18e860

26 files changed

Lines changed: 539 additions & 101 deletions

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
See [DocuSign Support Center](https://support.docusign.com/en/releasenotes/) for Product Release Notes.
33

44

5+
## [v5.18.0] - eSignature API v2.1-22.2.00.00 - 2022-06-23
6+
### Changed
7+
- Added support for version v2.1-22.2.00.00 of the DocuSign ESignature API.
8+
- Updated the SDK release version.
9+
510
## [v5.17.0] - eSignature API v2.1-22.1.02.00 - 2022-05-18
611
### Changed
712
- Added support for version v2.1-22.1.02.00 of the DocuSign ESignature API.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docusign-esign",
3-
"version": "5.17.0",
3+
"version": "5.18.0",
44
"description": "DocuSign Node.js API client.",
55
"license": "MIT",
66
"main": "src/index.js",

src/ApiClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,7 @@
497497
var url = this.buildUrl(path, pathParams);
498498
var request = superagent(httpMethod, url);
499499
var _formParams = this.normalizeParams(formParams);
500-
var body = bodyParam || {};
500+
var body = httpMethod.toUpperCase() === 'GET' && !bodyParam ? undefined : bodyParam || {};
501501

502502
// apply authentications
503503
this.applyAuthToRequest(request, authNames);

src/api/EnvelopesApi.js

Lines changed: 64 additions & 4 deletions
Large diffs are not rendered by default.

src/api/PowerFormsApi.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@
434434
* @param {String} optsOrCallback.fromDate
435435
* @param {String} optsOrCallback.order
436436
* @param {String} optsOrCallback.orderBy
437+
* @param {String} optsOrCallback.searchFields
438+
* @param {String} optsOrCallback.searchText
437439
* @param {String} optsOrCallback.toDate
438440
* @param {module:api/PowerFormsApi~listPowerFormsCallback} callback The callback function, accepting three arguments: error, data, response
439441
* data is of type: {@link module:model/PowerFormsResponse}
@@ -467,6 +469,8 @@
467469
'from_date': optsOrCallback['fromDate'],
468470
'order': optsOrCallback['order'],
469471
'order_by': optsOrCallback['orderBy'],
472+
'search_fields': optsOrCallback['searchFields'],
473+
'search_text': optsOrCallback['searchText'],
470474
'to_date': optsOrCallback['toDate']
471475
};
472476
var headerParams = {

src/index.js

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

src/model/AccountInformation.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
(function(root, factory) {
1313
if (typeof define === 'function' && define.amd) {
1414
// AMD. Register as an anonymous module.
15-
define(['ApiClient', 'model/AccountSettingsInformation', 'model/RecipientDomain'], factory);
15+
define(['ApiClient', 'model/AccountSettingsInformation', 'model/BrandsResponse', 'model/RecipientDomain'], factory);
1616
} else if (typeof module === 'object' && module.exports) {
1717
// CommonJS-like environments that support module.exports, like Node.
18-
module.exports = factory(require('../ApiClient'), require('./AccountSettingsInformation'), require('./RecipientDomain'));
18+
module.exports = factory(require('../ApiClient'), require('./AccountSettingsInformation'), require('./BrandsResponse'), require('./RecipientDomain'));
1919
} else {
2020
// Browser globals (root is window)
2121
if (!root.Docusign) {
2222
root.Docusign = {};
2323
}
24-
root.Docusign.AccountInformation = factory(root.Docusign.ApiClient, root.Docusign.AccountSettingsInformation, root.Docusign.RecipientDomain);
24+
root.Docusign.AccountInformation = factory(root.Docusign.ApiClient, root.Docusign.AccountSettingsInformation, root.Docusign.BrandsResponse, root.Docusign.RecipientDomain);
2525
}
26-
}(this, function(ApiClient, AccountSettingsInformation, RecipientDomain) {
26+
}(this, function(ApiClient, AccountSettingsInformation, BrandsResponse, RecipientDomain) {
2727
'use strict';
2828

2929

@@ -85,6 +85,9 @@
8585
if (data.hasOwnProperty('billingProfile')) {
8686
obj['billingProfile'] = ApiClient.convertToType(data['billingProfile'], 'String');
8787
}
88+
if (data.hasOwnProperty('brands')) {
89+
obj['brands'] = BrandsResponse.constructFromObject(data['brands']);
90+
}
8891
if (data.hasOwnProperty('canUpgrade')) {
8992
obj['canUpgrade'] = ApiClient.convertToType(data['canUpgrade'], 'String');
9093
}
@@ -219,6 +222,10 @@
219222
* @member {String} billingProfile
220223
*/
221224
exports.prototype['billingProfile'] = undefined;
225+
/**
226+
* @member {module:model/BrandsResponse} brands
227+
*/
228+
exports.prototype['brands'] = undefined;
222229
/**
223230
* When set to **true**, specifies that you can upgrade the account through the API.
224231
* @member {String} canUpgrade

src/model/AccountSettingsInformation.js

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,12 @@
322322
if (data.hasOwnProperty('allowManagedStampsMetadata')) {
323323
obj['allowManagedStampsMetadata'] = SettingsMetadata.constructFromObject(data['allowManagedStampsMetadata']);
324324
}
325+
if (data.hasOwnProperty('allowManagingEnvelopesOnBehalfOfOthers')) {
326+
obj['allowManagingEnvelopesOnBehalfOfOthers'] = ApiClient.convertToType(data['allowManagingEnvelopesOnBehalfOfOthers'], 'String');
327+
}
328+
if (data.hasOwnProperty('allowManagingEnvelopesOnBehalfOfOthersMetadata')) {
329+
obj['allowManagingEnvelopesOnBehalfOfOthersMetadata'] = SettingsMetadata.constructFromObject(data['allowManagingEnvelopesOnBehalfOfOthersMetadata']);
330+
}
325331
if (data.hasOwnProperty('allowMarkup')) {
326332
obj['allowMarkup'] = ApiClient.convertToType(data['allowMarkup'], 'String');
327333
}
@@ -412,6 +418,12 @@
412418
if (data.hasOwnProperty('allowOrganizationToUseRemoteNotaryMetadata')) {
413419
obj['allowOrganizationToUseRemoteNotaryMetadata'] = SettingsMetadata.constructFromObject(data['allowOrganizationToUseRemoteNotaryMetadata']);
414420
}
421+
if (data.hasOwnProperty('allowOrganizationToUseThirdPartyElectronicNotary')) {
422+
obj['allowOrganizationToUseThirdPartyElectronicNotary'] = ApiClient.convertToType(data['allowOrganizationToUseThirdPartyElectronicNotary'], 'String');
423+
}
424+
if (data.hasOwnProperty('allowOrganizationToUseThirdPartyElectronicNotaryMetadata')) {
425+
obj['allowOrganizationToUseThirdPartyElectronicNotaryMetadata'] = SettingsMetadata.constructFromObject(data['allowOrganizationToUseThirdPartyElectronicNotaryMetadata']);
426+
}
415427
if (data.hasOwnProperty('allowPaymentProcessing')) {
416428
obj['allowPaymentProcessing'] = ApiClient.convertToType(data['allowPaymentProcessing'], 'String');
417429
}
@@ -478,6 +490,12 @@
478490
if (data.hasOwnProperty('allowSecurityApplianceMetadata')) {
479491
obj['allowSecurityApplianceMetadata'] = SettingsMetadata.constructFromObject(data['allowSecurityApplianceMetadata']);
480492
}
493+
if (data.hasOwnProperty('allowSendingEnvelopesOnBehalfOfOthers')) {
494+
obj['allowSendingEnvelopesOnBehalfOfOthers'] = ApiClient.convertToType(data['allowSendingEnvelopesOnBehalfOfOthers'], 'String');
495+
}
496+
if (data.hasOwnProperty('allowSendingEnvelopesOnBehalfOfOthersMetadata')) {
497+
obj['allowSendingEnvelopesOnBehalfOfOthersMetadata'] = SettingsMetadata.constructFromObject(data['allowSendingEnvelopesOnBehalfOfOthersMetadata']);
498+
}
481499
if (data.hasOwnProperty('allowSendToCertifiedDelivery')) {
482500
obj['allowSendToCertifiedDelivery'] = ApiClient.convertToType(data['allowSendToCertifiedDelivery'], 'String');
483501
}
@@ -580,6 +598,12 @@
580598
if (data.hasOwnProperty('allowSupplementalDocumentsMetadata')) {
581599
obj['allowSupplementalDocumentsMetadata'] = SettingsMetadata.constructFromObject(data['allowSupplementalDocumentsMetadata']);
582600
}
601+
if (data.hasOwnProperty('allowThirdPartyElectronicNotary')) {
602+
obj['allowThirdPartyElectronicNotary'] = ApiClient.convertToType(data['allowThirdPartyElectronicNotary'], 'String');
603+
}
604+
if (data.hasOwnProperty('allowThirdPartyElectronicNotaryMetadata')) {
605+
obj['allowThirdPartyElectronicNotaryMetadata'] = SettingsMetadata.constructFromObject(data['allowThirdPartyElectronicNotaryMetadata']);
606+
}
583607
if (data.hasOwnProperty('allowUsersToAccessDirectory')) {
584608
obj['allowUsersToAccessDirectory'] = ApiClient.convertToType(data['allowUsersToAccessDirectory'], 'String');
585609
}
@@ -2263,6 +2287,15 @@
22632287
* @member {module:model/SettingsMetadata} allowManagedStampsMetadata
22642288
*/
22652289
exports.prototype['allowManagedStampsMetadata'] = undefined;
2290+
/**
2291+
*
2292+
* @member {String} allowManagingEnvelopesOnBehalfOfOthers
2293+
*/
2294+
exports.prototype['allowManagingEnvelopesOnBehalfOfOthers'] = undefined;
2295+
/**
2296+
* @member {module:model/SettingsMetadata} allowManagingEnvelopesOnBehalfOfOthersMetadata
2297+
*/
2298+
exports.prototype['allowManagingEnvelopesOnBehalfOfOthersMetadata'] = undefined;
22662299
/**
22672300
* When set to **true**, Document Markup is enabled for envelope. Account must have Document Markup enabled to use this
22682301
* @member {String} allowMarkup
@@ -2399,6 +2432,15 @@
23992432
* @member {module:model/SettingsMetadata} allowOrganizationToUseRemoteNotaryMetadata
24002433
*/
24012434
exports.prototype['allowOrganizationToUseRemoteNotaryMetadata'] = undefined;
2435+
/**
2436+
*
2437+
* @member {String} allowOrganizationToUseThirdPartyElectronicNotary
2438+
*/
2439+
exports.prototype['allowOrganizationToUseThirdPartyElectronicNotary'] = undefined;
2440+
/**
2441+
* @member {module:model/SettingsMetadata} allowOrganizationToUseThirdPartyElectronicNotaryMetadata
2442+
*/
2443+
exports.prototype['allowOrganizationToUseThirdPartyElectronicNotaryMetadata'] = undefined;
24022444
/**
24032445
*
24042446
* @member {String} allowPaymentProcessing
@@ -2498,6 +2540,15 @@
24982540
* @member {module:model/SettingsMetadata} allowSecurityApplianceMetadata
24992541
*/
25002542
exports.prototype['allowSecurityApplianceMetadata'] = undefined;
2543+
/**
2544+
*
2545+
* @member {String} allowSendingEnvelopesOnBehalfOfOthers
2546+
*/
2547+
exports.prototype['allowSendingEnvelopesOnBehalfOfOthers'] = undefined;
2548+
/**
2549+
* @member {module:model/SettingsMetadata} allowSendingEnvelopesOnBehalfOfOthersMetadata
2550+
*/
2551+
exports.prototype['allowSendingEnvelopesOnBehalfOfOthersMetadata'] = undefined;
25012552
/**
25022553
*
25032554
* @member {String} allowSendToCertifiedDelivery
@@ -2652,6 +2703,15 @@
26522703
* @member {module:model/SettingsMetadata} allowSupplementalDocumentsMetadata
26532704
*/
26542705
exports.prototype['allowSupplementalDocumentsMetadata'] = undefined;
2706+
/**
2707+
*
2708+
* @member {String} allowThirdPartyElectronicNotary
2709+
*/
2710+
exports.prototype['allowThirdPartyElectronicNotary'] = undefined;
2711+
/**
2712+
* @member {module:model/SettingsMetadata} allowThirdPartyElectronicNotaryMetadata
2713+
*/
2714+
exports.prototype['allowThirdPartyElectronicNotaryMetadata'] = undefined;
26552715
/**
26562716
*
26572717
* @member {String} allowUsersToAccessDirectory

src/model/Agent.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,18 @@
1212
(function(root, factory) {
1313
if (typeof define === 'function' && define.amd) {
1414
// AMD. Register as an anonymous module.
15-
define(['ApiClient', 'model/AuthenticationStatus', 'model/DocumentVisibility', 'model/ErrorDetails', 'model/FeatureAvailableMetadata', 'model/IdCheckInformationInput', 'model/PropertyMetadata', 'model/RecipientAdditionalNotification', 'model/RecipientAttachment', 'model/RecipientEmailNotification', 'model/RecipientIdentityVerification', 'model/RecipientPhoneAuthentication', 'model/RecipientPhoneNumber', 'model/RecipientSMSAuthentication', 'model/SocialAuthentication', 'model/UserInfo'], factory);
15+
define(['ApiClient', 'model/AuthenticationStatus', 'model/ConsentDetails', 'model/DocumentVisibility', 'model/ErrorDetails', 'model/FeatureAvailableMetadata', 'model/IdCheckInformationInput', 'model/PropertyMetadata', 'model/RecipientAdditionalNotification', 'model/RecipientAttachment', 'model/RecipientEmailNotification', 'model/RecipientIdentityVerification', 'model/RecipientPhoneAuthentication', 'model/RecipientPhoneNumber', 'model/RecipientSMSAuthentication', 'model/SocialAuthentication', 'model/UserInfo'], factory);
1616
} else if (typeof module === 'object' && module.exports) {
1717
// CommonJS-like environments that support module.exports, like Node.
18-
module.exports = factory(require('../ApiClient'), require('./AuthenticationStatus'), require('./DocumentVisibility'), require('./ErrorDetails'), require('./FeatureAvailableMetadata'), require('./IdCheckInformationInput'), require('./PropertyMetadata'), require('./RecipientAdditionalNotification'), require('./RecipientAttachment'), require('./RecipientEmailNotification'), require('./RecipientIdentityVerification'), require('./RecipientPhoneAuthentication'), require('./RecipientPhoneNumber'), require('./RecipientSMSAuthentication'), require('./SocialAuthentication'), require('./UserInfo'));
18+
module.exports = factory(require('../ApiClient'), require('./AuthenticationStatus'), require('./ConsentDetails'), require('./DocumentVisibility'), require('./ErrorDetails'), require('./FeatureAvailableMetadata'), require('./IdCheckInformationInput'), require('./PropertyMetadata'), require('./RecipientAdditionalNotification'), require('./RecipientAttachment'), require('./RecipientEmailNotification'), require('./RecipientIdentityVerification'), require('./RecipientPhoneAuthentication'), require('./RecipientPhoneNumber'), require('./RecipientSMSAuthentication'), require('./SocialAuthentication'), require('./UserInfo'));
1919
} else {
2020
// Browser globals (root is window)
2121
if (!root.Docusign) {
2222
root.Docusign = {};
2323
}
24-
root.Docusign.Agent = factory(root.Docusign.ApiClient, root.Docusign.AuthenticationStatus, root.Docusign.DocumentVisibility, root.Docusign.ErrorDetails, root.Docusign.FeatureAvailableMetadata, root.Docusign.IdCheckInformationInput, root.Docusign.PropertyMetadata, root.Docusign.RecipientAdditionalNotification, root.Docusign.RecipientAttachment, root.Docusign.RecipientEmailNotification, root.Docusign.RecipientIdentityVerification, root.Docusign.RecipientPhoneAuthentication, root.Docusign.RecipientPhoneNumber, root.Docusign.RecipientSMSAuthentication, root.Docusign.SocialAuthentication, root.Docusign.UserInfo);
24+
root.Docusign.Agent = factory(root.Docusign.ApiClient, root.Docusign.AuthenticationStatus, root.Docusign.ConsentDetails, root.Docusign.DocumentVisibility, root.Docusign.ErrorDetails, root.Docusign.FeatureAvailableMetadata, root.Docusign.IdCheckInformationInput, root.Docusign.PropertyMetadata, root.Docusign.RecipientAdditionalNotification, root.Docusign.RecipientAttachment, root.Docusign.RecipientEmailNotification, root.Docusign.RecipientIdentityVerification, root.Docusign.RecipientPhoneAuthentication, root.Docusign.RecipientPhoneNumber, root.Docusign.RecipientSMSAuthentication, root.Docusign.SocialAuthentication, root.Docusign.UserInfo);
2525
}
26-
}(this, function(ApiClient, AuthenticationStatus, DocumentVisibility, ErrorDetails, FeatureAvailableMetadata, IdCheckInformationInput, PropertyMetadata, RecipientAdditionalNotification, RecipientAttachment, RecipientEmailNotification, RecipientIdentityVerification, RecipientPhoneAuthentication, RecipientPhoneNumber, RecipientSMSAuthentication, SocialAuthentication, UserInfo) {
26+
}(this, function(ApiClient, AuthenticationStatus, ConsentDetails, DocumentVisibility, ErrorDetails, FeatureAvailableMetadata, IdCheckInformationInput, PropertyMetadata, RecipientAdditionalNotification, RecipientAttachment, RecipientEmailNotification, RecipientIdentityVerification, RecipientPhoneAuthentication, RecipientPhoneNumber, RecipientSMSAuthentication, SocialAuthentication, UserInfo) {
2727
'use strict';
2828

2929

@@ -79,6 +79,9 @@
7979
if (data.hasOwnProperty('completedCount')) {
8080
obj['completedCount'] = ApiClient.convertToType(data['completedCount'], 'String');
8181
}
82+
if (data.hasOwnProperty('consentDetailsList')) {
83+
obj['consentDetailsList'] = ApiClient.convertToType(data['consentDetailsList'], [ConsentDetails]);
84+
}
8285
if (data.hasOwnProperty('customFields')) {
8386
obj['customFields'] = ApiClient.convertToType(data['customFields'], ['String']);
8487
}
@@ -314,6 +317,11 @@
314317
* @member {String} completedCount
315318
*/
316319
exports.prototype['completedCount'] = undefined;
320+
/**
321+
*
322+
* @member {Array.<module:model/ConsentDetails>} consentDetailsList
323+
*/
324+
exports.prototype['consentDetailsList'] = undefined;
317325
/**
318326
* An optional array of strings that allows the sender to provide custom data about the recipient. This information is returned in the envelope status but otherwise not used by DocuSign. Each customField string can be a maximum of 100 characters.
319327
* @member {Array.<String>} customFields

0 commit comments

Comments
 (0)