Skip to content

Commit e86e728

Browse files
authored
Merge pull request #9 from docusign/2.2.0-v2.1-1.2.0
Version 2.2.0 release
2 parents 254398f + 4276dce commit e86e728

10 files changed

Lines changed: 687 additions & 8 deletions

CHANGELOG.md

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

55

6+
## [v2.2.0] - Admin API v2.1-1.2.0 - 2023-05-10
7+
### Changed
8+
- Added support for version v2.1-1.2.0 of the DocuSign Admin API.
9+
- Updated the SDK release version.
10+
611
## [v2.1.0] - Admin API v2.1-1.1.1 - 2023-03-22
712
### Changed
813
- Added support for version v2.1-1.1.1 of the DocuSign Admin 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-admin",
3-
"version": "2.1.0",
3+
"version": "2.2.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",

src/api/AccountsApi.js

Lines changed: 62 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(['Configuration', 'ApiClient', 'model/MemberGroupsResponse', 'model/OrganizationsResponse', 'model/PermissionsResponse'], factory);
15+
define(['Configuration', 'ApiClient', 'model/IndividualMembershipDataRedactionRequest', 'model/IndividualUserDataRedactionResponse', 'model/MemberGroupsResponse', 'model/OrganizationsResponse', 'model/PermissionsResponse'], factory);
1616
} else if (typeof module === 'object' && module.exports) {
1717
// CommonJS-like environments that support module.exports, like Node.
18-
module.exports = factory(require('../Configuration'), require('../ApiClient'), require('../model/MemberGroupsResponse'), require('../model/OrganizationsResponse'), require('../model/PermissionsResponse'));
18+
module.exports = factory(require('../Configuration'), require('../ApiClient'), require('../model/IndividualMembershipDataRedactionRequest'), require('../model/IndividualUserDataRedactionResponse'), require('../model/MemberGroupsResponse'), require('../model/OrganizationsResponse'), require('../model/PermissionsResponse'));
1919
} else {
2020
// Browser globals (root is window)
2121
if (!root.DocusignAdmin) {
2222
root.DocusignAdmin = {};
2323
}
24-
root.DocusignAdmin.AccountsApi = factory(root.DocusignAdmin.Configuration, root.DocusignAdmin.ApiClient, root.DocusignAdmin.MemberGroupsResponse, root.DocusignAdmin.OrganizationsResponse, root.DocusignAdmin.PermissionsResponse);
24+
root.DocusignAdmin.AccountsApi = factory(root.DocusignAdmin.Configuration, root.DocusignAdmin.ApiClient, root.DocusignAdmin.IndividualMembershipDataRedactionRequest, root.DocusignAdmin.IndividualUserDataRedactionResponse, root.DocusignAdmin.MemberGroupsResponse, root.DocusignAdmin.OrganizationsResponse, root.DocusignAdmin.PermissionsResponse);
2525
}
26-
}(this, function(Configuration, ApiClient, MemberGroupsResponse, OrganizationsResponse, PermissionsResponse) {
26+
}(this, function(Configuration, ApiClient, IndividualMembershipDataRedactionRequest, IndividualUserDataRedactionResponse, MemberGroupsResponse, OrganizationsResponse, PermissionsResponse) {
2727
'use strict';
2828

2929
/**
@@ -237,6 +237,64 @@
237237
authNames, contentTypes, accepts, returnType, callback
238238
);
239239
};
240+
241+
/**
242+
* (Optional) Callback function to receive the result of the redactIndividualMembershipData operation. If none specified a Promise will be returned.
243+
* @callback module:api/AccountsApi~redactIndividualMembershipDataCallback
244+
* @param {String} error Error message, if any.
245+
* @param {module:model/IndividualUserDataRedactionResponse} data The data returned by the service call.
246+
* @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data.
247+
*/
248+
249+
/**
250+
* Redacts membership data for users with memberships in an account.
251+
* Required scopes: user_data_redact
252+
* @param {String} accountId The account ID Guid
253+
* @param {module:model/IndividualMembershipDataRedactionRequest} requestModel The request body describing the membership to be redacted
254+
* @param {module:api/AccountsApi~redactIndividualMembershipDataCallback} callback The callback function, accepting three arguments: error, data, response
255+
* data is of type: {@link module:model/IndividualUserDataRedactionResponse}
256+
*/
257+
this.redactIndividualMembershipData = function(requestModel, accountId, callback) {
258+
var postBody = requestModel;
259+
260+
// verify the required parameter 'accountId' is set
261+
if (accountId === undefined || accountId === null) {
262+
throw new Error("Missing the required parameter 'accountId' when calling redactIndividualMembershipData");
263+
}
264+
265+
// verify the required parameter 'requestModel' is set
266+
if (requestModel === undefined || requestModel === null) {
267+
throw new Error("Missing the required parameter 'requestModel' when calling redactIndividualMembershipData");
268+
}
269+
270+
if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){
271+
if (typeof optsOrCallback !== 'undefined') {
272+
optsOrCallback = callback;
273+
}
274+
callback = arguments[arguments.length-1];
275+
}
276+
277+
var pathParams = {
278+
'accountId': accountId
279+
};
280+
var queryParams = {
281+
};
282+
var headerParams = {
283+
};
284+
var formParams = {
285+
};
286+
287+
var authNames = [];
288+
var contentTypes = ['application/json'];
289+
var accepts = ['application/json'];
290+
var returnType = IndividualUserDataRedactionResponse;
291+
292+
return this.apiClient.callApi(
293+
'/v2/data_redaction/accounts/{accountId}/user', 'POST',
294+
pathParams, queryParams, headerParams, formParams, postBody,
295+
authNames, contentTypes, accepts, returnType, callback
296+
);
297+
};
240298
};
241299

242300
return exports;

src/api/OrganizationsApi.js

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
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/IndividualUserDataRedactionRequest', 'model/IndividualUserDataRedactionResponse'], 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/IndividualUserDataRedactionRequest'), require('../model/IndividualUserDataRedactionResponse'));
19+
} else {
20+
// Browser globals (root is window)
21+
if (!root.DocusignAdmin) {
22+
root.DocusignAdmin = {};
23+
}
24+
root.DocusignAdmin.OrganizationsApi = factory(root.DocusignAdmin.Configuration, root.DocusignAdmin.ApiClient, root.DocusignAdmin.IndividualUserDataRedactionRequest, root.DocusignAdmin.IndividualUserDataRedactionResponse);
25+
}
26+
}(this, function(Configuration, ApiClient, IndividualUserDataRedactionRequest, IndividualUserDataRedactionResponse) {
27+
'use strict';
28+
29+
/**
30+
* Organizations service.
31+
* @module api/OrganizationsApi
32+
*/
33+
34+
/**
35+
* Constructs a new OrganizationsApi.
36+
* @alias module:api/OrganizationsApi
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 redactIndividualUserData operation. If none specified a Promise will be returned.
56+
* @callback module:api/OrganizationsApi~redactIndividualUserDataCallback
57+
* @param {String} error Error message, if any.
58+
* @param {module:model/IndividualUserDataRedactionResponse} 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+
* Redacts membership and user data for users in an organization.
64+
* Required scopes: user_data_redact
65+
* @param {String} organizationId The organization ID Guid
66+
* @param {module:model/IndividualUserDataRedactionRequest} requestModel The request body describing the users and memberships to be redacted
67+
* @param {module:api/OrganizationsApi~redactIndividualUserDataCallback} callback The callback function, accepting three arguments: error, data, response
68+
* data is of type: {@link module:model/IndividualUserDataRedactionResponse}
69+
*/
70+
this.redactIndividualUserData = function(requestModel, organizationId, callback) {
71+
var postBody = requestModel;
72+
73+
// verify the required parameter 'organizationId' is set
74+
if (organizationId === undefined || organizationId === null) {
75+
throw new Error("Missing the required parameter 'organizationId' when calling redactIndividualUserData");
76+
}
77+
78+
// verify the required parameter 'requestModel' is set
79+
if (requestModel === undefined || requestModel === null) {
80+
throw new Error("Missing the required parameter 'requestModel' when calling redactIndividualUserData");
81+
}
82+
83+
if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){
84+
if (typeof optsOrCallback !== 'undefined') {
85+
optsOrCallback = callback;
86+
}
87+
callback = arguments[arguments.length-1];
88+
}
89+
90+
var pathParams = {
91+
'organizationId': organizationId
92+
};
93+
var queryParams = {
94+
};
95+
var headerParams = {
96+
};
97+
var formParams = {
98+
};
99+
100+
var authNames = [];
101+
var contentTypes = ['application/json'];
102+
var accepts = ['application/json'];
103+
var returnType = IndividualUserDataRedactionResponse;
104+
105+
return this.apiClient.callApi(
106+
'/v2/data_redaction/organizations/{organizationId}/user', 'POST',
107+
pathParams, queryParams, headerParams, formParams, postBody,
108+
authNames, contentTypes, accepts, returnType, callback
109+
);
110+
};
111+
};
112+
113+
return exports;
114+
}));

0 commit comments

Comments
 (0)