|
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/ConnectFailureFilter', 'model/ConnectFailureResults', 'model/ConnectLog', 'model/ConnectLogs', 'model/ErrorDetails', 'model/IntegratedUserInfoList', 'model/MobileNotifierConfigurationInformation'], factory); |
| 15 | + define(['Configuration', 'ApiClient', 'model/ConnectConfigResults', 'model/ConnectCustomConfiguration', 'model/ConnectFailureFilter', 'model/ConnectFailureResults', 'model/ConnectLog', 'model/ConnectLogs', '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/ConnectFailureFilter'), require('../model/ConnectFailureResults'), require('../model/ConnectLog'), require('../model/ConnectLogs'), require('../model/ErrorDetails'), require('../model/IntegratedUserInfoList'), require('../model/MobileNotifierConfigurationInformation')); |
| 18 | + module.exports = factory(require('../Configuration'), require('../ApiClient'), require('../model/ConnectConfigResults'), require('../model/ConnectCustomConfiguration'), require('../model/ConnectFailureFilter'), require('../model/ConnectFailureResults'), require('../model/ConnectLog'), require('../model/ConnectLogs'), 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.ConnectFailureFilter, root.Docusign.ConnectFailureResults, root.Docusign.ConnectLog, root.Docusign.ConnectLogs, root.Docusign.ErrorDetails, 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.ConnectFailureFilter, root.Docusign.ConnectFailureResults, root.Docusign.ConnectLog, root.Docusign.ConnectLogs, root.Docusign.ErrorDetails, root.Docusign.IntegratedConnectUserInfoList, root.Docusign.IntegratedUserInfoList, root.Docusign.MobileNotifierConfigurationInformation); |
25 | 25 | } |
26 | | -}(this, function(Configuration, ApiClient, ConnectConfigResults, ConnectCustomConfiguration, ConnectFailureFilter, ConnectFailureResults, ConnectLog, ConnectLogs, ErrorDetails, IntegratedUserInfoList, MobileNotifierConfigurationInformation) { |
| 26 | +}(this, function(Configuration, ApiClient, ConnectConfigResults, ConnectCustomConfiguration, ConnectFailureFilter, ConnectFailureResults, ConnectLog, ConnectLogs, ErrorDetails, IntegratedConnectUserInfoList, IntegratedUserInfoList, MobileNotifierConfigurationInformation) { |
27 | 27 | 'use strict'; |
28 | 28 |
|
29 | 29 | /** |
|
470 | 470 | ); |
471 | 471 | }; |
472 | 472 |
|
| 473 | + /** |
| 474 | + * (Optional) Callback function to receive the result of the getConnectAllUsers operation. If none specified a Promise will be returned. |
| 475 | + * @callback module:api/ConnectApi~getConnectAllUsersCallback |
| 476 | + * @param {String} error Error message, if any. |
| 477 | + * @param {module:model/IntegratedConnectUserInfoList} data The data returned by the service call. |
| 478 | + * @param {String} If a callback was specified, the response The complete HTTP response, else a Promise resolving the response Data. |
| 479 | + */ |
| 480 | + |
| 481 | + /** |
| 482 | + * Returns all users from the configured Connect service. |
| 483 | + * @param {String} accountId |
| 484 | + * @param {String} connectId |
| 485 | + * @param {Object} optsOrCallback Optional parameters, if you are passing no optional parameters, you can either pass a null or omit this parameter entirely. |
| 486 | + * @param {String} optsOrCallback.count |
| 487 | + * @param {String} optsOrCallback.emailSubstring |
| 488 | + * @param {String} optsOrCallback.isRecipientConnectConfig |
| 489 | + * @param {String} optsOrCallback.startPosition |
| 490 | + * @param {String} optsOrCallback.status |
| 491 | + * @param {String} optsOrCallback.userNameSubstring |
| 492 | + * @param {module:api/ConnectApi~getConnectAllUsersCallback} callback The callback function, accepting three arguments: error, data, response |
| 493 | + * data is of type: {@link module:model/IntegratedConnectUserInfoList} |
| 494 | + */ |
| 495 | + this.getConnectAllUsers = function(accountId, connectId, optsOrCallback, callback) { |
| 496 | + optsOrCallback = optsOrCallback || {}; |
| 497 | + |
| 498 | + if (typeof optsOrCallback === 'function') { |
| 499 | + callback = optsOrCallback; |
| 500 | + optsOrCallback = {}; |
| 501 | + } |
| 502 | + |
| 503 | + var postBody = null; |
| 504 | + |
| 505 | + // verify the required parameter 'accountId' is set |
| 506 | + if (accountId === undefined || accountId === null) { |
| 507 | + throw new Error("Missing the required parameter 'accountId' when calling getConnectAllUsers"); |
| 508 | + } |
| 509 | + |
| 510 | + // verify the required parameter 'connectId' is set |
| 511 | + if (connectId === undefined || connectId === null) { |
| 512 | + throw new Error("Missing the required parameter 'connectId' when calling getConnectAllUsers"); |
| 513 | + } |
| 514 | + |
| 515 | + if (typeof callback !== 'function' && arguments.length && typeof arguments[arguments.length-1] === 'function'){ |
| 516 | + if (typeof optsOrCallback !== 'undefined') { |
| 517 | + optsOrCallback = callback; |
| 518 | + } |
| 519 | + callback = arguments[arguments.length-1]; |
| 520 | + } |
| 521 | + |
| 522 | + var pathParams = { |
| 523 | + 'accountId': accountId, |
| 524 | + 'connectId': connectId |
| 525 | + }; |
| 526 | + var queryParams = { |
| 527 | + 'count': optsOrCallback['count'], |
| 528 | + 'email_substring': optsOrCallback['emailSubstring'], |
| 529 | + 'is_recipient_connect_config': optsOrCallback['isRecipientConnectConfig'], |
| 530 | + 'start_position': optsOrCallback['startPosition'], |
| 531 | + 'status': optsOrCallback['status'], |
| 532 | + 'user_name_substring': optsOrCallback['userNameSubstring'] |
| 533 | + }; |
| 534 | + var headerParams = { |
| 535 | + }; |
| 536 | + var formParams = { |
| 537 | + }; |
| 538 | + |
| 539 | + var authNames = ['docusignAccessCode']; |
| 540 | + var contentTypes = []; |
| 541 | + var accepts = ['application/json']; |
| 542 | + var returnType = IntegratedConnectUserInfoList; |
| 543 | + |
| 544 | + return this.apiClient.callApi( |
| 545 | + '/v2.1/accounts/{accountId}/connect/{connectId}/all/users', 'GET', |
| 546 | + pathParams, queryParams, headerParams, formParams, postBody, |
| 547 | + authNames, contentTypes, accepts, returnType, callback |
| 548 | + ); |
| 549 | + }; |
| 550 | + |
473 | 551 | /** |
474 | 552 | * (Optional) Callback function to receive the result of the getEventLog operation. If none specified a Promise will be returned. |
475 | 553 | * @callback module:api/ConnectApi~getEventLogCallback |
|
0 commit comments