├── loanco.png ├── jsconfig.json ├── src ├── oauth │ ├── ResponseType.js │ ├── BasePath.js │ ├── Scope.js │ ├── Link.js │ ├── Account.js │ └── Organization.js ├── RestApi.js ├── Configuration.js ├── OAuth.js └── model │ ├── UpdateResponse.js │ ├── UserIdentityRequest.js │ ├── OrgExportSelectedDomain.js │ ├── OrganizationExportDomain.js │ ├── OrganizationSimpleIdObject.js │ ├── DSGroupRequest.js │ ├── OrgExportSelectedAccount.js │ ├── DeleteMembershipRequest.js │ ├── OrganizationExportAccount.js │ ├── OrgReportCreateResponse.js │ ├── MembershipDataRedactionRequest.js │ ├── DSGroupUsersAddRequest.js │ ├── UpdateUsersRequest.js │ ├── LinkResponse.js │ ├── DomainsResponse.js │ ├── OrganizationAccountRequest.js │ ├── ForceActivateMembershipRequest.js │ ├── UsersDrilldownResponse.js │ ├── IndividualMembershipDataRedactionRequest.js │ ├── ErrorDetails.js │ ├── UpdateUsersEmailRequest.js │ ├── OrganizationsResponse.js │ ├── PermissionsResponse.js │ ├── OETRErrorDetails.js │ ├── OrgReportListResponse.js │ ├── PermissionProfileResponse.js │ ├── OASIRRErrorDetails.js │ ├── OrganizationExportsResponse.js │ ├── OrganizationImportsResponse.js │ ├── OrganizationAccountsRequest.js │ ├── AssetGroupAccountClones.js │ ├── PermissionProfileRequest.js │ ├── IdentityProvidersResponse.js │ ├── OrgReportListResponseRequestor.js │ ├── DSGroupAddRequest.js │ ├── DSGroupUsersRemoveRequest.js │ ├── DeleteMembershipsRequest.js │ ├── DeleteUserIdentityRequest.js │ ├── AssetGroupAccountsResponse.js │ ├── SubAccountCreateWorkerResponse.js │ ├── DeleteResponse.js │ ├── OSAMRContact.js │ ├── UsersUpdateResponse.js │ ├── SettingResponse.js │ ├── DeleteMembershipResponse.js │ ├── GroupRequest.js │ ├── OrganizationImportResponseErrorRollup.js │ ├── MemberGroupResponse.js │ ├── OrganizationImportResponseWarningRollup.js │ ├── PermissionProfileResponse21.js │ ├── ProductPermissionProfilesResponse.js │ ├── DeleteMembershipsResponse.js │ ├── RemoveDSGroupUsersResponse.js │ ├── SubAccountCreateSubscriptionModuleDetails.js │ ├── DSGroupAndUsersResponse.js │ ├── MemberGroupsResponse.js │ ├── AddDSGroupAndUsersResponse.js │ ├── IndividualUserDataRedactionRequest.js │ ├── ProductPermissionProfileRequest.js │ ├── CloneErrorDetails.js │ ├── ProductPermissionProfilesRequest.js │ ├── OrganizationUsersResponse.js │ ├── UpdateUserEmailRequest.js │ ├── SubscriptionProvisionModelChangeEvent.js │ ├── SubAccountErrorDetails.js │ ├── AddDSGroupUsersResponse.js │ ├── UserProductProfileDeleteRequest.js │ ├── SubAccountCreateRequestSubAccountCreationSubscription.js │ ├── OrgReportConfigurationResponse.js │ ├── OrganizationExportRequestorResponse.js │ ├── OrganizationImportResponseRequestor.js │ ├── OrganizationAccountResponse.js │ ├── UserUpdateResponse.js │ └── DSGroupUsersResponse.js ├── .gitignore ├── test └── docs │ └── fileInput.csv ├── test-config.js ├── .jsdoc.json ├── LICENSE ├── .swagger-codegen-ignore └── package.json /loanco.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/docusign/docusign-admin-node-client/master/loanco.png -------------------------------------------------------------------------------- /jsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "target": "ES6", 4 | "module": "commonjs" 5 | } 6 | } -------------------------------------------------------------------------------- /src/oauth/ResponseType.js: -------------------------------------------------------------------------------- 1 | var CODE = 'code'; 2 | var TOKEN = 'token'; 3 | 4 | module.exports = { 5 | CODE: CODE, 6 | TOKEN: TOKEN, 7 | } 8 | 9 | Object.freeze(module.exports); -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | coverage 3 | .nyc_output/ 4 | *.DS_Store 5 | auth-info.json 6 | config.json 7 | .idea/ 8 | npm-debug.log 9 | package-lock.json 10 | test.txt 11 | .swagger-codegen/ 12 | test-results.xml -------------------------------------------------------------------------------- /src/oauth/BasePath.js: -------------------------------------------------------------------------------- 1 | var PRODUCTION = "account.docusign.com"; 2 | var DEMO = "account-d.docusign.com"; 3 | var STAGE = "account-s.docusign.com"; 4 | 5 | module.exports = { 6 | PRODUCTION: PRODUCTION, 7 | DEMO: DEMO, 8 | STAGE: STAGE 9 | }; 10 | 11 | Object.freeze(module.exports) -------------------------------------------------------------------------------- /src/RestApi.js: -------------------------------------------------------------------------------- 1 | const PRODUCTION_BASE_PATH = 'https://api.docusign.net/management'; 2 | const DEMO_BASE_PATH = 'https://api-d.docusign.net/management'; 3 | const STAGE_BASE_PATH = 'https://api-s.docusign.net/management'; 4 | 5 | module.exports = { 6 | BasePath: { 7 | PRODUCTION: PRODUCTION_BASE_PATH, 8 | DEMO: DEMO_BASE_PATH, 9 | STAGE: STAGE_BASE_PATH 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /test/docs/fileInput.csv: -------------------------------------------------------------------------------- 1 | AccountID,AccountName,FirstName,LastName,UserEmail,eSignPermissionProfile,Group,Language,UserTitle,CompanyName,AddressLine1,AddressLine2,City,StateRegionProvince,PostalCode,Phone,LoginPolicy,AutoActivate 2 | ,Sample Account,John,Markson,John@testing.test,Account Administrator,Everyone,en,Mr.,Some Division,123 4th St,Suite C1,Seattle,WA,8178,2065559999,fedAuthRequired, 3 | -------------------------------------------------------------------------------- /test-config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | integratorKey: process.env.INTEGRATOR_KEY_JWT, 3 | apiEnv: 'demo', 4 | debug: false, 5 | email: process.env.EMAIL, 6 | userId: process.env.USER_ID, 7 | templateId: process.env.TEMPLATE_ID, 8 | templateRole: 'bob', 9 | integratorKeyAuthCode: process.env.INTEGRATOR_KEY_AUTH_CODE, 10 | integratorKeyImplicit: process.env.INTEGRATOR_KEY_IMPLICIT, 11 | clientSecret: process.env.CLIENT_SECRET, 12 | brandId: process.env.BRAND_ID, 13 | privateKey: process.env.PRIVATE_KEY 14 | }; 15 | -------------------------------------------------------------------------------- /.jsdoc.json: -------------------------------------------------------------------------------- 1 | { 2 | "tags": { 3 | "allowUnknownTags": true 4 | }, 5 | "source": { 6 | "include": ["src", "package.json"], 7 | "includePattern": ".js$", 8 | "excludePattern": "(node_modules/|docs)" 9 | }, 10 | "plugins": [ 11 | "plugins/markdown" 12 | ], 13 | "markdown": { 14 | "parser": "gfm", 15 | "hardwrap": true 16 | }, 17 | "templates": { 18 | "cleverLinks": false, 19 | "monospaceLinks": true, 20 | "useLongnameInNav": false 21 | }, 22 | "opts": { 23 | "source": "./src/", 24 | "destination": "./docs/", 25 | "encoding": "utf8", 26 | "recurse": true, 27 | "template": "./node_modules/docdash" 28 | }, 29 | "docdash": { 30 | "static": false, 31 | "sort": true 32 | } 33 | } -------------------------------------------------------------------------------- /src/oauth/Scope.js: -------------------------------------------------------------------------------- 1 | var SIGNATURE = 'signature'; 2 | var EXTENDED = 'extended'; 3 | var IMPERSONATION = 'impersonation'; 4 | var COMPANY_WRITE = 'dtr.company.write'; 5 | var COMPANY_READ = 'dtr.company.read'; 6 | var MONITOR_WRITE = 'dtr.orgadmin.write'; 7 | var MONITOR_READ = 'dtr.orgadmin.read'; 8 | var ORGANIZATION_READ = 'organization_read'; 9 | var ORGANIZATION_WRITE = 'organization_write'; 10 | var USER_READ = 'user_read'; 11 | var USER_WRITE = 'user_write'; 12 | 13 | module.exports = { 14 | SIGNATURE: SIGNATURE, 15 | EXTENDED: EXTENDED, 16 | IMPERSONATION: IMPERSONATION, 17 | COMPANY_WRITE: COMPANY_WRITE, 18 | COMPANY_READ: COMPANY_READ, 19 | MONITOR_WRITE: MONITOR_WRITE, 20 | MONITOR_READ: MONITOR_READ, 21 | ORGANIZATION_READ: ORGANIZATION_READ, 22 | ORGANIZATION_WRITE: ORGANIZATION_WRITE, 23 | USER_READ: USER_READ, 24 | USER_WRITE: USER_WRITE, 25 | }; 26 | 27 | Object.freeze(module.exports); 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2021- DocuSign, Inc. (https://www.docusign.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /.swagger-codegen-ignore: -------------------------------------------------------------------------------- 1 | # Swagger Codegen Ignore 2 | 3 | # Use this file to prevent files from being overwritten by the generator. 4 | # The patterns follow closely to .gitignore or .dockerignore. 5 | 6 | # As an example, the C# client generator defines ApiClient.cs. 7 | # You can make changes and tell Swagger Codgen to ignore just this file by uncommenting the following line: 8 | #ApiClient.cs 9 | 10 | # You can match any string of characters against a directory, file or extension with a single asterisk (*): 11 | #foo/*/qux 12 | # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux 13 | 14 | # You can recursively match patterns against a directory, file or extension with a double asterisk (**): 15 | #foo/**/qux 16 | # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux 17 | 18 | # You can also negate patterns with an exclamation (!). 19 | # For example, you can ignore all files in a docs folder with the file extension .md: 20 | #docs/*.md 21 | # Then explicitly reverse the ignore rule for a single file: 22 | #!docs/README.md 23 | 24 | # Swagger and Git files 25 | .swagger-codegen-ignore 26 | .gitignore 27 | CHANGELOG.md 28 | README.md 29 | git_push.sh 30 | 31 | # Project files 32 | LICENSE 33 | .travis.yml 34 | mocha.opts 35 | 36 | # Specific src and test files 37 | docs/*.md 38 | test/*/*.spec.js 39 | test/assert-equals.js 40 | src/OAuth.js 41 | src/RestApi.js 42 | src/ApiClient.js 43 | src/oauth/ 44 | -------------------------------------------------------------------------------- /src/Configuration.js: -------------------------------------------------------------------------------- 1 | (function(root, factory) { 2 | if (typeof define === 'function' && define.amd) { 3 | // AMD. Register as an anonymous module. 4 | define([undefined, './ApiClient'], factory); 5 | } else if (typeof module === 'object' && module.exports) { 6 | // CommonJS-like environments that support module.exports, like Node. 7 | module.exports = factory(undefined, require('./ApiClient')); 8 | } else { 9 | // Browser globals (root is window) 10 | if (!root.Docusign) { 11 | root.Docusign = {}; 12 | } 13 | factory(root.Docusign, root.Docusign.ApiClient); 14 | } 15 | }(this, function(module, ApiClient) { 16 | 'use strict'; 17 | 18 | var Configuration = function Configuration() { 19 | /** 20 | * The API client to use for every API call. 21 | */ 22 | this.defaultApiClient = new ApiClient(); 23 | 24 | /** 25 | * The default HTTP headers to be included for all API calls. 26 | */ 27 | // Add DocuSign Tracking Header 28 | this.defaultHeaders = { "X-DocuSign-SDK": "Node" }; 29 | }; 30 | 31 | /** 32 | * Get the default API client, which would be used when creating API 33 | * instances without providing an API client. 34 | */ 35 | Configuration.prototype.getDefaultApiClient = function getDefaultApiClient() { 36 | return this.defaultApiClient; 37 | }; 38 | 39 | /** 40 | * Sets the default API client. 41 | */ 42 | Configuration.prototype.setDefaultApiClient = function setDefaultApiClient(defaultApiClient) { 43 | this.defaultApiClient = defaultApiClient; 44 | }; 45 | 46 | Configuration.default = new Configuration(); 47 | 48 | return Configuration; 49 | })); -------------------------------------------------------------------------------- /src/OAuth.js: -------------------------------------------------------------------------------- 1 | var Scope_SIGNATURE = require('./oauth/Scope').SIGNATURE; 2 | var Scope_EXTENDED = require('./oauth/Scope').EXTENDED; 3 | var Scope_IMPERSONATION = require('./oauth/Scope').IMPERSONATION; 4 | var Scope_COMPANY_WRITE = require('./oauth/Scope').COMPANY_WRITE; 5 | var Scope_COMPANY_READ = require('./oauth/Scope').COMPANY_READ; 6 | var Scope_MONITOR_WRITE = require('./oauth/Scope').MONITOR_WRITE; 7 | var Scope_MONITOR_READ = require('./oauth/Scope').MONITOR_READ; 8 | var Scope_ORGANIZATION_READ = require('./oauth/Scope').ORGANIZATION_READ; 9 | var Scope_ORGANIZATION_WRITE = require('./oauth/Scope').ORGANIZATION_WRITE; 10 | var Scope_USER_WRITE = require('./oauth/Scope').USER_WRITE; 11 | var Scope_USER_READ = require('./oauth/Scope').USER_READ; 12 | 13 | var PRODUCTION_OAUTH_BASE_PATH = require('./oauth/BasePath').PRODUCTION; 14 | var DEMO_OAUTH_BASE_PATH = require('./oauth/BasePath').DEMO; 15 | var STAGE_OAUTH_BASE_PATH = require('./oauth/BasePath').STAGE; 16 | var CODE = require('./oauth/ResponseType').CODE; 17 | var TOKEN = require('./oauth/ResponseType').TOKEN; 18 | var UserInfo = require('./oauth/UserInfo'); 19 | var OAuthToken = require('./oauth/OAuthToken'); 20 | 21 | module.exports = { 22 | Scope: { 23 | SIGNATURE: Scope_SIGNATURE, 24 | EXTENDED: Scope_EXTENDED, 25 | IMPERSONATION: Scope_IMPERSONATION, 26 | COMPANY_WRITE: Scope_COMPANY_WRITE, 27 | COMPANY_READ: Scope_COMPANY_READ, 28 | MONITOR_WRITE: Scope_MONITOR_WRITE, 29 | MONITOR_READ: Scope_MONITOR_READ, 30 | ORGANIZATION_READ: Scope_ORGANIZATION_READ, 31 | ORGANIZATION_WRITE: Scope_ORGANIZATION_WRITE, 32 | USER_WRITE: Scope_USER_WRITE, 33 | USER_READ: Scope_USER_READ 34 | }, 35 | ResponseType: { 36 | CODE: CODE, 37 | TOKEN: TOKEN, 38 | }, 39 | BasePath: { 40 | PRODUCTION: PRODUCTION_OAUTH_BASE_PATH, 41 | STAGE: STAGE_OAUTH_BASE_PATH, 42 | DEMO: DEMO_OAUTH_BASE_PATH, 43 | }, 44 | UserInfo: UserInfo, 45 | OAuthToken: OAuthToken 46 | }; 47 | 48 | Object.freeze(module.exports.Scope); 49 | Object.freeze(module.exports.ResponseType); 50 | Object.freeze(module.exports.BasePath); 51 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "docusign-admin", 3 | "version": "3.0.0", 4 | "description": "The Docusign Admin API enables you to automate user management with your existing systems while ensuring governance and compliance.", 5 | "license": "MIT", 6 | "main": "src/index.js", 7 | "author": "DocuSign Developer Center ", 8 | "contributors": [ 9 | "https://github.com/docusign/docusign-node-client/contributors" 10 | ], 11 | "files": [ 12 | "src" 13 | ], 14 | "keywords": [ 15 | "docusign", 16 | "signature", 17 | "esignature", 18 | "esign", 19 | "digital", 20 | "electronic", 21 | "transaction", 22 | "document", 23 | "certificate", 24 | "DTM", 25 | "PDF" 26 | ], 27 | "engines": { 28 | "node": ">=2.2.1" 29 | }, 30 | "repository": { 31 | "type": "git", 32 | "url": "https://github.com/docusign/docusign-node-client.git" 33 | }, 34 | "scripts": { 35 | "docs": "npm run update-docs && git add docs/ && git commit -m 'update docs' && npm run push-docs", 36 | "push-docs": "git subtree push --prefix docs origin gh-pages", 37 | "update-docs": "./node_modules/.bin/jsdoc -c .jsdoc.json", 38 | "check-config": "./scripts/check-config.js", 39 | "test": "semistandard --fix && ./node_modules/mocha/bin/mocha --reporter mocha-junit-reporter --timeout 60000" 40 | }, 41 | "semistandard": { 42 | "globals": [ 43 | "before", 44 | "describe", 45 | "it" 46 | ], 47 | "ignore": [ 48 | "/src", 49 | "/docs", 50 | "/scripts" 51 | ] 52 | }, 53 | "dependencies": { 54 | "axios": "^1.6.8", 55 | "@devhigley/parse-proxy":"^1.0.3", 56 | "csv-stringify": "^1.0.0", 57 | "jsonwebtoken": "^9.0.0", 58 | "passport-oauth2": "^1.6.1", 59 | "safe-buffer": "^5.1.2" 60 | }, 61 | "devDependencies": { 62 | "docdash": "0.4.0", 63 | "expect.js": "~0.3.1", 64 | "jsdoc": "3.6.10", 65 | "mocha": "~5.0.4", 66 | "mocha-junit-reporter": "^1.18.0", 67 | "pdf-parse-fork": "^1.2.0", 68 | "semistandard": "^12.0.1" 69 | } 70 | } 71 | -------------------------------------------------------------------------------- /src/model/UpdateResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.UpdateResponse = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UpdateResponse model module. 32 | * @module model/UpdateResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new UpdateResponse. 37 | * @alias module:model/UpdateResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a UpdateResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/UpdateResponse} obj Optional instance to populate. 51 | * @return {module:model/UpdateResponse} The populated UpdateResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('status')) { 58 | obj['status'] = ApiClient.convertToType(data['status'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {String} status 66 | */ 67 | exports.prototype['status'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/UserIdentityRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.UserIdentityRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UserIdentityRequest model module. 32 | * @module model/UserIdentityRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new UserIdentityRequest. 37 | * @alias module:model/UserIdentityRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a UserIdentityRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/UserIdentityRequest} obj Optional instance to populate. 51 | * @return {module:model/UserIdentityRequest} The populated UserIdentityRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('id')) { 58 | obj['id'] = ApiClient.convertToType(data['id'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {String} id 66 | */ 67 | exports.prototype['id'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/OrgExportSelectedDomain.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrgExportSelectedDomain = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrgExportSelectedDomain model module. 32 | * @module model/OrgExportSelectedDomain 33 | */ 34 | 35 | /** 36 | * Constructs a new OrgExportSelectedDomain. 37 | * @alias module:model/OrgExportSelectedDomain 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrgExportSelectedDomain from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrgExportSelectedDomain} obj Optional instance to populate. 51 | * @return {module:model/OrgExportSelectedDomain} The populated OrgExportSelectedDomain instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('domain')) { 58 | obj['domain'] = ApiClient.convertToType(data['domain'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {String} domain 66 | */ 67 | exports.prototype['domain'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/OrganizationExportDomain.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationExportDomain = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationExportDomain model module. 32 | * @module model/OrganizationExportDomain 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationExportDomain. 37 | * @alias module:model/OrganizationExportDomain 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationExportDomain from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationExportDomain} obj Optional instance to populate. 51 | * @return {module:model/OrganizationExportDomain} The populated OrganizationExportDomain instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('domain')) { 58 | obj['domain'] = ApiClient.convertToType(data['domain'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {String} domain 66 | */ 67 | exports.prototype['domain'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/OrganizationSimpleIdObject.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationSimpleIdObject = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationSimpleIdObject model module. 32 | * @module model/OrganizationSimpleIdObject 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationSimpleIdObject. 37 | * @alias module:model/OrganizationSimpleIdObject 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationSimpleIdObject from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationSimpleIdObject} obj Optional instance to populate. 51 | * @return {module:model/OrganizationSimpleIdObject} The populated OrganizationSimpleIdObject instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('id')) { 58 | obj['id'] = ApiClient.convertToType(data['id'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {String} id 66 | */ 67 | exports.prototype['id'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/DSGroupRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DSGroupRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DSGroupRequest model module. 32 | * @module model/DSGroupRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new DSGroupRequest. 37 | * @alias module:model/DSGroupRequest 38 | * @class 39 | * @param dsGroupId {String} 40 | */ 41 | var exports = function(dsGroupId) { 42 | var _this = this; 43 | 44 | _this['ds_group_id'] = dsGroupId; 45 | }; 46 | 47 | /** 48 | * Constructs a DSGroupRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/DSGroupRequest} obj Optional instance to populate. 52 | * @return {module:model/DSGroupRequest} The populated DSGroupRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('ds_group_id')) { 59 | obj['ds_group_id'] = ApiClient.convertToType(data['ds_group_id'], 'String'); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * @member {String} ds_group_id 67 | */ 68 | exports.prototype['ds_group_id'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/OrgExportSelectedAccount.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrgExportSelectedAccount = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrgExportSelectedAccount model module. 32 | * @module model/OrgExportSelectedAccount 33 | */ 34 | 35 | /** 36 | * Constructs a new OrgExportSelectedAccount. 37 | * @alias module:model/OrgExportSelectedAccount 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrgExportSelectedAccount from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrgExportSelectedAccount} obj Optional instance to populate. 51 | * @return {module:model/OrgExportSelectedAccount} The populated OrgExportSelectedAccount instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('account_id')) { 58 | obj['account_id'] = ApiClient.convertToType(data['account_id'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {String} account_id 66 | */ 67 | exports.prototype['account_id'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/DeleteMembershipRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DeleteMembershipRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DeleteMembershipRequest model module. 32 | * @module model/DeleteMembershipRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new DeleteMembershipRequest. 37 | * @alias module:model/DeleteMembershipRequest 38 | * @class 39 | * @param id {String} 40 | */ 41 | var exports = function(id) { 42 | var _this = this; 43 | 44 | _this['id'] = id; 45 | }; 46 | 47 | /** 48 | * Constructs a DeleteMembershipRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/DeleteMembershipRequest} obj Optional instance to populate. 52 | * @return {module:model/DeleteMembershipRequest} The populated DeleteMembershipRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('id')) { 59 | obj['id'] = ApiClient.convertToType(data['id'], 'String'); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * @member {String} id 67 | */ 68 | exports.prototype['id'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/OrganizationExportAccount.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationExportAccount = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationExportAccount model module. 32 | * @module model/OrganizationExportAccount 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationExportAccount. 37 | * @alias module:model/OrganizationExportAccount 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationExportAccount from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationExportAccount} obj Optional instance to populate. 51 | * @return {module:model/OrganizationExportAccount} The populated OrganizationExportAccount instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('account_id')) { 58 | obj['account_id'] = ApiClient.convertToType(data['account_id'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {String} account_id 66 | */ 67 | exports.prototype['account_id'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/OrgReportCreateResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrgReportCreateResponse = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrgReportCreateResponse model module. 32 | * @module model/OrgReportCreateResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new OrgReportCreateResponse. 37 | * @alias module:model/OrgReportCreateResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrgReportCreateResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrgReportCreateResponse} obj Optional instance to populate. 51 | * @return {module:model/OrgReportCreateResponse} The populated OrgReportCreateResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('report_correlation_id')) { 58 | obj['report_correlation_id'] = ApiClient.convertToType(data['report_correlation_id'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {String} report_correlation_id 66 | */ 67 | exports.prototype['report_correlation_id'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/MembershipDataRedactionRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.MembershipDataRedactionRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The MembershipDataRedactionRequest model module. 32 | * @module model/MembershipDataRedactionRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new MembershipDataRedactionRequest. 37 | * @alias module:model/MembershipDataRedactionRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a MembershipDataRedactionRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/MembershipDataRedactionRequest} obj Optional instance to populate. 51 | * @return {module:model/MembershipDataRedactionRequest} The populated MembershipDataRedactionRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('account_id')) { 58 | obj['account_id'] = ApiClient.convertToType(data['account_id'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {String} account_id 66 | */ 67 | exports.prototype['account_id'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/DSGroupUsersAddRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DSGroupUsersAddRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DSGroupUsersAddRequest model module. 32 | * @module model/DSGroupUsersAddRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new DSGroupUsersAddRequest. 37 | * @alias module:model/DSGroupUsersAddRequest 38 | * @class 39 | * @param userIds {Array.} 40 | */ 41 | var exports = function(userIds) { 42 | var _this = this; 43 | 44 | _this['user_ids'] = userIds; 45 | }; 46 | 47 | /** 48 | * Constructs a DSGroupUsersAddRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/DSGroupUsersAddRequest} obj Optional instance to populate. 52 | * @return {module:model/DSGroupUsersAddRequest} The populated DSGroupUsersAddRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('user_ids')) { 59 | obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * @member {Array.} user_ids 67 | */ 68 | exports.prototype['user_ids'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/oauth/Link.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | /** 4 | * DocuSign REST API 5 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 6 | * 7 | * OpenAPI spec version: v2 8 | * Contact: devcenter@docusign.com 9 | * 10 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 11 | * 12 | */ 13 | 14 | (function(root, factory) { 15 | if (typeof define === 'function' && define.amd) { 16 | // AMD. Register as an anonymous module. 17 | define(['ApiClient', 'oauth/Account'], factory); 18 | } else if (typeof module === 'object' && module.exports) { 19 | // CommonJS-like environments that support module.exports, like Node. 20 | module.exports = factory(require('../ApiClient')); 21 | } else { 22 | // Browser globals (root is window) 23 | if (!root.Docusign) { 24 | root.Docusign = {}; 25 | } 26 | } 27 | }(this, function(ApiClient, Account) { 28 | 'use strict'; 29 | /** 30 | * The Link model module. 31 | * @module oauth/Link 32 | * @version 3.0.0 33 | */ 34 | 35 | /** 36 | * Constructs a new Link. 37 | * @alias module:oauth/Link 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a Link from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:oauth/Link} obj Optional instance to populate. 51 | * @return {module:oauth/Link} The populated Link instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | var ApiClient = require('../ApiClient'); 55 | 56 | if (data) { 57 | obj = obj || new exports(); 58 | 59 | if (data.hasOwnProperty('rel')) { 60 | obj['rel'] = ApiClient.convertToType(data['rel'], 'String'); 61 | } 62 | if (data.hasOwnProperty('href')) { 63 | obj['href'] = ApiClient.convertToType(data['href'], 'String'); 64 | } 65 | } 66 | 67 | return obj; 68 | } 69 | 70 | /** 71 | * 72 | * @member {String} rel 73 | */ 74 | exports.prototype['rel'] = undefined; 75 | /** 76 | * 77 | * @member {String} href 78 | */ 79 | exports.prototype['href'] = undefined; 80 | 81 | 82 | return exports; 83 | })); -------------------------------------------------------------------------------- /src/model/UpdateUsersRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/UpdateUserRequest'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./UpdateUserRequest')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.UpdateUsersRequest = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.UpdateUserRequest); 25 | } 26 | }(this, function(ApiClient, UpdateUserRequest) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UpdateUsersRequest model module. 32 | * @module model/UpdateUsersRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new UpdateUsersRequest. 37 | * @alias module:model/UpdateUsersRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a UpdateUsersRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/UpdateUsersRequest} obj Optional instance to populate. 51 | * @return {module:model/UpdateUsersRequest} The populated UpdateUsersRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('users')) { 58 | obj['users'] = ApiClient.convertToType(data['users'], [UpdateUserRequest]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {Array.} users 66 | */ 67 | exports.prototype['users'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/LinkResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.LinkResponse = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The LinkResponse model module. 32 | * @module model/LinkResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new LinkResponse. 37 | * @alias module:model/LinkResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a LinkResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/LinkResponse} obj Optional instance to populate. 51 | * @return {module:model/LinkResponse} The populated LinkResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('rel')) { 58 | obj['rel'] = ApiClient.convertToType(data['rel'], 'String'); 59 | } 60 | if (data.hasOwnProperty('href')) { 61 | obj['href'] = ApiClient.convertToType(data['href'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {String} rel 69 | */ 70 | exports.prototype['rel'] = undefined; 71 | /** 72 | * @member {String} href 73 | */ 74 | exports.prototype['href'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/DomainsResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/DomainResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./DomainResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DomainsResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.DomainResponse); 25 | } 26 | }(this, function(ApiClient, DomainResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DomainsResponse model module. 32 | * @module model/DomainsResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new DomainsResponse. 37 | * @alias module:model/DomainsResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DomainsResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DomainsResponse} obj Optional instance to populate. 51 | * @return {module:model/DomainsResponse} The populated DomainsResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('reserved_domains')) { 58 | obj['reserved_domains'] = ApiClient.convertToType(data['reserved_domains'], [DomainResponse]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {Array.} reserved_domains 66 | */ 67 | exports.prototype['reserved_domains'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/OrganizationAccountRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationAccountRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationAccountRequest model module. 32 | * @module model/OrganizationAccountRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationAccountRequest. 37 | * @alias module:model/OrganizationAccountRequest 38 | * @class 39 | * @param accountId {String} 40 | */ 41 | var exports = function(accountId) { 42 | var _this = this; 43 | 44 | _this['account_id'] = accountId; 45 | }; 46 | 47 | /** 48 | * Constructs a OrganizationAccountRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/OrganizationAccountRequest} obj Optional instance to populate. 52 | * @return {module:model/OrganizationAccountRequest} The populated OrganizationAccountRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('account_id')) { 59 | obj['account_id'] = ApiClient.convertToType(data['account_id'], 'String'); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * @member {String} account_id 67 | */ 68 | exports.prototype['account_id'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/ForceActivateMembershipRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.ForceActivateMembershipRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ForceActivateMembershipRequest model module. 32 | * @module model/ForceActivateMembershipRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new ForceActivateMembershipRequest. 37 | * @alias module:model/ForceActivateMembershipRequest 38 | * @class 39 | * @param siteId {Number} 40 | */ 41 | var exports = function(siteId) { 42 | var _this = this; 43 | 44 | _this['site_id'] = siteId; 45 | }; 46 | 47 | /** 48 | * Constructs a ForceActivateMembershipRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/ForceActivateMembershipRequest} obj Optional instance to populate. 52 | * @return {module:model/ForceActivateMembershipRequest} The populated ForceActivateMembershipRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('site_id')) { 59 | obj['site_id'] = ApiClient.convertToType(data['site_id'], 'Number'); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * @member {Number} site_id 67 | */ 68 | exports.prototype['site_id'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/UsersDrilldownResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/UserDrilldownResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./UserDrilldownResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.UsersDrilldownResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.UserDrilldownResponse); 25 | } 26 | }(this, function(ApiClient, UserDrilldownResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UsersDrilldownResponse model module. 32 | * @module model/UsersDrilldownResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new UsersDrilldownResponse. 37 | * @alias module:model/UsersDrilldownResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a UsersDrilldownResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/UsersDrilldownResponse} obj Optional instance to populate. 51 | * @return {module:model/UsersDrilldownResponse} The populated UsersDrilldownResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('users')) { 58 | obj['users'] = ApiClient.convertToType(data['users'], [UserDrilldownResponse]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {Array.} users 66 | */ 67 | exports.prototype['users'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/IndividualMembershipDataRedactionRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.IndividualMembershipDataRedactionRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The IndividualMembershipDataRedactionRequest model module. 32 | * @module model/IndividualMembershipDataRedactionRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new IndividualMembershipDataRedactionRequest. 37 | * @alias module:model/IndividualMembershipDataRedactionRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a IndividualMembershipDataRedactionRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/IndividualMembershipDataRedactionRequest} obj Optional instance to populate. 51 | * @return {module:model/IndividualMembershipDataRedactionRequest} The populated IndividualMembershipDataRedactionRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('user_id')) { 58 | obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {String} user_id 66 | */ 67 | exports.prototype['user_id'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/ErrorDetails.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.ErrorDetails = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ErrorDetails model module. 32 | * @module model/ErrorDetails 33 | */ 34 | 35 | /** 36 | * Constructs a new ErrorDetails. 37 | * @alias module:model/ErrorDetails 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a ErrorDetails from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/ErrorDetails} obj Optional instance to populate. 51 | * @return {module:model/ErrorDetails} The populated ErrorDetails instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('error')) { 58 | obj['error'] = ApiClient.convertToType(data['error'], 'String'); 59 | } 60 | if (data.hasOwnProperty('error_description')) { 61 | obj['error_description'] = ApiClient.convertToType(data['error_description'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {String} error 69 | */ 70 | exports.prototype['error'] = undefined; 71 | /** 72 | * @member {String} error_description 73 | */ 74 | exports.prototype['error_description'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/UpdateUsersEmailRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/UpdateUserEmailRequest'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./UpdateUserEmailRequest')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.UpdateUsersEmailRequest = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.UpdateUserEmailRequest); 25 | } 26 | }(this, function(ApiClient, UpdateUserEmailRequest) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UpdateUsersEmailRequest model module. 32 | * @module model/UpdateUsersEmailRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new UpdateUsersEmailRequest. 37 | * @alias module:model/UpdateUsersEmailRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a UpdateUsersEmailRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/UpdateUsersEmailRequest} obj Optional instance to populate. 51 | * @return {module:model/UpdateUsersEmailRequest} The populated UpdateUsersEmailRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('users')) { 58 | obj['users'] = ApiClient.convertToType(data['users'], [UpdateUserEmailRequest]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {Array.} users 66 | */ 67 | exports.prototype['users'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/OrganizationsResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/OrganizationResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./OrganizationResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationsResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.OrganizationResponse); 25 | } 26 | }(this, function(ApiClient, OrganizationResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationsResponse model module. 32 | * @module model/OrganizationsResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationsResponse. 37 | * @alias module:model/OrganizationsResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationsResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationsResponse} obj Optional instance to populate. 51 | * @return {module:model/OrganizationsResponse} The populated OrganizationsResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('organizations')) { 58 | obj['organizations'] = ApiClient.convertToType(data['organizations'], [OrganizationResponse]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {Array.} organizations 66 | */ 67 | exports.prototype['organizations'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/PermissionsResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/PermissionProfileResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./PermissionProfileResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.PermissionsResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.PermissionProfileResponse); 25 | } 26 | }(this, function(ApiClient, PermissionProfileResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The PermissionsResponse model module. 32 | * @module model/PermissionsResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new PermissionsResponse. 37 | * @alias module:model/PermissionsResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a PermissionsResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/PermissionsResponse} obj Optional instance to populate. 51 | * @return {module:model/PermissionsResponse} The populated PermissionsResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('permissions')) { 58 | obj['permissions'] = ApiClient.convertToType(data['permissions'], [PermissionProfileResponse]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {Array.} permissions 66 | */ 67 | exports.prototype['permissions'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/OETRErrorDetails.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OETRErrorDetails = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OETRErrorDetails model module. 32 | * @module model/OETRErrorDetails 33 | */ 34 | 35 | /** 36 | * Constructs a new OETRErrorDetails. 37 | * @alias module:model/OETRErrorDetails 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OETRErrorDetails from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OETRErrorDetails} obj Optional instance to populate. 51 | * @return {module:model/OETRErrorDetails} The populated OETRErrorDetails instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('error')) { 58 | obj['error'] = ApiClient.convertToType(data['error'], 'String'); 59 | } 60 | if (data.hasOwnProperty('error_description')) { 61 | obj['error_description'] = ApiClient.convertToType(data['error_description'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {String} error 69 | */ 70 | exports.prototype['error'] = undefined; 71 | /** 72 | * @member {String} error_description 73 | */ 74 | exports.prototype['error_description'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/OrgReportListResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/OrgReportListResponseOrgReport'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./OrgReportListResponseOrgReport')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrgReportListResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.OrgReportListResponseOrgReport); 25 | } 26 | }(this, function(ApiClient, OrgReportListResponseOrgReport) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrgReportListResponse model module. 32 | * @module model/OrgReportListResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new OrgReportListResponse. 37 | * @alias module:model/OrgReportListResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrgReportListResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrgReportListResponse} obj Optional instance to populate. 51 | * @return {module:model/OrgReportListResponse} The populated OrgReportListResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('reports')) { 58 | obj['reports'] = ApiClient.convertToType(data['reports'], [OrgReportListResponseOrgReport]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {Array.} reports 66 | */ 67 | exports.prototype['reports'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/oauth/Account.js: -------------------------------------------------------------------------------- 1 | (function(root, factory) { 2 | if (typeof define === 'function' && define.amd) { 3 | // AMD. Register as an anonymous module. 4 | define(['ApiClient'], factory); 5 | } else if (typeof module === 'object' && module.exports) { 6 | // CommonJS-like environments that support module.exports, like Node. 7 | module.exports = factory(require('../ApiClient'), require('./Organization')); 8 | } else { 9 | // Browser globals (root is window) 10 | if (!root.Docusign) { 11 | root.Docusign = {}; 12 | } 13 | //root.Docusign.UserInfo = factory(root.Docusign.ApiClient, root.Docusign.ErrorDetails); 14 | } 15 | }(this, function() { 16 | 'use strict'; 17 | 18 | 19 | /** 20 | * The Account model module. 21 | * @module oauth/Account 22 | * @version 3.0.0 23 | */ 24 | 25 | /** 26 | * Constructs a new Account. 27 | * @alias module:model/UserInfo 28 | * @class 29 | */ 30 | var exports = function() { 31 | var _this = this; 32 | 33 | 34 | }; 35 | 36 | exports.constructFromObject = function (data, obj){ 37 | var ApiClient = require('../ApiClient'); 38 | var Organization = require('./Organization'); 39 | 40 | if (data) { 41 | obj = obj || new exports(); 42 | if (data.hasOwnProperty('account_id')) { 43 | obj['accountId'] = ApiClient.convertToType(data['account_id'], 'String'); 44 | } 45 | if (data.hasOwnProperty('is_default')) { 46 | obj['isDefault'] = ApiClient.convertToType(data['is_default'], 'String'); 47 | } 48 | if (data.hasOwnProperty('account_name')) { 49 | obj['accountName'] = ApiClient.convertToType(data['account_name'], 'String'); 50 | } 51 | if (data.hasOwnProperty('base_uri')) { 52 | obj['baseUri'] = ApiClient.convertToType(data['base_uri'], 'String'); 53 | } 54 | if(data.hasOwnProperty('organization')) { 55 | obj['organization'] = ApiClient.convertToType(data['organization'], Organization) 56 | } 57 | } 58 | return obj; 59 | } 60 | 61 | /** 62 | * 63 | * @member {String} accountId 64 | */ 65 | exports.prototype['accountId'] = undefined; 66 | /** 67 | * 68 | * @member {String} isDefault 69 | */ 70 | exports.prototype['isDefault'] = undefined; 71 | /** 72 | * @member {String} accountName 73 | */ 74 | exports.prototype['accountName'] = undefined; 75 | /** 76 | * @member {String} baseUri 77 | */ 78 | exports.prototype['baseUri'] = undefined; 79 | /** 80 | * @member {Organization} organization 81 | */ 82 | exports.prototype['organization'] = undefined; 83 | 84 | 85 | return exports; 86 | })); 87 | -------------------------------------------------------------------------------- /src/model/PermissionProfileResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.PermissionProfileResponse = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The PermissionProfileResponse model module. 32 | * @module model/PermissionProfileResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new PermissionProfileResponse. 37 | * @alias module:model/PermissionProfileResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a PermissionProfileResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/PermissionProfileResponse} obj Optional instance to populate. 51 | * @return {module:model/PermissionProfileResponse} The populated PermissionProfileResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('id')) { 58 | obj['id'] = ApiClient.convertToType(data['id'], 'Number'); 59 | } 60 | if (data.hasOwnProperty('name')) { 61 | obj['name'] = ApiClient.convertToType(data['name'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {Number} id 69 | */ 70 | exports.prototype['id'] = undefined; 71 | /** 72 | * @member {String} name 73 | */ 74 | exports.prototype['name'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/OASIRRErrorDetails.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OASIRRErrorDetails = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OASIRRErrorDetails model module. 32 | * @module model/OASIRRErrorDetails 33 | */ 34 | 35 | /** 36 | * Constructs a new OASIRRErrorDetails. 37 | * @alias module:model/OASIRRErrorDetails 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OASIRRErrorDetails from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OASIRRErrorDetails} obj Optional instance to populate. 51 | * @return {module:model/OASIRRErrorDetails} The populated OASIRRErrorDetails instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('error')) { 58 | obj['error'] = ApiClient.convertToType(data['error'], 'String'); 59 | } 60 | if (data.hasOwnProperty('error_description')) { 61 | obj['error_description'] = ApiClient.convertToType(data['error_description'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {String} error 69 | */ 70 | exports.prototype['error'] = undefined; 71 | /** 72 | * @member {String} error_description 73 | */ 74 | exports.prototype['error_description'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/oauth/Organization.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | /** 4 | * DocuSign REST API 5 | * The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. 6 | * 7 | * OpenAPI spec version: v2 8 | * Contact: devcenter@docusign.com 9 | * 10 | * NOTE: This class is auto generated. Do not edit the class manually and submit a new issue instead. 11 | * 12 | */ 13 | 14 | (function(root, factory) { 15 | if (typeof define === 'function' && define.amd) { 16 | // AMD. Register as an anonymous module. 17 | define(['ApiClient', 'oauth/Account'], factory); 18 | } else if (typeof module === 'object' && module.exports) { 19 | // CommonJS-like environments that support module.exports, like Node. 20 | module.exports = factory(require('../ApiClient')); 21 | } else { 22 | // Browser globals (root is window) 23 | if (!root.Docusign) { 24 | root.Docusign = {}; 25 | } 26 | } 27 | }(this, function(ApiClient, Account) { 28 | 'use strict'; 29 | /** 30 | * The Organization model module. 31 | * @module oauth/Organization 32 | * @version 3.0.0 33 | */ 34 | 35 | /** 36 | * Constructs a new Organization. 37 | * @alias module:oauth/Organization 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a Organization from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:oauth/Organization} obj Optional instance to populate. 51 | * @return {module:oauth/Organization} The populated Organization instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | var ApiClient = require('../ApiClient'); 55 | var Link = require('./Link'); 56 | 57 | if (data) { 58 | obj = obj || new exports(); 59 | 60 | if (data.hasOwnProperty('organization_id')) { 61 | obj['organization_id'] = ApiClient.convertToType(data['organization_id'], 'String'); 62 | } 63 | if (data.hasOwnProperty('links')) { 64 | obj['links'] = ApiClient.convertToType(data['links'], [Link]); 65 | } 66 | } 67 | 68 | return obj; 69 | } 70 | 71 | /** 72 | * 73 | * @member {String} sub 74 | */ 75 | exports.prototype['organization_id'] = undefined; 76 | /** 77 | * 78 | * @member {String} email 79 | */ 80 | exports.prototype['links'] = undefined; 81 | 82 | 83 | return exports; 84 | })); -------------------------------------------------------------------------------- /src/model/OrganizationExportsResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/OrganizationExportResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./OrganizationExportResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationExportsResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.OrganizationExportResponse); 25 | } 26 | }(this, function(ApiClient, OrganizationExportResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationExportsResponse model module. 32 | * @module model/OrganizationExportsResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationExportsResponse. 37 | * @alias module:model/OrganizationExportsResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationExportsResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationExportsResponse} obj Optional instance to populate. 51 | * @return {module:model/OrganizationExportsResponse} The populated OrganizationExportsResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('exports')) { 58 | obj['exports'] = ApiClient.convertToType(data['exports'], [OrganizationExportResponse]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {Array.} exports 66 | */ 67 | exports.prototype['exports'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/OrganizationImportsResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/OrganizationImportResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./OrganizationImportResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationImportsResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.OrganizationImportResponse); 25 | } 26 | }(this, function(ApiClient, OrganizationImportResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationImportsResponse model module. 32 | * @module model/OrganizationImportsResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationImportsResponse. 37 | * @alias module:model/OrganizationImportsResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationImportsResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationImportsResponse} obj Optional instance to populate. 51 | * @return {module:model/OrganizationImportsResponse} The populated OrganizationImportsResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('imports')) { 58 | obj['imports'] = ApiClient.convertToType(data['imports'], [OrganizationImportResponse]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {Array.} imports 66 | */ 67 | exports.prototype['imports'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/OrganizationAccountsRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/OrganizationAccountRequest'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./OrganizationAccountRequest')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationAccountsRequest = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.OrganizationAccountRequest); 25 | } 26 | }(this, function(ApiClient, OrganizationAccountRequest) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationAccountsRequest model module. 32 | * @module model/OrganizationAccountsRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationAccountsRequest. 37 | * @alias module:model/OrganizationAccountsRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationAccountsRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationAccountsRequest} obj Optional instance to populate. 51 | * @return {module:model/OrganizationAccountsRequest} The populated OrganizationAccountsRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('accounts')) { 58 | obj['accounts'] = ApiClient.convertToType(data['accounts'], [OrganizationAccountRequest]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {Array.} accounts 66 | */ 67 | exports.prototype['accounts'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/AssetGroupAccountClones.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/AssetGroupAccountClone'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./AssetGroupAccountClone')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.AssetGroupAccountClones = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.AssetGroupAccountClone); 25 | } 26 | }(this, function(ApiClient, AssetGroupAccountClone) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The AssetGroupAccountClones model module. 32 | * @module model/AssetGroupAccountClones 33 | */ 34 | 35 | /** 36 | * Constructs a new AssetGroupAccountClones. 37 | * @alias module:model/AssetGroupAccountClones 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a AssetGroupAccountClones from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/AssetGroupAccountClones} obj Optional instance to populate. 51 | * @return {module:model/AssetGroupAccountClones} The populated AssetGroupAccountClones instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('assetGroupWorks')) { 58 | obj['assetGroupWorks'] = ApiClient.convertToType(data['assetGroupWorks'], [AssetGroupAccountClone]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * The list of asset group accounts. 66 | * @member {Array.} assetGroupWorks 67 | */ 68 | exports.prototype['assetGroupWorks'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/PermissionProfileRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.PermissionProfileRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The PermissionProfileRequest model module. 32 | * @module model/PermissionProfileRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new PermissionProfileRequest. 37 | * @alias module:model/PermissionProfileRequest 38 | * @class 39 | * @param id {Number} 40 | */ 41 | var exports = function(id) { 42 | var _this = this; 43 | 44 | _this['id'] = id; 45 | }; 46 | 47 | /** 48 | * Constructs a PermissionProfileRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/PermissionProfileRequest} obj Optional instance to populate. 52 | * @return {module:model/PermissionProfileRequest} The populated PermissionProfileRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('id')) { 59 | obj['id'] = ApiClient.convertToType(data['id'], 'Number'); 60 | } 61 | if (data.hasOwnProperty('name')) { 62 | obj['name'] = ApiClient.convertToType(data['name'], 'String'); 63 | } 64 | } 65 | return obj; 66 | } 67 | 68 | /** 69 | * @member {Number} id 70 | */ 71 | exports.prototype['id'] = undefined; 72 | /** 73 | * @member {String} name 74 | */ 75 | exports.prototype['name'] = undefined; 76 | 77 | 78 | 79 | return exports; 80 | })); 81 | 82 | 83 | -------------------------------------------------------------------------------- /src/model/IdentityProvidersResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/IdentityProviderResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./IdentityProviderResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.IdentityProvidersResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.IdentityProviderResponse); 25 | } 26 | }(this, function(ApiClient, IdentityProviderResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The IdentityProvidersResponse model module. 32 | * @module model/IdentityProvidersResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new IdentityProvidersResponse. 37 | * @alias module:model/IdentityProvidersResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a IdentityProvidersResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/IdentityProvidersResponse} obj Optional instance to populate. 51 | * @return {module:model/IdentityProvidersResponse} The populated IdentityProvidersResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('identity_providers')) { 58 | obj['identity_providers'] = ApiClient.convertToType(data['identity_providers'], [IdentityProviderResponse]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {Array.} identity_providers 66 | */ 67 | exports.prototype['identity_providers'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/OrgReportListResponseRequestor.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrgReportListResponseRequestor = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrgReportListResponseRequestor model module. 32 | * @module model/OrgReportListResponseRequestor 33 | */ 34 | 35 | /** 36 | * Constructs a new OrgReportListResponseRequestor. 37 | * @alias module:model/OrgReportListResponseRequestor 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrgReportListResponseRequestor from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrgReportListResponseRequestor} obj Optional instance to populate. 51 | * @return {module:model/OrgReportListResponseRequestor} The populated OrgReportListResponseRequestor instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('id')) { 58 | obj['id'] = ApiClient.convertToType(data['id'], 'String'); 59 | } 60 | if (data.hasOwnProperty('name')) { 61 | obj['name'] = ApiClient.convertToType(data['name'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {String} id 69 | */ 70 | exports.prototype['id'] = undefined; 71 | /** 72 | * @member {String} name 73 | */ 74 | exports.prototype['name'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/DSGroupAddRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DSGroupAddRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DSGroupAddRequest model module. 32 | * @module model/DSGroupAddRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new DSGroupAddRequest. 37 | * @alias module:model/DSGroupAddRequest 38 | * @class 39 | * @param groupName {String} 40 | */ 41 | var exports = function(groupName) { 42 | var _this = this; 43 | 44 | _this['group_name'] = groupName; 45 | }; 46 | 47 | /** 48 | * Constructs a DSGroupAddRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/DSGroupAddRequest} obj Optional instance to populate. 52 | * @return {module:model/DSGroupAddRequest} The populated DSGroupAddRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('group_name')) { 59 | obj['group_name'] = ApiClient.convertToType(data['group_name'], 'String'); 60 | } 61 | if (data.hasOwnProperty('description')) { 62 | obj['description'] = ApiClient.convertToType(data['description'], 'String'); 63 | } 64 | } 65 | return obj; 66 | } 67 | 68 | /** 69 | * @member {String} group_name 70 | */ 71 | exports.prototype['group_name'] = undefined; 72 | /** 73 | * @member {String} description 74 | */ 75 | exports.prototype['description'] = undefined; 76 | 77 | 78 | 79 | return exports; 80 | })); 81 | 82 | 83 | -------------------------------------------------------------------------------- /src/model/DSGroupUsersRemoveRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DSGroupUsersRemoveRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DSGroupUsersRemoveRequest model module. 32 | * @module model/DSGroupUsersRemoveRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new DSGroupUsersRemoveRequest. 37 | * @alias module:model/DSGroupUsersRemoveRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DSGroupUsersRemoveRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DSGroupUsersRemoveRequest} obj Optional instance to populate. 51 | * @return {module:model/DSGroupUsersRemoveRequest} The populated DSGroupUsersRemoveRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('user_ids')) { 58 | obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); 59 | } 60 | if (data.hasOwnProperty('user_emails')) { 61 | obj['user_emails'] = ApiClient.convertToType(data['user_emails'], ['String']); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {Array.} user_ids 69 | */ 70 | exports.prototype['user_ids'] = undefined; 71 | /** 72 | * @member {Array.} user_emails 73 | */ 74 | exports.prototype['user_emails'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/DeleteMembershipsRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/DeleteMembershipRequest'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./DeleteMembershipRequest')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DeleteMembershipsRequest = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.DeleteMembershipRequest); 25 | } 26 | }(this, function(ApiClient, DeleteMembershipRequest) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DeleteMembershipsRequest model module. 32 | * @module model/DeleteMembershipsRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new DeleteMembershipsRequest. 37 | * @alias module:model/DeleteMembershipsRequest 38 | * @class 39 | * @param accounts {Array.} 40 | */ 41 | var exports = function(accounts) { 42 | var _this = this; 43 | 44 | _this['accounts'] = accounts; 45 | }; 46 | 47 | /** 48 | * Constructs a DeleteMembershipsRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/DeleteMembershipsRequest} obj Optional instance to populate. 52 | * @return {module:model/DeleteMembershipsRequest} The populated DeleteMembershipsRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('accounts')) { 59 | obj['accounts'] = ApiClient.convertToType(data['accounts'], [DeleteMembershipRequest]); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * @member {Array.} accounts 67 | */ 68 | exports.prototype['accounts'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/DeleteUserIdentityRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/UserIdentityRequest'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./UserIdentityRequest')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DeleteUserIdentityRequest = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.UserIdentityRequest); 25 | } 26 | }(this, function(ApiClient, UserIdentityRequest) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DeleteUserIdentityRequest model module. 32 | * @module model/DeleteUserIdentityRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new DeleteUserIdentityRequest. 37 | * @alias module:model/DeleteUserIdentityRequest 38 | * @class 39 | * @param identities {Array.} 40 | */ 41 | var exports = function(identities) { 42 | var _this = this; 43 | 44 | _this['identities'] = identities; 45 | }; 46 | 47 | /** 48 | * Constructs a DeleteUserIdentityRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/DeleteUserIdentityRequest} obj Optional instance to populate. 52 | * @return {module:model/DeleteUserIdentityRequest} The populated DeleteUserIdentityRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('identities')) { 59 | obj['identities'] = ApiClient.convertToType(data['identities'], [UserIdentityRequest]); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * @member {Array.} identities 67 | */ 68 | exports.prototype['identities'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/AssetGroupAccountsResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/AssetGroupAccountResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./AssetGroupAccountResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.AssetGroupAccountsResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.AssetGroupAccountResponse); 25 | } 26 | }(this, function(ApiClient, AssetGroupAccountResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The AssetGroupAccountsResponse model module. 32 | * @module model/AssetGroupAccountsResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new AssetGroupAccountsResponse. 37 | * @alias module:model/AssetGroupAccountsResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a AssetGroupAccountsResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/AssetGroupAccountsResponse} obj Optional instance to populate. 51 | * @return {module:model/AssetGroupAccountsResponse} The populated AssetGroupAccountsResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('assetGroupAccounts')) { 58 | obj['assetGroupAccounts'] = ApiClient.convertToType(data['assetGroupAccounts'], [AssetGroupAccountResponse]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * The list of asset group accounts. 66 | * @member {Array.} assetGroupAccounts 67 | */ 68 | exports.prototype['assetGroupAccounts'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/SubAccountCreateWorkerResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/SubAccountCreateWorker'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./SubAccountCreateWorker')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.SubAccountCreateWorkerResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.SubAccountCreateWorker); 25 | } 26 | }(this, function(ApiClient, SubAccountCreateWorker) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SubAccountCreateWorkerResponse model module. 32 | * @module model/SubAccountCreateWorkerResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new SubAccountCreateWorkerResponse. 37 | * @alias module:model/SubAccountCreateWorkerResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a SubAccountCreateWorkerResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/SubAccountCreateWorkerResponse} obj Optional instance to populate. 51 | * @return {module:model/SubAccountCreateWorkerResponse} The populated SubAccountCreateWorkerResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('assetGroupWorks')) { 58 | obj['assetGroupWorks'] = ApiClient.convertToType(data['assetGroupWorks'], [SubAccountCreateWorker]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * The list of create acccount processes 66 | * @member {Array.} assetGroupWorks 67 | */ 68 | exports.prototype['assetGroupWorks'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/DeleteResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/UserIdentityResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./UserIdentityResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DeleteResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.UserIdentityResponse); 25 | } 26 | }(this, function(ApiClient, UserIdentityResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DeleteResponse model module. 32 | * @module model/DeleteResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new DeleteResponse. 37 | * @alias module:model/DeleteResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DeleteResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DeleteResponse} obj Optional instance to populate. 51 | * @return {module:model/DeleteResponse} The populated DeleteResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('success')) { 58 | obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); 59 | } 60 | if (data.hasOwnProperty('identities')) { 61 | obj['identities'] = ApiClient.convertToType(data['identities'], [UserIdentityResponse]); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {Boolean} success 69 | */ 70 | exports.prototype['success'] = undefined; 71 | /** 72 | * @member {Array.} identities 73 | */ 74 | exports.prototype['identities'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/OSAMRContact.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OSAMRContact = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OSAMRContact model module. 32 | * @module model/OSAMRContact 33 | */ 34 | 35 | /** 36 | * Constructs a new OSAMRContact. 37 | * @alias module:model/OSAMRContact 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OSAMRContact from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OSAMRContact} obj Optional instance to populate. 51 | * @return {module:model/OSAMRContact} The populated OSAMRContact instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('name')) { 58 | obj['name'] = ApiClient.convertToType(data['name'], 'String'); 59 | } 60 | if (data.hasOwnProperty('email')) { 61 | obj['email'] = ApiClient.convertToType(data['email'], 'String'); 62 | } 63 | if (data.hasOwnProperty('title')) { 64 | obj['title'] = ApiClient.convertToType(data['title'], 'String'); 65 | } 66 | } 67 | return obj; 68 | } 69 | 70 | /** 71 | * @member {String} name 72 | */ 73 | exports.prototype['name'] = undefined; 74 | /** 75 | * @member {String} email 76 | */ 77 | exports.prototype['email'] = undefined; 78 | /** 79 | * @member {String} title 80 | */ 81 | exports.prototype['title'] = undefined; 82 | 83 | 84 | 85 | return exports; 86 | })); 87 | 88 | 89 | -------------------------------------------------------------------------------- /src/model/UsersUpdateResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/UserUpdateResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./UserUpdateResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.UsersUpdateResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.UserUpdateResponse); 25 | } 26 | }(this, function(ApiClient, UserUpdateResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UsersUpdateResponse model module. 32 | * @module model/UsersUpdateResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new UsersUpdateResponse. 37 | * @alias module:model/UsersUpdateResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a UsersUpdateResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/UsersUpdateResponse} obj Optional instance to populate. 51 | * @return {module:model/UsersUpdateResponse} The populated UsersUpdateResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('success')) { 58 | obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); 59 | } 60 | if (data.hasOwnProperty('users')) { 61 | obj['users'] = ApiClient.convertToType(data['users'], [UserUpdateResponse]); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {Boolean} success 69 | */ 70 | exports.prototype['success'] = undefined; 71 | /** 72 | * @member {Array.} users 73 | */ 74 | exports.prototype['users'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/SettingResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.SettingResponse = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SettingResponse model module. 32 | * @module model/SettingResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new SettingResponse. 37 | * @alias module:model/SettingResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a SettingResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/SettingResponse} obj Optional instance to populate. 51 | * @return {module:model/SettingResponse} The populated SettingResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('key')) { 58 | obj['key'] = ApiClient.convertToType(data['key'], 'String'); 59 | } 60 | if (data.hasOwnProperty('value')) { 61 | obj['value'] = ApiClient.convertToType(data['value'], Object); 62 | } 63 | if (data.hasOwnProperty('type')) { 64 | obj['type'] = ApiClient.convertToType(data['type'], 'String'); 65 | } 66 | } 67 | return obj; 68 | } 69 | 70 | /** 71 | * @member {String} key 72 | */ 73 | exports.prototype['key'] = undefined; 74 | /** 75 | * @member {Object} value 76 | */ 77 | exports.prototype['value'] = undefined; 78 | /** 79 | * @member {String} type 80 | */ 81 | exports.prototype['type'] = undefined; 82 | 83 | 84 | 85 | return exports; 86 | })); 87 | 88 | 89 | -------------------------------------------------------------------------------- /src/model/DeleteMembershipResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/ErrorDetails'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./ErrorDetails')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DeleteMembershipResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.ErrorDetails); 25 | } 26 | }(this, function(ApiClient, ErrorDetails) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DeleteMembershipResponse model module. 32 | * @module model/DeleteMembershipResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new DeleteMembershipResponse. 37 | * @alias module:model/DeleteMembershipResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DeleteMembershipResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DeleteMembershipResponse} obj Optional instance to populate. 51 | * @return {module:model/DeleteMembershipResponse} The populated DeleteMembershipResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('id')) { 58 | obj['id'] = ApiClient.convertToType(data['id'], 'String'); 59 | } 60 | if (data.hasOwnProperty('error_details')) { 61 | obj['error_details'] = ErrorDetails.constructFromObject(data['error_details']); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {String} id 69 | */ 70 | exports.prototype['id'] = undefined; 71 | /** 72 | * @member {module:model/ErrorDetails} error_details 73 | */ 74 | exports.prototype['error_details'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/GroupRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.GroupRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The GroupRequest model module. 32 | * @module model/GroupRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new GroupRequest. 37 | * @alias module:model/GroupRequest 38 | * @class 39 | * @param id {Number} 40 | */ 41 | var exports = function(id) { 42 | var _this = this; 43 | 44 | _this['id'] = id; 45 | }; 46 | 47 | /** 48 | * Constructs a GroupRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/GroupRequest} obj Optional instance to populate. 52 | * @return {module:model/GroupRequest} The populated GroupRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('id')) { 59 | obj['id'] = ApiClient.convertToType(data['id'], 'Number'); 60 | } 61 | if (data.hasOwnProperty('name')) { 62 | obj['name'] = ApiClient.convertToType(data['name'], 'String'); 63 | } 64 | if (data.hasOwnProperty('type')) { 65 | obj['type'] = ApiClient.convertToType(data['type'], 'String'); 66 | } 67 | } 68 | return obj; 69 | } 70 | 71 | /** 72 | * @member {Number} id 73 | */ 74 | exports.prototype['id'] = undefined; 75 | /** 76 | * @member {String} name 77 | */ 78 | exports.prototype['name'] = undefined; 79 | /** 80 | * @member {String} type 81 | */ 82 | exports.prototype['type'] = undefined; 83 | 84 | 85 | 86 | return exports; 87 | })); 88 | 89 | 90 | -------------------------------------------------------------------------------- /src/model/OrganizationImportResponseErrorRollup.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationImportResponseErrorRollup = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationImportResponseErrorRollup model module. 32 | * @module model/OrganizationImportResponseErrorRollup 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationImportResponseErrorRollup. 37 | * @alias module:model/OrganizationImportResponseErrorRollup 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationImportResponseErrorRollup from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationImportResponseErrorRollup} obj Optional instance to populate. 51 | * @return {module:model/OrganizationImportResponseErrorRollup} The populated OrganizationImportResponseErrorRollup instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('error_type')) { 58 | obj['error_type'] = ApiClient.convertToType(data['error_type'], 'String'); 59 | } 60 | if (data.hasOwnProperty('count')) { 61 | obj['count'] = ApiClient.convertToType(data['count'], 'Number'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {String} error_type 69 | */ 70 | exports.prototype['error_type'] = undefined; 71 | /** 72 | * @member {Number} count 73 | */ 74 | exports.prototype['count'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/MemberGroupResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.MemberGroupResponse = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The MemberGroupResponse model module. 32 | * @module model/MemberGroupResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new MemberGroupResponse. 37 | * @alias module:model/MemberGroupResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a MemberGroupResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/MemberGroupResponse} obj Optional instance to populate. 51 | * @return {module:model/MemberGroupResponse} The populated MemberGroupResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('id')) { 58 | obj['id'] = ApiClient.convertToType(data['id'], 'Number'); 59 | } 60 | if (data.hasOwnProperty('name')) { 61 | obj['name'] = ApiClient.convertToType(data['name'], 'String'); 62 | } 63 | if (data.hasOwnProperty('type')) { 64 | obj['type'] = ApiClient.convertToType(data['type'], 'String'); 65 | } 66 | } 67 | return obj; 68 | } 69 | 70 | /** 71 | * @member {Number} id 72 | */ 73 | exports.prototype['id'] = undefined; 74 | /** 75 | * @member {String} name 76 | */ 77 | exports.prototype['name'] = undefined; 78 | /** 79 | * @member {String} type 80 | */ 81 | exports.prototype['type'] = undefined; 82 | 83 | 84 | 85 | return exports; 86 | })); 87 | 88 | 89 | -------------------------------------------------------------------------------- /src/model/OrganizationImportResponseWarningRollup.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationImportResponseWarningRollup = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationImportResponseWarningRollup model module. 32 | * @module model/OrganizationImportResponseWarningRollup 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationImportResponseWarningRollup. 37 | * @alias module:model/OrganizationImportResponseWarningRollup 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationImportResponseWarningRollup from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationImportResponseWarningRollup} obj Optional instance to populate. 51 | * @return {module:model/OrganizationImportResponseWarningRollup} The populated OrganizationImportResponseWarningRollup instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('warning_type')) { 58 | obj['warning_type'] = ApiClient.convertToType(data['warning_type'], 'String'); 59 | } 60 | if (data.hasOwnProperty('count')) { 61 | obj['count'] = ApiClient.convertToType(data['count'], 'Number'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {String} warning_type 69 | */ 70 | exports.prototype['warning_type'] = undefined; 71 | /** 72 | * @member {Number} count 73 | */ 74 | exports.prototype['count'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/PermissionProfileResponse21.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.PermissionProfileResponse21 = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The PermissionProfileResponse21 model module. 32 | * @module model/PermissionProfileResponse21 33 | */ 34 | 35 | /** 36 | * Constructs a new PermissionProfileResponse21. 37 | * @alias module:model/PermissionProfileResponse21 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a PermissionProfileResponse21 from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/PermissionProfileResponse21} obj Optional instance to populate. 51 | * @return {module:model/PermissionProfileResponse21} The populated PermissionProfileResponse21 instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('permission_profile_id')) { 58 | obj['permission_profile_id'] = ApiClient.convertToType(data['permission_profile_id'], 'String'); 59 | } 60 | if (data.hasOwnProperty('permission_profile_name')) { 61 | obj['permission_profile_name'] = ApiClient.convertToType(data['permission_profile_name'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {String} permission_profile_id 69 | */ 70 | exports.prototype['permission_profile_id'] = undefined; 71 | /** 72 | * @member {String} permission_profile_name 73 | */ 74 | exports.prototype['permission_profile_name'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/ProductPermissionProfilesResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/ProductPermissionProfileResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./ProductPermissionProfileResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.ProductPermissionProfilesResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.ProductPermissionProfileResponse); 25 | } 26 | }(this, function(ApiClient, ProductPermissionProfileResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ProductPermissionProfilesResponse model module. 32 | * @module model/ProductPermissionProfilesResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new ProductPermissionProfilesResponse. 37 | * @alias module:model/ProductPermissionProfilesResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a ProductPermissionProfilesResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/ProductPermissionProfilesResponse} obj Optional instance to populate. 51 | * @return {module:model/ProductPermissionProfilesResponse} The populated ProductPermissionProfilesResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('product_permission_profiles')) { 58 | obj['product_permission_profiles'] = ApiClient.convertToType(data['product_permission_profiles'], [ProductPermissionProfileResponse]); 59 | } 60 | } 61 | return obj; 62 | } 63 | 64 | /** 65 | * @member {Array.} product_permission_profiles 66 | */ 67 | exports.prototype['product_permission_profiles'] = undefined; 68 | 69 | 70 | 71 | return exports; 72 | })); 73 | 74 | 75 | -------------------------------------------------------------------------------- /src/model/DeleteMembershipsResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/DeleteMembershipResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./DeleteMembershipResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DeleteMembershipsResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.DeleteMembershipResponse); 25 | } 26 | }(this, function(ApiClient, DeleteMembershipResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DeleteMembershipsResponse model module. 32 | * @module model/DeleteMembershipsResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new DeleteMembershipsResponse. 37 | * @alias module:model/DeleteMembershipsResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DeleteMembershipsResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DeleteMembershipsResponse} obj Optional instance to populate. 51 | * @return {module:model/DeleteMembershipsResponse} The populated DeleteMembershipsResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('success')) { 58 | obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); 59 | } 60 | if (data.hasOwnProperty('accounts')) { 61 | obj['accounts'] = ApiClient.convertToType(data['accounts'], [DeleteMembershipResponse]); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {Boolean} success 69 | */ 70 | exports.prototype['success'] = undefined; 71 | /** 72 | * @member {Array.} accounts 73 | */ 74 | exports.prototype['accounts'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/RemoveDSGroupUsersResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/DSGroupUserResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./DSGroupUserResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.RemoveDSGroupUsersResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.DSGroupUserResponse); 25 | } 26 | }(this, function(ApiClient, DSGroupUserResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The RemoveDSGroupUsersResponse model module. 32 | * @module model/RemoveDSGroupUsersResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new RemoveDSGroupUsersResponse. 37 | * @alias module:model/RemoveDSGroupUsersResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a RemoveDSGroupUsersResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/RemoveDSGroupUsersResponse} obj Optional instance to populate. 51 | * @return {module:model/RemoveDSGroupUsersResponse} The populated RemoveDSGroupUsersResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('is_success')) { 58 | obj['is_success'] = ApiClient.convertToType(data['is_success'], 'Boolean'); 59 | } 60 | if (data.hasOwnProperty('failed_users')) { 61 | obj['failed_users'] = ApiClient.convertToType(data['failed_users'], [DSGroupUserResponse]); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {Boolean} is_success 69 | */ 70 | exports.prototype['is_success'] = undefined; 71 | /** 72 | * @member {Array.} failed_users 73 | */ 74 | exports.prototype['failed_users'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/SubAccountCreateSubscriptionModuleDetails.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.SubAccountCreateSubscriptionModuleDetails = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SubAccountCreateSubscriptionModuleDetails model module. 32 | * @module model/SubAccountCreateSubscriptionModuleDetails 33 | */ 34 | 35 | /** 36 | * Constructs a new SubAccountCreateSubscriptionModuleDetails. 37 | * @alias module:model/SubAccountCreateSubscriptionModuleDetails 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a SubAccountCreateSubscriptionModuleDetails from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/SubAccountCreateSubscriptionModuleDetails} obj Optional instance to populate. 51 | * @return {module:model/SubAccountCreateSubscriptionModuleDetails} The populated SubAccountCreateSubscriptionModuleDetails instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('moduleId')) { 58 | obj['moduleId'] = ApiClient.convertToType(data['moduleId'], 'String'); 59 | } 60 | if (data.hasOwnProperty('moduleName')) { 61 | obj['moduleName'] = ApiClient.convertToType(data['moduleName'], 'String'); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * Module ID 69 | * @member {String} moduleId 70 | */ 71 | exports.prototype['moduleId'] = undefined; 72 | /** 73 | * Module Name 74 | * @member {String} moduleName 75 | */ 76 | exports.prototype['moduleName'] = undefined; 77 | 78 | 79 | 80 | return exports; 81 | })); 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/model/DSGroupAndUsersResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/DSGroupResponse', 'model/DSGroupUsersResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./DSGroupResponse'), require('./DSGroupUsersResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DSGroupAndUsersResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.DSGroupResponse, root.DocusignAdmin.DSGroupUsersResponse); 25 | } 26 | }(this, function(ApiClient, DSGroupResponse, DSGroupUsersResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DSGroupAndUsersResponse model module. 32 | * @module model/DSGroupAndUsersResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new DSGroupAndUsersResponse. 37 | * @alias module:model/DSGroupAndUsersResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DSGroupAndUsersResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DSGroupAndUsersResponse} obj Optional instance to populate. 51 | * @return {module:model/DSGroupAndUsersResponse} The populated DSGroupAndUsersResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('group')) { 58 | obj['group'] = DSGroupResponse.constructFromObject(data['group']); 59 | } 60 | if (data.hasOwnProperty('group_users')) { 61 | obj['group_users'] = DSGroupUsersResponse.constructFromObject(data['group_users']); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {module:model/DSGroupResponse} group 69 | */ 70 | exports.prototype['group'] = undefined; 71 | /** 72 | * @member {module:model/DSGroupUsersResponse} group_users 73 | */ 74 | exports.prototype['group_users'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/MemberGroupsResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/MemberGroupResponse', 'model/PagingResponseProperties'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./MemberGroupResponse'), require('./PagingResponseProperties')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.MemberGroupsResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.MemberGroupResponse, root.DocusignAdmin.PagingResponseProperties); 25 | } 26 | }(this, function(ApiClient, MemberGroupResponse, PagingResponseProperties) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The MemberGroupsResponse model module. 32 | * @module model/MemberGroupsResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new MemberGroupsResponse. 37 | * @alias module:model/MemberGroupsResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a MemberGroupsResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/MemberGroupsResponse} obj Optional instance to populate. 51 | * @return {module:model/MemberGroupsResponse} The populated MemberGroupsResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('groups')) { 58 | obj['groups'] = ApiClient.convertToType(data['groups'], [MemberGroupResponse]); 59 | } 60 | if (data.hasOwnProperty('paging')) { 61 | obj['paging'] = PagingResponseProperties.constructFromObject(data['paging']); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {Array.} groups 69 | */ 70 | exports.prototype['groups'] = undefined; 71 | /** 72 | * @member {module:model/PagingResponseProperties} paging 73 | */ 74 | exports.prototype['paging'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/AddDSGroupAndUsersResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/AddDSGroupUsersResponse', 'model/DSGroupResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./AddDSGroupUsersResponse'), require('./DSGroupResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.AddDSGroupAndUsersResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.AddDSGroupUsersResponse, root.DocusignAdmin.DSGroupResponse); 25 | } 26 | }(this, function(ApiClient, AddDSGroupUsersResponse, DSGroupResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The AddDSGroupAndUsersResponse model module. 32 | * @module model/AddDSGroupAndUsersResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new AddDSGroupAndUsersResponse. 37 | * @alias module:model/AddDSGroupAndUsersResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a AddDSGroupAndUsersResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/AddDSGroupAndUsersResponse} obj Optional instance to populate. 51 | * @return {module:model/AddDSGroupAndUsersResponse} The populated AddDSGroupAndUsersResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('group')) { 58 | obj['group'] = DSGroupResponse.constructFromObject(data['group']); 59 | } 60 | if (data.hasOwnProperty('group_users')) { 61 | obj['group_users'] = AddDSGroupUsersResponse.constructFromObject(data['group_users']); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {module:model/DSGroupResponse} group 69 | */ 70 | exports.prototype['group'] = undefined; 71 | /** 72 | * @member {module:model/AddDSGroupUsersResponse} group_users 73 | */ 74 | exports.prototype['group_users'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/IndividualUserDataRedactionRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/MembershipDataRedactionRequest'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./MembershipDataRedactionRequest')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.IndividualUserDataRedactionRequest = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.MembershipDataRedactionRequest); 25 | } 26 | }(this, function(ApiClient, MembershipDataRedactionRequest) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The IndividualUserDataRedactionRequest model module. 32 | * @module model/IndividualUserDataRedactionRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new IndividualUserDataRedactionRequest. 37 | * @alias module:model/IndividualUserDataRedactionRequest 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a IndividualUserDataRedactionRequest from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/IndividualUserDataRedactionRequest} obj Optional instance to populate. 51 | * @return {module:model/IndividualUserDataRedactionRequest} The populated IndividualUserDataRedactionRequest instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('user_id')) { 58 | obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); 59 | } 60 | if (data.hasOwnProperty('memberships')) { 61 | obj['memberships'] = ApiClient.convertToType(data['memberships'], [MembershipDataRedactionRequest]); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {String} user_id 69 | */ 70 | exports.prototype['user_id'] = undefined; 71 | /** 72 | * @member {Array.} memberships 73 | */ 74 | exports.prototype['memberships'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/ProductPermissionProfileRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.ProductPermissionProfileRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ProductPermissionProfileRequest model module. 32 | * @module model/ProductPermissionProfileRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new ProductPermissionProfileRequest. 37 | * @alias module:model/ProductPermissionProfileRequest 38 | * @class 39 | * @param productId {String} 40 | * @param permissionProfileId {String} 41 | */ 42 | var exports = function(productId, permissionProfileId) { 43 | var _this = this; 44 | 45 | _this['product_id'] = productId; _this['permission_profile_id'] = permissionProfileId; 46 | }; 47 | 48 | /** 49 | * Constructs a ProductPermissionProfileRequest from a plain JavaScript object, optionally creating a new instance. 50 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 51 | * @param {Object} data The plain JavaScript object bearing properties of interest. 52 | * @param {module:model/ProductPermissionProfileRequest} obj Optional instance to populate. 53 | * @return {module:model/ProductPermissionProfileRequest} The populated ProductPermissionProfileRequest instance. 54 | */ 55 | exports.constructFromObject = function(data, obj) { 56 | if (data) { 57 | obj = obj || new exports(); 58 | 59 | if (data.hasOwnProperty('product_id')) { 60 | obj['product_id'] = ApiClient.convertToType(data['product_id'], 'String'); 61 | } 62 | if (data.hasOwnProperty('permission_profile_id')) { 63 | obj['permission_profile_id'] = ApiClient.convertToType(data['permission_profile_id'], 'String'); 64 | } 65 | } 66 | return obj; 67 | } 68 | 69 | /** 70 | * @member {String} product_id 71 | */ 72 | exports.prototype['product_id'] = undefined; 73 | /** 74 | * @member {String} permission_profile_id 75 | */ 76 | exports.prototype['permission_profile_id'] = undefined; 77 | 78 | 79 | 80 | return exports; 81 | })); 82 | 83 | 84 | -------------------------------------------------------------------------------- /src/model/CloneErrorDetails.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.CloneErrorDetails = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The CloneErrorDetails model module. 32 | * @module model/CloneErrorDetails 33 | */ 34 | 35 | /** 36 | * Constructs a new CloneErrorDetails. 37 | * @alias module:model/CloneErrorDetails 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a CloneErrorDetails from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/CloneErrorDetails} obj Optional instance to populate. 51 | * @return {module:model/CloneErrorDetails} The populated CloneErrorDetails instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('error')) { 58 | obj['error'] = ApiClient.convertToType(data['error'], 'String'); 59 | } 60 | if (data.hasOwnProperty('errorDescription')) { 61 | obj['errorDescription'] = ApiClient.convertToType(data['errorDescription'], 'String'); 62 | } 63 | if (data.hasOwnProperty('isSystemError')) { 64 | obj['isSystemError'] = ApiClient.convertToType(data['isSystemError'], 'Boolean'); 65 | } 66 | } 67 | return obj; 68 | } 69 | 70 | /** 71 | * The error code. 72 | * @member {String} error 73 | */ 74 | exports.prototype['error'] = undefined; 75 | /** 76 | * The error description. 77 | * @member {String} errorDescription 78 | */ 79 | exports.prototype['errorDescription'] = undefined; 80 | /** 81 | * Whether the error is caused by the system or user. 82 | * @member {Boolean} isSystemError 83 | */ 84 | exports.prototype['isSystemError'] = undefined; 85 | 86 | 87 | 88 | return exports; 89 | })); 90 | 91 | 92 | -------------------------------------------------------------------------------- /src/model/ProductPermissionProfilesRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/ProductPermissionProfileRequest'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./ProductPermissionProfileRequest')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.ProductPermissionProfilesRequest = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.ProductPermissionProfileRequest); 25 | } 26 | }(this, function(ApiClient, ProductPermissionProfileRequest) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The ProductPermissionProfilesRequest model module. 32 | * @module model/ProductPermissionProfilesRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new ProductPermissionProfilesRequest. 37 | * @alias module:model/ProductPermissionProfilesRequest 38 | * @class 39 | * @param productPermissionProfiles {Array.} 40 | */ 41 | var exports = function(productPermissionProfiles) { 42 | var _this = this; 43 | 44 | _this['product_permission_profiles'] = productPermissionProfiles; 45 | }; 46 | 47 | /** 48 | * Constructs a ProductPermissionProfilesRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/ProductPermissionProfilesRequest} obj Optional instance to populate. 52 | * @return {module:model/ProductPermissionProfilesRequest} The populated ProductPermissionProfilesRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('product_permission_profiles')) { 59 | obj['product_permission_profiles'] = ApiClient.convertToType(data['product_permission_profiles'], [ProductPermissionProfileRequest]); 60 | } 61 | } 62 | return obj; 63 | } 64 | 65 | /** 66 | * @member {Array.} product_permission_profiles 67 | */ 68 | exports.prototype['product_permission_profiles'] = undefined; 69 | 70 | 71 | 72 | return exports; 73 | })); 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/model/OrganizationUsersResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/OrganizationUserResponse', 'model/PagingResponseProperties'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./OrganizationUserResponse'), require('./PagingResponseProperties')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationUsersResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.OrganizationUserResponse, root.DocusignAdmin.PagingResponseProperties); 25 | } 26 | }(this, function(ApiClient, OrganizationUserResponse, PagingResponseProperties) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationUsersResponse model module. 32 | * @module model/OrganizationUsersResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationUsersResponse. 37 | * @alias module:model/OrganizationUsersResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationUsersResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationUsersResponse} obj Optional instance to populate. 51 | * @return {module:model/OrganizationUsersResponse} The populated OrganizationUsersResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('users')) { 58 | obj['users'] = ApiClient.convertToType(data['users'], [OrganizationUserResponse]); 59 | } 60 | if (data.hasOwnProperty('paging')) { 61 | obj['paging'] = PagingResponseProperties.constructFromObject(data['paging']); 62 | } 63 | } 64 | return obj; 65 | } 66 | 67 | /** 68 | * @member {Array.} users 69 | */ 70 | exports.prototype['users'] = undefined; 71 | /** 72 | * @member {module:model/PagingResponseProperties} paging 73 | */ 74 | exports.prototype['paging'] = undefined; 75 | 76 | 77 | 78 | return exports; 79 | })); 80 | 81 | 82 | -------------------------------------------------------------------------------- /src/model/UpdateUserEmailRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.UpdateUserEmailRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UpdateUserEmailRequest model module. 32 | * @module model/UpdateUserEmailRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new UpdateUserEmailRequest. 37 | * @alias module:model/UpdateUserEmailRequest 38 | * @class 39 | * @param id {String} 40 | * @param siteId {Number} 41 | * @param email {String} 42 | */ 43 | var exports = function(id, siteId, email) { 44 | var _this = this; 45 | 46 | _this['id'] = id; _this['site_id'] = siteId; _this['email'] = email; 47 | }; 48 | 49 | /** 50 | * Constructs a UpdateUserEmailRequest from a plain JavaScript object, optionally creating a new instance. 51 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 52 | * @param {Object} data The plain JavaScript object bearing properties of interest. 53 | * @param {module:model/UpdateUserEmailRequest} obj Optional instance to populate. 54 | * @return {module:model/UpdateUserEmailRequest} The populated UpdateUserEmailRequest instance. 55 | */ 56 | exports.constructFromObject = function(data, obj) { 57 | if (data) { 58 | obj = obj || new exports(); 59 | 60 | if (data.hasOwnProperty('id')) { 61 | obj['id'] = ApiClient.convertToType(data['id'], 'String'); 62 | } 63 | if (data.hasOwnProperty('site_id')) { 64 | obj['site_id'] = ApiClient.convertToType(data['site_id'], 'Number'); 65 | } 66 | if (data.hasOwnProperty('email')) { 67 | obj['email'] = ApiClient.convertToType(data['email'], 'String'); 68 | } 69 | } 70 | return obj; 71 | } 72 | 73 | /** 74 | * @member {String} id 75 | */ 76 | exports.prototype['id'] = undefined; 77 | /** 78 | * @member {Number} site_id 79 | */ 80 | exports.prototype['site_id'] = undefined; 81 | /** 82 | * @member {String} email 83 | */ 84 | exports.prototype['email'] = undefined; 85 | 86 | 87 | 88 | return exports; 89 | })); 90 | 91 | 92 | -------------------------------------------------------------------------------- /src/model/SubscriptionProvisionModelChangeEvent.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.SubscriptionProvisionModelChangeEvent = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SubscriptionProvisionModelChangeEvent model module. 32 | * @module model/SubscriptionProvisionModelChangeEvent 33 | */ 34 | 35 | /** 36 | * Constructs a new SubscriptionProvisionModelChangeEvent. 37 | * @alias module:model/SubscriptionProvisionModelChangeEvent 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a SubscriptionProvisionModelChangeEvent from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/SubscriptionProvisionModelChangeEvent} obj Optional instance to populate. 51 | * @return {module:model/SubscriptionProvisionModelChangeEvent} The populated SubscriptionProvisionModelChangeEvent instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('EventDate')) { 58 | obj['EventDate'] = ApiClient.convertToType(data['EventDate'], 'Date'); 59 | } 60 | if (data.hasOwnProperty('Action')) { 61 | obj['Action'] = ApiClient.convertToType(data['Action'], 'String'); 62 | } 63 | if (data.hasOwnProperty('TraceToken')) { 64 | obj['TraceToken'] = ApiClient.convertToType(data['TraceToken'], 'String'); 65 | } 66 | } 67 | return obj; 68 | } 69 | 70 | /** 71 | * @member {Date} EventDate 72 | */ 73 | exports.prototype['EventDate'] = undefined; 74 | /** 75 | * @member {String} Action 76 | */ 77 | exports.prototype['Action'] = undefined; 78 | /** 79 | * @member {String} TraceToken 80 | */ 81 | exports.prototype['TraceToken'] = undefined; 82 | 83 | 84 | 85 | return exports; 86 | })); 87 | 88 | 89 | -------------------------------------------------------------------------------- /src/model/SubAccountErrorDetails.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.SubAccountErrorDetails = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SubAccountErrorDetails model module. 32 | * @module model/SubAccountErrorDetails 33 | */ 34 | 35 | /** 36 | * Constructs a new SubAccountErrorDetails. 37 | * @alias module:model/SubAccountErrorDetails 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a SubAccountErrorDetails from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/SubAccountErrorDetails} obj Optional instance to populate. 51 | * @return {module:model/SubAccountErrorDetails} The populated SubAccountErrorDetails instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('error')) { 58 | obj['error'] = ApiClient.convertToType(data['error'], 'String'); 59 | } 60 | if (data.hasOwnProperty('errorDescription')) { 61 | obj['errorDescription'] = ApiClient.convertToType(data['errorDescription'], 'String'); 62 | } 63 | if (data.hasOwnProperty('isSystemError')) { 64 | obj['isSystemError'] = ApiClient.convertToType(data['isSystemError'], 'Boolean'); 65 | } 66 | } 67 | return obj; 68 | } 69 | 70 | /** 71 | * The error code. 72 | * @member {String} error 73 | */ 74 | exports.prototype['error'] = undefined; 75 | /** 76 | * The error description. 77 | * @member {String} errorDescription 78 | */ 79 | exports.prototype['errorDescription'] = undefined; 80 | /** 81 | * Whether the error is caused by the system or user. 82 | * @member {Boolean} isSystemError 83 | */ 84 | exports.prototype['isSystemError'] = undefined; 85 | 86 | 87 | 88 | return exports; 89 | })); 90 | 91 | 92 | -------------------------------------------------------------------------------- /src/model/AddDSGroupUsersResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/DSGroupUserResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./DSGroupUserResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.AddDSGroupUsersResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.DSGroupUserResponse); 25 | } 26 | }(this, function(ApiClient, DSGroupUserResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The AddDSGroupUsersResponse model module. 32 | * @module model/AddDSGroupUsersResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new AddDSGroupUsersResponse. 37 | * @alias module:model/AddDSGroupUsersResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a AddDSGroupUsersResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/AddDSGroupUsersResponse} obj Optional instance to populate. 51 | * @return {module:model/AddDSGroupUsersResponse} The populated AddDSGroupUsersResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('is_success')) { 58 | obj['is_success'] = ApiClient.convertToType(data['is_success'], 'Boolean'); 59 | } 60 | if (data.hasOwnProperty('TotalCount')) { 61 | obj['TotalCount'] = ApiClient.convertToType(data['TotalCount'], 'Number'); 62 | } 63 | if (data.hasOwnProperty('users')) { 64 | obj['users'] = ApiClient.convertToType(data['users'], [DSGroupUserResponse]); 65 | } 66 | } 67 | return obj; 68 | } 69 | 70 | /** 71 | * @member {Boolean} is_success 72 | */ 73 | exports.prototype['is_success'] = undefined; 74 | /** 75 | * @member {Number} TotalCount 76 | */ 77 | exports.prototype['TotalCount'] = undefined; 78 | /** 79 | * @member {Array.} users 80 | */ 81 | exports.prototype['users'] = undefined; 82 | 83 | 84 | 85 | return exports; 86 | })); 87 | 88 | 89 | -------------------------------------------------------------------------------- /src/model/UserProductProfileDeleteRequest.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.UserProductProfileDeleteRequest = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UserProductProfileDeleteRequest model module. 32 | * @module model/UserProductProfileDeleteRequest 33 | */ 34 | 35 | /** 36 | * Constructs a new UserProductProfileDeleteRequest. 37 | * @alias module:model/UserProductProfileDeleteRequest 38 | * @class 39 | * @param productIds {Array.} 40 | */ 41 | var exports = function(productIds) { 42 | var _this = this; 43 | 44 | _this['product_ids'] = productIds; 45 | }; 46 | 47 | /** 48 | * Constructs a UserProductProfileDeleteRequest from a plain JavaScript object, optionally creating a new instance. 49 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 50 | * @param {Object} data The plain JavaScript object bearing properties of interest. 51 | * @param {module:model/UserProductProfileDeleteRequest} obj Optional instance to populate. 52 | * @return {module:model/UserProductProfileDeleteRequest} The populated UserProductProfileDeleteRequest instance. 53 | */ 54 | exports.constructFromObject = function(data, obj) { 55 | if (data) { 56 | obj = obj || new exports(); 57 | 58 | if (data.hasOwnProperty('user_email')) { 59 | obj['user_email'] = ApiClient.convertToType(data['user_email'], 'String'); 60 | } 61 | if (data.hasOwnProperty('user_id')) { 62 | obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); 63 | } 64 | if (data.hasOwnProperty('product_ids')) { 65 | obj['product_ids'] = ApiClient.convertToType(data['product_ids'], ['String']); 66 | } 67 | } 68 | return obj; 69 | } 70 | 71 | /** 72 | * @member {String} user_email 73 | */ 74 | exports.prototype['user_email'] = undefined; 75 | /** 76 | * @member {String} user_id 77 | */ 78 | exports.prototype['user_id'] = undefined; 79 | /** 80 | * @member {Array.} product_ids 81 | */ 82 | exports.prototype['product_ids'] = undefined; 83 | 84 | 85 | 86 | return exports; 87 | })); 88 | 89 | 90 | -------------------------------------------------------------------------------- /src/model/SubAccountCreateRequestSubAccountCreationSubscription.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.SubAccountCreateRequestSubAccountCreationSubscription = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The SubAccountCreateRequestSubAccountCreationSubscription model module. 32 | * @module model/SubAccountCreateRequestSubAccountCreationSubscription 33 | */ 34 | 35 | /** 36 | * Constructs a new SubAccountCreateRequestSubAccountCreationSubscription. 37 | * @alias module:model/SubAccountCreateRequestSubAccountCreationSubscription 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a SubAccountCreateRequestSubAccountCreationSubscription from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/SubAccountCreateRequestSubAccountCreationSubscription} obj Optional instance to populate. 51 | * @return {module:model/SubAccountCreateRequestSubAccountCreationSubscription} The populated SubAccountCreateRequestSubAccountCreationSubscription instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('id')) { 58 | obj['id'] = ApiClient.convertToType(data['id'], 'String'); 59 | } 60 | if (data.hasOwnProperty('planId')) { 61 | obj['planId'] = ApiClient.convertToType(data['planId'], 'String'); 62 | } 63 | if (data.hasOwnProperty('modules')) { 64 | obj['modules'] = ApiClient.convertToType(data['modules'], ['String']); 65 | } 66 | } 67 | return obj; 68 | } 69 | 70 | /** 71 | * @member {String} id 72 | */ 73 | exports.prototype['id'] = undefined; 74 | /** 75 | * @member {String} planId 76 | */ 77 | exports.prototype['planId'] = undefined; 78 | /** 79 | * @member {Array.} modules 80 | */ 81 | exports.prototype['modules'] = undefined; 82 | 83 | 84 | 85 | return exports; 86 | })); 87 | 88 | 89 | -------------------------------------------------------------------------------- /src/model/OrgReportConfigurationResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrgReportConfigurationResponse = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrgReportConfigurationResponse model module. 32 | * @module model/OrgReportConfigurationResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new OrgReportConfigurationResponse. 37 | * @alias module:model/OrgReportConfigurationResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrgReportConfigurationResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrgReportConfigurationResponse} obj Optional instance to populate. 51 | * @return {module:model/OrgReportConfigurationResponse} The populated OrgReportConfigurationResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('is_account_limit_disabled')) { 58 | obj['is_account_limit_disabled'] = ApiClient.convertToType(data['is_account_limit_disabled'], 'Boolean'); 59 | } 60 | if (data.hasOwnProperty('custom_dates_enabled')) { 61 | obj['custom_dates_enabled'] = ApiClient.convertToType(data['custom_dates_enabled'], 'Boolean'); 62 | } 63 | if (data.hasOwnProperty('enabled_report_types')) { 64 | obj['enabled_report_types'] = ApiClient.convertToType(data['enabled_report_types'], ['Number']); 65 | } 66 | } 67 | return obj; 68 | } 69 | 70 | /** 71 | * @member {Boolean} is_account_limit_disabled 72 | */ 73 | exports.prototype['is_account_limit_disabled'] = undefined; 74 | /** 75 | * @member {Boolean} custom_dates_enabled 76 | */ 77 | exports.prototype['custom_dates_enabled'] = undefined; 78 | /** 79 | * @member {Array.} enabled_report_types 80 | */ 81 | exports.prototype['enabled_report_types'] = undefined; 82 | 83 | 84 | 85 | return exports; 86 | })); 87 | 88 | 89 | -------------------------------------------------------------------------------- /src/model/OrganizationExportRequestorResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationExportRequestorResponse = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationExportRequestorResponse model module. 32 | * @module model/OrganizationExportRequestorResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationExportRequestorResponse. 37 | * @alias module:model/OrganizationExportRequestorResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationExportRequestorResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationExportRequestorResponse} obj Optional instance to populate. 51 | * @return {module:model/OrganizationExportRequestorResponse} The populated OrganizationExportRequestorResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('name')) { 58 | obj['name'] = ApiClient.convertToType(data['name'], 'String'); 59 | } 60 | if (data.hasOwnProperty('id')) { 61 | obj['id'] = ApiClient.convertToType(data['id'], 'String'); 62 | } 63 | if (data.hasOwnProperty('type')) { 64 | obj['type'] = ApiClient.convertToType(data['type'], 'String'); 65 | } 66 | if (data.hasOwnProperty('email')) { 67 | obj['email'] = ApiClient.convertToType(data['email'], 'String'); 68 | } 69 | } 70 | return obj; 71 | } 72 | 73 | /** 74 | * @member {String} name 75 | */ 76 | exports.prototype['name'] = undefined; 77 | /** 78 | * @member {String} id 79 | */ 80 | exports.prototype['id'] = undefined; 81 | /** 82 | * @member {String} type 83 | */ 84 | exports.prototype['type'] = undefined; 85 | /** 86 | * @member {String} email 87 | */ 88 | exports.prototype['email'] = undefined; 89 | 90 | 91 | 92 | return exports; 93 | })); 94 | 95 | 96 | -------------------------------------------------------------------------------- /src/model/OrganizationImportResponseRequestor.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationImportResponseRequestor = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationImportResponseRequestor model module. 32 | * @module model/OrganizationImportResponseRequestor 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationImportResponseRequestor. 37 | * @alias module:model/OrganizationImportResponseRequestor 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationImportResponseRequestor from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationImportResponseRequestor} obj Optional instance to populate. 51 | * @return {module:model/OrganizationImportResponseRequestor} The populated OrganizationImportResponseRequestor instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('name')) { 58 | obj['name'] = ApiClient.convertToType(data['name'], 'String'); 59 | } 60 | if (data.hasOwnProperty('id')) { 61 | obj['id'] = ApiClient.convertToType(data['id'], 'String'); 62 | } 63 | if (data.hasOwnProperty('type')) { 64 | obj['type'] = ApiClient.convertToType(data['type'], 'String'); 65 | } 66 | if (data.hasOwnProperty('email')) { 67 | obj['email'] = ApiClient.convertToType(data['email'], 'String'); 68 | } 69 | } 70 | return obj; 71 | } 72 | 73 | /** 74 | * @member {String} name 75 | */ 76 | exports.prototype['name'] = undefined; 77 | /** 78 | * @member {String} id 79 | */ 80 | exports.prototype['id'] = undefined; 81 | /** 82 | * @member {String} type 83 | */ 84 | exports.prototype['type'] = undefined; 85 | /** 86 | * @member {String} email 87 | */ 88 | exports.prototype['email'] = undefined; 89 | 90 | 91 | 92 | return exports; 93 | })); 94 | 95 | 96 | -------------------------------------------------------------------------------- /src/model/OrganizationAccountResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.OrganizationAccountResponse = factory(root.DocusignAdmin.ApiClient); 25 | } 26 | }(this, function(ApiClient) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The OrganizationAccountResponse model module. 32 | * @module model/OrganizationAccountResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new OrganizationAccountResponse. 37 | * @alias module:model/OrganizationAccountResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a OrganizationAccountResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/OrganizationAccountResponse} obj Optional instance to populate. 51 | * @return {module:model/OrganizationAccountResponse} The populated OrganizationAccountResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('id')) { 58 | obj['id'] = ApiClient.convertToType(data['id'], 'String'); 59 | } 60 | if (data.hasOwnProperty('name')) { 61 | obj['name'] = ApiClient.convertToType(data['name'], 'String'); 62 | } 63 | if (data.hasOwnProperty('external_account_id')) { 64 | obj['external_account_id'] = ApiClient.convertToType(data['external_account_id'], 'Number'); 65 | } 66 | if (data.hasOwnProperty('site_id')) { 67 | obj['site_id'] = ApiClient.convertToType(data['site_id'], 'Number'); 68 | } 69 | } 70 | return obj; 71 | } 72 | 73 | /** 74 | * @member {String} id 75 | */ 76 | exports.prototype['id'] = undefined; 77 | /** 78 | * @member {String} name 79 | */ 80 | exports.prototype['name'] = undefined; 81 | /** 82 | * @member {Number} external_account_id 83 | */ 84 | exports.prototype['external_account_id'] = undefined; 85 | /** 86 | * @member {Number} site_id 87 | */ 88 | exports.prototype['site_id'] = undefined; 89 | 90 | 91 | 92 | return exports; 93 | })); 94 | 95 | 96 | -------------------------------------------------------------------------------- /src/model/UserUpdateResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/ErrorDetails'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./ErrorDetails')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.UserUpdateResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.ErrorDetails); 25 | } 26 | }(this, function(ApiClient, ErrorDetails) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The UserUpdateResponse model module. 32 | * @module model/UserUpdateResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new UserUpdateResponse. 37 | * @alias module:model/UserUpdateResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a UserUpdateResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/UserUpdateResponse} obj Optional instance to populate. 51 | * @return {module:model/UserUpdateResponse} The populated UserUpdateResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('id')) { 58 | obj['id'] = ApiClient.convertToType(data['id'], 'String'); 59 | } 60 | if (data.hasOwnProperty('site_id')) { 61 | obj['site_id'] = ApiClient.convertToType(data['site_id'], 'Number'); 62 | } 63 | if (data.hasOwnProperty('email')) { 64 | obj['email'] = ApiClient.convertToType(data['email'], 'String'); 65 | } 66 | if (data.hasOwnProperty('error_details')) { 67 | obj['error_details'] = ErrorDetails.constructFromObject(data['error_details']); 68 | } 69 | } 70 | return obj; 71 | } 72 | 73 | /** 74 | * @member {String} id 75 | */ 76 | exports.prototype['id'] = undefined; 77 | /** 78 | * @member {Number} site_id 79 | */ 80 | exports.prototype['site_id'] = undefined; 81 | /** 82 | * @member {String} email 83 | */ 84 | exports.prototype['email'] = undefined; 85 | /** 86 | * @member {module:model/ErrorDetails} error_details 87 | */ 88 | exports.prototype['error_details'] = undefined; 89 | 90 | 91 | 92 | return exports; 93 | })); 94 | 95 | 96 | -------------------------------------------------------------------------------- /src/model/DSGroupUsersResponse.js: -------------------------------------------------------------------------------- 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(['ApiClient', 'model/DSGroupUserResponse'], factory); 16 | } else if (typeof module === 'object' && module.exports) { 17 | // CommonJS-like environments that support module.exports, like Node. 18 | module.exports = factory(require('../ApiClient'), require('./DSGroupUserResponse')); 19 | } else { 20 | // Browser globals (root is window) 21 | if (!root.DocusignAdmin) { 22 | root.DocusignAdmin = {}; 23 | } 24 | root.DocusignAdmin.DSGroupUsersResponse = factory(root.DocusignAdmin.ApiClient, root.DocusignAdmin.DSGroupUserResponse); 25 | } 26 | }(this, function(ApiClient, DSGroupUserResponse) { 27 | 'use strict'; 28 | 29 | 30 | /** 31 | * The DSGroupUsersResponse model module. 32 | * @module model/DSGroupUsersResponse 33 | */ 34 | 35 | /** 36 | * Constructs a new DSGroupUsersResponse. 37 | * @alias module:model/DSGroupUsersResponse 38 | * @class 39 | */ 40 | var exports = function() { 41 | var _this = this; 42 | 43 | 44 | }; 45 | 46 | /** 47 | * Constructs a DSGroupUsersResponse from a plain JavaScript object, optionally creating a new instance. 48 | * Copies all relevant properties from data to obj if supplied or a new instance if not. 49 | * @param {Object} data The plain JavaScript object bearing properties of interest. 50 | * @param {module:model/DSGroupUsersResponse} obj Optional instance to populate. 51 | * @return {module:model/DSGroupUsersResponse} The populated DSGroupUsersResponse instance. 52 | */ 53 | exports.constructFromObject = function(data, obj) { 54 | if (data) { 55 | obj = obj || new exports(); 56 | 57 | if (data.hasOwnProperty('page')) { 58 | obj['page'] = ApiClient.convertToType(data['page'], 'Number'); 59 | } 60 | if (data.hasOwnProperty('page_size')) { 61 | obj['page_size'] = ApiClient.convertToType(data['page_size'], 'Number'); 62 | } 63 | if (data.hasOwnProperty('total_count')) { 64 | obj['total_count'] = ApiClient.convertToType(data['total_count'], 'Number'); 65 | } 66 | if (data.hasOwnProperty('users')) { 67 | obj['users'] = ApiClient.convertToType(data['users'], [DSGroupUserResponse]); 68 | } 69 | } 70 | return obj; 71 | } 72 | 73 | /** 74 | * @member {Number} page 75 | */ 76 | exports.prototype['page'] = undefined; 77 | /** 78 | * @member {Number} page_size 79 | */ 80 | exports.prototype['page_size'] = undefined; 81 | /** 82 | * @member {Number} total_count 83 | */ 84 | exports.prototype['total_count'] = undefined; 85 | /** 86 | * @member {Array.} users 87 | */ 88 | exports.prototype['users'] = undefined; 89 | 90 | 91 | 92 | return exports; 93 | })); 94 | 95 | 96 | --------------------------------------------------------------------------------