Skip to content

Commit 0db0227

Browse files
Version 5.9.0-rc1-v2.1-20.4.01 release (#234)
Co-authored-by: DevCenter-DocuSign <[email protected]>
1 parent 83fffa7 commit 0db0227

Some content is hidden

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

54 files changed

+3295
-831
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ node_js:
2323
- "9"
2424
- "10"
2525
- "11"
26+
- "12"
27+
- "13"
2628

2729
cache:
2830
directories:

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2016- DocuSign, Inc. (https://www.docusign.com)
3+
Copyright (c) 2021- DocuSign, Inc. (https://www.docusign.com)
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docusign-esign",
3-
"version": "5.8.1",
3+
"version": "5.9.0-rc1",
44
"description": "DocuSign Node.js API client.",
55
"license": "MIT",
66
"main": "src/index.js",
@@ -36,7 +36,7 @@
3636
"push-docs": "git subtree push --prefix docs origin gh-pages",
3737
"update-docs": "./node_modules/.bin/jsdoc -c .jsdoc.json",
3838
"check-config": "./scripts/check-config.js",
39-
"test": "semistandard && ./node_modules/mocha/bin/mocha --reporter mocha-junit-reporter test/SdkUnitTests test/SdkUnitTestsWithCallback"
39+
"test": "semistandard --fix && ./node_modules/mocha/bin/mocha --reporter mocha-junit-reporter test/SdkUnitTests test/SdkUnitTestsWithCallback"
4040
},
4141
"semistandard": {
4242
"globals": [

src/api/AccountsApi.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1208,6 +1208,63 @@ The `canUpgrade` property contains is a Boolean that indicates whether the accou
12081208
);
12091209
};
12101210

1211+
/**
1212+
* (Optional) Callback function to receive the result of the getAccountSettingsExport operation. If none specified a Promise will be returned.
1213+
* @callback module:api/AccountsApi~getAccountSettingsExportCallback
1214+
* @param {String} error Error message, if any.
1215+
* @param data This operation does not return a value.
1216+
* @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.
1217+
*/
1218+
1219+
/**
1220+
* Retrieves an account settings comparison.
1221+
* @param {String} organizationId
1222+
* @param {String} resultId
1223+
* @param {module:api/AccountsApi~getAccountSettingsExportCallback} callback The callback function, accepting three arguments: error, data, response
1224+
*/
1225+
this.getAccountSettingsExport = function(organizationId, resultId, callback) {
1226+
var postBody = null;
1227+
1228+
// verify the required parameter 'organizationId' is set
1229+
if (organizationId === undefined || organizationId === null) {
1230+
throw new Error("Missing the required parameter 'organizationId' when calling getAccountSettingsExport");
1231+
}
1232+
1233+
// verify the required parameter 'resultId' is set
1234+
if (resultId === undefined || resultId === null) {
1235+
throw new Error("Missing the required parameter 'resultId' when calling getAccountSettingsExport");
1236+
}
1237+
1238+
if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){
1239+
if (typeof optsOrCallback !== 'undefined') {
1240+
optsOrCallback = callback;
1241+
}
1242+
callback = arguments[arguments.length-1];
1243+
}
1244+
1245+
var pathParams = {
1246+
'organizationId': organizationId,
1247+
'resultId': resultId
1248+
};
1249+
var queryParams = {
1250+
};
1251+
var headerParams = {
1252+
};
1253+
var formParams = {
1254+
};
1255+
1256+
var authNames = ['docusignAccessCode'];
1257+
var contentTypes = [];
1258+
var accepts = ['application/json'];
1259+
var returnType = null;
1260+
1261+
return this.apiClient.callApi(
1262+
'/v2.1/organization_exports/{organizationId}/account_settings/{resultId}', 'GET',
1263+
pathParams, queryParams, headerParams, formParams, postBody,
1264+
authNames, contentTypes, accepts, returnType, callback
1265+
);
1266+
};
1267+
12111268
/**
12121269
* (Optional) Callback function to receive the result of the getAccountSignature operation. If none specified a Promise will be returned.
12131270
* @callback module:api/AccountsApi~getAccountSignatureCallback

src/api/BulkEnvelopesApi.js

Lines changed: 21 additions & 316 deletions
Large diffs are not rendered by default.

src/api/ConnectApi.js

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,56 @@
114114
);
115115
};
116116

117+
/**
118+
* (Optional) Callback function to receive the result of the createConnectSecret operation. If none specified a Promise will be returned.
119+
* @callback module:api/ConnectApi~createConnectSecretCallback
120+
* @param {String} error Error message, if any.
121+
* @param data This operation does not return a value.
122+
* @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.
123+
*/
124+
125+
/**
126+
* Generates a new connect HMAC Secret.
127+
* @param {String} accountId The external account number (int) or account ID Guid.
128+
* @param {module:api/ConnectApi~createConnectSecretCallback} callback The callback function, accepting three arguments: error, data, response
129+
*/
130+
this.createConnectSecret = function(accountId, callback) {
131+
var postBody = null;
132+
133+
// verify the required parameter 'accountId' is set
134+
if (accountId === undefined || accountId === null) {
135+
throw new Error("Missing the required parameter 'accountId' when calling createConnectSecret");
136+
}
137+
138+
if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){
139+
if (typeof optsOrCallback !== 'undefined') {
140+
optsOrCallback = callback;
141+
}
142+
callback = arguments[arguments.length-1];
143+
}
144+
145+
var pathParams = {
146+
'accountId': accountId
147+
};
148+
var queryParams = {
149+
};
150+
var headerParams = {
151+
};
152+
var formParams = {
153+
};
154+
155+
var authNames = ['docusignAccessCode'];
156+
var contentTypes = [];
157+
var accepts = ['application/json'];
158+
var returnType = null;
159+
160+
return this.apiClient.callApi(
161+
'/v2.1/accounts/{accountId}/connect/secret', 'POST',
162+
pathParams, queryParams, headerParams, formParams, postBody,
163+
authNames, contentTypes, accepts, returnType, callback
164+
);
165+
};
166+
117167
/**
118168
* (Optional) Callback function to receive the result of the deleteConfiguration operation. If none specified a Promise will be returned.
119169
* @callback module:api/ConnectApi~deleteConfigurationCallback
@@ -177,6 +227,63 @@
177227
);
178228
};
179229

230+
/**
231+
* (Optional) Callback function to receive the result of the deleteConnectSecret operation. If none specified a Promise will be returned.
232+
* @callback module:api/ConnectApi~deleteConnectSecretCallback
233+
* @param {String} error Error message, if any.
234+
* @param data This operation does not return a value.
235+
* @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.
236+
*/
237+
238+
/**
239+
* Delete the connect HMAC Secret for AccountID
240+
* @param {String} accountId The external account number (int) or account ID Guid.
241+
* @param {String} keyId
242+
* @param {module:api/ConnectApi~deleteConnectSecretCallback} callback The callback function, accepting three arguments: error, data, response
243+
*/
244+
this.deleteConnectSecret = function(accountId, keyId, callback) {
245+
var postBody = null;
246+
247+
// verify the required parameter 'accountId' is set
248+
if (accountId === undefined || accountId === null) {
249+
throw new Error("Missing the required parameter 'accountId' when calling deleteConnectSecret");
250+
}
251+
252+
// verify the required parameter 'keyId' is set
253+
if (keyId === undefined || keyId === null) {
254+
throw new Error("Missing the required parameter 'keyId' when calling deleteConnectSecret");
255+
}
256+
257+
if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){
258+
if (typeof optsOrCallback !== 'undefined') {
259+
optsOrCallback = callback;
260+
}
261+
callback = arguments[arguments.length-1];
262+
}
263+
264+
var pathParams = {
265+
'accountId': accountId,
266+
'keyId': keyId
267+
};
268+
var queryParams = {
269+
};
270+
var headerParams = {
271+
};
272+
var formParams = {
273+
};
274+
275+
var authNames = ['docusignAccessCode'];
276+
var contentTypes = [];
277+
var accepts = ['application/json'];
278+
var returnType = null;
279+
280+
return this.apiClient.callApi(
281+
'/v2.1/accounts/{accountId}/connect/secret/{keyId}/delete', 'DELETE',
282+
pathParams, queryParams, headerParams, formParams, postBody,
283+
authNames, contentTypes, accepts, returnType, callback
284+
);
285+
};
286+
180287
/**
181288
* (Optional) Callback function to receive the result of the deleteEventFailureLog operation. If none specified a Promise will be returned.
182289
* @callback module:api/ConnectApi~deleteEventFailureLogCallback
@@ -408,6 +515,56 @@
408515
);
409516
};
410517

518+
/**
519+
* (Optional) Callback function to receive the result of the generateConnectSecret operation. If none specified a Promise will be returned.
520+
* @callback module:api/ConnectApi~generateConnectSecretCallback
521+
* @param {String} error Error message, if any.
522+
* @param data This operation does not return a value.
523+
* @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.
524+
*/
525+
526+
/**
527+
* Generates a new connect HMAC Secret.
528+
* @param {String} accountId The external account number (int) or account ID Guid.
529+
* @param {module:api/ConnectApi~generateConnectSecretCallback} callback The callback function, accepting three arguments: error, data, response
530+
*/
531+
this.generateConnectSecret = function(accountId, callback) {
532+
var postBody = null;
533+
534+
// verify the required parameter 'accountId' is set
535+
if (accountId === undefined || accountId === null) {
536+
throw new Error("Missing the required parameter 'accountId' when calling generateConnectSecret");
537+
}
538+
539+
if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){
540+
if (typeof optsOrCallback !== 'undefined') {
541+
optsOrCallback = callback;
542+
}
543+
callback = arguments[arguments.length-1];
544+
}
545+
546+
var pathParams = {
547+
'accountId': accountId
548+
};
549+
var queryParams = {
550+
};
551+
var headerParams = {
552+
};
553+
var formParams = {
554+
};
555+
556+
var authNames = ['docusignAccessCode'];
557+
var contentTypes = [];
558+
var accepts = ['application/json'];
559+
var returnType = null;
560+
561+
return this.apiClient.callApi(
562+
'/v2.1/accounts/{accountId}/connect/secret', 'GET',
563+
pathParams, queryParams, headerParams, formParams, postBody,
564+
authNames, contentTypes, accepts, returnType, callback
565+
);
566+
};
567+
411568
/**
412569
* (Optional) Callback function to receive the result of the getConfiguration operation. If none specified a Promise will be returned.
413570
* @callback module:api/ConnectApi~getConfigurationCallback
@@ -470,6 +627,56 @@
470627
);
471628
};
472629

630+
/**
631+
* (Optional) Callback function to receive the result of the getConnectSecrets operation. If none specified a Promise will be returned.
632+
* @callback module:api/ConnectApi~getConnectSecretsCallback
633+
* @param {String} error Error message, if any.
634+
* @param data This operation does not return a value.
635+
* @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.
636+
*/
637+
638+
/**
639+
* Get the connect HMAC Secrets for AccountID
640+
* @param {String} accountId The external account number (int) or account ID Guid.
641+
* @param {module:api/ConnectApi~getConnectSecretsCallback} callback The callback function, accepting three arguments: error, data, response
642+
*/
643+
this.getConnectSecrets = function(accountId, callback) {
644+
var postBody = null;
645+
646+
// verify the required parameter 'accountId' is set
647+
if (accountId === undefined || accountId === null) {
648+
throw new Error("Missing the required parameter 'accountId' when calling getConnectSecrets");
649+
}
650+
651+
if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){
652+
if (typeof optsOrCallback !== 'undefined') {
653+
optsOrCallback = callback;
654+
}
655+
callback = arguments[arguments.length-1];
656+
}
657+
658+
var pathParams = {
659+
'accountId': accountId
660+
};
661+
var queryParams = {
662+
};
663+
var headerParams = {
664+
};
665+
var formParams = {
666+
};
667+
668+
var authNames = ['docusignAccessCode'];
669+
var contentTypes = [];
670+
var accepts = ['application/json'];
671+
var returnType = null;
672+
673+
return this.apiClient.callApi(
674+
'/v2.1/accounts/{accountId}/connect/secrets', 'GET',
675+
pathParams, queryParams, headerParams, formParams, postBody,
676+
authNames, contentTypes, accepts, returnType, callback
677+
);
678+
};
679+
473680
/**
474681
* (Optional) Callback function to receive the result of the getEventLog operation. If none specified a Promise will be returned.
475682
* @callback module:api/ConnectApi~getEventLogCallback

0 commit comments

Comments
 (0)