|
12 | 12 | (function(root, factory) { |
13 | 13 | if (typeof define === 'function' && define.amd) { |
14 | 14 | // AMD. Register as an anonymous module. |
15 | | - define(['Configuration', 'ApiClient', 'model/ConnectConfigResults', 'model/ConnectCustomConfiguration', 'model/ConnectDeleteFailureResult', 'model/ConnectFailureFilter', 'model/ConnectFailureResults', 'model/ConnectLog', 'model/ConnectLogs', 'model/ErrorDetails', 'model/IntegratedConnectUserInfoList', 'model/IntegratedUserInfoList', 'model/MobileNotifierConfigurationInformation'], factory); |
| 15 | + define(['Configuration', 'ApiClient', 'model/ConnectConfigResults', 'model/ConnectCustomConfiguration', 'model/ConnectDeleteFailureResult', 'model/ConnectFailureFilter', 'model/ConnectFailureResults', 'model/ConnectLog', 'model/ConnectLogs', 'model/ConnectOAuthConfig', 'model/ErrorDetails', 'model/IntegratedConnectUserInfoList', 'model/IntegratedUserInfoList', 'model/MobileNotifierConfigurationInformation'], factory); |
16 | 16 | } else if (typeof module === 'object' && module.exports) { |
17 | 17 | // CommonJS-like environments that support module.exports, like Node. |
18 | | - module.exports = factory(require('../Configuration'), require('../ApiClient'), require('../model/ConnectConfigResults'), require('../model/ConnectCustomConfiguration'), require('../model/ConnectDeleteFailureResult'), require('../model/ConnectFailureFilter'), require('../model/ConnectFailureResults'), require('../model/ConnectLog'), require('../model/ConnectLogs'), require('../model/ErrorDetails'), require('../model/IntegratedConnectUserInfoList'), require('../model/IntegratedUserInfoList'), require('../model/MobileNotifierConfigurationInformation')); |
| 18 | + module.exports = factory(require('../Configuration'), require('../ApiClient'), require('../model/ConnectConfigResults'), require('../model/ConnectCustomConfiguration'), require('../model/ConnectDeleteFailureResult'), require('../model/ConnectFailureFilter'), require('../model/ConnectFailureResults'), require('../model/ConnectLog'), require('../model/ConnectLogs'), require('../model/ConnectOAuthConfig'), require('../model/ErrorDetails'), require('../model/IntegratedConnectUserInfoList'), require('../model/IntegratedUserInfoList'), require('../model/MobileNotifierConfigurationInformation')); |
19 | 19 | } else { |
20 | 20 | // Browser globals (root is window) |
21 | 21 | if (!root.Docusign) { |
22 | 22 | root.Docusign = {}; |
23 | 23 | } |
24 | | - root.Docusign.ConnectApi = factory(root.Docusign.Configuration, root.Docusign.ApiClient, root.Docusign.ConnectConfigResults, root.Docusign.ConnectCustomConfiguration, root.Docusign.ConnectDeleteFailureResult, root.Docusign.ConnectFailureFilter, root.Docusign.ConnectFailureResults, root.Docusign.ConnectLog, root.Docusign.ConnectLogs, root.Docusign.ErrorDetails, root.Docusign.IntegratedConnectUserInfoList, root.Docusign.IntegratedUserInfoList, root.Docusign.MobileNotifierConfigurationInformation); |
| 24 | + root.Docusign.ConnectApi = factory(root.Docusign.Configuration, root.Docusign.ApiClient, root.Docusign.ConnectConfigResults, root.Docusign.ConnectCustomConfiguration, root.Docusign.ConnectDeleteFailureResult, root.Docusign.ConnectFailureFilter, root.Docusign.ConnectFailureResults, root.Docusign.ConnectLog, root.Docusign.ConnectLogs, root.Docusign.ConnectOAuthConfig, root.Docusign.ErrorDetails, root.Docusign.IntegratedConnectUserInfoList, root.Docusign.IntegratedUserInfoList, root.Docusign.MobileNotifierConfigurationInformation); |
25 | 25 | } |
26 | | -}(this, function(Configuration, ApiClient, ConnectConfigResults, ConnectCustomConfiguration, ConnectDeleteFailureResult, ConnectFailureFilter, ConnectFailureResults, ConnectLog, ConnectLogs, ErrorDetails, IntegratedConnectUserInfoList, IntegratedUserInfoList, MobileNotifierConfigurationInformation) { |
| 26 | +}(this, function(Configuration, ApiClient, ConnectConfigResults, ConnectCustomConfiguration, ConnectDeleteFailureResult, ConnectFailureFilter, ConnectFailureResults, ConnectLog, ConnectLogs, ConnectOAuthConfig, ErrorDetails, IntegratedConnectUserInfoList, IntegratedUserInfoList, MobileNotifierConfigurationInformation) { |
27 | 27 | 'use strict'; |
28 | 28 |
|
29 | 29 | /** |
|
114 | 114 | ); |
115 | 115 | }; |
116 | 116 |
|
| 117 | + /** |
| 118 | + * (Optional) Callback function to receive the result of the createConnectOAuthConfig operation. If none specified a Promise will be returned. |
| 119 | + * @callback module:api/ConnectApi~createConnectOAuthConfigCallback |
| 120 | + * @param {String} error Error message, if any. |
| 121 | + * @param {module:model/ConnectOAuthConfig} data The data returned by the service call. |
| 122 | + * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
| 123 | + */ |
| 124 | + |
| 125 | + /** |
| 126 | + * Sets the Connect OAuth Config for the account. |
| 127 | + * @param {String} accountId The external account number (int) or account ID Guid. |
| 128 | + * @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. |
| 129 | + * @param {module:model/ConnectOAuthConfig} optsOrCallback.connectOAuthConfig |
| 130 | + * @param {module:api/ConnectApi~createConnectOAuthConfigCallback} callback The callback function, accepting three arguments: error, data, response |
| 131 | + * data is of type: {@link module:model/ConnectOAuthConfig} |
| 132 | + */ |
| 133 | + this.createConnectOAuthConfig = function(accountId, optsOrCallback, callback) { |
| 134 | + optsOrCallback = optsOrCallback || {}; |
| 135 | + |
| 136 | + if (typeof optsOrCallback === 'function') { |
| 137 | + callback = optsOrCallback; |
| 138 | + optsOrCallback = {}; |
| 139 | + } |
| 140 | + |
| 141 | + var postBody = optsOrCallback['connectOAuthConfig']; |
| 142 | + |
| 143 | + // verify the required parameter 'accountId' is set |
| 144 | + if (accountId === undefined || accountId === null) { |
| 145 | + throw new Error("Missing the required parameter 'accountId' when calling createConnectOAuthConfig"); |
| 146 | + } |
| 147 | + |
| 148 | + if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
| 149 | + if (typeof optsOrCallback !== 'undefined') { |
| 150 | + optsOrCallback = callback; |
| 151 | + } |
| 152 | + callback = arguments[arguments.length-1]; |
| 153 | + } |
| 154 | + |
| 155 | + var pathParams = { |
| 156 | + 'accountId': accountId |
| 157 | + }; |
| 158 | + var queryParams = { |
| 159 | + }; |
| 160 | + var headerParams = { |
| 161 | + }; |
| 162 | + var formParams = { |
| 163 | + }; |
| 164 | + |
| 165 | + var authNames = ['docusignAccessCode']; |
| 166 | + var contentTypes = []; |
| 167 | + var accepts = ['application/json']; |
| 168 | + var returnType = ConnectOAuthConfig; |
| 169 | + |
| 170 | + return this.apiClient.callApi( |
| 171 | + '/v2.1/accounts/{accountId}/connect/oauth', 'POST', |
| 172 | + pathParams, queryParams, headerParams, formParams, postBody, |
| 173 | + authNames, contentTypes, accepts, returnType, callback |
| 174 | + ); |
| 175 | + }; |
| 176 | + |
117 | 177 | /** |
118 | 178 | * (Optional) Callback function to receive the result of the deleteConfiguration operation. If none specified a Promise will be returned. |
119 | 179 | * @callback module:api/ConnectApi~deleteConfigurationCallback |
|
177 | 237 | ); |
178 | 238 | }; |
179 | 239 |
|
| 240 | + /** |
| 241 | + * (Optional) Callback function to receive the result of the deleteConnectOAuthConfig operation. If none specified a Promise will be returned. |
| 242 | + * @callback module:api/ConnectApi~deleteConnectOAuthConfigCallback |
| 243 | + * @param {String} error Error message, if any. |
| 244 | + * @param data This operation does not return a value. |
| 245 | + * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
| 246 | + */ |
| 247 | + |
| 248 | + /** |
| 249 | + * Sets the Connect OAuth Config for the account. |
| 250 | + * @param {String} accountId The external account number (int) or account ID Guid. |
| 251 | + * @param {module:api/ConnectApi~deleteConnectOAuthConfigCallback} callback The callback function, accepting three arguments: error, data, response |
| 252 | + */ |
| 253 | + this.deleteConnectOAuthConfig = function(accountId, callback) { |
| 254 | + var postBody = null; |
| 255 | + |
| 256 | + // verify the required parameter 'accountId' is set |
| 257 | + if (accountId === undefined || accountId === null) { |
| 258 | + throw new Error("Missing the required parameter 'accountId' when calling deleteConnectOAuthConfig"); |
| 259 | + } |
| 260 | + |
| 261 | + if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
| 262 | + if (typeof optsOrCallback !== 'undefined') { |
| 263 | + optsOrCallback = callback; |
| 264 | + } |
| 265 | + callback = arguments[arguments.length-1]; |
| 266 | + } |
| 267 | + |
| 268 | + var pathParams = { |
| 269 | + 'accountId': accountId |
| 270 | + }; |
| 271 | + var queryParams = { |
| 272 | + }; |
| 273 | + var headerParams = { |
| 274 | + }; |
| 275 | + var formParams = { |
| 276 | + }; |
| 277 | + |
| 278 | + var authNames = ['docusignAccessCode']; |
| 279 | + var contentTypes = []; |
| 280 | + var accepts = ['application/json']; |
| 281 | + var returnType = null; |
| 282 | + |
| 283 | + return this.apiClient.callApi( |
| 284 | + '/v2.1/accounts/{accountId}/connect/oauth', 'DELETE', |
| 285 | + pathParams, queryParams, headerParams, formParams, postBody, |
| 286 | + authNames, contentTypes, accepts, returnType, callback |
| 287 | + ); |
| 288 | + }; |
| 289 | + |
180 | 290 | /** |
181 | 291 | * (Optional) Callback function to receive the result of the deleteEventFailureLog operation. If none specified a Promise will be returned. |
182 | 292 | * @callback module:api/ConnectApi~deleteEventFailureLogCallback |
|
481 | 591 |
|
482 | 592 | /** |
483 | 593 | * Returns all users from the configured Connect service. |
| 594 | + * |
484 | 595 | * @param {String} accountId The external account number (int) or account ID Guid. |
485 | 596 | * @param {String} connectId The ID of the custom Connect configuration being accessed. |
486 | 597 | * @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. |
|
549 | 660 | ); |
550 | 661 | }; |
551 | 662 |
|
| 663 | + /** |
| 664 | + * (Optional) Callback function to receive the result of the getConnectOAuthConfig operation. If none specified a Promise will be returned. |
| 665 | + * @callback module:api/ConnectApi~getConnectOAuthConfigCallback |
| 666 | + * @param {String} error Error message, if any. |
| 667 | + * @param {module:model/ConnectOAuthConfig} data The data returned by the service call. |
| 668 | + * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
| 669 | + */ |
| 670 | + |
| 671 | + /** |
| 672 | + * Sets the Connect OAuth Config for the account. |
| 673 | + * @param {String} accountId The external account number (int) or account ID Guid. |
| 674 | + * @param {module:api/ConnectApi~getConnectOAuthConfigCallback} callback The callback function, accepting three arguments: error, data, response |
| 675 | + * data is of type: {@link module:model/ConnectOAuthConfig} |
| 676 | + */ |
| 677 | + this.getConnectOAuthConfig = function(accountId, callback) { |
| 678 | + var postBody = null; |
| 679 | + |
| 680 | + // verify the required parameter 'accountId' is set |
| 681 | + if (accountId === undefined || accountId === null) { |
| 682 | + throw new Error("Missing the required parameter 'accountId' when calling getConnectOAuthConfig"); |
| 683 | + } |
| 684 | + |
| 685 | + if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
| 686 | + if (typeof optsOrCallback !== 'undefined') { |
| 687 | + optsOrCallback = callback; |
| 688 | + } |
| 689 | + callback = arguments[arguments.length-1]; |
| 690 | + } |
| 691 | + |
| 692 | + var pathParams = { |
| 693 | + 'accountId': accountId |
| 694 | + }; |
| 695 | + var queryParams = { |
| 696 | + }; |
| 697 | + var headerParams = { |
| 698 | + }; |
| 699 | + var formParams = { |
| 700 | + }; |
| 701 | + |
| 702 | + var authNames = ['docusignAccessCode']; |
| 703 | + var contentTypes = []; |
| 704 | + var accepts = ['application/json']; |
| 705 | + var returnType = ConnectOAuthConfig; |
| 706 | + |
| 707 | + return this.apiClient.callApi( |
| 708 | + '/v2.1/accounts/{accountId}/connect/oauth', 'GET', |
| 709 | + pathParams, queryParams, headerParams, formParams, postBody, |
| 710 | + authNames, contentTypes, accepts, returnType, callback |
| 711 | + ); |
| 712 | + }; |
| 713 | + |
552 | 714 | /** |
553 | 715 | * (Optional) Callback function to receive the result of the getEventLog operation. If none specified a Promise will be returned. |
554 | 716 | * @callback module:api/ConnectApi~getEventLogCallback |
|
0 commit comments