Skip to content

Commit cf16273

Browse files
author
root
committed
Version 2.3.0-v2.1-1.3.0 release
1 parent e86e728 commit cf16273

12 files changed

Lines changed: 1435 additions & 5 deletions

CHANGELOG.md

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

55

6+
## [v2.3.0] - Admin API v2.1-1.3.0 - 2023-08-02
7+
### Changed
8+
- Added support for version v2.1-1.3.0 of the DocuSign Admin API.
9+
- Updated the SDK release version.
10+
11+
New endpoints:
12+
* `GET /v1/organizations/{organizationId}/assetGroups/accounts` Get asset group accounts for an organization.
13+
* `POST /v1/organizations/{organizationId}/assetGroups/accountClone` Clone an existing DocuSign account.
14+
* `GET /v1/organizations/{organizationId}/assetGroups/accountClones` Gets all asset group account clones for an organization.
15+
* `GET /v1/organizations/{organizationId}/assetGroups/{assetGroupId}/accountClones/{assetGroupWorkId}` Gets information about a single cloned account.
616
## [v2.2.0] - Admin API v2.1-1.2.0 - 2023-05-10
717
### Changed
818
- Added support for version v2.1-1.2.0 of the DocuSign Admin API.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "docusign-admin",
3-
"version": "2.2.0",
3+
"version": "2.3.0",
44
"description": "The DocuSign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.",
55
"license": "MIT",
66
"main": "src/index.js",
@@ -55,7 +55,8 @@
5555
"jsonwebtoken": "^9.0.0",
5656
"passport-oauth2": "^1.6.1",
5757
"safe-buffer": "^5.1.2",
58-
"superagent": "3.8.2"
58+
"superagent": "3.8.2",
59+
"superagent-proxy": "^2.0.0"
5960
},
6061
"devDependencies": {
6162
"docdash": "0.4.0",

src/api/ProvisionAssetGroupApi.js

Lines changed: 318 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,318 @@
1+
/**
2+
* DocuSign Admin API
3+
* An API for an organization administrator to manage organizations, accounts and users
4+
*
5+
* OpenAPI spec version: v2.1
6+
* Contact: devcenter@docusign.com
7+
*
8+
* NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead.
9+
*
10+
*/
11+
12+
(function(root, factory) {
13+
if (typeof define === 'function' && define.amd) {
14+
// AMD. Register as an anonymous module.
15+
define(['Configuration', 'ApiClient', 'model/AssetGroupAccountClone', 'model/AssetGroupAccountClones', 'model/AssetGroupAccountsResponse'], factory);
16+
} else if (typeof module === 'object' && module.exports) {
17+
// CommonJS-like environments that support module.exports, like Node.
18+
module.exports = factory(require('../Configuration'), require('../ApiClient'), require('../model/AssetGroupAccountClone'), require('../model/AssetGroupAccountClones'), require('../model/AssetGroupAccountsResponse'));
19+
} else {
20+
// Browser globals (root is window)
21+
if (!root.DocusignAdmin) {
22+
root.DocusignAdmin = {};
23+
}
24+
root.DocusignAdmin.ProvisionAssetGroupApi = factory(root.DocusignAdmin.Configuration, root.DocusignAdmin.ApiClient, root.DocusignAdmin.AssetGroupAccountClone, root.DocusignAdmin.AssetGroupAccountClones, root.DocusignAdmin.AssetGroupAccountsResponse);
25+
}
26+
}(this, function(Configuration, ApiClient, AssetGroupAccountClone, AssetGroupAccountClones, AssetGroupAccountsResponse) {
27+
'use strict';
28+
29+
/**
30+
* ProvisionAssetGroup service.
31+
* @module api/ProvisionAssetGroupApi
32+
*/
33+
34+
/**
35+
* Constructs a new ProvisionAssetGroupApi.
36+
* @alias module:api/ProvisionAssetGroupApi
37+
* @class
38+
* @param {module:ApiClient} apiClient Optional API client implementation to use,
39+
* default to {@link module:ApiClient#instance} if unspecified.
40+
*/
41+
var exports = function(apiClient) {
42+
this.apiClient = apiClient || Configuration.default.getDefaultApiClient() || ApiClient.instance;
43+
44+
45+
this.setApiClient = function(apiClient) {
46+
this.apiClient = apiClient;
47+
};
48+
49+
this.getApiClient = function() {
50+
return this.apiClient;
51+
};
52+
53+
54+
/**
55+
* (Optional) Callback function to receive the result of the cloneAssetGroupAccount operation. If none specified a Promise will be returned.
56+
* @callback module:api/ProvisionAssetGroupApi~cloneAssetGroupAccountCallback
57+
* @param {String} error Error message, if any.
58+
* @param {module:model/AssetGroupAccountClone} data The data returned by the service call.
59+
* @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.
60+
*/
61+
62+
/**
63+
* Clones an existing DocuSign account to a new DocuSign account.
64+
* Currently this only clones eSign settings and asset group information.
65+
66+
Required scopes: asset_group_account_clone_write
67+
* @param {String} organizationId The Guid representing the organization id.
68+
* @param {module:model/AssetGroupAccountClone} request The request defails for the new asset group account clone.
69+
* @param {module:api/ProvisionAssetGroupApi~cloneAssetGroupAccountCallback} callback The callback function, accepting three arguments: error, data, response
70+
* data is of type: {@link module:model/AssetGroupAccountClone}
71+
*/
72+
this.cloneAssetGroupAccount = function(request, organizationId, callback) {
73+
var postBody = request;
74+
75+
// verify the required parameter 'organizationId' is set
76+
if (organizationId === undefined || organizationId === null) {
77+
throw new Error("Missing the required parameter 'organizationId' when calling cloneAssetGroupAccount");
78+
}
79+
80+
// verify the required parameter 'request' is set
81+
if (request === undefined || request === null) {
82+
throw new Error("Missing the required parameter 'request' when calling cloneAssetGroupAccount");
83+
}
84+
85+
if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){
86+
if (typeof optsOrCallback !== 'undefined') {
87+
optsOrCallback = callback;
88+
}
89+
callback = arguments[arguments.length-1];
90+
}
91+
92+
var pathParams = {
93+
'organizationId': organizationId
94+
};
95+
var queryParams = {
96+
};
97+
var headerParams = {
98+
};
99+
var formParams = {
100+
};
101+
102+
var authNames = [];
103+
var contentTypes = ['application/json'];
104+
var accepts = ['application/json'];
105+
var returnType = AssetGroupAccountClone;
106+
107+
return this.apiClient.callApi(
108+
'/v1/organizations/{organizationId}/assetGroups/accountClone', 'POST',
109+
pathParams, queryParams, headerParams, formParams, postBody,
110+
authNames, contentTypes, accepts, returnType, callback
111+
);
112+
};
113+
114+
/**
115+
* (Optional) Callback function to receive the result of the getAssetGroupAccountClone operation. If none specified a Promise will be returned.
116+
* @callback module:api/ProvisionAssetGroupApi~getAssetGroupAccountCloneCallback
117+
* @param {String} error Error message, if any.
118+
* @param {module:model/AssetGroupAccountClone} data The data returned by the service call.
119+
* @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.
120+
*/
121+
122+
/**
123+
* Gets an asset group account clone by the asset group work id.
124+
* Required scopes: asset_group_account_clone_read
125+
* @param {String} organizationId The Guid representing the organization id.
126+
* @param {String} assetGroupId The Guid representing the asset group id.
127+
* @param {String} assetGroupWorkId The Guid representing the asset group account clone id
128+
* @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely.
129+
* @param {Boolean} optsOrCallback.includeDetails When true, include details for the asset group account clone.
130+
* @param {module:api/ProvisionAssetGroupApi~getAssetGroupAccountCloneCallback} callback The callback function, accepting three arguments: error, data, response
131+
* data is of type: {@link module:model/AssetGroupAccountClone}
132+
*/
133+
this.getAssetGroupAccountClone = function(organizationId, assetGroupId, assetGroupWorkId, optsOrCallback, callback) {
134+
optsOrCallback = optsOrCallback || {};
135+
136+
if (typeof optsOrCallback === 'function') {
137+
callback = optsOrCallback;
138+
optsOrCallback = {};
139+
}
140+
141+
var postBody = null;
142+
143+
// verify the required parameter 'organizationId' is set
144+
if (organizationId === undefined || organizationId === null) {
145+
throw new Error("Missing the required parameter 'organizationId' when calling getAssetGroupAccountClone");
146+
}
147+
148+
// verify the required parameter 'assetGroupId' is set
149+
if (assetGroupId === undefined || assetGroupId === null) {
150+
throw new Error("Missing the required parameter 'assetGroupId' when calling getAssetGroupAccountClone");
151+
}
152+
153+
// verify the required parameter 'assetGroupWorkId' is set
154+
if (assetGroupWorkId === undefined || assetGroupWorkId === null) {
155+
throw new Error("Missing the required parameter 'assetGroupWorkId' when calling getAssetGroupAccountClone");
156+
}
157+
158+
if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){
159+
if (typeof optsOrCallback !== 'undefined') {
160+
optsOrCallback = callback;
161+
}
162+
callback = arguments[arguments.length-1];
163+
}
164+
165+
var pathParams = {
166+
'organizationId': organizationId,
167+
'assetGroupId': assetGroupId,
168+
'assetGroupWorkId': assetGroupWorkId
169+
};
170+
var queryParams = {
171+
'include_details': optsOrCallback['includeDetails']
172+
};
173+
var headerParams = {
174+
};
175+
var formParams = {
176+
};
177+
178+
var authNames = [];
179+
var contentTypes = ['application/json'];
180+
var accepts = ['application/json'];
181+
var returnType = AssetGroupAccountClone;
182+
183+
return this.apiClient.callApi(
184+
'/v1/organizations/{organizationId}/assetGroups/{assetGroupId}/accountClones/{assetGroupWorkId}', 'GET',
185+
pathParams, queryParams, headerParams, formParams, postBody,
186+
authNames, contentTypes, accepts, returnType, callback
187+
);
188+
};
189+
190+
/**
191+
* (Optional) Callback function to receive the result of the getAssetGroupAccountClonesByOrgId operation. If none specified a Promise will be returned.
192+
* @callback module:api/ProvisionAssetGroupApi~getAssetGroupAccountClonesByOrgIdCallback
193+
* @param {String} error Error message, if any.
194+
* @param {module:model/AssetGroupAccountClones} data The data returned by the service call.
195+
* @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.
196+
*/
197+
198+
/**
199+
* Gets all asset group account clone(s) for an organization id.
200+
* Required scopes: asset_group_account_clone_read
201+
* @param {String} organizationId The Guid representing the organization id.
202+
* @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely.
203+
* @param {Date} optsOrCallback.sinceUpdatedDate When provided and is in the past, only return asset group account clone(s) that is updated after the date.
204+
* @param {Boolean} optsOrCallback.includeDetails When true, include details for the asset group account clone(s).
205+
* @param {module:api/ProvisionAssetGroupApi~getAssetGroupAccountClonesByOrgIdCallback} callback The callback function, accepting three arguments: error, data, response
206+
* data is of type: {@link module:model/AssetGroupAccountClones}
207+
*/
208+
this.getAssetGroupAccountClonesByOrgId = function(organizationId, optsOrCallback, callback) {
209+
optsOrCallback = optsOrCallback || {};
210+
211+
if (typeof optsOrCallback === 'function') {
212+
callback = optsOrCallback;
213+
optsOrCallback = {};
214+
}
215+
216+
var postBody = null;
217+
218+
// verify the required parameter 'organizationId' is set
219+
if (organizationId === undefined || organizationId === null) {
220+
throw new Error("Missing the required parameter 'organizationId' when calling getAssetGroupAccountClonesByOrgId");
221+
}
222+
223+
if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){
224+
if (typeof optsOrCallback !== 'undefined') {
225+
optsOrCallback = callback;
226+
}
227+
callback = arguments[arguments.length-1];
228+
}
229+
230+
var pathParams = {
231+
'organizationId': organizationId
232+
};
233+
var queryParams = {
234+
'since_updated_date': optsOrCallback['sinceUpdatedDate'],
235+
'include_details': optsOrCallback['includeDetails']
236+
};
237+
var headerParams = {
238+
};
239+
var formParams = {
240+
};
241+
242+
var authNames = [];
243+
var contentTypes = ['application/json'];
244+
var accepts = ['application/json'];
245+
var returnType = AssetGroupAccountClones;
246+
247+
return this.apiClient.callApi(
248+
'/v1/organizations/{organizationId}/assetGroups/accountClones', 'GET',
249+
pathParams, queryParams, headerParams, formParams, postBody,
250+
authNames, contentTypes, accepts, returnType, callback
251+
);
252+
};
253+
254+
/**
255+
* (Optional) Callback function to receive the result of the getAssetGroupAccounts operation. If none specified a Promise will be returned.
256+
* @callback module:api/ProvisionAssetGroupApi~getAssetGroupAccountsCallback
257+
* @param {String} error Error message, if any.
258+
* @param {module:model/AssetGroupAccountsResponse} data The data returned by the service call.
259+
* @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.
260+
*/
261+
262+
/**
263+
* Get all accounts in asset groups for the organization.
264+
* Required scopes: asset_group_account_read
265+
* @param {String} organizationId The Guid representing the organization id.
266+
* @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely.
267+
* @param {Boolean} optsOrCallback.compliant Whether to return accounts that are compliant. When provided, account responses will not include compliant field.
268+
* @param {module:api/ProvisionAssetGroupApi~getAssetGroupAccountsCallback} callback The callback function, accepting three arguments: error, data, response
269+
* data is of type: {@link module:model/AssetGroupAccountsResponse}
270+
*/
271+
this.getAssetGroupAccounts = function(organizationId, optsOrCallback, callback) {
272+
optsOrCallback = optsOrCallback || {};
273+
274+
if (typeof optsOrCallback === 'function') {
275+
callback = optsOrCallback;
276+
optsOrCallback = {};
277+
}
278+
279+
var postBody = null;
280+
281+
// verify the required parameter 'organizationId' is set
282+
if (organizationId === undefined || organizationId === null) {
283+
throw new Error("Missing the required parameter 'organizationId' when calling getAssetGroupAccounts");
284+
}
285+
286+
if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){
287+
if (typeof optsOrCallback !== 'undefined') {
288+
optsOrCallback = callback;
289+
}
290+
callback = arguments[arguments.length-1];
291+
}
292+
293+
var pathParams = {
294+
'organizationId': organizationId
295+
};
296+
var queryParams = {
297+
'compliant': optsOrCallback['compliant']
298+
};
299+
var headerParams = {
300+
};
301+
var formParams = {
302+
};
303+
304+
var authNames = [];
305+
var contentTypes = ['application/json'];
306+
var accepts = ['application/json'];
307+
var returnType = AssetGroupAccountsResponse;
308+
309+
return this.apiClient.callApi(
310+
'/v1/organizations/{organizationId}/assetGroups/accounts', 'GET',
311+
pathParams, queryParams, headerParams, formParams, postBody,
312+
authNames, contentTypes, accepts, returnType, callback
313+
);
314+
};
315+
};
316+
317+
return exports;
318+
}));

0 commit comments

Comments
 (0)