language
stringclasses
6 values
original_string
stringlengths
25
887k
text
stringlengths
25
887k
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new PullRequestReviewComment(); if (data.hasOwnProperty('_links')) { obj['_links'] = PullRequestReviewCommentLinks.constructFromObject(data['_links']); } if (data.hasOwnProperty('author_association')) { obj['author_association'] = ApiClient.convertToType(data['author_association'], 'String'); } if (data.hasOwnProperty('body')) { obj['body'] = ApiClient.convertToType(data['body'], 'String'); } if (data.hasOwnProperty('body_html')) { obj['body_html'] = ApiClient.convertToType(data['body_html'], 'String'); } if (data.hasOwnProperty('body_text')) { obj['body_text'] = ApiClient.convertToType(data['body_text'], 'String'); } if (data.hasOwnProperty('commit_id')) { obj['commit_id'] = ApiClient.convertToType(data['commit_id'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('diff_hunk')) { obj['diff_hunk'] = ApiClient.convertToType(data['diff_hunk'], 'String'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('in_reply_to_id')) { obj['in_reply_to_id'] = ApiClient.convertToType(data['in_reply_to_id'], 'Number'); } if (data.hasOwnProperty('line')) { obj['line'] = ApiClient.convertToType(data['line'], 'Number'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('original_commit_id')) { obj['original_commit_id'] = ApiClient.convertToType(data['original_commit_id'], 'String'); } if (data.hasOwnProperty('original_line')) { obj['original_line'] = ApiClient.convertToType(data['original_line'], 'Number'); } if (data.hasOwnProperty('original_position')) { obj['original_position'] = ApiClient.convertToType(data['original_position'], 'Number'); } if (data.hasOwnProperty('original_start_line')) { obj['original_start_line'] = ApiClient.convertToType(data['original_start_line'], 'Number'); } if (data.hasOwnProperty('path')) { obj['path'] = ApiClient.convertToType(data['path'], 'String'); } if (data.hasOwnProperty('position')) { obj['position'] = ApiClient.convertToType(data['position'], 'Number'); } if (data.hasOwnProperty('pull_request_review_id')) { obj['pull_request_review_id'] = ApiClient.convertToType(data['pull_request_review_id'], 'Number'); } if (data.hasOwnProperty('pull_request_url')) { obj['pull_request_url'] = ApiClient.convertToType(data['pull_request_url'], 'String'); } if (data.hasOwnProperty('reactions')) { obj['reactions'] = ReactionRollup.constructFromObject(data['reactions']); } if (data.hasOwnProperty('side')) { obj['side'] = ApiClient.convertToType(data['side'], 'String'); } if (data.hasOwnProperty('start_line')) { obj['start_line'] = ApiClient.convertToType(data['start_line'], 'Number'); } if (data.hasOwnProperty('start_side')) { obj['start_side'] = ApiClient.convertToType(data['start_side'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } if (data.hasOwnProperty('user')) { obj['user'] = SimpleUser.constructFromObject(data['user']); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new PullRequestReviewComment(); if (data.hasOwnProperty('_links')) { obj['_links'] = PullRequestReviewCommentLinks.constructFromObject(data['_links']); } if (data.hasOwnProperty('author_association')) { obj['author_association'] = ApiClient.convertToType(data['author_association'], 'String'); } if (data.hasOwnProperty('body')) { obj['body'] = ApiClient.convertToType(data['body'], 'String'); } if (data.hasOwnProperty('body_html')) { obj['body_html'] = ApiClient.convertToType(data['body_html'], 'String'); } if (data.hasOwnProperty('body_text')) { obj['body_text'] = ApiClient.convertToType(data['body_text'], 'String'); } if (data.hasOwnProperty('commit_id')) { obj['commit_id'] = ApiClient.convertToType(data['commit_id'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('diff_hunk')) { obj['diff_hunk'] = ApiClient.convertToType(data['diff_hunk'], 'String'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('in_reply_to_id')) { obj['in_reply_to_id'] = ApiClient.convertToType(data['in_reply_to_id'], 'Number'); } if (data.hasOwnProperty('line')) { obj['line'] = ApiClient.convertToType(data['line'], 'Number'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('original_commit_id')) { obj['original_commit_id'] = ApiClient.convertToType(data['original_commit_id'], 'String'); } if (data.hasOwnProperty('original_line')) { obj['original_line'] = ApiClient.convertToType(data['original_line'], 'Number'); } if (data.hasOwnProperty('original_position')) { obj['original_position'] = ApiClient.convertToType(data['original_position'], 'Number'); } if (data.hasOwnProperty('original_start_line')) { obj['original_start_line'] = ApiClient.convertToType(data['original_start_line'], 'Number'); } if (data.hasOwnProperty('path')) { obj['path'] = ApiClient.convertToType(data['path'], 'String'); } if (data.hasOwnProperty('position')) { obj['position'] = ApiClient.convertToType(data['position'], 'Number'); } if (data.hasOwnProperty('pull_request_review_id')) { obj['pull_request_review_id'] = ApiClient.convertToType(data['pull_request_review_id'], 'Number'); } if (data.hasOwnProperty('pull_request_url')) { obj['pull_request_url'] = ApiClient.convertToType(data['pull_request_url'], 'String'); } if (data.hasOwnProperty('reactions')) { obj['reactions'] = ReactionRollup.constructFromObject(data['reactions']); } if (data.hasOwnProperty('side')) { obj['side'] = ApiClient.convertToType(data['side'], 'String'); } if (data.hasOwnProperty('start_line')) { obj['start_line'] = ApiClient.convertToType(data['start_line'], 'Number'); } if (data.hasOwnProperty('start_side')) { obj['start_side'] = ApiClient.convertToType(data['start_side'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } if (data.hasOwnProperty('user')) { obj['user'] = SimpleUser.constructFromObject(data['user']); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviews(); if (data.hasOwnProperty('dismiss_stale_reviews')) { obj['dismiss_stale_reviews'] = ApiClient.convertToType(data['dismiss_stale_reviews'], 'Boolean'); } if (data.hasOwnProperty('dismissal_restrictions')) { obj['dismissal_restrictions'] = ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsDismissalRestrictions.constructFromObject(data['dismissal_restrictions']); } if (data.hasOwnProperty('require_code_owner_reviews')) { obj['require_code_owner_reviews'] = ApiClient.convertToType(data['require_code_owner_reviews'], 'Boolean'); } if (data.hasOwnProperty('required_approving_review_count')) { obj['required_approving_review_count'] = ApiClient.convertToType(data['required_approving_review_count'], 'Number'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviews(); if (data.hasOwnProperty('dismiss_stale_reviews')) { obj['dismiss_stale_reviews'] = ApiClient.convertToType(data['dismiss_stale_reviews'], 'Boolean'); } if (data.hasOwnProperty('dismissal_restrictions')) { obj['dismissal_restrictions'] = ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsDismissalRestrictions.constructFromObject(data['dismissal_restrictions']); } if (data.hasOwnProperty('require_code_owner_reviews')) { obj['require_code_owner_reviews'] = ApiClient.convertToType(data['require_code_owner_reviews'], 'Boolean'); } if (data.hasOwnProperty('required_approving_review_count')) { obj['required_approving_review_count'] = ApiClient.convertToType(data['required_approving_review_count'], 'Number'); } } return obj; }
JavaScript
function ApplicationGrant(app, createdAt, id, scopes, updatedAt, url) { _classCallCheck(this, ApplicationGrant); ApplicationGrant.initialize(this, app, createdAt, id, scopes, updatedAt, url); }
function ApplicationGrant(app, createdAt, id, scopes, updatedAt, url) { _classCallCheck(this, ApplicationGrant); ApplicationGrant.initialize(this, app, createdAt, id, scopes, updatedAt, url); }
JavaScript
function Label(color, _default, id, name, nodeId, url) { _classCallCheck(this, Label); Label.initialize(this, color, _default, id, name, nodeId, url); }
function Label(color, _default, id, name, nodeId, url) { _classCallCheck(this, Label); Label.initialize(this, color, _default, id, name, nodeId, url); }
JavaScript
static initialize(obj, createdAt, name, updatedAt, visibility) { obj['created_at'] = createdAt; obj['name'] = name; obj['updated_at'] = updatedAt; obj['visibility'] = visibility; }
static initialize(obj, createdAt, name, updatedAt, visibility) { obj['created_at'] = createdAt; obj['name'] = name; obj['updated_at'] = updatedAt; obj['visibility'] = visibility; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new OrganizationActionsSecret(); if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('selected_repositories_url')) { obj['selected_repositories_url'] = ApiClient.convertToType(data['selected_repositories_url'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('visibility')) { obj['visibility'] = ApiClient.convertToType(data['visibility'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new OrganizationActionsSecret(); if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('selected_repositories_url')) { obj['selected_repositories_url'] = ApiClient.convertToType(data['selected_repositories_url'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('visibility')) { obj['visibility'] = ApiClient.convertToType(data['visibility'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject65(); if (data.hasOwnProperty('organization')) { obj['organization'] = ApiClient.convertToType(data['organization'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject65(); if (data.hasOwnProperty('organization')) { obj['organization'] = ApiClient.convertToType(data['organization'], 'String'); } } return obj; }
JavaScript
teamsAddMemberLegacy(teamId, username, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsAddMemberLegacy"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsAddMemberLegacy"); } let pathParams = { 'team_id': teamId, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/members/{username}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsAddMemberLegacy(teamId, username, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsAddMemberLegacy"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsAddMemberLegacy"); } let pathParams = { 'team_id': teamId, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/members/{username}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsAddOrUpdateMembershipForUserInOrg(org, teamSlug, username, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject35']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsAddOrUpdateMembershipForUserInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsAddOrUpdateMembershipForUserInOrg"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsAddOrUpdateMembershipForUserInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamMembership; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/memberships/{username}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsAddOrUpdateMembershipForUserInOrg(org, teamSlug, username, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject35']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsAddOrUpdateMembershipForUserInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsAddOrUpdateMembershipForUserInOrg"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsAddOrUpdateMembershipForUserInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamMembership; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/memberships/{username}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsAddOrUpdateMembershipForUserLegacy(teamId, username, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject133']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsAddOrUpdateMembershipForUserLegacy"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsAddOrUpdateMembershipForUserLegacy"); } let pathParams = { 'team_id': teamId, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamMembership; return this.apiClient.callApi( '/teams/{team_id}/memberships/{username}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsAddOrUpdateMembershipForUserLegacy(teamId, username, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject133']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsAddOrUpdateMembershipForUserLegacy"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsAddOrUpdateMembershipForUserLegacy"); } let pathParams = { 'team_id': teamId, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamMembership; return this.apiClient.callApi( '/teams/{team_id}/memberships/{username}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsAddOrUpdateProjectPermissionsInOrg(org, teamSlug, projectId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject36']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsAddOrUpdateProjectPermissionsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsAddOrUpdateProjectPermissionsInOrg"); } // verify the required parameter 'projectId' is set if (projectId === undefined || projectId === null) { throw new Error("Missing the required parameter 'projectId' when calling teamsAddOrUpdateProjectPermissionsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'project_id': projectId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/projects/{project_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsAddOrUpdateProjectPermissionsInOrg(org, teamSlug, projectId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject36']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsAddOrUpdateProjectPermissionsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsAddOrUpdateProjectPermissionsInOrg"); } // verify the required parameter 'projectId' is set if (projectId === undefined || projectId === null) { throw new Error("Missing the required parameter 'projectId' when calling teamsAddOrUpdateProjectPermissionsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'project_id': projectId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/projects/{project_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsAddOrUpdateProjectPermissionsLegacy(teamId, projectId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject134']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsAddOrUpdateProjectPermissionsLegacy"); } // verify the required parameter 'projectId' is set if (projectId === undefined || projectId === null) { throw new Error("Missing the required parameter 'projectId' when calling teamsAddOrUpdateProjectPermissionsLegacy"); } let pathParams = { 'team_id': teamId, 'project_id': projectId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/projects/{project_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsAddOrUpdateProjectPermissionsLegacy(teamId, projectId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject134']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsAddOrUpdateProjectPermissionsLegacy"); } // verify the required parameter 'projectId' is set if (projectId === undefined || projectId === null) { throw new Error("Missing the required parameter 'projectId' when calling teamsAddOrUpdateProjectPermissionsLegacy"); } let pathParams = { 'team_id': teamId, 'project_id': projectId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/projects/{project_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsAddOrUpdateRepoPermissionsInOrg(org, teamSlug, owner, repo, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject37']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsAddOrUpdateRepoPermissionsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsAddOrUpdateRepoPermissionsInOrg"); } // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling teamsAddOrUpdateRepoPermissionsInOrg"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling teamsAddOrUpdateRepoPermissionsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'owner': owner, 'repo': repo }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsAddOrUpdateRepoPermissionsInOrg(org, teamSlug, owner, repo, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject37']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsAddOrUpdateRepoPermissionsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsAddOrUpdateRepoPermissionsInOrg"); } // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling teamsAddOrUpdateRepoPermissionsInOrg"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling teamsAddOrUpdateRepoPermissionsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'owner': owner, 'repo': repo }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsAddOrUpdateRepoPermissionsLegacy(teamId, owner, repo, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject135']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsAddOrUpdateRepoPermissionsLegacy"); } // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling teamsAddOrUpdateRepoPermissionsLegacy"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling teamsAddOrUpdateRepoPermissionsLegacy"); } let pathParams = { 'team_id': teamId, 'owner': owner, 'repo': repo }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/repos/{owner}/{repo}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsAddOrUpdateRepoPermissionsLegacy(teamId, owner, repo, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject135']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsAddOrUpdateRepoPermissionsLegacy"); } // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling teamsAddOrUpdateRepoPermissionsLegacy"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling teamsAddOrUpdateRepoPermissionsLegacy"); } let pathParams = { 'team_id': teamId, 'owner': owner, 'repo': repo }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/repos/{owner}/{repo}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsCheckPermissionsForProjectLegacy(teamId, projectId, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsCheckPermissionsForProjectLegacy"); } // verify the required parameter 'projectId' is set if (projectId === undefined || projectId === null) { throw new Error("Missing the required parameter 'projectId' when calling teamsCheckPermissionsForProjectLegacy"); } let pathParams = { 'team_id': teamId, 'project_id': projectId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamProject; return this.apiClient.callApi( '/teams/{team_id}/projects/{project_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsCheckPermissionsForProjectLegacy(teamId, projectId, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsCheckPermissionsForProjectLegacy"); } // verify the required parameter 'projectId' is set if (projectId === undefined || projectId === null) { throw new Error("Missing the required parameter 'projectId' when calling teamsCheckPermissionsForProjectLegacy"); } let pathParams = { 'team_id': teamId, 'project_id': projectId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamProject; return this.apiClient.callApi( '/teams/{team_id}/projects/{project_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsCheckPermissionsForRepoLegacy(teamId, owner, repo, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsCheckPermissionsForRepoLegacy"); } // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling teamsCheckPermissionsForRepoLegacy"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling teamsCheckPermissionsForRepoLegacy"); } let pathParams = { 'team_id': teamId, 'owner': owner, 'repo': repo }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/vnd.github.v3.repository+json']; let returnType = TeamRepository; return this.apiClient.callApi( '/teams/{team_id}/repos/{owner}/{repo}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsCheckPermissionsForRepoLegacy(teamId, owner, repo, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsCheckPermissionsForRepoLegacy"); } // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling teamsCheckPermissionsForRepoLegacy"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling teamsCheckPermissionsForRepoLegacy"); } let pathParams = { 'team_id': teamId, 'owner': owner, 'repo': repo }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/vnd.github.v3.repository+json']; let returnType = TeamRepository; return this.apiClient.callApi( '/teams/{team_id}/repos/{owner}/{repo}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsCreate(org, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject27']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsCreate"); } let pathParams = { 'org': org }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamFull; return this.apiClient.callApi( '/orgs/{org}/teams', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsCreate(org, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject27']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsCreate"); } let pathParams = { 'org': org }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamFull; return this.apiClient.callApi( '/orgs/{org}/teams', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsCreateDiscussionCommentInOrg(org, teamSlug, discussionNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject31']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsCreateDiscussionCommentInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsCreateDiscussionCommentInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsCreateDiscussionCommentInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussionComment; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsCreateDiscussionCommentInOrg(org, teamSlug, discussionNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject31']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsCreateDiscussionCommentInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsCreateDiscussionCommentInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsCreateDiscussionCommentInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussionComment; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsCreateDiscussionCommentLegacy(teamId, discussionNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject129']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsCreateDiscussionCommentLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsCreateDiscussionCommentLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussionComment; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/comments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsCreateDiscussionCommentLegacy(teamId, discussionNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject129']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsCreateDiscussionCommentLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsCreateDiscussionCommentLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussionComment; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/comments', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsCreateDiscussionInOrg(org, teamSlug, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject29']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsCreateDiscussionInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsCreateDiscussionInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussion; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsCreateDiscussionInOrg(org, teamSlug, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject29']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsCreateDiscussionInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsCreateDiscussionInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussion; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsCreateDiscussionLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject127']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsCreateDiscussionLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussion; return this.apiClient.callApi( '/teams/{team_id}/discussions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsCreateDiscussionLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject127']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsCreateDiscussionLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussion; return this.apiClient.callApi( '/teams/{team_id}/discussions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsCreateOrUpdateIdpGroupConnectionsInOrg(org, teamSlug, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject38']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsCreateOrUpdateIdpGroupConnectionsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsCreateOrUpdateIdpGroupConnectionsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = GroupMapping; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/team-sync/group-mappings', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsCreateOrUpdateIdpGroupConnectionsInOrg(org, teamSlug, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject38']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsCreateOrUpdateIdpGroupConnectionsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsCreateOrUpdateIdpGroupConnectionsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = GroupMapping; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/team-sync/group-mappings', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsCreateOrUpdateIdpGroupConnectionsLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject136']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsCreateOrUpdateIdpGroupConnectionsLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = GroupMapping; return this.apiClient.callApi( '/teams/{team_id}/team-sync/group-mappings', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsCreateOrUpdateIdpGroupConnectionsLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject136']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsCreateOrUpdateIdpGroupConnectionsLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = GroupMapping; return this.apiClient.callApi( '/teams/{team_id}/team-sync/group-mappings', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsDeleteDiscussionCommentInOrg(org, teamSlug, discussionNumber, commentNumber, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsDeleteDiscussionCommentInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsDeleteDiscussionCommentInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsDeleteDiscussionCommentInOrg"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling teamsDeleteDiscussionCommentInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsDeleteDiscussionCommentInOrg(org, teamSlug, discussionNumber, commentNumber, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsDeleteDiscussionCommentInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsDeleteDiscussionCommentInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsDeleteDiscussionCommentInOrg"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling teamsDeleteDiscussionCommentInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsDeleteDiscussionCommentLegacy(teamId, discussionNumber, commentNumber, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsDeleteDiscussionCommentLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsDeleteDiscussionCommentLegacy"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling teamsDeleteDiscussionCommentLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsDeleteDiscussionCommentLegacy(teamId, discussionNumber, commentNumber, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsDeleteDiscussionCommentLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsDeleteDiscussionCommentLegacy"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling teamsDeleteDiscussionCommentLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsDeleteDiscussionInOrg(org, teamSlug, discussionNumber, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsDeleteDiscussionInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsDeleteDiscussionInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsDeleteDiscussionInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsDeleteDiscussionInOrg(org, teamSlug, discussionNumber, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsDeleteDiscussionInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsDeleteDiscussionInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsDeleteDiscussionInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsDeleteDiscussionLegacy(teamId, discussionNumber, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsDeleteDiscussionLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsDeleteDiscussionLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsDeleteDiscussionLegacy(teamId, discussionNumber, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsDeleteDiscussionLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsDeleteDiscussionLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsDeleteInOrg(org, teamSlug, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsDeleteInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsDeleteInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsDeleteInOrg(org, teamSlug, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsDeleteInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsDeleteInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsDeleteLegacy(teamId, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsDeleteLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsDeleteLegacy(teamId, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsDeleteLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsGetDiscussionCommentInOrg(org, teamSlug, discussionNumber, commentNumber, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsGetDiscussionCommentInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsGetDiscussionCommentInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsGetDiscussionCommentInOrg"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling teamsGetDiscussionCommentInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamDiscussionComment; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsGetDiscussionCommentInOrg(org, teamSlug, discussionNumber, commentNumber, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsGetDiscussionCommentInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsGetDiscussionCommentInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsGetDiscussionCommentInOrg"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling teamsGetDiscussionCommentInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamDiscussionComment; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsGetDiscussionCommentLegacy(teamId, discussionNumber, commentNumber, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsGetDiscussionCommentLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsGetDiscussionCommentLegacy"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling teamsGetDiscussionCommentLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamDiscussionComment; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsGetDiscussionCommentLegacy(teamId, discussionNumber, commentNumber, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsGetDiscussionCommentLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsGetDiscussionCommentLegacy"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling teamsGetDiscussionCommentLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamDiscussionComment; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsGetDiscussionInOrg(org, teamSlug, discussionNumber, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsGetDiscussionInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsGetDiscussionInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsGetDiscussionInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamDiscussion; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsGetDiscussionInOrg(org, teamSlug, discussionNumber, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsGetDiscussionInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsGetDiscussionInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsGetDiscussionInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamDiscussion; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsGetDiscussionLegacy(teamId, discussionNumber, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsGetDiscussionLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsGetDiscussionLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamDiscussion; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsGetDiscussionLegacy(teamId, discussionNumber, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsGetDiscussionLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsGetDiscussionLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamDiscussion; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsGetLegacy(teamId, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsGetLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamFull; return this.apiClient.callApi( '/teams/{team_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsGetLegacy(teamId, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsGetLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamFull; return this.apiClient.callApi( '/teams/{team_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsGetMemberLegacy(teamId, username, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsGetMemberLegacy"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsGetMemberLegacy"); } let pathParams = { 'team_id': teamId, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/members/{username}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsGetMemberLegacy(teamId, username, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsGetMemberLegacy"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsGetMemberLegacy"); } let pathParams = { 'team_id': teamId, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/members/{username}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsGetMembershipForUserInOrg(org, teamSlug, username, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsGetMembershipForUserInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsGetMembershipForUserInOrg"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsGetMembershipForUserInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamMembership; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/memberships/{username}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsGetMembershipForUserInOrg(org, teamSlug, username, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsGetMembershipForUserInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsGetMembershipForUserInOrg"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsGetMembershipForUserInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamMembership; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/memberships/{username}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsGetMembershipForUserLegacy(teamId, username, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsGetMembershipForUserLegacy"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsGetMembershipForUserLegacy"); } let pathParams = { 'team_id': teamId, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamMembership; return this.apiClient.callApi( '/teams/{team_id}/memberships/{username}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsGetMembershipForUserLegacy(teamId, username, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsGetMembershipForUserLegacy"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsGetMembershipForUserLegacy"); } let pathParams = { 'team_id': teamId, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = TeamMembership; return this.apiClient.callApi( '/teams/{team_id}/memberships/{username}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsListChildLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsListChildLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Team]; return this.apiClient.callApi( '/teams/{team_id}/teams', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsListChildLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsListChildLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [Team]; return this.apiClient.callApi( '/teams/{team_id}/teams', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsListDiscussionCommentsInOrg(org, teamSlug, discussionNumber, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsListDiscussionCommentsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsListDiscussionCommentsInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsListDiscussionCommentsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { 'direction': opts['direction'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [TeamDiscussionComment]; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsListDiscussionCommentsInOrg(org, teamSlug, discussionNumber, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsListDiscussionCommentsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsListDiscussionCommentsInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsListDiscussionCommentsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { 'direction': opts['direction'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [TeamDiscussionComment]; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsListDiscussionsInOrg(org, teamSlug, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsListDiscussionsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsListDiscussionsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { 'direction': opts['direction'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [TeamDiscussion]; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsListDiscussionsInOrg(org, teamSlug, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsListDiscussionsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsListDiscussionsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { 'direction': opts['direction'], 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [TeamDiscussion]; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsListForAuthenticatedUser(opts, callback) { opts = opts || {}; let postBody = null; let pathParams = { }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [TeamFull]; return this.apiClient.callApi( '/user/teams', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsListForAuthenticatedUser(opts, callback) { opts = opts || {}; let postBody = null; let pathParams = { }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [TeamFull]; return this.apiClient.callApi( '/user/teams', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsListIdpGroupsForLegacy(teamId, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsListIdpGroupsForLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = GroupMapping; return this.apiClient.callApi( '/teams/{team_id}/team-sync/group-mappings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsListIdpGroupsForLegacy(teamId, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsListIdpGroupsForLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = GroupMapping; return this.apiClient.callApi( '/teams/{team_id}/team-sync/group-mappings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsListIdpGroupsForOrg(org, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsListIdpGroupsForOrg"); } let pathParams = { 'org': org }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = GroupMapping; return this.apiClient.callApi( '/orgs/{org}/team-sync/groups', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsListIdpGroupsForOrg(org, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsListIdpGroupsForOrg"); } let pathParams = { 'org': org }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = GroupMapping; return this.apiClient.callApi( '/orgs/{org}/team-sync/groups', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsListIdpGroupsInOrg(org, teamSlug, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsListIdpGroupsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsListIdpGroupsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = GroupMapping; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/team-sync/group-mappings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsListIdpGroupsInOrg(org, teamSlug, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsListIdpGroupsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsListIdpGroupsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = GroupMapping; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/team-sync/group-mappings', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsListPendingInvitationsLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsListPendingInvitationsLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [OrganizationInvitation]; return this.apiClient.callApi( '/teams/{team_id}/invitations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsListPendingInvitationsLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsListPendingInvitationsLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [OrganizationInvitation]; return this.apiClient.callApi( '/teams/{team_id}/invitations', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsListProjectsInOrg(org, teamSlug, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsListProjectsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsListProjectsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [TeamProject]; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsListProjectsInOrg(org, teamSlug, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsListProjectsInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsListProjectsInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [TeamProject]; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsListProjectsLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsListProjectsLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [TeamProject]; return this.apiClient.callApi( '/teams/{team_id}/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsListProjectsLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsListProjectsLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [TeamProject]; return this.apiClient.callApi( '/teams/{team_id}/projects', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsListReposInOrg(org, teamSlug, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsListReposInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsListReposInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [MinimalRepository]; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/repos', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsListReposInOrg(org, teamSlug, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsListReposInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsListReposInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [MinimalRepository]; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/repos', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsListReposLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsListReposLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [MinimalRepository]; return this.apiClient.callApi( '/teams/{team_id}/repos', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsListReposLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsListReposLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { 'per_page': opts['perPage'], 'page': opts['page'] }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = [MinimalRepository]; return this.apiClient.callApi( '/teams/{team_id}/repos', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsRemoveMemberLegacy(teamId, username, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsRemoveMemberLegacy"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsRemoveMemberLegacy"); } let pathParams = { 'team_id': teamId, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/members/{username}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsRemoveMemberLegacy(teamId, username, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsRemoveMemberLegacy"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsRemoveMemberLegacy"); } let pathParams = { 'team_id': teamId, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/members/{username}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsRemoveMembershipForUserInOrg(org, teamSlug, username, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsRemoveMembershipForUserInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsRemoveMembershipForUserInOrg"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsRemoveMembershipForUserInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/memberships/{username}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsRemoveMembershipForUserInOrg(org, teamSlug, username, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsRemoveMembershipForUserInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsRemoveMembershipForUserInOrg"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsRemoveMembershipForUserInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/memberships/{username}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsRemoveMembershipForUserLegacy(teamId, username, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsRemoveMembershipForUserLegacy"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsRemoveMembershipForUserLegacy"); } let pathParams = { 'team_id': teamId, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/memberships/{username}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsRemoveMembershipForUserLegacy(teamId, username, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsRemoveMembershipForUserLegacy"); } // verify the required parameter 'username' is set if (username === undefined || username === null) { throw new Error("Missing the required parameter 'username' when calling teamsRemoveMembershipForUserLegacy"); } let pathParams = { 'team_id': teamId, 'username': username }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/memberships/{username}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsRemoveProjectInOrg(org, teamSlug, projectId, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsRemoveProjectInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsRemoveProjectInOrg"); } // verify the required parameter 'projectId' is set if (projectId === undefined || projectId === null) { throw new Error("Missing the required parameter 'projectId' when calling teamsRemoveProjectInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'project_id': projectId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/projects/{project_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsRemoveProjectInOrg(org, teamSlug, projectId, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsRemoveProjectInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsRemoveProjectInOrg"); } // verify the required parameter 'projectId' is set if (projectId === undefined || projectId === null) { throw new Error("Missing the required parameter 'projectId' when calling teamsRemoveProjectInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'project_id': projectId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/projects/{project_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsRemoveProjectLegacy(teamId, projectId, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsRemoveProjectLegacy"); } // verify the required parameter 'projectId' is set if (projectId === undefined || projectId === null) { throw new Error("Missing the required parameter 'projectId' when calling teamsRemoveProjectLegacy"); } let pathParams = { 'team_id': teamId, 'project_id': projectId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/projects/{project_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsRemoveProjectLegacy(teamId, projectId, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsRemoveProjectLegacy"); } // verify the required parameter 'projectId' is set if (projectId === undefined || projectId === null) { throw new Error("Missing the required parameter 'projectId' when calling teamsRemoveProjectLegacy"); } let pathParams = { 'team_id': teamId, 'project_id': projectId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/projects/{project_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsRemoveRepoInOrg(org, teamSlug, owner, repo, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsRemoveRepoInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsRemoveRepoInOrg"); } // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling teamsRemoveRepoInOrg"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling teamsRemoveRepoInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'owner': owner, 'repo': repo }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsRemoveRepoInOrg(org, teamSlug, owner, repo, callback) { let postBody = null; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsRemoveRepoInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsRemoveRepoInOrg"); } // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling teamsRemoveRepoInOrg"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling teamsRemoveRepoInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'owner': owner, 'repo': repo }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/repos/{owner}/{repo}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsRemoveRepoLegacy(teamId, owner, repo, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsRemoveRepoLegacy"); } // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling teamsRemoveRepoLegacy"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling teamsRemoveRepoLegacy"); } let pathParams = { 'team_id': teamId, 'owner': owner, 'repo': repo }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/repos/{owner}/{repo}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsRemoveRepoLegacy(teamId, owner, repo, callback) { let postBody = null; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsRemoveRepoLegacy"); } // verify the required parameter 'owner' is set if (owner === undefined || owner === null) { throw new Error("Missing the required parameter 'owner' when calling teamsRemoveRepoLegacy"); } // verify the required parameter 'repo' is set if (repo === undefined || repo === null) { throw new Error("Missing the required parameter 'repo' when calling teamsRemoveRepoLegacy"); } let pathParams = { 'team_id': teamId, 'owner': owner, 'repo': repo }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = []; let accepts = []; let returnType = null; return this.apiClient.callApi( '/teams/{team_id}/repos/{owner}/{repo}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsUpdateDiscussionCommentInOrg(org, teamSlug, discussionNumber, commentNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject32']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsUpdateDiscussionCommentInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsUpdateDiscussionCommentInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsUpdateDiscussionCommentInOrg"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling teamsUpdateDiscussionCommentInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussionComment; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsUpdateDiscussionCommentInOrg(org, teamSlug, discussionNumber, commentNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject32']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsUpdateDiscussionCommentInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsUpdateDiscussionCommentInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsUpdateDiscussionCommentInOrg"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling teamsUpdateDiscussionCommentInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussionComment; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsUpdateDiscussionCommentLegacy(teamId, discussionNumber, commentNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject130']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsUpdateDiscussionCommentLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsUpdateDiscussionCommentLegacy"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling teamsUpdateDiscussionCommentLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussionComment; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsUpdateDiscussionCommentLegacy(teamId, discussionNumber, commentNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject130']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsUpdateDiscussionCommentLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsUpdateDiscussionCommentLegacy"); } // verify the required parameter 'commentNumber' is set if (commentNumber === undefined || commentNumber === null) { throw new Error("Missing the required parameter 'commentNumber' when calling teamsUpdateDiscussionCommentLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber, 'comment_number': commentNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussionComment; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsUpdateDiscussionInOrg(org, teamSlug, discussionNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject30']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsUpdateDiscussionInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsUpdateDiscussionInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsUpdateDiscussionInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussion; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsUpdateDiscussionInOrg(org, teamSlug, discussionNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject30']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsUpdateDiscussionInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsUpdateDiscussionInOrg"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsUpdateDiscussionInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussion; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}/discussions/{discussion_number}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsUpdateDiscussionLegacy(teamId, discussionNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject128']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsUpdateDiscussionLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsUpdateDiscussionLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussion; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsUpdateDiscussionLegacy(teamId, discussionNumber, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject128']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsUpdateDiscussionLegacy"); } // verify the required parameter 'discussionNumber' is set if (discussionNumber === undefined || discussionNumber === null) { throw new Error("Missing the required parameter 'discussionNumber' when calling teamsUpdateDiscussionLegacy"); } let pathParams = { 'team_id': teamId, 'discussion_number': discussionNumber }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamDiscussion; return this.apiClient.callApi( '/teams/{team_id}/discussions/{discussion_number}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsUpdateInOrg(org, teamSlug, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject28']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsUpdateInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsUpdateInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamFull; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsUpdateInOrg(org, teamSlug, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject28']; // verify the required parameter 'org' is set if (org === undefined || org === null) { throw new Error("Missing the required parameter 'org' when calling teamsUpdateInOrg"); } // verify the required parameter 'teamSlug' is set if (teamSlug === undefined || teamSlug === null) { throw new Error("Missing the required parameter 'teamSlug' when calling teamsUpdateInOrg"); } let pathParams = { 'org': org, 'team_slug': teamSlug }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamFull; return this.apiClient.callApi( '/orgs/{org}/teams/{team_slug}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
teamsUpdateLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject126']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsUpdateLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamFull; return this.apiClient.callApi( '/teams/{team_id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
teamsUpdateLegacy(teamId, opts, callback) { opts = opts || {}; let postBody = opts['inlineObject126']; // verify the required parameter 'teamId' is set if (teamId === undefined || teamId === null) { throw new Error("Missing the required parameter 'teamId' when calling teamsUpdateLegacy"); } let pathParams = { 'team_id': teamId }; let queryParams = { }; let headerParams = { }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = TeamFull; return this.apiClient.callApi( '/teams/{team_id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null, callback ); }
JavaScript
function OrganizationActionsSecret(createdAt, name, updatedAt, visibility) { _classCallCheck(this, OrganizationActionsSecret); OrganizationActionsSecret.initialize(this, createdAt, name, updatedAt, visibility); }
function OrganizationActionsSecret(createdAt, name, updatedAt, visibility) { _classCallCheck(this, OrganizationActionsSecret); OrganizationActionsSecret.initialize(this, createdAt, name, updatedAt, visibility); }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new TeamProject(); if (data.hasOwnProperty('body')) { obj['body'] = ApiClient.convertToType(data['body'], 'String'); } if (data.hasOwnProperty('columns_url')) { obj['columns_url'] = ApiClient.convertToType(data['columns_url'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String'); } if (data.hasOwnProperty('creator')) { obj['creator'] = SimpleUser.constructFromObject(data['creator']); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('number')) { obj['number'] = ApiClient.convertToType(data['number'], 'Number'); } if (data.hasOwnProperty('organization_permission')) { obj['organization_permission'] = ApiClient.convertToType(data['organization_permission'], 'String'); } if (data.hasOwnProperty('owner_url')) { obj['owner_url'] = ApiClient.convertToType(data['owner_url'], 'String'); } if (data.hasOwnProperty('permissions')) { obj['permissions'] = TeamProjectPermissions.constructFromObject(data['permissions']); } if (data.hasOwnProperty('private')) { obj['private'] = ApiClient.convertToType(data['private'], 'Boolean'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new TeamProject(); if (data.hasOwnProperty('body')) { obj['body'] = ApiClient.convertToType(data['body'], 'String'); } if (data.hasOwnProperty('columns_url')) { obj['columns_url'] = ApiClient.convertToType(data['columns_url'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'String'); } if (data.hasOwnProperty('creator')) { obj['creator'] = SimpleUser.constructFromObject(data['creator']); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'Number'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('number')) { obj['number'] = ApiClient.convertToType(data['number'], 'Number'); } if (data.hasOwnProperty('organization_permission')) { obj['organization_permission'] = ApiClient.convertToType(data['organization_permission'], 'String'); } if (data.hasOwnProperty('owner_url')) { obj['owner_url'] = ApiClient.convertToType(data['owner_url'], 'String'); } if (data.hasOwnProperty('permissions')) { obj['permissions'] = TeamProjectPermissions.constructFromObject(data['permissions']); } if (data.hasOwnProperty('private')) { obj['private'] = ApiClient.convertToType(data['private'], 'Boolean'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject50(); if (data.hasOwnProperty('dismiss_stale_reviews')) { obj['dismiss_stale_reviews'] = ApiClient.convertToType(data['dismiss_stale_reviews'], 'Boolean'); } if (data.hasOwnProperty('dismissal_restrictions')) { obj['dismissal_restrictions'] = ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsDismissalRestrictions.constructFromObject(data['dismissal_restrictions']); } if (data.hasOwnProperty('require_code_owner_reviews')) { obj['require_code_owner_reviews'] = ApiClient.convertToType(data['require_code_owner_reviews'], 'Boolean'); } if (data.hasOwnProperty('required_approving_review_count')) { obj['required_approving_review_count'] = ApiClient.convertToType(data['required_approving_review_count'], 'Number'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject50(); if (data.hasOwnProperty('dismiss_stale_reviews')) { obj['dismiss_stale_reviews'] = ApiClient.convertToType(data['dismiss_stale_reviews'], 'Boolean'); } if (data.hasOwnProperty('dismissal_restrictions')) { obj['dismissal_restrictions'] = ReposOwnerRepoBranchesBranchProtectionRequiredPullRequestReviewsDismissalRestrictions.constructFromObject(data['dismissal_restrictions']); } if (data.hasOwnProperty('require_code_owner_reviews')) { obj['require_code_owner_reviews'] = ApiClient.convertToType(data['require_code_owner_reviews'], 'Boolean'); } if (data.hasOwnProperty('required_approving_review_count')) { obj['required_approving_review_count'] = ApiClient.convertToType(data['required_approving_review_count'], 'Number'); } } return obj; }
JavaScript
static initialize(obj, author, body, bodyHtml, bodyVersion, commentsCount, commentsUrl, createdAt, htmlUrl, lastEditedAt, nodeId, _number, pinned, _private, teamUrl, title, updatedAt, url) { obj['author'] = author; obj['body'] = body; obj['body_html'] = bodyHtml; obj['body_version'] = bodyVersion; obj['comments_count'] = commentsCount; obj['comments_url'] = commentsUrl; obj['created_at'] = createdAt; obj['html_url'] = htmlUrl; obj['last_edited_at'] = lastEditedAt; obj['node_id'] = nodeId; obj['number'] = _number; obj['pinned'] = pinned; obj['private'] = _private; obj['team_url'] = teamUrl; obj['title'] = title; obj['updated_at'] = updatedAt; obj['url'] = url; }
static initialize(obj, author, body, bodyHtml, bodyVersion, commentsCount, commentsUrl, createdAt, htmlUrl, lastEditedAt, nodeId, _number, pinned, _private, teamUrl, title, updatedAt, url) { obj['author'] = author; obj['body'] = body; obj['body_html'] = bodyHtml; obj['body_version'] = bodyVersion; obj['comments_count'] = commentsCount; obj['comments_url'] = commentsUrl; obj['created_at'] = createdAt; obj['html_url'] = htmlUrl; obj['last_edited_at'] = lastEditedAt; obj['node_id'] = nodeId; obj['number'] = _number; obj['pinned'] = pinned; obj['private'] = _private; obj['team_url'] = teamUrl; obj['title'] = title; obj['updated_at'] = updatedAt; obj['url'] = url; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new TeamDiscussion(); if (data.hasOwnProperty('author')) { obj['author'] = ApiClient.convertToType(data['author'], SimpleUser); } if (data.hasOwnProperty('body')) { obj['body'] = ApiClient.convertToType(data['body'], 'String'); } if (data.hasOwnProperty('body_html')) { obj['body_html'] = ApiClient.convertToType(data['body_html'], 'String'); } if (data.hasOwnProperty('body_version')) { obj['body_version'] = ApiClient.convertToType(data['body_version'], 'String'); } if (data.hasOwnProperty('comments_count')) { obj['comments_count'] = ApiClient.convertToType(data['comments_count'], 'Number'); } if (data.hasOwnProperty('comments_url')) { obj['comments_url'] = ApiClient.convertToType(data['comments_url'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('last_edited_at')) { obj['last_edited_at'] = ApiClient.convertToType(data['last_edited_at'], 'Date'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('number')) { obj['number'] = ApiClient.convertToType(data['number'], 'Number'); } if (data.hasOwnProperty('pinned')) { obj['pinned'] = ApiClient.convertToType(data['pinned'], 'Boolean'); } if (data.hasOwnProperty('private')) { obj['private'] = ApiClient.convertToType(data['private'], 'Boolean'); } if (data.hasOwnProperty('reactions')) { obj['reactions'] = ReactionRollup.constructFromObject(data['reactions']); } if (data.hasOwnProperty('team_url')) { obj['team_url'] = ApiClient.convertToType(data['team_url'], 'String'); } if (data.hasOwnProperty('title')) { obj['title'] = ApiClient.convertToType(data['title'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new TeamDiscussion(); if (data.hasOwnProperty('author')) { obj['author'] = ApiClient.convertToType(data['author'], SimpleUser); } if (data.hasOwnProperty('body')) { obj['body'] = ApiClient.convertToType(data['body'], 'String'); } if (data.hasOwnProperty('body_html')) { obj['body_html'] = ApiClient.convertToType(data['body_html'], 'String'); } if (data.hasOwnProperty('body_version')) { obj['body_version'] = ApiClient.convertToType(data['body_version'], 'String'); } if (data.hasOwnProperty('comments_count')) { obj['comments_count'] = ApiClient.convertToType(data['comments_count'], 'Number'); } if (data.hasOwnProperty('comments_url')) { obj['comments_url'] = ApiClient.convertToType(data['comments_url'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('last_edited_at')) { obj['last_edited_at'] = ApiClient.convertToType(data['last_edited_at'], 'Date'); } if (data.hasOwnProperty('node_id')) { obj['node_id'] = ApiClient.convertToType(data['node_id'], 'String'); } if (data.hasOwnProperty('number')) { obj['number'] = ApiClient.convertToType(data['number'], 'Number'); } if (data.hasOwnProperty('pinned')) { obj['pinned'] = ApiClient.convertToType(data['pinned'], 'Boolean'); } if (data.hasOwnProperty('private')) { obj['private'] = ApiClient.convertToType(data['private'], 'Boolean'); } if (data.hasOwnProperty('reactions')) { obj['reactions'] = ReactionRollup.constructFromObject(data['reactions']); } if (data.hasOwnProperty('team_url')) { obj['team_url'] = ApiClient.convertToType(data['team_url'], 'String'); } if (data.hasOwnProperty('title')) { obj['title'] = ApiClient.convertToType(data['title'], 'String'); } if (data.hasOwnProperty('updated_at')) { obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Date'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject63(); if (data.hasOwnProperty('auto_inactive')) { obj['auto_inactive'] = ApiClient.convertToType(data['auto_inactive'], 'Boolean'); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('environment')) { obj['environment'] = ApiClient.convertToType(data['environment'], 'String'); } if (data.hasOwnProperty('environment_url')) { obj['environment_url'] = ApiClient.convertToType(data['environment_url'], 'String'); } if (data.hasOwnProperty('log_url')) { obj['log_url'] = ApiClient.convertToType(data['log_url'], 'String'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('target_url')) { obj['target_url'] = ApiClient.convertToType(data['target_url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject63(); if (data.hasOwnProperty('auto_inactive')) { obj['auto_inactive'] = ApiClient.convertToType(data['auto_inactive'], 'Boolean'); } if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('environment')) { obj['environment'] = ApiClient.convertToType(data['environment'], 'String'); } if (data.hasOwnProperty('environment_url')) { obj['environment_url'] = ApiClient.convertToType(data['environment_url'], 'String'); } if (data.hasOwnProperty('log_url')) { obj['log_url'] = ApiClient.convertToType(data['log_url'], 'String'); } if (data.hasOwnProperty('state')) { obj['state'] = ApiClient.convertToType(data['state'], 'String'); } if (data.hasOwnProperty('target_url')) { obj['target_url'] = ApiClient.convertToType(data['target_url'], 'String'); } } return obj; }
JavaScript
static initialize(obj, sha, tree, truncated, url) { obj['sha'] = sha; obj['tree'] = tree; obj['truncated'] = truncated; obj['url'] = url; }
static initialize(obj, sha, tree, truncated, url) { obj['sha'] = sha; obj['tree'] = tree; obj['truncated'] = truncated; obj['url'] = url; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new GitTree(); if (data.hasOwnProperty('sha')) { obj['sha'] = ApiClient.convertToType(data['sha'], 'String'); } if (data.hasOwnProperty('tree')) { obj['tree'] = ApiClient.convertToType(data['tree'], [GitTreeTree]); } if (data.hasOwnProperty('truncated')) { obj['truncated'] = ApiClient.convertToType(data['truncated'], 'Boolean'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new GitTree(); if (data.hasOwnProperty('sha')) { obj['sha'] = ApiClient.convertToType(data['sha'], 'String'); } if (data.hasOwnProperty('tree')) { obj['tree'] = ApiClient.convertToType(data['tree'], [GitTreeTree]); } if (data.hasOwnProperty('truncated')) { obj['truncated'] = ApiClient.convertToType(data['truncated'], 'Boolean'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new CodeScanningAlert(); if (data.hasOwnProperty('closed_at')) { obj['closed_at'] = ApiClient.convertToType(data['closed_at'], 'Date'); } if (data.hasOwnProperty('closed_by')) { obj['closed_by'] = ApiClient.convertToType(data['closed_by'], SimpleUser); } if (data.hasOwnProperty('closed_reason')) { obj['closed_reason'] = ApiClient.convertToType(data['closed_reason'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('number')) { obj['number'] = ApiClient.convertToType(data['number'], 'Number'); } if (data.hasOwnProperty('open')) { obj['open'] = ApiClient.convertToType(data['open'], 'Boolean'); } if (data.hasOwnProperty('rule_description')) { obj['rule_description'] = ApiClient.convertToType(data['rule_description'], 'String'); } if (data.hasOwnProperty('rule_id')) { obj['rule_id'] = ApiClient.convertToType(data['rule_id'], 'String'); } if (data.hasOwnProperty('rule_severity')) { obj['rule_severity'] = ApiClient.convertToType(data['rule_severity'], 'String'); } if (data.hasOwnProperty('tool')) { obj['tool'] = ApiClient.convertToType(data['tool'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new CodeScanningAlert(); if (data.hasOwnProperty('closed_at')) { obj['closed_at'] = ApiClient.convertToType(data['closed_at'], 'Date'); } if (data.hasOwnProperty('closed_by')) { obj['closed_by'] = ApiClient.convertToType(data['closed_by'], SimpleUser); } if (data.hasOwnProperty('closed_reason')) { obj['closed_reason'] = ApiClient.convertToType(data['closed_reason'], 'String'); } if (data.hasOwnProperty('created_at')) { obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Date'); } if (data.hasOwnProperty('html_url')) { obj['html_url'] = ApiClient.convertToType(data['html_url'], 'String'); } if (data.hasOwnProperty('number')) { obj['number'] = ApiClient.convertToType(data['number'], 'Number'); } if (data.hasOwnProperty('open')) { obj['open'] = ApiClient.convertToType(data['open'], 'Boolean'); } if (data.hasOwnProperty('rule_description')) { obj['rule_description'] = ApiClient.convertToType(data['rule_description'], 'String'); } if (data.hasOwnProperty('rule_id')) { obj['rule_id'] = ApiClient.convertToType(data['rule_id'], 'String'); } if (data.hasOwnProperty('rule_severity')) { obj['rule_severity'] = ApiClient.convertToType(data['rule_severity'], 'String'); } if (data.hasOwnProperty('tool')) { obj['tool'] = ApiClient.convertToType(data['tool'], 'String'); } if (data.hasOwnProperty('url')) { obj['url'] = ApiClient.convertToType(data['url'], 'String'); } } return obj; }
JavaScript
static initialize(obj, groupDescription, groupId, groupName) { obj['group_description'] = groupDescription; obj['group_id'] = groupId; obj['group_name'] = groupName; }
static initialize(obj, groupDescription, groupId, groupName) { obj['group_description'] = groupDescription; obj['group_id'] = groupId; obj['group_name'] = groupName; }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new TeamsTeamIdTeamSyncGroupMappingsGroups(); if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('group_description')) { obj['group_description'] = ApiClient.convertToType(data['group_description'], 'String'); } if (data.hasOwnProperty('group_id')) { obj['group_id'] = ApiClient.convertToType(data['group_id'], 'String'); } if (data.hasOwnProperty('group_name')) { obj['group_name'] = ApiClient.convertToType(data['group_name'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new TeamsTeamIdTeamSyncGroupMappingsGroups(); if (data.hasOwnProperty('description')) { obj['description'] = ApiClient.convertToType(data['description'], 'String'); } if (data.hasOwnProperty('group_description')) { obj['group_description'] = ApiClient.convertToType(data['group_description'], 'String'); } if (data.hasOwnProperty('group_id')) { obj['group_id'] = ApiClient.convertToType(data['group_id'], 'String'); } if (data.hasOwnProperty('group_name')) { obj['group_name'] = ApiClient.convertToType(data['group_name'], 'String'); } if (data.hasOwnProperty('id')) { obj['id'] = ApiClient.convertToType(data['id'], 'String'); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } } return obj; }
JavaScript
function Release(assets, assetsUrl, author, createdAt, draft, htmlUrl, id, name, nodeId, prerelease, publishedAt, tagName, tarballUrl, targetCommitish, uploadUrl, url, zipballUrl) { _classCallCheck(this, Release); Release.initialize(this, assets, assetsUrl, author, createdAt, draft, htmlUrl, id, name, nodeId, prerelease, publishedAt, tagName, tarballUrl, targetCommitish, uploadUrl, url, zipballUrl); }
function Release(assets, assetsUrl, author, createdAt, draft, htmlUrl, id, name, nodeId, prerelease, publishedAt, tagName, tarballUrl, targetCommitish, uploadUrl, url, zipballUrl) { _classCallCheck(this, Release); Release.initialize(this, assets, assetsUrl, author, createdAt, draft, htmlUrl, id, name, nodeId, prerelease, publishedAt, tagName, tarballUrl, targetCommitish, uploadUrl, url, zipballUrl); }
JavaScript
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject107(); if (data.hasOwnProperty('commit_message')) { obj['commit_message'] = ApiClient.convertToType(data['commit_message'], 'String'); } if (data.hasOwnProperty('commit_title')) { obj['commit_title'] = ApiClient.convertToType(data['commit_title'], 'String'); } if (data.hasOwnProperty('merge_method')) { obj['merge_method'] = ApiClient.convertToType(data['merge_method'], 'String'); } if (data.hasOwnProperty('sha')) { obj['sha'] = ApiClient.convertToType(data['sha'], 'String'); } } return obj; }
static constructFromObject(data, obj) { if (data) { obj = obj || new InlineObject107(); if (data.hasOwnProperty('commit_message')) { obj['commit_message'] = ApiClient.convertToType(data['commit_message'], 'String'); } if (data.hasOwnProperty('commit_title')) { obj['commit_title'] = ApiClient.convertToType(data['commit_title'], 'String'); } if (data.hasOwnProperty('merge_method')) { obj['merge_method'] = ApiClient.convertToType(data['merge_method'], 'String'); } if (data.hasOwnProperty('sha')) { obj['sha'] = ApiClient.convertToType(data['sha'], 'String'); } } return obj; }
JavaScript
function bytesToBinary(bytes) { return bytes.map(function(x) { return lpad(x.toString(2), '0', 8) }).join(''); }
function bytesToBinary(bytes) { return bytes.map(function(x) { return lpad(x.toString(2), '0', 8) }).join(''); }
JavaScript
_request(method, path, reqData) { reqData = reqData || {}; // Set the HTTP verb for the req reqData.type = method; // Set the token authorization header reqData.beforeSend = (xhr) => { xhr.setRequestHeader('Authorization', 'BEARER ' + this._token); }; // Set headders for sending and receiving JSON data if (!reqData.dataType) reqData.dataType = 'json'; if (!reqData.contentType) reqData.contentType = 'application/json'; // Build the url if (!reqData.url) reqData.url = this._root + path; // Return a promise for the request return $.ajax(reqData).promise(); }
_request(method, path, reqData) { reqData = reqData || {}; // Set the HTTP verb for the req reqData.type = method; // Set the token authorization header reqData.beforeSend = (xhr) => { xhr.setRequestHeader('Authorization', 'BEARER ' + this._token); }; // Set headders for sending and receiving JSON data if (!reqData.dataType) reqData.dataType = 'json'; if (!reqData.contentType) reqData.contentType = 'application/json'; // Build the url if (!reqData.url) reqData.url = this._root + path; // Return a promise for the request return $.ajax(reqData).promise(); }
JavaScript
function provisionNode() { // Get node object and update its state let node = ViewState.nodes[0]; node.state = NodeStates.CREATING_DROPLET; // Create a DO client let doClient = new DigitalOcean(App.apiKey); // Perform the provisioning return doClient.createDroplet({ name: node.name, size: '512mb', region: availableDataCenters[Math.floor(Math.random() * availableDataCenters.length)], image: 'ubuntu-14-04-x64', user_data: cloudInitScriptTemplate .replace('{{vpsPassword}}', node.vpsUser.password) .replace('{{obPassword}}', node.obUser.password) .replace('{{obRelayBranch}}', obRelayBranch), }) // After creating the droplet we need to wait for it to be active .then(function (data) { return waitForCreation(doClient, data.droplet.id); }) // Once it's active show a message to the user with their details and wait // for the provising to be finished .then(function (data) { node.ipv4 = data.droplet.networks.v4[0].ip_address; node.state = NodeStates.INSTALLING_OPENBAZAAR_RELAY; // Now just wait for everything to be ready return waitForReadyState(node); }); }
function provisionNode() { // Get node object and update its state let node = ViewState.nodes[0]; node.state = NodeStates.CREATING_DROPLET; // Create a DO client let doClient = new DigitalOcean(App.apiKey); // Perform the provisioning return doClient.createDroplet({ name: node.name, size: '512mb', region: availableDataCenters[Math.floor(Math.random() * availableDataCenters.length)], image: 'ubuntu-14-04-x64', user_data: cloudInitScriptTemplate .replace('{{vpsPassword}}', node.vpsUser.password) .replace('{{obPassword}}', node.obUser.password) .replace('{{obRelayBranch}}', obRelayBranch), }) // After creating the droplet we need to wait for it to be active .then(function (data) { return waitForCreation(doClient, data.droplet.id); }) // Once it's active show a message to the user with their details and wait // for the provising to be finished .then(function (data) { node.ipv4 = data.droplet.networks.v4[0].ip_address; node.state = NodeStates.INSTALLING_OPENBAZAAR_RELAY; // Now just wait for everything to be ready return waitForReadyState(node); }); }
JavaScript
function waitForReadyState(droplet) { let deferred = $.Deferred(), attempts = 0, statusAddr = 'https://deploy.ob1.io/cors/status/' + droplet.ipv4; function poll() { $.get(statusAddr) // If the request was successful see if we're in the READY status. If so we // are done. If not try again unless we're at our limit. .always(function (data, requestStatus) { // Update the droplet state if the request was successful. If it's READY // we're done so resolve the promise with the droplet. if (requestStatus === 'success') { droplet.state = NodeStates.enumValueOf(JSON.parse(data).status); if (droplet.state === NodeStates.READY) return deferred.resolve(droplet); } // Ensure we haven't tried too many times if (attempts >= getReadyStatusMaxAttempts) return deferred.reject(new Error('Too many attempts')); // Try again later attempts++; setTimeout(poll, getReadyStatusPollInterval); }); } // Start polling poll(); // Return a promise to try really hard or fail return deferred.promise(); }
function waitForReadyState(droplet) { let deferred = $.Deferred(), attempts = 0, statusAddr = 'https://deploy.ob1.io/cors/status/' + droplet.ipv4; function poll() { $.get(statusAddr) // If the request was successful see if we're in the READY status. If so we // are done. If not try again unless we're at our limit. .always(function (data, requestStatus) { // Update the droplet state if the request was successful. If it's READY // we're done so resolve the promise with the droplet. if (requestStatus === 'success') { droplet.state = NodeStates.enumValueOf(JSON.parse(data).status); if (droplet.state === NodeStates.READY) return deferred.resolve(droplet); } // Ensure we haven't tried too many times if (attempts >= getReadyStatusMaxAttempts) return deferred.reject(new Error('Too many attempts')); // Try again later attempts++; setTimeout(poll, getReadyStatusPollInterval); }); } // Start polling poll(); // Return a promise to try really hard or fail return deferred.promise(); }
JavaScript
compileTemplates (mainCompilation) { // To prevent multiple compilations for the same template // the compilation is cached in a promise. // If it already exists return if (this.compilationPromise) { return this.compilationPromise; } // The entry file is just an empty helper as the dynamic template // require is added in "loader.js" const outputOptions = { filename: '__child-[name]', publicPath: mainCompilation.outputOptions.publicPath }; const compilerName = 'HtmlWebpackCompiler'; // Create an additional child compiler which takes the template // and turns it into an Node.JS html factory. // This allows us to use loaders during the compilation const childCompiler = mainCompilation.createChildCompiler(compilerName, outputOptions); // The file path context which webpack uses to resolve all relative files to childCompiler.context = mainCompilation.compiler.context; // Compile the template to nodejs javascript new NodeTemplatePlugin(outputOptions).apply(childCompiler); new NodeTargetPlugin().apply(childCompiler); new LibraryTemplatePlugin('HTML_WEBPACK_PLUGIN_RESULT', 'var').apply(childCompiler); new LoaderTargetPlugin('node').apply(childCompiler); // Add all templates this.templates.forEach((template, index) => { new SingleEntryPlugin(childCompiler.context, template, `HtmlWebpackPlugin_${index}`).apply(childCompiler); }); this.compilationStartedTimestamp = new Date().getTime(); this.compilationPromise = new Promise((resolve, reject) => { childCompiler.runAsChild((err, entries, childCompilation) => { // Extract templates const compiledTemplates = entries ? extractHelperFilesFromCompilation(mainCompilation, childCompilation, outputOptions.filename, entries) : []; // Extract file dependencies if (entries) { this.fileDependencies = Array.from(childCompilation.fileDependencies); } // Reject the promise if the childCompilation contains error if (childCompilation && childCompilation.errors && childCompilation.errors.length) { const errorDetails = childCompilation.errors.map(error => error.message + (error.error ? ':\n' + error.error : '')).join('\n'); reject(new Error('Child compilation failed:\n' + errorDetails)); return; } // Reject if the error object contains errors if (err) { reject(err); return; } /** * @type {{[templatePath: string]: { content: string, hash: string, entry: WebpackChunk }}} */ const result = {}; compiledTemplates.forEach((templateSource, entryIndex) => { // The compiledTemplates are generated from the entries added in // the addTemplate function. // Therefore the array index of this.templates should be the as entryIndex. result[this.templates[entryIndex]] = { content: templateSource, hash: childCompilation.hash, entry: entries[entryIndex] }; }); this.compilationEndedTimestamp = new Date().getTime(); resolve(result); }); }); return this.compilationPromise; }
compileTemplates (mainCompilation) { // To prevent multiple compilations for the same template // the compilation is cached in a promise. // If it already exists return if (this.compilationPromise) { return this.compilationPromise; } // The entry file is just an empty helper as the dynamic template // require is added in "loader.js" const outputOptions = { filename: '__child-[name]', publicPath: mainCompilation.outputOptions.publicPath }; const compilerName = 'HtmlWebpackCompiler'; // Create an additional child compiler which takes the template // and turns it into an Node.JS html factory. // This allows us to use loaders during the compilation const childCompiler = mainCompilation.createChildCompiler(compilerName, outputOptions); // The file path context which webpack uses to resolve all relative files to childCompiler.context = mainCompilation.compiler.context; // Compile the template to nodejs javascript new NodeTemplatePlugin(outputOptions).apply(childCompiler); new NodeTargetPlugin().apply(childCompiler); new LibraryTemplatePlugin('HTML_WEBPACK_PLUGIN_RESULT', 'var').apply(childCompiler); new LoaderTargetPlugin('node').apply(childCompiler); // Add all templates this.templates.forEach((template, index) => { new SingleEntryPlugin(childCompiler.context, template, `HtmlWebpackPlugin_${index}`).apply(childCompiler); }); this.compilationStartedTimestamp = new Date().getTime(); this.compilationPromise = new Promise((resolve, reject) => { childCompiler.runAsChild((err, entries, childCompilation) => { // Extract templates const compiledTemplates = entries ? extractHelperFilesFromCompilation(mainCompilation, childCompilation, outputOptions.filename, entries) : []; // Extract file dependencies if (entries) { this.fileDependencies = Array.from(childCompilation.fileDependencies); } // Reject the promise if the childCompilation contains error if (childCompilation && childCompilation.errors && childCompilation.errors.length) { const errorDetails = childCompilation.errors.map(error => error.message + (error.error ? ':\n' + error.error : '')).join('\n'); reject(new Error('Child compilation failed:\n' + errorDetails)); return; } // Reject if the error object contains errors if (err) { reject(err); return; } /** * @type {{[templatePath: string]: { content: string, hash: string, entry: WebpackChunk }}} */ const result = {}; compiledTemplates.forEach((templateSource, entryIndex) => { // The compiledTemplates are generated from the entries added in // the addTemplate function. // Therefore the array index of this.templates should be the as entryIndex. result[this.templates[entryIndex]] = { content: templateSource, hash: childCompilation.hash, entry: entries[entryIndex] }; }); this.compilationEndedTimestamp = new Date().getTime(); resolve(result); }); }); return this.compilationPromise; }
JavaScript
function extractHelperFilesFromCompilation (mainCompilation, childCompilation, filename, childEntryChunks) { const helperAssetNames = childEntryChunks.map((entryChunk, index) => { return mainCompilation.mainTemplate.hooks.assetPath.call(filename, { hash: childCompilation.hash, chunk: entryChunk, name: `HtmlWebpackPlugin_${index}` }); }); helperAssetNames.forEach((helperFileName) => { delete mainCompilation.assets[helperFileName]; }); const helperContents = helperAssetNames.map((helperFileName) => { return childCompilation.assets[helperFileName].source(); }); return helperContents; }
function extractHelperFilesFromCompilation (mainCompilation, childCompilation, filename, childEntryChunks) { const helperAssetNames = childEntryChunks.map((entryChunk, index) => { return mainCompilation.mainTemplate.hooks.assetPath.call(filename, { hash: childCompilation.hash, chunk: entryChunk, name: `HtmlWebpackPlugin_${index}` }); }); helperAssetNames.forEach((helperFileName) => { delete mainCompilation.assets[helperFileName]; }); const helperContents = helperAssetNames.map((helperFileName) => { return childCompilation.assets[helperFileName].source(); }); return helperContents; }
JavaScript
function clearCache (mainCompiler) { const childCompiler = getChildCompiler(mainCompiler); // If this childCompiler was already used // remove the entire childCompiler from the cache if (childCompiler.isCompiling() || childCompiler.didCompile()) { childCompilerCache.delete(mainCompiler); } }
function clearCache (mainCompiler) { const childCompiler = getChildCompiler(mainCompiler); // If this childCompiler was already used // remove the entire childCompiler from the cache if (childCompiler.isCompiling() || childCompiler.didCompile()) { childCompilerCache.delete(mainCompiler); } }
JavaScript
function addTemplateToCompiler (mainCompiler, templatePath) { const childCompiler = getChildCompiler(mainCompiler); const isNew = childCompiler.addTemplate(templatePath); if (isNew) { clearCache(mainCompiler); } }
function addTemplateToCompiler (mainCompiler, templatePath) { const childCompiler = getChildCompiler(mainCompiler); const isNew = childCompiler.addTemplate(templatePath); if (isNew) { clearCache(mainCompiler); } }
JavaScript
function compileTemplate (templatePath, outputFilename, mainCompilation) { const childCompiler = getChildCompiler(mainCompilation.compiler); return childCompiler.compileTemplates(mainCompilation).then((compiledTemplates) => { if (!compiledTemplates[templatePath]) console.log(Object.keys(compiledTemplates), templatePath); const compiledTemplate = compiledTemplates[templatePath]; // Replace [hash] placeholders in filename const outputName = mainCompilation.mainTemplate.hooks.assetPath.call(outputFilename, { hash: compiledTemplate.hash, chunk: compiledTemplate.entry }); return { // Hash of the template entry point hash: compiledTemplate.hash, // Output name outputName: outputName, // Compiled code content: compiledTemplate.content }; }); }
function compileTemplate (templatePath, outputFilename, mainCompilation) { const childCompiler = getChildCompiler(mainCompilation.compiler); return childCompiler.compileTemplates(mainCompilation).then((compiledTemplates) => { if (!compiledTemplates[templatePath]) console.log(Object.keys(compiledTemplates), templatePath); const compiledTemplate = compiledTemplates[templatePath]; // Replace [hash] placeholders in filename const outputName = mainCompilation.mainTemplate.hooks.assetPath.call(outputFilename, { hash: compiledTemplate.hash, chunk: compiledTemplate.entry }); return { // Hash of the template entry point hash: compiledTemplate.hash, // Output name outputName: outputName, // Compiled code content: compiledTemplate.content }; }); }
JavaScript
function hasOutDatedTemplateCache (mainCompilation, callback) { const childCompiler = getChildCompiler(mainCompilation.compiler); const keyStr = JSON.stringify([...childCompiler.fileDependencies].sort()); // get reference for key-strings to use it with WeakMap: let key = fileDepependenciesKeyRef[keyStr]; if (!key) { key = {}; fileDepependenciesKeyRef[keyStr] = key; } function updateSnapshot() { mainCompilation.fileSystemInfo.createSnapshot( Date.now(), childCompiler.fileDependencies, childCompiler.contextDependencies, childCompiler.missingDependencies, null, (err, snapshot) => { if (err) { return callback(err); } snapshotMap.set(key, snapshot); } ); } // Try to get the `checkChildCompilerCache` result from cache const snapshot = snapshotMap.get(key); if (snapshot !== undefined) { return mainCompilation.fileSystemInfo.checkSnapshotValid( snapshot, (err, isValid) => { if (!isValid) { updateSnapshot(); } callback(err, isValid); } ); } updateSnapshot(); callback(null, false); }
function hasOutDatedTemplateCache (mainCompilation, callback) { const childCompiler = getChildCompiler(mainCompilation.compiler); const keyStr = JSON.stringify([...childCompiler.fileDependencies].sort()); // get reference for key-strings to use it with WeakMap: let key = fileDepependenciesKeyRef[keyStr]; if (!key) { key = {}; fileDepependenciesKeyRef[keyStr] = key; } function updateSnapshot() { mainCompilation.fileSystemInfo.createSnapshot( Date.now(), childCompiler.fileDependencies, childCompiler.contextDependencies, childCompiler.missingDependencies, null, (err, snapshot) => { if (err) { return callback(err); } snapshotMap.set(key, snapshot); } ); } // Try to get the `checkChildCompilerCache` result from cache const snapshot = snapshotMap.get(key); if (snapshot !== undefined) { return mainCompilation.fileSystemInfo.checkSnapshotValid( snapshot, (err, isValid) => { if (!isValid) { updateSnapshot(); } callback(err, isValid); } ); } updateSnapshot(); callback(null, false); }
JavaScript
function endow(Super) { return { // IE < 9 might throw with code that uses `{with: ...}` "with": function () { for (var Mixin, Class = Super, i = 0, length = arguments.length; i < length; i++ ) { Mixin = arguments[i]; Class = Mixin(Class); // A Mixin knows all classes it extended. // there is no iterable WeakSet to do this, // so derived classes are retained once. // This should not be a real-world issue // because classes are usually a pre-defined, // well known, amount. // If you create a lot of classes on the fly though, // and you'd like to use endow, be sure you drain // that Mixin list from time to time. // // Object.getOwnPropertySymbols(Mixin) // .some(s => /\bendow\b/.test(String(s)) && Mixin[s].splice(0)); // // Please note after that instanceof operations won't be reliable. // If you create a lot of classes on the fly though, most likely // you won't ever need instanceof against Mixins. if (has(Mixin, classes)) { Mixin[classes].push(Class); } else if (!has(Mixin, hasInstance)) { define(Mixin, Class, {}); } } return Class; } }; }
function endow(Super) { return { // IE < 9 might throw with code that uses `{with: ...}` "with": function () { for (var Mixin, Class = Super, i = 0, length = arguments.length; i < length; i++ ) { Mixin = arguments[i]; Class = Mixin(Class); // A Mixin knows all classes it extended. // there is no iterable WeakSet to do this, // so derived classes are retained once. // This should not be a real-world issue // because classes are usually a pre-defined, // well known, amount. // If you create a lot of classes on the fly though, // and you'd like to use endow, be sure you drain // that Mixin list from time to time. // // Object.getOwnPropertySymbols(Mixin) // .some(s => /\bendow\b/.test(String(s)) && Mixin[s].splice(0)); // // Please note after that instanceof operations won't be reliable. // If you create a lot of classes on the fly though, most likely // you won't ever need instanceof against Mixins. if (has(Mixin, classes)) { Mixin[classes].push(Class); } else if (!has(Mixin, hasInstance)) { define(Mixin, Class, {}); } } return Class; } }; }
JavaScript
function createBasketItem(title) { let item = document.createElement("div"); item.className = "basket-item"; let deleteButton = document.createElement("button"); deleteButton.textContent = "✗"; item.appendChild(deleteButton); let text = document.createElement("span"); text.textContent = title; item.appendChild(text); return item; }
function createBasketItem(title) { let item = document.createElement("div"); item.className = "basket-item"; let deleteButton = document.createElement("button"); deleteButton.textContent = "✗"; item.appendChild(deleteButton); let text = document.createElement("span"); text.textContent = title; item.appendChild(text); return item; }
JavaScript
function rankPokerHand(cards) { var cs = []; var ss = []; cards.forEach(function(elem){ cs.push(elem.num==nums[0]?14:nums.indexOf(elem.num)+1); ss.push(Math.pow(2,suits.indexOf(elem.suit))); }); var v, i, o, s = 1<<cs[0]|1<<cs[1]|1<<cs[2]|1<<cs[3]|1<<cs[4]; for (i=-1, v=o=0; i<5; i++, o=Math.pow(2,cs[i]*4)) {v += o*((v/o&15)+1);} v = v % 15 - ((s/(s&-s) == 31) || (s == 0x403c) ? 3 : 1); v -= (ss[0] == (ss[1]|ss[2]|ss[3]|ss[4])) * ((s == 0x7c00) ? -5 : 1); cs.sort(function(a,b){ return a-b; }); var n = (((((cs[4])*100+cs[3])*100+cs[2])*100+cs[1])*100)+cs[0]; // console.log(JSON.stringify(cs)); // console.log(n); // console.log(indices[v]) return {hand:indices[v],val:n} }
function rankPokerHand(cards) { var cs = []; var ss = []; cards.forEach(function(elem){ cs.push(elem.num==nums[0]?14:nums.indexOf(elem.num)+1); ss.push(Math.pow(2,suits.indexOf(elem.suit))); }); var v, i, o, s = 1<<cs[0]|1<<cs[1]|1<<cs[2]|1<<cs[3]|1<<cs[4]; for (i=-1, v=o=0; i<5; i++, o=Math.pow(2,cs[i]*4)) {v += o*((v/o&15)+1);} v = v % 15 - ((s/(s&-s) == 31) || (s == 0x403c) ? 3 : 1); v -= (ss[0] == (ss[1]|ss[2]|ss[3]|ss[4])) * ((s == 0x7c00) ? -5 : 1); cs.sort(function(a,b){ return a-b; }); var n = (((((cs[4])*100+cs[3])*100+cs[2])*100+cs[1])*100)+cs[0]; // console.log(JSON.stringify(cs)); // console.log(n); // console.log(indices[v]) return {hand:indices[v],val:n} }
JavaScript
function addFollowersByLevel(level, options) { function followerCompare(a, b) { return a.data('followerCount') - b.data('followerCount'); } function topFollowerPromises(sortedFollowers) { return sortedFollowers.slice(-options.usersPerLevel) .map(function(follower) { // remember that follower is a Cy element so need to access username var followerName = follower.data('username'); return getUser(followerName); }); } var quit = false; if (level < options.maxLevel && !quit) { var topFollowers = cy.nodes() .filter('[level = ' + level + ']') .sort(followerCompare); var followerPromises = topFollowerPromises(topFollowers); Promise.all(followerPromises) .then(function(userAndFollowerData) { // all data returned successfully! for (var i = 0; i < userAndFollowerData.length; i++) { var twitterData = userAndFollowerData[i]; if (twitterData.user.error || twitterData.followers.error) { // error occured, such as rate limiting var error = twitterData.user.error ? twitterData.user : twitterData.followers; console.log('Error occured. Code: ' + error.status + ' Text: ' + error.statusText); if (error.status === 429) { // rate limited, so stop sending requests quit = true; } } else { addToGraph(twitterData.user, twitterData.followers, level); } } addFollowersByLevel(level + 1, options); }).catch(function(err) { console.log('Could not get data. Error message: ' + err); }); } else { // reached the final level, now let's lay things out cy.layout(options.layout); // add qtip boxes cy.nodes().forEach(function(ele) { ele.qtip({ content: { text: qtipText(ele), title: ele.data('fullName') }, style: { classes: 'qtip-bootstrap' }, position: { my: 'bottom center', at: 'top center', target: ele } }); }); // and finally, clear the loading animation var loading = document.getElementById('loading'); loading.classList.add('loaded'); } }
function addFollowersByLevel(level, options) { function followerCompare(a, b) { return a.data('followerCount') - b.data('followerCount'); } function topFollowerPromises(sortedFollowers) { return sortedFollowers.slice(-options.usersPerLevel) .map(function(follower) { // remember that follower is a Cy element so need to access username var followerName = follower.data('username'); return getUser(followerName); }); } var quit = false; if (level < options.maxLevel && !quit) { var topFollowers = cy.nodes() .filter('[level = ' + level + ']') .sort(followerCompare); var followerPromises = topFollowerPromises(topFollowers); Promise.all(followerPromises) .then(function(userAndFollowerData) { // all data returned successfully! for (var i = 0; i < userAndFollowerData.length; i++) { var twitterData = userAndFollowerData[i]; if (twitterData.user.error || twitterData.followers.error) { // error occured, such as rate limiting var error = twitterData.user.error ? twitterData.user : twitterData.followers; console.log('Error occured. Code: ' + error.status + ' Text: ' + error.statusText); if (error.status === 429) { // rate limited, so stop sending requests quit = true; } } else { addToGraph(twitterData.user, twitterData.followers, level); } } addFollowersByLevel(level + 1, options); }).catch(function(err) { console.log('Could not get data. Error message: ' + err); }); } else { // reached the final level, now let's lay things out cy.layout(options.layout); // add qtip boxes cy.nodes().forEach(function(ele) { ele.qtip({ content: { text: qtipText(ele), title: ele.data('fullName') }, style: { classes: 'qtip-bootstrap' }, position: { my: 'bottom center', at: 'top center', target: ele } }); }); // and finally, clear the loading animation var loading = document.getElementById('loading'); loading.classList.add('loaded'); } }
JavaScript
function SendPacket(data) { for (const client of launcherSocket.clients) { if (client.readyState === client.WebSocket.OPEN) client.send(JSON.stringify(data)); } }
function SendPacket(data) { for (const client of launcherSocket.clients) { if (client.readyState === client.WebSocket.OPEN) client.send(JSON.stringify(data)); } }
JavaScript
async function deploySlashCommands(guild) { const allCommands = commands; guild.commands.set(allCommands) .catch((error) => { console.error(`Error setting slashcommands for ${ guild.name }.`, error); }); }
async function deploySlashCommands(guild) { const allCommands = commands; guild.commands.set(allCommands) .catch((error) => { console.error(`Error setting slashcommands for ${ guild.name }.`, error); }); }
JavaScript
function Wizard(navService, pageCollection, buttonService, headerActionService, elementRef, differs) { var _this = this; this.navService = navService; this.pageCollection = pageCollection; this.buttonService = buttonService; this.headerActionService = headerActionService; this.elementRef = elementRef; this.differs = differs; /** * Contains the size defined by the clrWizardSize input * @name size * @type {string} * @default "xl" * @memberof Wizard */ this.size = "xl"; /** * The property that reveals the ghost pages in the wizard. Set through the * clrWizardShowGhostPages input. * * @name showGhostPages * @default false * @type {boolean} * @memberof Wizard */ this.showGhostPages = false; this._forceForward = false; /** * Tells the modal part of the wizard whether it should have a close "X" * in the top right corner. Set with the clrWizardClosable input. * * @name closable * @type {boolean} * @memberof Wizard */ this.closable = true; /** * Toggles open/close of the wizard component. Set using the clrWizardOpen * input. * * @name _open * @type {boolean} * @memberof Wizard */ this._open = false; /** * Emits when the wizard is opened or closed. Emits through the * clrWizardOpenChange output. Works in conjunction with the * clrWizardOpen binding so you can use... * * <clr-wizard [(clrWizardOpen)]="blah" * ...or... * <clr-wizard [clrWizardOpen]="something" (clrWizardOpenChange)="doSomethign($event)"> * * ...for two-way binding. * * @name _openChanged * @type {EventEmitter<boolean>} * @memberof Wizard */ this._openChanged = new EventEmitter(false); /** * Emits when the wizard is canceled. Can be observed through the clrWizardOnCancel * output. * * Can be combined with the clrWizardPreventDefaultCancel input to create * wizard-level custom cancel routines. * * @name onCancel * @type {EventEmitter<any>} * @memberof Wizard */ this.onCancel = new EventEmitter(false); /** * Emits when the wizard is completed. Can be observed through the clrWizardOnFinish * output. * * Can be combined with the clrWizardPreventDefaultNext input to create * wizard-level custom completion routines. * * @name onFinish * @type {EventEmitter<any>} * @memberof Wizard */ this.wizardFinished = new EventEmitter(false); /** * Emits when the wizard is reset. See .reset(). Can be observed through * the clrWizardOnReset output. * * @name onReset * @type {EventEmitter<any>} * @memberof Wizard */ this.onReset = new EventEmitter(false); /** * Emits when the current page has changed. Can be observed through the clrWizardCurrentPageChanged * output. This can happen on .next() or .previous(). * Useful for non-blocking validation. * * @name currentPageChanged * @type {EventEmitter<any>} * @memberof Wizard */ this.currentPageChanged = new EventEmitter(false); /** * Emits when the wizard moves to the next page. Can be observed through the clrWizardOnNext * output. * * Can be combined with the clrWizardPreventDefaultNext input to create * wizard-level custom navigation routines, which are useful for validation. * * @name onMoveNext * @type {EventEmitter<any>} * @memberof Wizard */ this.onMoveNext = new EventEmitter(false); /** * Emits when the wizard moves to the previous page. Can be observed through the * clrWizardOnPrevious output. * * Can be useful for validation. * * @name onMovePrevious * @type {EventEmitter<any>} * @memberof Wizard */ this.onMovePrevious = new EventEmitter(false); this._stopNext = false; this._stopCancel = false; this._stopNavigation = false; this._disableStepnav = false; /** * Used only to communicate to the underlying modal that animations are not * wanted. Primary use is for the display of static/inline wizards. * * Set using clrWizardPreventModalAnimation input. But you should never set it. * * @name _stopModalAnimations * @type {boolean} * @memberof Wizard */ this._stopModalAnimations = false; this.goNextSubscription = this.navService.movedToNextPage.subscribe(function () { _this.onMoveNext.emit(); }); this.goPreviousSubscription = this.navService.movedToPreviousPage.subscribe(function () { _this.onMovePrevious.emit(); }); this.cancelSubscription = this.navService.notifyWizardCancel.subscribe(function () { _this.checkAndCancel(); }); this.wizardFinishedSubscription = this.navService.wizardFinished.subscribe(function () { if (!_this.stopNext) { _this.forceFinish(); } _this.wizardFinished.emit(); }); this.differ = differs.find([]).create(null); }
function Wizard(navService, pageCollection, buttonService, headerActionService, elementRef, differs) { var _this = this; this.navService = navService; this.pageCollection = pageCollection; this.buttonService = buttonService; this.headerActionService = headerActionService; this.elementRef = elementRef; this.differs = differs; /** * Contains the size defined by the clrWizardSize input * @name size * @type {string} * @default "xl" * @memberof Wizard */ this.size = "xl"; /** * The property that reveals the ghost pages in the wizard. Set through the * clrWizardShowGhostPages input. * * @name showGhostPages * @default false * @type {boolean} * @memberof Wizard */ this.showGhostPages = false; this._forceForward = false; /** * Tells the modal part of the wizard whether it should have a close "X" * in the top right corner. Set with the clrWizardClosable input. * * @name closable * @type {boolean} * @memberof Wizard */ this.closable = true; /** * Toggles open/close of the wizard component. Set using the clrWizardOpen * input. * * @name _open * @type {boolean} * @memberof Wizard */ this._open = false; /** * Emits when the wizard is opened or closed. Emits through the * clrWizardOpenChange output. Works in conjunction with the * clrWizardOpen binding so you can use... * * <clr-wizard [(clrWizardOpen)]="blah" * ...or... * <clr-wizard [clrWizardOpen]="something" (clrWizardOpenChange)="doSomethign($event)"> * * ...for two-way binding. * * @name _openChanged * @type {EventEmitter<boolean>} * @memberof Wizard */ this._openChanged = new EventEmitter(false); /** * Emits when the wizard is canceled. Can be observed through the clrWizardOnCancel * output. * * Can be combined with the clrWizardPreventDefaultCancel input to create * wizard-level custom cancel routines. * * @name onCancel * @type {EventEmitter<any>} * @memberof Wizard */ this.onCancel = new EventEmitter(false); /** * Emits when the wizard is completed. Can be observed through the clrWizardOnFinish * output. * * Can be combined with the clrWizardPreventDefaultNext input to create * wizard-level custom completion routines. * * @name onFinish * @type {EventEmitter<any>} * @memberof Wizard */ this.wizardFinished = new EventEmitter(false); /** * Emits when the wizard is reset. See .reset(). Can be observed through * the clrWizardOnReset output. * * @name onReset * @type {EventEmitter<any>} * @memberof Wizard */ this.onReset = new EventEmitter(false); /** * Emits when the current page has changed. Can be observed through the clrWizardCurrentPageChanged * output. This can happen on .next() or .previous(). * Useful for non-blocking validation. * * @name currentPageChanged * @type {EventEmitter<any>} * @memberof Wizard */ this.currentPageChanged = new EventEmitter(false); /** * Emits when the wizard moves to the next page. Can be observed through the clrWizardOnNext * output. * * Can be combined with the clrWizardPreventDefaultNext input to create * wizard-level custom navigation routines, which are useful for validation. * * @name onMoveNext * @type {EventEmitter<any>} * @memberof Wizard */ this.onMoveNext = new EventEmitter(false); /** * Emits when the wizard moves to the previous page. Can be observed through the * clrWizardOnPrevious output. * * Can be useful for validation. * * @name onMovePrevious * @type {EventEmitter<any>} * @memberof Wizard */ this.onMovePrevious = new EventEmitter(false); this._stopNext = false; this._stopCancel = false; this._stopNavigation = false; this._disableStepnav = false; /** * Used only to communicate to the underlying modal that animations are not * wanted. Primary use is for the display of static/inline wizards. * * Set using clrWizardPreventModalAnimation input. But you should never set it. * * @name _stopModalAnimations * @type {boolean} * @memberof Wizard */ this._stopModalAnimations = false; this.goNextSubscription = this.navService.movedToNextPage.subscribe(function () { _this.onMoveNext.emit(); }); this.goPreviousSubscription = this.navService.movedToPreviousPage.subscribe(function () { _this.onMovePrevious.emit(); }); this.cancelSubscription = this.navService.notifyWizardCancel.subscribe(function () { _this.checkAndCancel(); }); this.wizardFinishedSubscription = this.navService.wizardFinished.subscribe(function () { if (!_this.stopNext) { _this.forceFinish(); } _this.wizardFinished.emit(); }); this.differ = differs.find([]).create(null); }
JavaScript
function DatagridHideableColumn(_template, _id, _hidden) { if (_hidden === void 0) { _hidden = true; } this._template = _template; this._id = _id; this._hidden = _hidden; /** * @property hiddenChanges * * @description * A stream of state changes an instance of DatagridHideableColumn will broadcast to subscribers. * * @type {Subject<boolean>} */ this.hiddenChangesState = new rxjs_Subject.Subject(); // Flag this true when the service only has one visible column open. this.lastVisibleColumn = false; this.hiddenChangesState.next(_hidden); }
function DatagridHideableColumn(_template, _id, _hidden) { if (_hidden === void 0) { _hidden = true; } this._template = _template; this._id = _id; this._hidden = _hidden; /** * @property hiddenChanges * * @description * A stream of state changes an instance of DatagridHideableColumn will broadcast to subscribers. * * @type {Subject<boolean>} */ this.hiddenChangesState = new rxjs_Subject.Subject(); // Flag this true when the service only has one visible column open. this.lastVisibleColumn = false; this.hiddenChangesState.next(_hidden); }
JavaScript
function DatagridHideableColumnDirective(templateRef, viewContainerRef, dgColumn) { this.templateRef = templateRef; this.viewContainerRef = viewContainerRef; this.dgColumn = dgColumn; this.columnId = dgColumn.columnId; }
function DatagridHideableColumnDirective(templateRef, viewContainerRef, dgColumn) { this.templateRef = templateRef; this.viewContainerRef = viewContainerRef; this.dgColumn = dgColumn; this.columnId = dgColumn.columnId; }
JavaScript
function WizardNavigationService(pageCollection, buttonService) { var _this = this; this.pageCollection = pageCollection; this.buttonService = buttonService; /** * * @ignore * @private * * @memberof WizardNavigationService */ this._currentChanged = new rxjs_Subject.Subject(); /** * A Boolean flag used by the WizardPage to avoid a race condition when pages are * loading and there is no current page defined. * * @type {boolean} * @memberof WizardNavigationService */ this.navServiceLoaded = false; /** * A boolean flag shared across the Wizard subcomponents that follows the value * of the Wizard.forceForward (clrWizardForceForwardNavigation) input. When true, * navigating backwards in the stepnav menu will reset any skipped pages' completed * state to false. * * This is useful when a wizard executes validation on a page-by-page basis when * the next button is clicked. * * @type {boolean} * @memberof WizardNavigationService */ this.forceForwardNavigation = false; /** * * @ignore * @private * * @memberof WizardNavigationService */ this._movedToNextPage = new rxjs_Subject.Subject(); /** * * @ignore * @private * * @memberof WizardNavigationService */ this._wizardFinished = new rxjs_Subject.Subject(); /** * * @ignore * @private * * @memberof WizardNavigationService */ this._movedToPreviousPage = new rxjs_Subject.Subject(); /** * * @ignore * @private * * @memberof WizardNavigationService */ this._cancelWizard = new rxjs_Subject.Subject(); /** * A boolean flag shared across the Wizard subcomponents that follows the value * of the Wizard.stopCancel (clrWizardPreventDefaultCancel) input. When true, the cancel * routine is subverted and must be reinstated in the host component calling Wizard.close() * at some point. * * @type {boolean} * @memberof WizardNavigationService */ this.wizardHasAltCancel = false; /** * A boolean flag shared across the Wizard subcomponents that follows the value * of the Wizard.stopNext (clrWizardPreventDefaultNext) input. When true, the next and finish * routines are subverted and must be reinstated in the host component calling Wizard.next(), * Wizard.forceNext(), Wizard.finish(), or Wizard.forceFinish(). * * @type {boolean} * @memberof WizardNavigationService */ this.wizardHasAltNext = false; /** * A boolean flag shared across the Wizard subcomponents that follows the value * of the Wizard.stopNavigation (clrWizardPreventNavigation) input. When true, all * navigational elements in the wizard are disabled. * * This is intended to freeze the wizard in place. Events are not fired so this is * not a way to implement alternate functionality for navigation. * * @type {boolean} * @memberof WizardNavigationService */ this.wizardStopNavigation = false; /** * A boolean flag shared with the stepnav items that prevents user clicks on * stepnav items from navigating the wizard. * * @type {boolean} * @memberof WizardNavigationService */ this.wizardDisableStepnav = false; /** * * @ignore * @private * @type {string} * @memberof WizardNavigationService */ this._wizardGhostPageState = GHOST_PAGE_ANIMATION.STATES.NO_PAGES; /** * * @ignore * @private * @type {boolean} * @memberof WizardNavigationService */ this._hideWizardGhostPages = true; this.previousButtonSubscription = this.buttonService.previousBtnClicked.subscribe(function () { var currentPage = _this.currentPage; if (_this.currentPageIsFirst || currentPage.previousStepDisabled) { return; } currentPage.previousButtonClicked.emit(currentPage); if (!currentPage.preventDefault) { _this.previous(); } }); this.nextButtonSubscription = this.buttonService.nextBtnClicked.subscribe(function () { _this.checkAndCommitCurrentPage("next"); }); this.dangerButtonSubscription = this.buttonService.dangerBtnClicked.subscribe(function () { _this.checkAndCommitCurrentPage("danger"); }); this.finishButtonSubscription = this.buttonService.finishBtnClicked.subscribe(function () { _this.checkAndCommitCurrentPage("finish"); }); this.customButtonSubscription = this.buttonService.customBtnClicked.subscribe(function (type) { if (!_this.wizardStopNavigation) { _this.currentPage.customButtonClicked.emit(type); } }); this.cancelButtonSubscription = this.buttonService.cancelBtnClicked.subscribe(function () { if (_this.wizardStopNavigation) { return; } if (_this.currentPage.preventDefault) { _this.currentPage.pageOnCancel.emit(_this.currentPage); } else { _this.cancel(); } }); this.pagesResetSubscription = this.pageCollection.pagesReset.subscribe(function () { _this.setFirstPageCurrent(); }); }
function WizardNavigationService(pageCollection, buttonService) { var _this = this; this.pageCollection = pageCollection; this.buttonService = buttonService; /** * * @ignore * @private * * @memberof WizardNavigationService */ this._currentChanged = new rxjs_Subject.Subject(); /** * A Boolean flag used by the WizardPage to avoid a race condition when pages are * loading and there is no current page defined. * * @type {boolean} * @memberof WizardNavigationService */ this.navServiceLoaded = false; /** * A boolean flag shared across the Wizard subcomponents that follows the value * of the Wizard.forceForward (clrWizardForceForwardNavigation) input. When true, * navigating backwards in the stepnav menu will reset any skipped pages' completed * state to false. * * This is useful when a wizard executes validation on a page-by-page basis when * the next button is clicked. * * @type {boolean} * @memberof WizardNavigationService */ this.forceForwardNavigation = false; /** * * @ignore * @private * * @memberof WizardNavigationService */ this._movedToNextPage = new rxjs_Subject.Subject(); /** * * @ignore * @private * * @memberof WizardNavigationService */ this._wizardFinished = new rxjs_Subject.Subject(); /** * * @ignore * @private * * @memberof WizardNavigationService */ this._movedToPreviousPage = new rxjs_Subject.Subject(); /** * * @ignore * @private * * @memberof WizardNavigationService */ this._cancelWizard = new rxjs_Subject.Subject(); /** * A boolean flag shared across the Wizard subcomponents that follows the value * of the Wizard.stopCancel (clrWizardPreventDefaultCancel) input. When true, the cancel * routine is subverted and must be reinstated in the host component calling Wizard.close() * at some point. * * @type {boolean} * @memberof WizardNavigationService */ this.wizardHasAltCancel = false; /** * A boolean flag shared across the Wizard subcomponents that follows the value * of the Wizard.stopNext (clrWizardPreventDefaultNext) input. When true, the next and finish * routines are subverted and must be reinstated in the host component calling Wizard.next(), * Wizard.forceNext(), Wizard.finish(), or Wizard.forceFinish(). * * @type {boolean} * @memberof WizardNavigationService */ this.wizardHasAltNext = false; /** * A boolean flag shared across the Wizard subcomponents that follows the value * of the Wizard.stopNavigation (clrWizardPreventNavigation) input. When true, all * navigational elements in the wizard are disabled. * * This is intended to freeze the wizard in place. Events are not fired so this is * not a way to implement alternate functionality for navigation. * * @type {boolean} * @memberof WizardNavigationService */ this.wizardStopNavigation = false; /** * A boolean flag shared with the stepnav items that prevents user clicks on * stepnav items from navigating the wizard. * * @type {boolean} * @memberof WizardNavigationService */ this.wizardDisableStepnav = false; /** * * @ignore * @private * @type {string} * @memberof WizardNavigationService */ this._wizardGhostPageState = GHOST_PAGE_ANIMATION.STATES.NO_PAGES; /** * * @ignore * @private * @type {boolean} * @memberof WizardNavigationService */ this._hideWizardGhostPages = true; this.previousButtonSubscription = this.buttonService.previousBtnClicked.subscribe(function () { var currentPage = _this.currentPage; if (_this.currentPageIsFirst || currentPage.previousStepDisabled) { return; } currentPage.previousButtonClicked.emit(currentPage); if (!currentPage.preventDefault) { _this.previous(); } }); this.nextButtonSubscription = this.buttonService.nextBtnClicked.subscribe(function () { _this.checkAndCommitCurrentPage("next"); }); this.dangerButtonSubscription = this.buttonService.dangerBtnClicked.subscribe(function () { _this.checkAndCommitCurrentPage("danger"); }); this.finishButtonSubscription = this.buttonService.finishBtnClicked.subscribe(function () { _this.checkAndCommitCurrentPage("finish"); }); this.customButtonSubscription = this.buttonService.customBtnClicked.subscribe(function (type) { if (!_this.wizardStopNavigation) { _this.currentPage.customButtonClicked.emit(type); } }); this.cancelButtonSubscription = this.buttonService.cancelBtnClicked.subscribe(function () { if (_this.wizardStopNavigation) { return; } if (_this.currentPage.preventDefault) { _this.currentPage.pageOnCancel.emit(_this.currentPage); } else { _this.cancel(); } }); this.pagesResetSubscription = this.pageCollection.pagesReset.subscribe(function () { _this.setFirstPageCurrent(); }); }
JavaScript
function WizardPage(navService, pageCollection, buttonService) { this.navService = navService; this.pageCollection = pageCollection; this.buttonService = buttonService; /** * @private * @ignore * @memberof WizardPage */ this._nextStepDisabled = false; /** * Emits when the value of WizardPage.nextStepDisabled changes. * Should emit the new value of nextStepDisabled. * * @type {EventEmitter <boolean>} * @memberof WizardPage */ this.nextStepDisabledChange = new _angular_core.EventEmitter(); /** * @private * @ignore * @memberof WizardPage */ this._previousStepDisabled = false; /** * Emits when the value of WizardPage.previousStepDisabled changes. * Should emit the new value of previousStepDisabled. * * @type {EventEmitter <boolean>} * @memberof WizardPage */ this.previousStepDisabledChange = new _angular_core.EventEmitter(); /** * Overrides all actions from the page level, so you can use an alternate function for * validation or data-munging with a WizardPage.onCommit (clrWizardPageOnCommit output), * WizardPage.onCancel (clrWizardPageOnCancel output), or one * of the granular page-level button click event emitters. * * @type {boolean} * @memberof WizardPage */ this.preventDefault = false; /** * * @ignore * @private * * @memberof WizardPage */ this._stopCancel = false; /** * * @ignore * @type {EventEmitter <boolean>} * @memberof WizardPage */ this.stopCancelChange = new _angular_core.EventEmitter(); /** * * * @private * @ignore * @memberof WizardPage */ this._stopNext = false; /** * An event emitter carried over from a legacy version of WizardPage. * Fires an event on WizardPage whenever the next or finish buttons * are clicked and the page is the current page of the Wizard. * * Note that this does not automatically emit an event when a custom * button is used in place of a next or finish button. * * @type {EventEmitter <string>} * @memberof WizardPage */ this.onCommit = new _angular_core.EventEmitter(false); /** * Emits an event when WizardPage becomes the current page of the * Wizard. * * @type {EventEmitter <string>} * @memberof WizardPage */ this.onLoad = new _angular_core.EventEmitter(); /** * Emits an event when the WizardPage invokes the cancel routine for the wizard. * * Can be used in conjunction with the WizardPage.stopCancel * (clrWizardPagePreventDefaultCancel) or WizardPage.preventDefault * (clrWizardPagePagePreventDefault) inputs to implement custom cancel * functionality at the page level. This is useful if you would like to do * validation, save data, or warn users before cancelling the wizard. * * Note that this requires you to call Wizard.close() from the host component. * This constitues a full replacement of the cancel functionality. * * @type {EventEmitter <WizardPage>} * @memberof WizardPage */ this.pageOnCancel = new _angular_core.EventEmitter(); /** * Emits an event when the finish button is clicked and the WizardPage is * the wizard's current page. * * Can be used in conjunction with the WizardPage.preventDefault * (clrWizardPagePagePreventDefault) input to implement custom finish * functionality at the page level. This is useful if you would like to do * validation, save data, or warn users before allowing them to complete * the wizard. * * Note that this requires you to call Wizard.finish() or Wizard.forceFinish() * from the host component. This combination creates a full replacement of * the finish functionality. * * @type {EventEmitter <WizardPage>} * @memberof WizardPage */ this.finishButtonClicked = new _angular_core.EventEmitter(); /** * Emits an event when the previous button is clicked and the WizardPage is * the wizard's current page. * * Can be used in conjunction with the WizardPage.preventDefault * (clrWizardPagePagePreventDefault) input to implement custom backwards * navigation at the page level. This is useful if you would like to do * validation, save data, or warn users before allowing them to go * backwards in the wizard. * * Note that this requires you to call Wizard.previous() * from the host component. This combination creates a full replacement of * the backwards navigation functionality. * * @type {EventEmitter <WizardPage>} * @memberof WizardPage */ this.previousButtonClicked = new _angular_core.EventEmitter(); /** * Emits an event when the next button is clicked and the WizardPage is * the wizard's current page. * * Can be used in conjunction with the WizardPage.preventDefault * (clrWizardPagePagePreventDefault) input to implement custom forwards * navigation at the page level. This is useful if you would like to do * validation, save data, or warn users before allowing them to go * to the next page in the wizard. * * Note that this requires you to call Wizard.forceNext() or Wizard.next() * from the host component. This combination creates a full replacement of * the forward navigation functionality. * * @type {EventEmitter <WizardPage>} * @memberof WizardPage */ this.nextButtonClicked = new _angular_core.EventEmitter(); /** * Emits an event when a danger button is clicked and the WizardPage is * the wizard's current page. By default, a danger button will act as * either a "next" or "finish" button depending on if the WizardPage is the * last page or not. * * Can be used in conjunction with the WizardPage.preventDefault * (clrWizardPagePagePreventDefault) input to implement custom forwards * or finish navigation at the page level when the danger button is clicked. * This is useful if you would like to do validation, save data, or warn * users before allowing them to go to the next page in the wizard or * finish the wizard. * * Note that this requires you to call Wizard.finish(), Wizard.forceFinish(), * Wizard.forceNext() or Wizard.next() from the host component. This * combination creates a full replacement of the forward navigation and * finish functionality. * * @type {EventEmitter <WizardPage>} * @memberof WizardPage */ this.dangerButtonClicked = new _angular_core.EventEmitter(); /** * Emits an event when a next, finish, or danger button is clicked and the * WizardPage is the wizard's current page. * * Can be used in conjunction with the WizardPage.preventDefault * (clrWizardPagePagePreventDefault) input to implement custom forwards * or finish navigation at the page level, regardless of the type of * primary button. * * This is useful if you would like to do validation, save data, or warn * users before allowing them to go to the next page in the wizard or * finish the wizard. * * Note that this requires you to call Wizard.finish(), Wizard.forceFinish(), * Wizard.forceNext() or Wizard.next() from the host component. This * combination creates a full replacement of the forward navigation and * finish functionality. * * @type {EventEmitter <WizardPage>} * @memberof WizardPage */ this.primaryButtonClicked = new _angular_core.EventEmitter(); this.customButtonClicked = new _angular_core.EventEmitter(); /** * An input value that is used internally to generate the WizardPage ID as * well as the step nav item ID. * * Typed as any because it should be able to accept numbers as well as * strings. Passing an index for wizard whose pages are created with an * ngFor loop is a common use case. * * @type {*} * @memberof WizardPage */ this._id = (wizardPageIndex++).toString(); /** * * @ignore * @private * @type {boolean} * @memberof WizardPage */ this._complete = false; }
function WizardPage(navService, pageCollection, buttonService) { this.navService = navService; this.pageCollection = pageCollection; this.buttonService = buttonService; /** * @private * @ignore * @memberof WizardPage */ this._nextStepDisabled = false; /** * Emits when the value of WizardPage.nextStepDisabled changes. * Should emit the new value of nextStepDisabled. * * @type {EventEmitter <boolean>} * @memberof WizardPage */ this.nextStepDisabledChange = new _angular_core.EventEmitter(); /** * @private * @ignore * @memberof WizardPage */ this._previousStepDisabled = false; /** * Emits when the value of WizardPage.previousStepDisabled changes. * Should emit the new value of previousStepDisabled. * * @type {EventEmitter <boolean>} * @memberof WizardPage */ this.previousStepDisabledChange = new _angular_core.EventEmitter(); /** * Overrides all actions from the page level, so you can use an alternate function for * validation or data-munging with a WizardPage.onCommit (clrWizardPageOnCommit output), * WizardPage.onCancel (clrWizardPageOnCancel output), or one * of the granular page-level button click event emitters. * * @type {boolean} * @memberof WizardPage */ this.preventDefault = false; /** * * @ignore * @private * * @memberof WizardPage */ this._stopCancel = false; /** * * @ignore * @type {EventEmitter <boolean>} * @memberof WizardPage */ this.stopCancelChange = new _angular_core.EventEmitter(); /** * * * @private * @ignore * @memberof WizardPage */ this._stopNext = false; /** * An event emitter carried over from a legacy version of WizardPage. * Fires an event on WizardPage whenever the next or finish buttons * are clicked and the page is the current page of the Wizard. * * Note that this does not automatically emit an event when a custom * button is used in place of a next or finish button. * * @type {EventEmitter <string>} * @memberof WizardPage */ this.onCommit = new _angular_core.EventEmitter(false); /** * Emits an event when WizardPage becomes the current page of the * Wizard. * * @type {EventEmitter <string>} * @memberof WizardPage */ this.onLoad = new _angular_core.EventEmitter(); /** * Emits an event when the WizardPage invokes the cancel routine for the wizard. * * Can be used in conjunction with the WizardPage.stopCancel * (clrWizardPagePreventDefaultCancel) or WizardPage.preventDefault * (clrWizardPagePagePreventDefault) inputs to implement custom cancel * functionality at the page level. This is useful if you would like to do * validation, save data, or warn users before cancelling the wizard. * * Note that this requires you to call Wizard.close() from the host component. * This constitues a full replacement of the cancel functionality. * * @type {EventEmitter <WizardPage>} * @memberof WizardPage */ this.pageOnCancel = new _angular_core.EventEmitter(); /** * Emits an event when the finish button is clicked and the WizardPage is * the wizard's current page. * * Can be used in conjunction with the WizardPage.preventDefault * (clrWizardPagePagePreventDefault) input to implement custom finish * functionality at the page level. This is useful if you would like to do * validation, save data, or warn users before allowing them to complete * the wizard. * * Note that this requires you to call Wizard.finish() or Wizard.forceFinish() * from the host component. This combination creates a full replacement of * the finish functionality. * * @type {EventEmitter <WizardPage>} * @memberof WizardPage */ this.finishButtonClicked = new _angular_core.EventEmitter(); /** * Emits an event when the previous button is clicked and the WizardPage is * the wizard's current page. * * Can be used in conjunction with the WizardPage.preventDefault * (clrWizardPagePagePreventDefault) input to implement custom backwards * navigation at the page level. This is useful if you would like to do * validation, save data, or warn users before allowing them to go * backwards in the wizard. * * Note that this requires you to call Wizard.previous() * from the host component. This combination creates a full replacement of * the backwards navigation functionality. * * @type {EventEmitter <WizardPage>} * @memberof WizardPage */ this.previousButtonClicked = new _angular_core.EventEmitter(); /** * Emits an event when the next button is clicked and the WizardPage is * the wizard's current page. * * Can be used in conjunction with the WizardPage.preventDefault * (clrWizardPagePagePreventDefault) input to implement custom forwards * navigation at the page level. This is useful if you would like to do * validation, save data, or warn users before allowing them to go * to the next page in the wizard. * * Note that this requires you to call Wizard.forceNext() or Wizard.next() * from the host component. This combination creates a full replacement of * the forward navigation functionality. * * @type {EventEmitter <WizardPage>} * @memberof WizardPage */ this.nextButtonClicked = new _angular_core.EventEmitter(); /** * Emits an event when a danger button is clicked and the WizardPage is * the wizard's current page. By default, a danger button will act as * either a "next" or "finish" button depending on if the WizardPage is the * last page or not. * * Can be used in conjunction with the WizardPage.preventDefault * (clrWizardPagePagePreventDefault) input to implement custom forwards * or finish navigation at the page level when the danger button is clicked. * This is useful if you would like to do validation, save data, or warn * users before allowing them to go to the next page in the wizard or * finish the wizard. * * Note that this requires you to call Wizard.finish(), Wizard.forceFinish(), * Wizard.forceNext() or Wizard.next() from the host component. This * combination creates a full replacement of the forward navigation and * finish functionality. * * @type {EventEmitter <WizardPage>} * @memberof WizardPage */ this.dangerButtonClicked = new _angular_core.EventEmitter(); /** * Emits an event when a next, finish, or danger button is clicked and the * WizardPage is the wizard's current page. * * Can be used in conjunction with the WizardPage.preventDefault * (clrWizardPagePagePreventDefault) input to implement custom forwards * or finish navigation at the page level, regardless of the type of * primary button. * * This is useful if you would like to do validation, save data, or warn * users before allowing them to go to the next page in the wizard or * finish the wizard. * * Note that this requires you to call Wizard.finish(), Wizard.forceFinish(), * Wizard.forceNext() or Wizard.next() from the host component. This * combination creates a full replacement of the forward navigation and * finish functionality. * * @type {EventEmitter <WizardPage>} * @memberof WizardPage */ this.primaryButtonClicked = new _angular_core.EventEmitter(); this.customButtonClicked = new _angular_core.EventEmitter(); /** * An input value that is used internally to generate the WizardPage ID as * well as the step nav item ID. * * Typed as any because it should be able to accept numbers as well as * strings. Passing an index for wizard whose pages are created with an * ngFor loop is a common use case. * * @type {*} * @memberof WizardPage */ this._id = (wizardPageIndex++).toString(); /** * * @ignore * @private * @type {boolean} * @memberof WizardPage */ this._complete = false; }
JavaScript
function Wizard(navService, pageCollection, buttonService, headerActionService, elementRef, differs) { var _this = this; this.navService = navService; this.pageCollection = pageCollection; this.buttonService = buttonService; this.headerActionService = headerActionService; this.elementRef = elementRef; this.differs = differs; /** * Contains the size defined by the clrWizardSize input * @name size * @type {string} * @default "xl" * @memberof Wizard */ this.size = "xl"; /** * The property that reveals the ghost pages in the wizard. Set through the * clrWizardShowGhostPages input. * * @name showGhostPages * @default false * @type {boolean} * @memberof Wizard */ this.showGhostPages = false; this._forceForward = false; /** * Tells the modal part of the wizard whether it should have a close "X" * in the top right corner. Set with the clrWizardClosable input. * * @name closable * @type {boolean} * @memberof Wizard */ this.closable = true; /** * Toggles open/close of the wizard component. Set using the clrWizardOpen * input. * * @name _open * @type {boolean} * @memberof Wizard */ this._open = false; /** * Emits when the wizard is opened or closed. Emits through the * clrWizardOpenChange output. Works in conjunction with the * clrWizardOpen binding so you can use... * * <clr-wizard [(clrWizardOpen)]="blah" * ...or... * <clr-wizard [clrWizardOpen]="something" (clrWizardOpenChange)="doSomethign($event)"> * * ...for two-way binding. * * @name _openChanged * @type {EventEmitter<boolean>} * @memberof Wizard */ this._openChanged = new _angular_core.EventEmitter(false); /** * Emits when the wizard is canceled. Can be observed through the clrWizardOnCancel * output. * * Can be combined with the clrWizardPreventDefaultCancel input to create * wizard-level custom cancel routines. * * @name onCancel * @type {EventEmitter<any>} * @memberof Wizard */ this.onCancel = new _angular_core.EventEmitter(false); /** * Emits when the wizard is completed. Can be observed through the clrWizardOnFinish * output. * * Can be combined with the clrWizardPreventDefaultNext input to create * wizard-level custom completion routines. * * @name onFinish * @type {EventEmitter<any>} * @memberof Wizard */ this.wizardFinished = new _angular_core.EventEmitter(false); /** * Emits when the wizard is reset. See .reset(). Can be observed through * the clrWizardOnReset output. * * @name onReset * @type {EventEmitter<any>} * @memberof Wizard */ this.onReset = new _angular_core.EventEmitter(false); /** * Emits when the current page has changed. Can be observed through the clrWizardCurrentPageChanged * output. This can happen on .next() or .previous(). * Useful for non-blocking validation. * * @name currentPageChanged * @type {EventEmitter<any>} * @memberof Wizard */ this.currentPageChanged = new _angular_core.EventEmitter(false); /** * Emits when the wizard moves to the next page. Can be observed through the clrWizardOnNext * output. * * Can be combined with the clrWizardPreventDefaultNext input to create * wizard-level custom navigation routines, which are useful for validation. * * @name onMoveNext * @type {EventEmitter<any>} * @memberof Wizard */ this.onMoveNext = new _angular_core.EventEmitter(false); /** * Emits when the wizard moves to the previous page. Can be observed through the * clrWizardOnPrevious output. * * Can be useful for validation. * * @name onMovePrevious * @type {EventEmitter<any>} * @memberof Wizard */ this.onMovePrevious = new _angular_core.EventEmitter(false); this._stopNext = false; this._stopCancel = false; this._stopNavigation = false; this._disableStepnav = false; /** * Used only to communicate to the underlying modal that animations are not * wanted. Primary use is for the display of static/inline wizards. * * Set using clrWizardPreventModalAnimation input. But you should never set it. * * @name _stopModalAnimations * @type {boolean} * @memberof Wizard */ this._stopModalAnimations = false; this.goNextSubscription = this.navService.movedToNextPage.subscribe(function () { _this.onMoveNext.emit(); }); this.goPreviousSubscription = this.navService.movedToPreviousPage.subscribe(function () { _this.onMovePrevious.emit(); }); this.cancelSubscription = this.navService.notifyWizardCancel.subscribe(function () { _this.checkAndCancel(); }); this.wizardFinishedSubscription = this.navService.wizardFinished.subscribe(function () { if (!_this.stopNext) { _this.forceFinish(); } _this.wizardFinished.emit(); }); this.differ = differs.find([]).create(null); }
function Wizard(navService, pageCollection, buttonService, headerActionService, elementRef, differs) { var _this = this; this.navService = navService; this.pageCollection = pageCollection; this.buttonService = buttonService; this.headerActionService = headerActionService; this.elementRef = elementRef; this.differs = differs; /** * Contains the size defined by the clrWizardSize input * @name size * @type {string} * @default "xl" * @memberof Wizard */ this.size = "xl"; /** * The property that reveals the ghost pages in the wizard. Set through the * clrWizardShowGhostPages input. * * @name showGhostPages * @default false * @type {boolean} * @memberof Wizard */ this.showGhostPages = false; this._forceForward = false; /** * Tells the modal part of the wizard whether it should have a close "X" * in the top right corner. Set with the clrWizardClosable input. * * @name closable * @type {boolean} * @memberof Wizard */ this.closable = true; /** * Toggles open/close of the wizard component. Set using the clrWizardOpen * input. * * @name _open * @type {boolean} * @memberof Wizard */ this._open = false; /** * Emits when the wizard is opened or closed. Emits through the * clrWizardOpenChange output. Works in conjunction with the * clrWizardOpen binding so you can use... * * <clr-wizard [(clrWizardOpen)]="blah" * ...or... * <clr-wizard [clrWizardOpen]="something" (clrWizardOpenChange)="doSomethign($event)"> * * ...for two-way binding. * * @name _openChanged * @type {EventEmitter<boolean>} * @memberof Wizard */ this._openChanged = new _angular_core.EventEmitter(false); /** * Emits when the wizard is canceled. Can be observed through the clrWizardOnCancel * output. * * Can be combined with the clrWizardPreventDefaultCancel input to create * wizard-level custom cancel routines. * * @name onCancel * @type {EventEmitter<any>} * @memberof Wizard */ this.onCancel = new _angular_core.EventEmitter(false); /** * Emits when the wizard is completed. Can be observed through the clrWizardOnFinish * output. * * Can be combined with the clrWizardPreventDefaultNext input to create * wizard-level custom completion routines. * * @name onFinish * @type {EventEmitter<any>} * @memberof Wizard */ this.wizardFinished = new _angular_core.EventEmitter(false); /** * Emits when the wizard is reset. See .reset(). Can be observed through * the clrWizardOnReset output. * * @name onReset * @type {EventEmitter<any>} * @memberof Wizard */ this.onReset = new _angular_core.EventEmitter(false); /** * Emits when the current page has changed. Can be observed through the clrWizardCurrentPageChanged * output. This can happen on .next() or .previous(). * Useful for non-blocking validation. * * @name currentPageChanged * @type {EventEmitter<any>} * @memberof Wizard */ this.currentPageChanged = new _angular_core.EventEmitter(false); /** * Emits when the wizard moves to the next page. Can be observed through the clrWizardOnNext * output. * * Can be combined with the clrWizardPreventDefaultNext input to create * wizard-level custom navigation routines, which are useful for validation. * * @name onMoveNext * @type {EventEmitter<any>} * @memberof Wizard */ this.onMoveNext = new _angular_core.EventEmitter(false); /** * Emits when the wizard moves to the previous page. Can be observed through the * clrWizardOnPrevious output. * * Can be useful for validation. * * @name onMovePrevious * @type {EventEmitter<any>} * @memberof Wizard */ this.onMovePrevious = new _angular_core.EventEmitter(false); this._stopNext = false; this._stopCancel = false; this._stopNavigation = false; this._disableStepnav = false; /** * Used only to communicate to the underlying modal that animations are not * wanted. Primary use is for the display of static/inline wizards. * * Set using clrWizardPreventModalAnimation input. But you should never set it. * * @name _stopModalAnimations * @type {boolean} * @memberof Wizard */ this._stopModalAnimations = false; this.goNextSubscription = this.navService.movedToNextPage.subscribe(function () { _this.onMoveNext.emit(); }); this.goPreviousSubscription = this.navService.movedToPreviousPage.subscribe(function () { _this.onMovePrevious.emit(); }); this.cancelSubscription = this.navService.notifyWizardCancel.subscribe(function () { _this.checkAndCancel(); }); this.wizardFinishedSubscription = this.navService.wizardFinished.subscribe(function () { if (!_this.stopNext) { _this.forceFinish(); } _this.wizardFinished.emit(); }); this.differ = differs.find([]).create(null); }
JavaScript
function DatagridHideableColumn(_template, _id, _hidden) { if (_hidden === void 0) { _hidden = true; } this._template = _template; this._id = _id; this._hidden = _hidden; /** * @property hiddenChanges * * @description * A stream of state changes an instance of DatagridHideableColumn will broadcast to subscribers. * * @type {Subject<boolean>} */ this.hiddenChangesState = new Subject(); // Flag this true when the service only has one visible column open. this.lastVisibleColumn = false; this.hiddenChangesState.next(_hidden); }
function DatagridHideableColumn(_template, _id, _hidden) { if (_hidden === void 0) { _hidden = true; } this._template = _template; this._id = _id; this._hidden = _hidden; /** * @property hiddenChanges * * @description * A stream of state changes an instance of DatagridHideableColumn will broadcast to subscribers. * * @type {Subject<boolean>} */ this.hiddenChangesState = new Subject(); // Flag this true when the service only has one visible column open. this.lastVisibleColumn = false; this.hiddenChangesState.next(_hidden); }
JavaScript
function Footer() { return ( <footer className='footer'> {/* all the items in the footer will have the classname 'nav-item' */} <nav className='footer-nav'> <h4 class='footer-muscle-arm'>💪</h4> <div className='footer-links'> <a target="_blank" rel="noreferrer" className='footer-nav-item' href='https://github.com/ft-anywhere-fitness/front-end'>Source</a> </div> <h6 className='footer-nav-item copyright'>&copy;Lorem Ipsum Industries </h6> </nav> {/* The disclaimer is below the rest of the footer */} <div className='disclaimer-container footer-nav-item'> <p>Disclaimer: This is not a real website and we do not have real classes. </p> </div> </footer> ); }
function Footer() { return ( <footer className='footer'> {/* all the items in the footer will have the classname 'nav-item' */} <nav className='footer-nav'> <h4 class='footer-muscle-arm'>💪</h4> <div className='footer-links'> <a target="_blank" rel="noreferrer" className='footer-nav-item' href='https://github.com/ft-anywhere-fitness/front-end'>Source</a> </div> <h6 className='footer-nav-item copyright'>&copy;Lorem Ipsum Industries </h6> </nav> {/* The disclaimer is below the rest of the footer */} <div className='disclaimer-container footer-nav-item'> <p>Disclaimer: This is not a real website and we do not have real classes. </p> </div> </footer> ); }
JavaScript
enablePlugins(plugins) { let current = this[SELECTED_PLUGINS], notAlreadySelected; notAlreadySelected = plugin => current.indexOf(plugin) === -1; this[SELECTED_PLUGINS] = plugins.filter(notAlreadySelected).concat(current); this[SETUP](); }
enablePlugins(plugins) { let current = this[SELECTED_PLUGINS], notAlreadySelected; notAlreadySelected = plugin => current.indexOf(plugin) === -1; this[SELECTED_PLUGINS] = plugins.filter(notAlreadySelected).concat(current); this[SETUP](); }